Q. I'm wondering if I made an android app.. would it be easy to transform it to work on Iphones.. or would I need to program it from the ground again?
A. Generally speaking - No, it's not easy unless you planned from the start for portability.
iOS and Android do a lot of the same stuff in similar sort of ways, but the fundamentals of the languages and interface design structure is different enough the porting native apps has to basically be done from scratch. Lots of projects online have tried to find ways around this, for example you can code a simpler app as a web app and use cross-platform frameworks like PhoneGap. And note that different types of app pose different problems for porting, for example OpenGL ES is basically the same libraries in C and Java but the differences in language and objects will change how you organize things.
The best approach is to plan ahead. For new app projects it often makes sense to scale down and focus on one platform initially (iOS usually has the greatest potential for return), but you want to keep portability an option in how you choose to organize and code the app from the initial architectural and design stages.
iOS and Android do a lot of the same stuff in similar sort of ways, but the fundamentals of the languages and interface design structure is different enough the porting native apps has to basically be done from scratch. Lots of projects online have tried to find ways around this, for example you can code a simpler app as a web app and use cross-platform frameworks like PhoneGap. And note that different types of app pose different problems for porting, for example OpenGL ES is basically the same libraries in C and Java but the differences in language and objects will change how you organize things.
The best approach is to plan ahead. For new app projects it often makes sense to scale down and focus on one platform initially (iOS usually has the greatest potential for return), but you want to keep portability an option in how you choose to organize and code the app from the initial architectural and design stages.
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.
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.
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.
Are there any free Java tutorials that focus specifically on Android?
Q. Rather than learn Java on the PC first, master it, and then learn how to program an Android app using Java, I'd rather just learn Java directly on the Android.
Are there any tutorials for Java specifically on the Android?
Are there any tutorials for Java specifically on the Android?
A. Hi;
http://java.dzone.com/articles/google-android-tutorial
http://mobile.tutsplus.com/tutorials/android/java-tutorial/
Dude I hope you know there is a Search Engine named Google for these questions.
It is easier than writing a question here.
Good Luck
http://java.dzone.com/articles/google-android-tutorial
http://mobile.tutsplus.com/tutorials/android/java-tutorial/
Dude I hope you know there is a Search Engine named Google for these questions.
It is easier than writing a question here.
Good Luck
Powered by Yahoo! Answers
No comments:
Post a Comment