Using Android SDK for screenshots... - Kindle Fire Q&A, Help & Troubleshooting

I have the Android SDK installed from this: installer_r20-windows.exe
When I follow the instructions on every tutorial I've found, (CMD window, go to tools dir, type ddms...) which used to work on my older version of Android SDK, I now get an error:
"SWT folder 'lib\x86' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform."
Now, swt.jar is in \x86_64
I tried changing that dir to be called x86 but that gave me a series of other errors. I can't find anything called "ANDROID_SWT"... what do I do?
Rooted Kindle Fire (yes I have a screenshot app, but I have other reasons for wanting to see it on my computer.)
Searched the forum and didn't find anything that seemed to help...

Try using AirDroid instead, works perfectly fine for what you need. It's available on the Play Store.
Sent from my Amazon Kindle Fire using xda-developers app

WebKat said:
I have the Android SDK installed from this: installer_r20-windows.exe
When I follow the instructions on every tutorial I've found, (CMD window, go to tools dir, type ddms...) which used to work on my older version of Android SDK, I now get an error:
"SWT folder 'lib\x86' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform."
Now, swt.jar is in \x86_64
I tried changing that dir to be called x86 but that gave me a series of other errors. I can't find anything called "ANDROID_SWT"... what do I do?
Rooted Kindle Fire (yes I have a screenshot app, but I have other reasons for wanting to see it on my computer.)
Searched the forum and didn't find anything that seemed to help...
Click to expand...
Click to collapse
This is referring to a system variable most likely. Right click My Computer > Properties > Advanced system settings > Advanced > Environment Variables. You'll probably find it in there and it'll need to be updated to your new \x86_64 path.
Try searching google instead of the forums. Seeing as how it's a SDK issue you'll probably get better results; just include 'environment variable' and 'path' to your search keywords and I'm sure you'll find something.

Related

ADB & SDK help

Does anybody have links to, or willing to share the programs needed (Android SDK, Drivers, etc.)? I have been trying to find all the programs, but keep running into dead ends. The Drivers file listed in JoeyKrim's "Basics of ADB" thread are no longer hosted, The ADB files in SDK are missing a lot of files, and I don't know which ones I need. In place of the files, is a Notepad Readme which I Copy/Pasted here:
Welcome to the Android SDK!
The Android SDK archive now only contains the tools. It no longer comes
populated with a specific Android platform or Google add-on. Instead you
use the SDK Manager to install or update SDK components such as platforms,
tools, add-ons, and documentation.
In order to start developing applications, you must install at least one
version of the Android platform using the SDK Manager.
This requires an Internet connection, so if you plan to use the SDK
offline, please make sure to download the necessary components while online.
To start the SDK Manager, please execute the program "SDK Setup.exe".
Any help would be appreciated...
if you've downloaded the SDK from devlopers.android.com (i think is the url) then load it up and download everything that offers, so that you can make some android emulators for local testing.
then get yourself an IDE for programming in, eclipse has a nice plugin for android development, i use it myself. its a bit dated as an ide, but its nice.
once you have that youre done.
you can either use the emulator to test your code or actually run it on your android device if its connected.
good luck.
That's where the problem comes in. When I try to install the Android SDK, it doesn't have anything available. It has a "Readme" File that says you need to manually download the necessary add-ons. I don't know what add-ons to download. Also, the driver files that joeykrim references in his "Basics of ADB" thread have been removed from the servers, so I don't have access to them.
When I Rooted my EVO, I used Jiqqaman's 3 click "Simple Root", which loads the Clockwork Recovery. I would like to learn how to do some of the things myself, since other than changing ROM's, there isn't much that can be done without the correct programs (Pushing/pulling apks from the phone, some of the diagnostics need to be done from a shell, etc.)
The Android SDK archive now only contains the tools. It no longer comes
populated with a specific Android platform or Google add-on. Instead you
use the SDK Manager to install or update SDK components such as platforms,
tools, add-ons, and documentation.
To start the SDK Manager, please execute the program "SDK Setup.exe".
Click to expand...
Click to collapse
did you even read the README file? its right there.
run the SDK setup.exe -> available packages, and go get what you need.
then look up getting android development working in eclipse.

Installing Drivers Not Working

