Installig eclipse . - Java for Android App Development

I was trying to install eclipse so i could start programing apps for android but when i searched online for guides on how to do it they were all outdated from 4~5 years ago and because the ui of websites and the eclipse program changed , all i got was a error messages after i tried do install google api to eclipse . can anyone help me and give me a link to a dated guide ?
Sent from my Nexus 5 using XDA Premium 4 mobile app

Here you go. The official Android Developers site has got information on that: http://developer.android.com/sdk/index.html
Consider using Android Studio instead as well.

Try this, it is about Development with Android and Eclipse
http://www.vogella.com/tutorials/Android/article.html
It is updated to January 2014, and it's very good for beginners.

Thanks i will check it once i'll get home
Sent from my Nexus 5 using XDA Premium 4 mobile app

when i try to launch eclipse it says "colud not create the java virtual machine "
" a fatal exception has occurred . program will exit. "

danielbr14 said:
when i try to launch eclipse it says "colud not create the java virtual machine "
" a fatal exception has occurred . program will exit. "
Click to expand...
Click to collapse
Try this: http://www.tomshardware.co.uk/faq/id-1761312/fix-create-java-virtual-machine-issue.html

yeah. i tried it but it didn't help .....

danielbr14 said:
yeah. i tried it but it didn't help .....
Click to expand...
Click to collapse
Some thing similar i experienced once just tell which java and eclipse version you are using please be precise !
Sent from my GT-S5302 using Tapatalk 2

i tried using the eclipse that came with the adt and the java veriion i use is 7 update 51 build 1.7.0_51b13

danielbr14 said:
i tried using the eclipse that came with the adt and the java veriion i use is 7 update 51 build 1.7.0_51b13
Click to expand...
Click to collapse
ADT bundle is Juno or Keplar as far as i know so they should be compatible
post the
-vm argument of your eclipse.ini
which can be found in your eclipse installation folder.
a suggestion switch to Android Studio trust me you wont regret.
Sent from my GT-S5302 using Tapatalk 2

sak-venom1997 said:
ADT bundle is Juno or Keplar as far as i know so they should be compatible
post the
-vm argument of your eclipse.ini
which can be found in your eclipse installation folder.
a suggestion switch to Android Studio trust me you wont regret.
Sent from my GT-S5302 using Tapatalk 2
Click to expand...
Click to collapse
if you say android studio is much better then i am in . i started downloading it and i was hoping you can give me a guide on how to start .
the -vm
"-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v22.3.0-887826
-XX"

danielbr14 said:
if you say android studio is much better then i am in . i started downloading it and i was hoping you can give me a guide on how to start .
the -vm
"-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v22.3.0-887826
-XX"
Click to expand...
Click to collapse
A sample one from Eclipse wiki
it will differ from yours
look for things in bold
-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm **this should be followed by the exact path to javaw or java executable binaries**
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m **this should in no case exceed half the amount of RAM in your pc here value is 512 in MBs**
compare these two with yours and it should work
Sent from my GT-S5302 using Tapatalk 2

Related

[app]JAVA solution for phones with no JAVA

after all my hard work and no one helpong me i have done the update.zip to enable java on any phone most likely tried it on my HTC Desire with RCMix HD Rom that doesnt have the JAVA app in it
u can download from the attachments...
Sure guys u need RoOt
NOTE: DO Nandroid & Flash on your own Risk... but most important its working please test
Thanks too TheGhost1233 giving me one hint
if u like this just give me stars thanks
tnx bro ... that's amazing
JAVA is important
5 stars ..
l3zawi said:
tnx bro ... that's amazing
JAVA is important
5 stars ..
Click to expand...
Click to collapse
How is java important, android is based on java, an .apk is just a modified .jar and there are tools to change a .jar into an .apk so a jre or java vm isnt required
Nice. Can this use for website that require java applet security?
Sent from my HTC Desire using XDA App
java is very important for me thanks bro....
coolexe said:
java is very important for me thanks bro....
Click to expand...
Click to collapse
you r welcome
l3zawi said:
tnx bro ... that's amazing
JAVA is important
5 stars ..
Click to expand...
Click to collapse
AndroHero said:
How is java important, android is based on java, an .apk is just a modified .jar and there are tools to change a .jar into an .apk so a jre or java vm isnt required
Click to expand...
Click to collapse
this app can let u use any file that has a .jar or .jad ending and it has lots of usefull apps that u can u
najar360 said:
Nice. Can this use for website that require java applet security?
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
i dont knw about that give it a try and tell me
overall this app is to make it easy to use java files so have fun and plz report if there is anything wrong i can do
thanks for this
but it doesn't seem to integrate into the browser.. i flashed it and went to java.com and it couldn't confirm that i have java installed. not sure if this was your goal, but it would have been awesome
omniwolf said:
thanks for this
but it doesn't seem to integrate into the browser.. i flashed it and went to java.com and it couldn't confirm that i have java installed. not sure if this was your goal, but it would have been awesome
Click to expand...
Click to collapse
:s that is something else this app is just to let JAVA files or apps work on the phone
Why is there no java.apk in this zip file? Also, recovery throws up an error: Unable to find "system/customize/MNS/52099.xml" in Manifest file or something like that when tried to flash this zip..
I get an error for a missing file system/customize/MNS/52099.xml and then it says verification failed... anyone know how to fix this
ashkool said:
Why is there no java.apk in this zip file? Also, recovery throws up an error: Unable to find "system/customize/MNS/52099.xml" in Manifest file or something like that when tried to flash this zip..
Click to expand...
Click to collapse
There is ... in sdext and then app_s
New update
K so i made this updated Java update that should work on everyone else's thats giving the error that it gave me so test it out and always do nandroid backups!!
how exactly do i use that once flashed? i have a .jad file but it wont work...the only way i've got it work is with foundation profile midp installed, and that is very ugly. not even sure about security since i want to use it for m-banking?
works on CM RC2 ?
Sorry , Mistakenly Posted.

