starting on android app - IDEs, Libraries, & Programming Tools

hye im trying to develop an android app but now im stuck
ive install eclipse , android adt
now when i open up eclipse
1. it will ask me to select a workspace (done)
2. a pop up telling me that "Location of the android SDK has not been setup in the preferences."
now what should i do? from the tutorial i watch it didnt say anything bout this.
can someone help me?
i have very minimal knowledge on this
can any1 provide me wif links to good tutorial
the one im watching is 2011...

In Eclipse go to Window > Preferences > Android and change for e.g, D:\eclipse\android-sdk or where your sdk is.
Also you can download the Android Eclipse next time it has everything setup already, dont download the classic one.

Download ADT from developers.android.com. It will be set properly from the beggining.

go to WINDOW > PREFERENCES > ANDROID, you can browse your SDK location there. can't miss it.

Use Google Android Eclipse Docs
Hello razinramones and anyone else reading this post...
Checkout Eclipse ADT, on the Google SDK site, I personally use it and it works well...

You better download the Eclipse Android Developer Tools Bundle directly and unzip it to some place - everything is set up then.
Check out the official android page for this developer.android.com/sdk/installing/index.html?pkg=adt

I think it is cause of java. U need to install java.
Sent from my GT-I9205 using XDA Premium 4 mobile app

625
Download the ADT Bundle from Android page. Everything is there for you.
If you are using Eclipse such as Eclipse Luna, go to Window, open Preferences, choose Android tab, and browse to your SDK directory.

Related

[Tool] Dev-App installer

Hello,
one of the biggest problems in bada app development is the lack of simple mechanisms to install apps to the handsets of beta-testers. There is a way to do this when the tester has installed the bada SDK on his pc, but i always thought it should be possible without it.
This is why i started to examine what the SDK does when you're running an app on the target device, and begun to recreate this mechanism. What i have now is a tool that installs in-development app on a handset. The tester only has to install the root certificate from the SDK on his phone, no need to download and install the whole SDK anymore.
Any interested app developer can contact me to get a copy of the tool for his own app for free! For security reasons, the tool has a hard-coded list of known apps that it can install, so there is no reason to offer it as direct download here.
The tool offers the possibility to restrict installation to handsets with certain IMEIS, as well as an expiration date after which the app can't be installed anymore.
Patrick
are you using some different method than broker.exe?? i have been using this exe file from sdk to distribute application for my clients.
No, what i ahve done is to watch what broker.exe does, and to rebuild that in my tool.

[Q] installing application

hello,
i read there are different way to install application , i wish to try to understand all the way and how they work, could you help me in this ? i am a noob but i am perfectionnist
- open the market from your rooted nook, select the app , install
- open the market from a computer , connect with your google account, select the app, install
- find the apk , download on sd card , use a file explorer to install
these are the easy ways, is there any more way to do ? thanks
c-loet said:
hello,
i read there are different way to install application , i wish to try to understand all the way and how they work, could you help me in this ? i am a noob but i am perfectionnist
- open the market from your rooted nook, select the app , install
- open the market from a computer , connect with your google account, select the app, install
- find the apk , download on sd card , use a file explorer to install
these are the easy ways, is there any more way to do ? thanks
Click to expand...
Click to collapse
Using the ADB interface.
eded333 said:
Using the ADB interface.
Click to expand...
Click to collapse
i am just in the middle of looking for that in the forum, i don't understand what it is and how it works... can't find easy explanation...
The first three steps of one of my manual tutos:
http://forum.xda-developers.com/showpost.php?p=20069222&postcount=3
Helps you get ADB running on windows.
ADB is Android Debug Bridge. It provides terminal-based interface for interacting with your phone’s file system.
And this makes a small simple script to easily connect to your device.
http://forum.xda-developers.com/showpost.php?p=20069359&postcount=14
Check my other manual tutos if you are interested in some examples of what you can do with ADB. (On my sig)
thanks eded333, i will have a close look to that. I like to understand, but i feel like my computer skills are to small to go ahead in that step. but anyway, i will try
Unless you want to use your e-ink device as a tablet, you don't want to have a market app (even Amazon) on it. Or to have mail programs. I personally prefer to use it for reading though I have a normal tablet for other stuff.
Anyways, my point is try to get used to adb way, this one is keeping your nook less bloated than anything else.
Sent from my GT-P1000 using Tapatalk 2

[HOWTO]Install Google Experience Launcher