I am using SDK to install drivers so I can take a picture of my Android screen.
Trying to use the following guide:
Follow these steps to install new SDK components in your environment:
1. Launch the Android SDK and AVD Manager as described in the section above.
2. Select Available Packages in the left panel. This will reveal all of the components that are currently available for download from the SDK repository.
3. Select the component(s) you'd like to install and click Install Selected. If you aren't sure which packages to select, read Which components do I need?.
4. Verify and accept the components you want and click Install Accepted. The components will now be installed into your existing Android SDK directories.
New platforms are automatically saved into the <sdk>/platforms/ directory of your SDK; new add-ons are saved in the <sdk>/add-ons/ directory; samples are saved in the <sdk>/samples/android-<level>/; and new documentation is saved in the existing <sdk>/docs/ directory (old docs are replaced).
_____________________________________________
I get to "Available Packages" then when trying to search or install drivers, it gives me the following message:
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings.
Any help? I just want to take a simple picture of my phone and the developers of this thing didn't have the foresight to just make it simple like iPhone?
Thanks.
nbakid2000 said:
I am using SDK to install drivers so I can take a picture of my Android screen.
Trying to use the following guide:
Follow these steps to install new SDK components in your environment:
1. Launch the Android SDK and AVD Manager as described in the section above.
2. Select Available Packages in the left panel. This will reveal all of the components that are currently available for download from the SDK repository.
3. Select the component(s) you'd like to install and click Install Selected. If you aren't sure which packages to select, read Which components do I need?.
4. Verify and accept the components you want and click Install Accepted. The components will now be installed into your existing Android SDK directories.
New platforms are automatically saved into the <sdk>/platforms/ directory of your SDK; new add-ons are saved in the <sdk>/add-ons/ directory; samples are saved in the <sdk>/samples/android-<level>/; and new documentation is saved in the existing <sdk>/docs/ directory (old docs are replaced).
_____________________________________________
I get to "Available Packages" then when trying to search or install drivers, it gives me the following message:
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings.
Any help? I just want to take a simple picture of my phone and the developers of this thing didn't have the foresight to just make it simple like iPhone?
Thanks.
Click to expand...
Click to collapse
ur posting this in the wrong section in the forums... go to the market and download a app that'll take a screenshot of your android device screen. i believe you need root for that though so make sure you have a rooted device. if not, check out the forums for the 3 step root process. so easy a caveman can do it. cheers.
I wasn't aware this was the wrong forum for this...especially since I'm attempting to install software that is specifically for the developers of Android.
My phone isn't rooted, either.
Although the app says you need root you actually don't.

How To Set Up an IDE to Develop to the Nook Touch on Windows