[Q] How to compile github java source?

Hey guys, i downloaded Gallery2.apk Source code from CM github.
How can i compile this myself and make changes to it? I already imported it into my Eclipse environment but it generates a million errors..
Thanks guys.
elesbb said:
Hey guys, i downloaded Gallery2.apk Source code from CM github.
How can i compile this myself and make changes to it? I already imported it into my Eclipse environment but it generates a million errors..
Thanks guys.
Click to expand...
Click to collapse
those system apps use lots of hidden API which is not available in android SDK (security reason i guess)..
maybe this blog can help u out http://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-1-introduction/
Maybe you will need to add some external libraries like the supportv4 library.
dcsms said:
those system apps use lots of hidden API which is not available in android SDK (security reason i guess)..
maybe this blog can help u out http://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-1-introduction/
Click to expand...
Click to collapse
Hmmm thanks for the link. I looked at it real quickly this morning and it may be what I need. once I get home I'll post the errors I'm getting.
But they mostly pertain to that link where some imported things cannot be found.
Sent from my SGH-T999 using Tapatalk 2
elesbb said:
Hmmm thanks for the link. I looked at it real quickly this morning and it may be what I need. once I get home I'll post the errors I'm getting.
But they mostly pertain to that link where some imported things cannot be found.
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
u must follow all those 5 step to make all hidden API available in eclipse ... i've try it....
i can compile SystemUI with eclipse throught those guide...
dcsms said:
u must follow all those 5 step to make all hidden API available in eclipse ... i've try it....
i can compile SystemUI with eclipse throught those guide...
Click to expand...
Click to collapse
Thanks man!
I was able to use smali to do what I wanted and theo0so was able to help me sign it with CM keys to allow it to run
But there were a lot more things I wanted to mess around with, so when I get a day off I will follow all steps Thanks again!
Sent from my ASUS Transformer Pad TF300T using Tapatalk 2

Help needed in creating a simple build. prop editor

Hello guys
I was thinking to create a simple build.prop editor. someone can help me where should I start. it's a simple project so I want to work myself to get some experience in android app development. As I know I have to provide root permission in android manifest. Xml but how the activity can read build.prop file
Thank you
Sent from my GT-I9100 using Tapatalk 2
Deleted
Root commands need to be executed the command line way.
You can get the content of a file using
Code:
cat <filepath>
For executing these commands I recommend using the RootTools library.
First of all get basic Linux command line knowledge.
nikwen said:
Root commands need to be executed the command line way.
You can get the content of a file using
Code:
cat <filepath>
For executing these commands I recommend using the RootTools library.
First of all get basic Linux command line knowledge.
Click to expand...
Click to collapse
So it means I should use Ubuntu
Sent from my GT-I9100 using Tapatalk 2
saif kazi said:
So it means I should use Ubuntu
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
No, it does not mean that.
If you want to do anything which needs SU permission, you need to do it without the Android API. You run a command on the built-in command line on your phone from your app. Now in Java you are able to read the output of the command and parse it to get the required information.
There is no other way of doing it because Android was not designed to be rooted.
saif kazi said:
Hello guys
I was thinking to create a simple build.prop editor. someone can help me where should I start. it's a simple project so I want to work myself to get some experience in android app development. As I know I have to provide root permission in android manifest. Xml but how the activity can read build.prop file
Thank you
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
I used this repo as a base for mine, see if it can be any use to you and try altering it as much as you can so you can see what your able todo
https://github.com/nathanpc/Build.prop-Editor
Nx Biotic said:
I used this repo as a base for mine, see if it can be any use to you and try altering it as much as you can so you can see what your able todo
https://github.com/nathanpc/Build.prop-Editor
Click to expand...
Click to collapse
Looks like he has already forked it.
https://github.com/saifkazi/Build.prop-Editor
If you want to release your version, have a look at the original license: https://github.com/nathanpc/Build.prop-Editor/blob/master/LICENSE
Nx Biotic said:
I used this repo as a base for mine, see if it can be any use to you and try altering it as much as you can so you can see what your able todo
https://github.com/nathanpc/Build.prop-Editor
Click to expand...
Click to collapse
Haha, I was about to suggest my project when I saw the Google Alerts email, but looks like you already did.
Thanks very much!
nathanpc said:
Haha, I was about to suggest my project when I saw the Google Alerts email, but looks like you already did.
Thanks very much!
Click to expand...
Click to collapse
No problem man!

