March 16, 2013

How do i set up the Android SDK?

Q. Hi, I want to start developing apps on the Google Android platform but I do not know how to set the SDK up. Can anyone give me a step-by-step guide?

A. After downloading the SDK, unpack the .zip archive to a suitable location on your machine. By default, the SDK files are unpacked into a directory named android_sdk_<platform>_<release>_<build>. The directory contains a link to a local copy of the documentation and the subdirectories tools/, samples/, and others.

Make a note of the name and location of the unpacked SDK directory on your system � you will need to refer to the SDK directory later, when setting up the Android plugin or using SDK tools.

Optionally, you can add the path to the SDK tools directory to your path. As mentioned above, the tools/ directory is located in the SDK directory.

In the home directory locate the .bash_profile and locating the PATH variable add the location to your $SDK_ROOT/tools folder.

Adding tools to your path lets you run Android Debug Bridge (adb) and the other command line tools without needing to supply the full path to the tools directory. Note that, if you update your SDK, you should remember to update your PATH settings to point to the new location, if different.


Is there a way to resize android app ?
Q. Is there a way to resize android app ?
From one res to another ? Say from quarter HD to a smaller resolution ? (Not a developer , What I mean is to resize apps meant for quarter high definition to smallers)

I will choose a best answer.

A. Its just like changing resolution of a PC game. ;)

Now Tools you need.....

Latest version of JDK (Java Development Kit) (Search Google)

Apk Manager. (Search Google)

Now extract Apk Manager. Folder will be created (Apk_Manager_5.0)

Now In that folder you can see (place-apk-here-for-modding)

Put the apk you want to port in that. Now open Script.bat.

You will get messege ADB was not found ( Maybe). Press enter... x)

Type 22 and press enter for selecting your project. Now select which project you want to work by typing its number and enter.

OK now type 9 (Decompile apk) and press enter. It will take some time.

Now When work is done minize apk manager.

Example you are porting N.O.V.A (So your project is ready in folder (Apk-Manager-5.0 \ projects \ and NOVA.apk)

Go to Apk-Manager-5.0 \ projects \ and NOVA.apk \ Smali \ com \ gameloft \ android keep opening till you reach some txt files.

Now find Gamerenderer.smali or NOVArenderer.smali

Now scroll down deep and find (getWidth()I and getHeight()I)

Now First lets do work on Width (There is a line after Landroid/view/Display;->getWidth()I)

Something like const/4 v1, 0x1 , Change this to const/4 v1, 0x320 (Just change 0x1 to 0x320)

Now lets work on Height (There is a line after Landroid/view/Display;->getHeight()I)

Something like const/2 v2, 0x1 , Change this to const/2 v2, 0x1E0 (Just Change 0x1 to 0x1E0)

Save it.

Now open the Apk Manager Window you minimized. Type 11 and press enter to compile apk.

Now an apk will be created in project folder. Move it to (place-apk-here-for-signing) folder.

Type 12 and press entre to Sign Apk.

There is no need to change cache.

Voilaaaa.......

Game resolution is changed to HVGA .......... Hahahahahahahaha

(Note : It will only change resolution of ARM V6 optimized games)

There is a program called (IDA pro) which could optimize V7 games to V6 processors. (But it costs hell of money)

Also it will only change resolution of games not RAM usage.

All games which were playable on Samsung Galaxy Ace are already ported.

No further Gameloft Games are playable on Ace because of RAM usage.

I tried so many games but all uses too much RAM and two vibrates and force close.

I hope you get the IDEA of how developers port Games to HVGA.

I made these steps Damn simple that a small KID can understand.


How can I root my android?
Q. I have a lg p500 that runs on android 2.2 froyo and i'm trying to root it. Are there any apps that will root my android safely? What will brick it? Are there any ways to avoid bricking my phone?

A. hey i too had an optimus one.ROOTING will void the WARRANTY .okay leaving the warranty aside :P .....to root p500 ensure u r on gingerbread because gingerbread has a newer baseband and many roms only support the newer one. easy way of rooting is to use 'superoneclick'. it is a free software and u can find it by googling superoneclick. install the software on your computer. open it using admin privileges. connect your mobile. make sure all the 'adb' drivers are installed on your computer. click root option in superoneclick and wait till it says OK, finished. your mobile will switch off in this process. power it on and u must find an app called superuser in ur app list,this means u r rooted. for further confirmation download root checker from the market. for more details http://forum.xda-developers.com/showthread.php?t=1200167. the first 4 steps r actually not necessary but for safety, go by them. happy rooting!


How to install apps to Android SDK?
Q. Is there a way to install apps to this android emulator?

A. it's actually very simple
1) note the location of the app (.apk file)
2) in a cmd console - go to the directory where you have extracted the android SDK to (if you do not have the sdk, download it from http://developer.android.com/sdk/1.5_r1/index.html and extract it)
3) go to the tools directory
4) type 'adb install app.apk' where app.apk is the name of the application you want to install
for more helpful hints you can visit my blog at http://developreality.blogspot.com/
Good luck
Elad Katz





Powered by Yahoo! Answers

No comments:

Post a Comment