Setting up a development environment is really not that hard. I am using Windows 7 with a 64-bit processor, although the procedure is not terribly different across sytems, just make sure you choose the right download for your architecture.
The entire process can be broken down into four major steps. Let's get started.
1) Get Java
You can get the Java Standard Edition Software Development Kit through this link: http://www.oracle.com/technetwork/java/javase/downloads/
At the time of writing this post, the latest version available is 7u3. Click the download button under where it says 'JDK' and you will be taken to a list of installers. Make sure you get an installer from the group who's header is "Java SE Development Kit 7u3"; the other one is just sample code.
Make doubly sure that you choose the right architecture (x86 vs x64) as the wrong one will give you an error message and you will have to go uninstall everything and start over.
After the download has finished, run the installer.
Note: It may give the option to install JavaFX and the Ask Toolbar. While they won't hinder your development in any way, there won't be any need for them within the scope of this guide so you might find it worthwhile to not install them.
2) Get Eclipse
Once you've installed the Java DK, go get a copy of the Eclipse IDE here:
http://www.eclipse.org/downloads/ You can see that the IDE comes in many different flavors. Eclipse Classic will work fine.
Extract the folder and place the 'eclipse' subdirectory in a safe place. Try running eclipse by traversing this directory and running eclipse.exe. If you see the Eclipse splashscreen, everything is OK. If you see an error message then something may have gone wrong when you installed Java. If it complains about missing or corrupted DLLs, you probably have installed the wrong version of Java for your system. If it complains about not being able to find Java (for example, stuff about javaw.exe) you may need to manually add Java's location to your Path environmental variable. There is lots of documentation on how to do throughout the internet and most can probably explain it better than me. (^; Another method to fix the problem is to go find out where all the Java binaries are (Normally something like "C:\Program Files\Java\jdk~~~~~~~\bin"), copy the directory path, and add
Code:
-vm
<FOLDERPATH>\javaw.exe
to the end of the 'eclipse.ini' file that resides alongside 'eclipse.exe'
Note: You may notice that the version of Eclipse you downloaded isn't installed, but instead just runs out of a folder. You may want to consider creating a binaries folder in your home directory to keep all of software of this style in one place.
3) Get Android Plugins for Eclipse
Now that you have Eclipse up an running, you need to set it up for Android development. Start Eclipse up and click the 'Help' menu. Click 'Install New Software...'
In the window that comes up, you should see a combo box labelled 'Work with:' . Paste in:
Code:
https://dl-ssl.google.com/android/eclipse/
then hit enter.
Check 'Developer Tools' and click next. Let Eclipse do it's thing then click 'Finish'.
4) Get the API
Now that you have Eclipse's Android integration plugins, you need to grab an Android API. In Eclipse, under the 'Window' menu, click 'Android SDK Manager.'
The window that opens will automatically go to the internet and grab all the API packages available to download. The Nook Touch currently runs Android 2.1, so find that package set and check it. Click the 'Install <x> Packages' button and let it run.
You are finished! Now to create an Android program. In Eclipse's main menu, navigate File > New > Other... and select 'Android Project' from the 'Android' folder in the window. If you want to modify the source of an existing program, choose the appropriate radio button and browse to the parent directory of the 'src' folder. After you have created your project, you are going to want to make sure it has the right dependencies. On the lefthand pane ('Package Explorer') right click your project folder (The top one) and hit 'Properties.' Under the 'Android' screen, make sure 'Android 2.1' is checked and not another version. Click OK and you should be set.
To generate an APK, under 'File' click 'Export.' In 'Android' click 'Export Android Application.' Choose the right project, click next. If this is the first time you've exported an Android application, you will need to create a keystore. Select the appropriate radio button, navigate to a safe location, and give it your keystore a password. Click 'next' and add all the information you see fit. You will be able to reuse this keystore in future programs. After you've created a keystore, proceed through the export wizard, give your APK a filename, click finish and the file will be generated.
The rest is up to you. (^:
Thanks klausef!
For a non-dev (OK, I used to program short apps in BASIC on my commodore 64 when I was 8 years old), how much can I hope to achieve by setting this up? Do I need to understand a programming language? If so, which? Do you have any suggestions for a noob like me?
Haha I am no Java expert myself but I've been hacking around with the NoRefresh thing and other apps people have coded. You can do more than you think just by rummaging around online documentation.

No fastboot.exe in android SDK

Yeterday i downloaded Android SDK tools and platform tools get to tools folder but don't found fastboot.exe there. tried to search it in google but don't found for windows. what i need to do now?
EdikNeznanov said:
Yeterday i downloaded Android SDK tools and platform tools get to tools folder but don't found fastboot.exe there. tried to search it in google but don't found for windows. what i need to do now?
Click to expand...
Click to collapse
You need to download sdk tools. Fastboot is now included in it.
EdikNeznanov said:
Yeterday i downloaded Android SDK tools and platform tools get to tools folder but don't found fastboot.exe there. tried to search it in google but don't found for windows. what i need to do now?
Click to expand...
Click to collapse
You can get Android SDK Tools here:
http://developer.android.com/sdk/index.html
or also can download at : (for Mac & Linux also)
http://wiki.cyanogenmod.com/wiki/Howto:_Install_the_Android_SDK
Download and install in a folder like c:\Android
You may also need Java Run time and get it from here:
http://www.java.com/en/download/index.jsp
Hope this may be useful. (If really just press 'Thanks').
It is available in, >Android\android-sdk\platform-tools
Not in Android\android-sdk\tools
As written in many tutorials. This is the main confusion that bring me to this thread. finally i found it myself
aatifaneeq said:
It is available in, >Android\android-sdk\platform-tools
Not in Android\android-sdk\tools
As written in many tutorials. This is the main confusion that bring me to this thread. finally i found it myself
Click to expand...
Click to collapse
Mystery solved! Thanks, aatifaneeq.

[App request] HBO EU - android TV for a Firestick?

Is it possible to install HBO EU - android TV on a Firestick 2gen? If yes can anyone assist to do that?
https://play.google.com/store/apps/details?id=eu.hbogo.androidtv.production
I heard something about changing minSDKVersion can do the job but I cannot do it myself? Any help?
profusion said:
Is it possible to install HBO EU - android TV on a Firestick 2gen? If yes can anyone assist to do that?
https://play.google.com/store/apps/details?id=eu.hbogo.androidtv.production
Click to expand...
Click to collapse
Have you tried sideloading the apk?
Guide on ADB side loading:
https://cordcutting.com/how-to/how-to-sideload-fire-tv-apps/
Link to download Android HBO Europe APK: https://www.apkmirror.com/apk/hbo-europe/hbo-europe-android-tv/variant-{"minapi_slug":"minapi-24"}/
Sent from my Moto Z Play using Tapatalk.
http://kz.cherrytv.webd.pl/Android/HBO GO TV(eu.hbogo.androidtv.productioo)-5.9.0(161).apk
Thanks, I have succeeded to run HBO via a patched apk, as the Firestick 2gen have <6 Android. I will try also the version above, thanks for providing!
profusion said:
Thanks, I have succeeded to run HBO via a patched apk, as the Firestick 2gen have <6 Android. I will try also the version above, thanks for providing!
Click to expand...
Click to collapse
Well that was really nice of you to share that patched APK with the rest of us in case someone else has the same issue. We really appreciate that.
Can you please share the patched APK @profusion ?
Or can @nicefile share again his APK?
Hi Everyone,
So I wanted to be able to use the HBO app as well, and hence starting messing around with the various tools available for this purpose. Although Android Studio would be a better choice, for this specific purpose I feel these tools are faster.
I will have to say that I managed to get HBO GO for Eastern Europe to work on Firestick, but although I am able to install HBO Spain it will not launch.
The idea was right in basically changing version and build codes to "platformBuildVersionCode="22" platformBuildVersionName="5.1.0">" in the manifest.xml. But it is not that simple as the apk will then need to be aligned and resigned with a different keystore. This is easily done with various tools. Things I did:
1) Using apktools decompile the apk (i.e. ".\apktool d appname.apk)
2) Open "Androidmanifest.xml" in the project directory.
3) Change both "platformBuildVersionCode" and "platformBuildVersionName" to the appropriate sdk. Usually, for a newer firestick it would be "platformBuildVersionCode="22" platformBuildVersionName="5.1.0" - save the file.
4) Recompile the apk (i.e. ".\apktool b projectfoldername")
Now when trying to install the apk using adb you should get:
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
This is a good sign and means the manifest was modified correctly. But the apk will now need to be resigned by:
1) Using zipalign to re-align your achive.
2) Place the zipalign.bat and Input/Output folders where "debug.keystore" is located (probably User/YourName/.android). If you can't find keystore there, just open and close a new project with android studio and it should be created.
3) Place your modified apk in the Input folder and re-align with "zipalign -v 4 C:\nameofapp.apk C:\nameofappc.apk
After a success message, copy your re-aligned apk from "Output." Lastly, the re-signing process. You can open a prompt in Android Studio/jre/bin as that's usually where the tools you need are.
1) Paste the apk from "Output" in the folder. Create debug.keystore by typing "keytool -genkey -v -keystore debug.keystore -alias yourappname.apk -keyalg RSA -keysize 2048 -validity 20000" - write what you wish in the prompts (name, pass etc).
2) Get a certificate with "jarsigner -verbose -keystore debug.keystore C:\yourappname.apk yourappname.apk". Remember that the app needs to be the re-aligned version. Paste it in the appropriate directory.
Then you will need to install the finished apk with your method, but I always use adb since it's easiest. Simply copy the finished apk into your adb directory, then:
1) .\ adb install C:/appname
That's about it. If you have any questions you can ask here, I'm sure someone will either respond (as lots of competent people here) or I can respond myself.
Edit: If you are wondering "why a guy who has 1 post is editing this" it's very simple. I wanted to watch HBO spain without Kodi (I hate it). So I googled a solution on how to import the current app into firestick. And I found this page, which was incomplete, but it was probably the best resource on how to do this.
Anyone made patch for this?
The latest version and work on gen2 stick too:
h t t p s://drive.google.com/file/d/1YJFkXQLRiM8kBFOYEEWjeiHt8r5-5epF/view?usp=sharing
R.
RealROB2 said:
The latest version and work on gen2 stick too:
h t t p s://drive.google.com/file/d/1YJFkXQLRiM8kBFOYEEWjeiHt8r5-5epF/view?usp=sharing
R.
Click to expand...
Click to collapse
i can't install this apk. The installation starts and when it needs to finish it throws out an error
vuky017 said:
i can't install this apk. The installation starts and when it needs to finish it throws out an error
Click to expand...
Click to collapse
First, uninstall the old versoin of the app. And install this one. (The update not working, becouse of the different signing key.)
I didn't have any version of the apk at the time of installation
vuky017 said:
I didn't have any version of the apk at the time of installation
Click to expand...
Click to collapse
Ok. This is a DSA key signed version, I hope it is working:
h t t p s://drive.google.com/file/d/1EW5x-GM6xS_6fdvO-svE5jf0CuwBqw3b/view?usp=sharing
And I use the Apps2fire android app for the installation.

Categories

Resources