[Q] How to Begin to develop android

Hello my friends
I am a new member of xda
I want to know where to start a development in android
And what do I need to start
sorry bad english .......
........thanx
...
Google is your first point of call
development is such a general term - what exactly do you want to do
Once you know that type into google - how to xyz - or guide for xyz
for general stuff you will need
apktool
android sdk
java jdk
android kitchen
cygwin (if using windows)
notepad++
marcussmith2626 said:
Google is your first point of call
development is such a general term - what exactly do you want to do
Once you know that type into google - how to xyz - or guide for xyz
for general stuff you will need
apktool
android sdk
java jdk
android kitchen
cygwin (if using windows)
notepad++
Click to expand...
Click to collapse
thanx..... marcussmith2626
U may only navigate to XDA Univirsty for vedio tuts
if you want to develop apps :
download android SDK and search google for some tutorials (there are hundred thouthands)
stack over flow will help you alot too if you encountered an error
if you want to develop Roms:
you need to read some tutorials here on XDA and learn to use tools that marcus mentioned before
use android sdk ...and download its eclipse plugin too
Adt bundle is der in android developer site
There r lessons too to learn
Sent from my GT-S5360 using XDA Free mobile app

[Q] Learning App Development.

So I would like to learn how to develop apps for the android OS. I'm not sure where I should put this (sorry if in wrong section). I would like to learn how to code and do all the steps in app development. I have absolutely ZERO experience in coding other then changing the dedicated RAM for Minecraft. If someone could tutor me maybe twice a week or link me to other forums that explain this sort of thing and provide support for people. I would be very happy for either if the two! Thank you guys!
Learning Java
Hi NamesBass
Android development is basically Java. I learned it from a while. The easiest way is to watch some YouTube videos. Also very helpful are the official tutorials and sample apps. You can find them here: developer.android.com/training (Sorry I haven't 10 posts yet so I can't post direct URLs). Then start coding and when you stuck somewhere use google and learn from it
~LoXeras
read book
read books, good books on programming - Android in 24 hours (loren Dersy( i ), Sheyn Kondor), and Android 2 ( Reto Mayer)
Thank you for the help.
Sent from my Nexus 5 using XDA Free mobile app
Thanks for your help. I'm going to start tonight.
Sent from my Nexus 5 using XDA Free mobile app
Java, java, java. Not JavaScript! Java, java, java!!!!
I'm having problems
LoXeras said:
Hi NamesBass
Android development is basically Java. I learned it from a while. The easiest way is to watch some YouTube videos. Also very helpful are the official tutorials and sample apps. You can find them here: developer.android.com/training (Sorry I haven't 10 posts yet so I can't post direct URLs). Then start coding and when you stuck somewhere use google and learn from it
~LoXeras
Click to expand...
Click to collapse
So I have run into trouble doing this lesson and I'm not sure why I didn't do it right. I thought I followed all the steps but my code lines and the ones on the website are different. Could you give your thoughts? Thanks!
gyazo.com(slash) febe01e0840369e9a4d6ebfc5c3abfea (ScreenShot)
NamesBass said:
So I have run into trouble doing this lesson and I'm not sure why I didn't do it right. I thought I followed all the steps but my code lines and the ones on the website are different. Could you give your thoughts? Thanks!
gyazo.com(slash) febe01e0840369e9a4d6ebfc5c3abfea (ScreenShot)
Click to expand...
Click to collapse
Use Android Studio download and work though the tutorials or android app development. loads of videos to follow. (Java)
uuugh
Just Call It said:
Use Android Studio download and work though the tutorials or android app development. loads of videos to follow. (Java)
Click to expand...
Click to collapse
okay so i downloaded that and tried to set it up but an error message came up saying I need to add an environment variable for JAVA_HOME. I did this and it went something like C: Program Files\Java\jre7\bin\Java and when I launched the program, it told me to direct it to JDK not jre7, but I dont have a JDK file. I did a system search and nothing came up.
NamesBass said:
okay so i downloaded that and tried to set it up but an error message came up saying I need to add an environment variable for JAVA_HOME. I did this and it went something like C: Program Files\Java\jre7\bin\Java and when I launched the program, it told me to direct it to JDK not jre7, but I dont have a JDK file. I did a system search and nothing came up.
Click to expand...
Click to collapse
You are pointing to the jre7 folder in Program Files/Java. You should change that to the jdk folder.
e.g. My JAVA_HOME variable is C:\Program Files\Java\jdk1.8.0_05
So I change jre7 to JDK(whatever)?
Sent from my Nexus 5 using XDA Free mobile app
how
hey please help me how to devlop own anrohd apps
Jogny said:
You are pointing to the jre7 folder in Program Files/Java. You should change that to the jdk folder.
e.g. My JAVA_HOME variable is C:\Program Files\Java\jdk1.8.0_05
Click to expand...
Click to collapse
Why are you using JDK 8 for Android? It's not officially supported by Android SDK. Do you see any improvements/problems in compare with JDK 7?

Categories

Resources