I see a lot of people looking to have the launcher with the new 4.4 factory image so I decided to share.
Google pushed an update to Search today that provides GEL functionality for all devices running 4.1+.
Here's how to get it done:
THIS WORKS ON 4.1+. YES YOU READ THIS RIGHT.
1) Download the launcher APK.
Download: https://drive.google.com/file/d/0B0-C-WV5dUiETFRjeThJVnBpRTA/edit?usp=sharing
Dropbox mirror: https://db.tt/72JTuIkc
The source of this APK is from Android Police mirrored on my google drive. If you don't trust the download you may find it there.
2) Enable installation of APKs from unknown sources. Since this isn't coming from the market. Android will kindly remind you its dangerous. Settings > Security > Uncheck "Unknown Sources".
3)Use a file explorer or similar to navigate to and install the GEL apk.
4)Tap your home soft key and choose the Launcher option (looks like a blue house).
This should get you set up. If you decide you want to change back to the old you can go to settings > home and choose whichever you please.
Hope this helps. Enjoy!
Sent from my Nexus 4 using XDA Premium HD app
For some reason it didn't want to make that directory public. Link should be fixed. Sorry about that!:silly:

{CLOSED} [TUT] 1/11/2014 HDX8.9 Working Play Store, GAPPS & PARTIAL Amz Services...

{CLOSED} [TUT] 1/11/2014 HDX8.9 Working Play Store, GAPPS & PARTIAL Amz Services...
I am no longer updating this thread. Currently, you best bet for everything working is SafeStrap, rom slot, Hashcode's Stock Fire Rom, Xposed module & the flashable gapps from Cpasjuste. I currently have a work load that precludes me from investigating anything further. Not too mention it seems other have the time & a better grasp on everything than I do. I will continue to help those stuck in bootloops or with issues as time permits. I recommend starting anew with your device, restoring the factory firmware, & then using safestrap & the other items mentioned above to get Play Store & Amazon working together.
Edited on 1/11/2014 - Added a fixed version of wget to the hdx.7z file to correct the gapps download rename issue.
READ ME FIRST OR YOUR DEVICE WILL EXPLODE, SCORCHING YOUR EYEBALLS!
If you have never modified an Android Device, if you have no idea what ADB is, how it is used & nearly every command memorized because you have been participating at xda for years or lurking for half a decade, if you do not know what the SDK, ANT, IDE or Ubuntu is, if you cannot afford to possibly throw away $300 to $600, then do yourself a favor & leave your Kindle alone. This is not a simple process, nor does it seem to work the same for everyone. I am NOT a developer. I also have a family & a career, which is very time consuming. I lost over a week in vacation days this past year because I rarely have time for myself, so that should tell you about how much time I am going to have for you if you break something. Sure, I will try to help WHEN I HAVE TIME, but if you are messing with things & then sending me a one line PM saying "I brick it" without any specifics about EVERYTHING you have done, well, I am not even going to respond. So, now you know, if you still want to mess around & possibly break some stuff, go right ahead.
EDIT: It seems if some Amazon services do fail to work for most people. books work fine for me, but not most others & the Amazon App store is not working 100% either. I am working on a fix.
Okay, firstly, I have to thank @Ptiwee who was the first to really bring all of the scattered data & info together, discovering the location in the Java/Smali, where the issue in getting Play Store to function correctly resided.
You will also find a lost pf tips & fixes in post #2. I will add to it as developments arise.
This is a step by step guide for the newer member that wants to learn. I have tried to be as precise as possible & list out every step, along with a few tips on getting your Android adventure started successfully. There are no dumb questions, except for those you should have asked. So ask away & we'll try to get you an answer you'll understand.
Now, we must thank @CrashThump who took Ptiwee's solution & instead of relying on the notoriously unreliable apktool & dependecies, he took the time to recompile a fixed binary in the form of new services.odex. This is exactly what I had been looking to do, but I have been having some troubles with aapt & apktool & he just probably knows a lot more than I do. Either way, it's here now & it works.
Be sure to hit thanks to those guys, for without there help, you would still be bootlooping & cursing Amazon under your breath.
This is NOT an easy or clean way to install GAPPS package, but it works perfectly & I for one have NOT lost a single Amazon service. It is relatively low risk if you follow directions & test that things are working before jumping in head first.
Here is what you need to do to install the Play Store & GAPPS (for now), until I or another member has the time to properly compile everything into an easy to use utility. The root & signature verification parts of this tool work well. The install GAPPS script can fail occasionally, but it will not hurt anything.
This guide is for use on windows, though I will later also present a terminal command version for Linux & possibly Mac. It will be a manual version for now & I will not get to it until later. Feel free to take the data here & compile it into whatever tool or utility you want. I don't think anyone would have an issue with that, just be sure to thank everyone mentioned in this post. you can also easily open the script & just manually do everything in the script for linux. Just make sure you also grabbed the tools like SED from Ptiwee's original script tool.
For this to work, you must be rooted & have busybox installed, along with completing the steps & requirements listed below. The script from CrashDump in the HDX.7z file can root your device, as well as install gapps, fix for signature checking & the wallpaper issue. I recommend downloading everything ahead of time, including the attached busybox installer. If you are already rooted, you can skip some steps, otherwise follow the directions closely.
1. Download the Windows batch file & the necessary scripts & binary from CrashDump named hdx.7z. It can be found below in the attachments.
EDIT (1/11/2014) - Added a different version of wget to fix the download rename issue..
Download & install a BusyBox installer on your device.
2. Ensure you have the latest Java SDK installed. The JDK can be found here: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Make certain you install the version for your operating System, i.e. 32-bit or 64-bit.
For 32-bit (x86), the JDK you want is titled: jdk-7u45-windows-i586.exe
For 64-bit (x64), the JDK you want is titled: jdk-7u45-windows-x64.exe
I recommend installing it to the default directory.
Once you have this installed, make sure to add it to you PATH in Environmental Variables.
To do this, hit the Windows button (like you are going to open an app), or launch the file explorer & RIGHT CLICK on "Computer" & select "Properties".
.Go to "Advanced System Settings" & select the "Advanced" tab.
Select the "Environmental Variables" button towards the bottom right side of the window.
In the second window, "System Variables", scroll to "Path" & select edit.
Add your systems path to the recently installed version of the Java SDK (JDK) to "Variable Value:", it should look something like this:
C:\Program Files\Java\jdk1.6.0_33\bin; (make sure yours reflects your correct version & path to the JDK Bin directory. DO NOT JUST COPY/PASTE MINE). Also take care to have a semi-colon ( both before & after your path & DO NOT ALTER ANY OF THE OTHER VALUES.
I also recommend you add these file types to the entry below, called (PATHEXT):
.BAT;.CMD;.JS;.JSE;.SH
These two steps allow you to use these tools from any directory, telling tools & applications where to find the resources they need.
After installing the Java SDK (JDK), make sure you also have a "System Variable" entry called "JAVA_HOME" with a value that is the same as your environmental variable, pointing to your Java SDK Bin directory. Mine is "C:\Program Files\Java\jdk1.6.0_33\bin" (again, you need to have YOUR installed location, not mine, so do not copy/paste from here).
3. Ensure you have installed the Android SDK. You do NOT need Eclipse, just the SDK. It can be found here: http://dl.google.com/android/installer_r22.3-windows.exe
Install the SDK somewhere simple & avoid spaces in directory names. My SDK (when I bother to use Windows anymore, is C:/Android/
I use Eclipse, so for me, my directury tree is "C:/Android/sdk & C:/Android/eclipse" this is where all the important Android tools live, like ADP & AAPT & Fastboot, in /sdk/tools & /sdk/platform-tools.
4. The script & utilities used by CrashDump need several Linux based tools, like SED & a few others. Fortunately, the GnuWin32 package exists & can be downloaded here: http://sourceforge.net/projects/getgnuwin32/files/
This is a set of packages designed to work with Windows, It will download an executable & you will open it, paying attention to where it is downloading & extracting the packages. Once it is finished, you will go to what ever directory you selected for the "GetGnuWin32" folder & you will click on a script batch file named "download.bat. This will download all the GnuWin32 packages. Follow the instructions & let it download the updates as it goes.
Once this is complete, you will then go back into your "GetGnuWin32" folder. Now you will double click (execute/run) the script batch file named "install.bat".
This process takes about 15 to 30 minutes depending on your machine & your download speed.
5. Connect your device to the USB port & give it time to install the proper drivers. Next, open a cmd window & enter: adb devices
If successful, you should see your device serial number listed, similar to this:
C:\Users\gleon>adb devices
List of devices attached
B0xxxxxxxxxSH device
If your device was recognized & you see something similar to the above, congratulations, you have installed the SDK successfully & are now ready for some action. If not, you may need to install the HDX adb drivers. If you are here, you have most likely already done most of the steps above anyways.
7. Extract the file HDX.7z to somewhere simple like C:/ or in your Android SDK directory.
Double click on the "HDX.bat" script & a terminal window will open with the following data:
Only for Kindle Fire HDX 8.9
WARNING ! All the manipulations here are dangerous.
Your tablet may become unstable or unusable.
Nobody except you will be considered as responsible.
What do you wanna do ?
1. Root my Kindle Fire HDX 8.9
2. Remove Amazon ads on lockscreen and some Amazon applications
3. Remove signature check (Requisite for Google Apps)
4. Install Google Apps
5. Fix wallpaper
6. Quit
Choice :
Select option #1 if you are NOT yet rooted. Once you root, open up the Superuser app & give it a minute. Make sure it is working & then install the attached busybox installer on your device & make sure to open it & install busybox & the applets. I suggest using the "Smart Install" feature. It will take a minute or two for it to load & install busybox, but please wait & ensure it installs successfully.
To install busybox, you can transfer it to your device & use a file explorer to navigate to the apk, OR you can use your newly installed SDK & open a cmd prompt in the folder you downloaded or extracted the bb installer & issue the following command (just the part in quotes, WITHOUT the quotes of course): c:\Android> "adb install busybox.apk"
It will say "successful" once busybox is installed. Open the app & let it setup. Then click on the "install" button & let it do its thing.
Once you are rooted, have busybox & Superuser installed, or If you are already rooted with both installed, you can move to the script tool's option # 3, "Remove signature check <Requisite for Google Apps>
This is going to replace the services.odex file from your devices /system/framework directory. It will restart the SystemUI, which means it will look like it has reboot, but do not panic, it will not boot loop your device, it will resume normally in a moment.
Once it is has restarted the SystemUI & the screen comes back on, you can now use option #4 "Install Google Apps".
Congratulations, you now have an Amazon HDX 8.9 with fully functioning GAPPS, including Play Store & you have all Amazon Services working.
Take wht you have learned & pass it along. This is a forum about sharing ideas & knowledge. Pay it forward.
I know this is written fairly simply, but I do this so that nobody will misunderstand. i know many of you know what you are doing, but there are new users & members here every day. I will do whatever I can to help you if you have issues & as you have seen, I have already been able to fix 2 types of soft bricks, so your risk is much more limited than even a few weeks ago.
Fixes, Tips & Tricks
Tips & Fixes:
1. For all of your Google Play installed app to show up in the app drawer, please delete versions in the "Cloud" tab of the App Drawer. (This only applies to the Stock Amazon launcher/app drawer).
2. Currently, all apps & Amazon Service work EXCEPT Amazon App store. A work around is listed below.
3. There is a work around for the Amazon App Store crash. It will work if you remove the existing app, delete the dalvik cache & then install the generic Amazon App Store for Android from here: http://www.amazon.com/gp/mas/get/android/ref=mas_rw_ldg
You will need an app like Titanium Backup Pro, which can remove unnecessary Dalvik files. This work around functions, however, the Amz App will crash occasionally. Also be sure you are uninstalling the App Store, not the IntentProxy, which also show as Apps in TB.
4. I have not thoroughly tested this, however from short testing, it appears that Kindle Free Time does indeed work. It will launch, allow password to be set & rules & times to be selected.
5. If you have any issues & want to return to 100% stock, I will be uploading a fixed build.prop, along with a script to download & ready the latest update. This will erase all changes in the device System partition, without removing installed apps in the user land, aka /data/app.
I'm looking forward to trying this when I get home! Thank you all for you hard work!!
Does this require root?
cbtk18 said:
Does this require root?
Click to expand...
Click to collapse
Yes. Steps 1-6 is PC preparation to run step #7, for Kindle modification. You need 'option #1 - root' for any other option to work.
---------- Post added at 05:37 PM ---------- Previous post was at 05:28 PM ----------
GSLEON3 said:
Tips & Fixes:
2. Currently, all apps & Amazon Service work EXCEPT Amazon App store.
Click to expand...
Click to collapse
With Amazon App store not working, does this also include functionality of downloading of content locally in Freetime, Kindle, MP3, Video?
I've tried all known methods (except ptiwee/crashdump/yours) and I still haven't gotten a working App Store + content sync... All content requests show 'queued' indefinitely...
Thanks,
Alex
I can play, download & watch movies, music & books without issue. Only the Amazon app store has issues for me. Being one of the worst curated Android Markets around, I could care less, though I do plan on comparing it to the HD 8.9 DL manager, which functions 100% for everything.
My household all have tablets & my youngest is a teen, so no idea on Free time, but I'll check for you when I get everything back in place. I'm bricked again (on purpose & not from this, so don't worry) I'm trying to find a fix for another user with issues.
Sent from my Nexus 5 using XDA Premium HD app
Can we use the wallpaper fix? There was another thread saying wallpaper fix bricked their device (8.9). Is it ok to do here?
Amazon Appstore
will you find a way to get the amazon appstore to work
Now if only this could be ported to 7 ...great job
Sent from my KFTHWI using XDA Premium 4 mobile app
So I went ahead and applied the wallpaper fix built in this tool. It was fine. Although I did have a black screen for awhile, basically seemed dead for a couple minutes, which concerned me. Next step... how to get live wallpapers? I love this. Makes the 8.9 better than the 7" now. Functionally that is, minus the live wallpaper that is working with thor-gapps rom for the 7".
Yes no Amazon apps work at all on 7 but 1 person claims all is working on his but I don't see how with Thor gapps rom
Sent from my KFTHWI using XDA Premium 4 mobile app
davekaz said:
Now if only this could be ported to 7 ...great job
Sent from my KFTHWI using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Nobody said step 7,options 2+ won't work on 7, it just hasn't been tested..... I would go back to ptiwee's original script to test, and as it modifies files from the device and doesn't rely on potentially device specific modified binaries...
Sent from my AT100 using Tapatalk 4
Thanks for a very good jobb, which give us all users of HDX 8.9 get a fantastic tablet. I do not understan what you mean with this lines, "For all of your Google Play installed app to show up in the app drawer, please delete versions in the "Cloud" tab of the App Drawer."? Where do I find "Cloud Tab?"
I use Nova launcher so mabe it´s not for me?
Thanks
lasset said:
Thanks for a very good jobb, which give us all users of HDX 8.9 get a fantastic tablet. I do not understan what you mean with this lines, "For all of your Google Play installed app to show up in the app drawer, please delete versions in the "Cloud" tab of the App Drawer."? Where do I find "Cloud Tab?"
I use Nova launcher so mabe it´s not for me?
Thanks
Click to expand...
Click to collapse
If you're using Nova Launcher, then you're right, you likely won't care.
GSLEON3 is pointing out for those who choose to use the stock launcher app carousel and you're wondering why play store apps aren't showing up, it's due to a conflict between the existence of the app in Amazon App Cloud and the Google Play store. To resolve this, he's recommending you remove this from Amazon App Cloud...
Ok, thanks I understand and I stay in Nova.
Thanks and A Happy New Year from Sweden!
---------- Post added at 12:31 PM ---------- Previous post was at 12:30 PM ----------
davekaz said:
Yes no Amazon apps work at all on 7 but 1 person claims all is working on his but I don't see how with Thor gapps rom
Sent from my KFTHWI using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Has anyone tried using the Amazon store app from the Google play store?
improvius said:
Has anyone tried using the Amazon store app from the Google play store?
Click to expand...
Click to collapse
Great Idea. This may work. I'll have a try after morning coffee.
Has anyone tested this on the 7 inch HDX?
Is there any reason why this would/should not work on this model?
Thanks!
Guys, I am about 99% sure that you do not need the GnuWin32 packages for this to work. Duh... I forgot we are using a binary, not an on the fly rebuild like Ptiwee.
I'll test & modify instructions accordingly.
Sent from my KFAPWI using XDA Premium HD app
GSLEON3 said:
Guys, I am about 99% sure that you do not need the GnuWin32 packages for this to work. Duh... I forgot we are using a binary, not an on the fly rebuild like Ptiwee.
I'll test & modify instructions accordingly.
Sent from my KFAPWI using XDA Premium HD app
Click to expand...
Click to collapse
thanks again for the all the hard work and persistence..
xda is about sharing and learning and "a man only owns what he knows"..
thanks again..great job!!
question though.. can i go ahead and try this on my kindle fire hdx 8.9 LTE 64GB?

How do I properly set up android manifest?

I developed an app but it refuses to install and i think this must have something to do with the androidmanifest.xml. And of course, i googled about this already. Could you guys lighten up things for me. How do i properly set up the androidmanifest.xml?
Sent from my GT-I9190 using Tapatalk
Can you provide us with a screenshot of the structure of your project and the actual manifest file? And what does it say when installing? Does it happen when installing via adt or when installing from an actual apk file?
It happened when im installing it on my phone. Its just a simple app im trying to develop but im stuck at the installing process. I didnt use adt to debug the app because its taking forever to open on my pc. What is the most basic must have data on androidmanifest.xml in order for apps to install? I'll get back with the screenshots once i got access to my pc.
Sent from my GT-I9190 using Tapatalk

Categories

Resources