[Q] how to convert .java and .class to apk - General Questions and Answers

I have some java projects that i have created and i was wondering how to (if its possible) to create them to apk's and upload them to the market
Help will be appreciated thanks

http://developer.android.com may be helpful to you.
HTC Glacier running CM7 #33

thanks for the link, it is great!

jggimi said:
http://developer.android.com may be helpful to you.
HTC Glacier running CM7 #33
Click to expand...
Click to collapse
thanks but that still doesnt give me an answer lol
thanks for trying tho

What, you mean installing the SDK and importing your classes and whatnot into an Android project, then working up a framework for Activities and Intents -- in other words, creating an Android application -- isn't helpful?
There's a bazillion books and websites and such for Java developers who want to write Android apps.

jggimi said:
What, you mean installing the SDK and importing your classes and whatnot into an Android project, then working up a framework for Activities and Intents -- in other words, creating an Android application -- isn't helpful?
There's a bazillion books and websites and such for Java developers who want to write Android apps.
Click to expand...
Click to collapse
I understand that but I already have written programs in java, but i was just wondering is there a simple way to changing it to apk

ukrainehigh said:
I understand that but I already have written programs in java, but i was just wondering is there a simple way to changing it to apk
Click to expand...
Click to collapse
Hi there! As far as I know, there is no easy our direct easy to port applications from java to android.at least, you must rebuild all the user interface, and you also must add methods to deal with android's applications lifecycle...
Sent from my GT-P1000 using XDA App

Related

Where to start?

I have experience with a lot of embedded devices and software and am interested in getting involved with Android modding. I'm just looking for some good documentation (if it exists) on the basics or even more advanced details. Are there any good resources that go over the architecture of Android and what have you?
I apologize if this is a repost or a common question, but I tried searching but couldn't find anything similar.
+1
Too short. Huh. Well, me too.
Well looks like I'm just going to have to dive head first into the source code lol.
I've only just begun looking at android app development myself, but I can recommend looking at the android notepad tutorial (should be among the first hits on google). Ti's a very basic tutorial but at least it introduces you to some android concepts.
Other than that, there are a few books around that you could take a look at, and ofc the all-mighty internet has virtually endless resources.
Happy coding!
It's best to have a good working knowledge of the Linux operating system / command line as well as a good understanding of Java.
Start with http://developer.android.com or www.helloandroid.com to familiarize yourself with Android's structure.
From there, check out http://source.android.com to get more into the source code and Android framework.
Google gives you pretty much everything you need.
chrisinaz said:
It's best to have a good working knowledge of the Linux operating system / command line as well as a good understanding of Java.
Start with http://developer.android.com or www.helloandroid.com to familiarize yourself with Android's structure.
From there, check out http://source.android.com to get more into the source code and Android framework.
Google gives you pretty much everything you need.
Click to expand...
Click to collapse
Thanks! This is exactly the type of information I was looking for.
Hello fellow Newbie! (this is my first ever post on xda!)
If you go to hackaday website there is a four-part tutorial. Sorry I could not post links:
"To prevent spam to the forums, new users are not permitted to post outside links in their messages. All new user accounts will be verified by moderators before this restriction is removed."
Hope you enjoy these (if you find them), and find them useful! Also, keep an eye out for part 5!
Regards,
Zelka
Zelka said:
Hello fellow Newbie! (this is my first ever post on xda!)
If you go to hackaday website there is a four-part tutorial. Sorry I could not post links:
"To prevent spam to the forums, new users are not permitted to post outside links in their messages. All new user accounts will be verified by moderators before this restriction is removed."
Hope you enjoy these (if you find them), and find them useful! Also, keep an eye out for part 5!
Regards,
Zelka
Click to expand...
Click to collapse
For the convenience of others:
Part 1
Part 2
Part 3
Part 4
+1.
I am a software/web developer and I have the Android SDK, Eclipse, Visual Studio 2008 and a number of other tools on my dev box. I love coding in C# but I can do Java and some other stuff too. I just got Eclipse (Helios) setup with the ADT plugin and I am messing around with the emulator. So this is basically what it used for testing/debugging etc. or is there something better? I have my first little app up and running in the VAD emulator. I found out that you need Eclipse 3.5 (not 3.6) and the JRE 1.6 for everything to be happy. Now where to go from here....
frankencat said:
+1.
I am a software/web developer and I have the Android SDK, Eclipse, Visual Studio 2008 and a number of other tools on my dev box. I love coding in C# but I can do Java and some other stuff too. I just got Eclipse (Helios) setup with the ADT plugin and I am messing around with the emulator. So this is basically what it used for testing/debugging etc. or is there something better? I have my first little app up and running in the VAD emulator. I found out that you need Eclipse 3.5 (not 3.6) and the JRE 1.6 for everything to be happy. Now where to go from here....
Click to expand...
Click to collapse
You can either use the Emulator or a physical device for debugging (granted the device has usb debugging enabled). I would just look over samples and try to make more complicated application from here, it seems like you have all the prep work done.
Ok here's a good one...when I use the keyboard in the emulator I get Japanese characters instead of English even though I have all the settings I can think of set to US English. Anyone know how to change that?

Programming & learning on Android.

Hi friends,
I assume that on XDA there are some very talented programmers and might be able to guide me with my queries.
So heres the deal. I'm planning to get my hands on learning c#. But the the catch is I want to learn it on my android tablet. The reason why I want to learn it on an Android tablet? Well I am a Computer graphics artist and want to get into apps and game development for android and ubuntu. AND I have time to learn programming only after my working hrs i.e at home. So I want put my galaxy tab10.1 to a better more productive use. Obviously I will not be developing apps on my tab because I have xeon and i7 systems at my office to do that.
So I did some Google and found this webpage very usefull for all the programming tools on android.
http://android.appstorm.net/roundups/developer/15-apps-for-programming-on-android/
So can anybody recommend or suggest me on how to start with learning programming on Android?
I think this maybe useful to many other new aspiring programmers.
sent from my Xperia S
let me knw if u get anyhting about this programming
:laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh::good::good::good::good::good::good::good::good::good::good:
let me knw if u get anyhting about this programming
I am not 100% sure but I believe you need to learn Java to make apps for android.
unoo said:
I am not 100% sure but I believe you need to learn Java to make apps for android.
Click to expand...
Click to collapse
The point of this thread is "how one can learn and practice various programming languages on the android device itself"
EDIT: I YouTubed for learning c# and found that to begin with c#, if we are Windows OS then .NET visual studio is required and if we are in Ubuntu OS Google mono is required.
I don't if we may need Google mono in android.
sent from my Xperia S
nostard19 said:
The point of this thread is "how one can learn and practice various programming languages on the android device itself"
EDIT: I YouTubed for learning c# and found that to begin with c#, if we are Windows OS then .NET visual studio is required and if we are in Ubuntu OS Google mono is required.
I don't if we may need Google mono in android.
sent from my Xperia S
Click to expand...
Click to collapse
C# is not a language you can easily code on android, or code android apps in.
If your looking to make programs for ubuntu and android java really is the best way forward, alot of game engines let you build a game in pure java and then easily convert it to a android game
zacthespack said:
C# is not a language you can easily code on android, or code android apps in.
If your looking to make programs for ubuntu and android java really is the best way forward, alot of game engines let you build a game in pure java and then easily convert it to a android game
Click to expand...
Click to collapse
Hey, did you checked out the link in the first post? It has many usefull code editor and tools that can be used on android for programming.
sent from my Xperia S
nostard19 said:
Hey, did you checked out the link in the first post? It has many usefull code editor and tools that can be used on android for programming.
sent from my Xperia S
Click to expand...
Click to collapse
I was under the impression that while you can get IDE's for a range of languages to do coding etc, if you want to actually make android apps Java really is your best bet
General browsing of XDA would have given you this thread - Android Chef Central
zacthespack said:
I was under the impression that while you can get IDE's for a range of languages to do coding etc, if you want to actually make android apps Java really is your best bet
Click to expand...
Click to collapse
Wow man! Just saw your Linux installer.. Killer app. And hats off sir! Im gonna try this on my g tab 10.1. This maybe the ultimate productive tool for me.. Thanks again. Will definitely get the key version.
sent from my Xperia S
nostard19 said:
Wow man! Just saw your Linux installer.. Killer app. And hats off sir! Im gonna try this on my g tab 10.1. This maybe the ultimate productive tool for me.. Thanks again. Will definitely get the key version.
sent from my Xperia S
Click to expand...
Click to collapse
Your welcome yes thats another way round it use my app and program from linux!
XperienceD said:
General browsing of XDA would have given you this thread - Android Chef Central
Click to expand...
Click to collapse
It sounds like he wants to do Android app development/Game development, not ROM development.
For general-purpose app development I would suggest learning Java and the Android SDK. There are numerous books available to help you, for example The Busy Coder's Guide to Android Development. Older editions are free but I would recommend getting the newest one since Android is a fast-developing platform. The Android SDK site is also a good place to start.
For game development you have more options. Corona and Cocos2d-x are both cross platform (can deploy to Android and iOS). Corona code is written in Lua, and Cocos2d-x can be written in C++ or Lua. There are also a lot of other options available if you look around.
I'd still recommend learning some basic Android apps before tackling game development, though.

How to become a developer?

I would like to become a developer. Obviously, that means learning code, but which one? Also, I don't have a PC with Linux OS, so will that be any problem? What tutorials or ebooks or stuff like that do you recommend to start me learning?
King-V said:
I would like to become a developer. Obviously, that means learning code, but which one? Also, I don't have a PC with Linux OS, so will that be any problem? What tutorials or ebooks or stuff like that do you recommend to start me learning?
Click to expand...
Click to collapse
Yes, that's right. To become a developer means learning to write code and apply those while creating a software.
Question on which one? is completely upto you because you need to know what are you aiming for. If you're looking for web application development, you may have to study any languages like PHP, DotNet, Java - J2EE/EJB etc.
If you're looking for Android application development, first step is to study Java, because its the main language used for programming apps. Then you can move over to Tutorials on Android development, and it will be easy. If its iOS app/ Mac specific app development, Objective C it is.
Not having PC with Linux OS won't be any problem, because you can do these in Windows platforms or in a Mac.
Tutorials = Google my friend. It has almost everything in the universe. Also in Youtube, you get the video tutorials.
Some which I could recommend is, for Java Oracle docs is good and "Java - The Complete reference" by Herbert Schildt is a good book too. For Android, you can find all resources in the App development forums.
You can try out the freepascal with a good IDE (codetyphoon), simple to make windows or linux graphical apps, or the visual studio express with c#.
coolsandie said:
Yes, that's right. To become a developer means learning to write code and apply those while creating a software.
Question on which one? is completely upto you because you need to know what are you aiming for. If you're looking for web application development, you may have to study any languages like PHP, DotNet, Java - J2EE/EJB etc.
If you're looking for Android application development, first step is to study Java, because its the main language used for programming apps. Then you can move over to Tutorials on Android development, and it will be easy. If its iOS app/ Mac specific app development, Objective C it is.
Not having PC with Linux OS won't be any problem, because you can do these in Windows platforms or in a Mac.
Tutorials = Google my friend. It has almost everything in the universe. Also in Youtube, you get the video tutorials.
Some which I could recommend is, for Java Oracle docs is good and "Java - The Complete reference" by Herbert Schildt is a good book too. For Android, you can find all resources in the App development forums.
Click to expand...
Click to collapse
Thanks a lot. That surely will get me started.
Also, if you wouldn't mind, I'd add that green glowing gif of your signature to mine.
King-V said:
Thanks a lot. That surely will get me started.
Also, if you wouldn't mind, I'd add that green glowing gif of your signature to mine.
Click to expand...
Click to collapse
Sure, I wouldn't mind. :good:
Start Android Application Development
Hii..
If You Want to become android Developer best video tutorial series on Internet Is
Link
http://youtube.com/playlist?list=SP2F07DBCDCC01493A&hl=en-GB&gl=IN&client=mv-google&guid=
And Android ADT is ready made available on their website just download and start developing android apps.
Link: Android ADT
http://developer.android.com/tools/index.html
Best Of Luck....
Press Thanks Button ( Left corner of this post ) if I helped You
Sent from my GT-S6102 using xda app-developers app

A beginner programmer - with a few questions

Hi developers,
I started to -try- and develop an app for my fun, and a few questions came up to my mind - obviously they're not too relevant to me at this point, but I'd like it to be more clear:
1) Do I need to backup my code to websites like GitHub? Or I should save it on personal storage so it will be private? (Or both?)
2) I am learning from an Android development tutorial, so what happens if the app is actually successful, and there would be a demand for it on iOS or other operating systems? Does that mean the app idea might be stolen and be made for iOS and I will have nothing to do with it? Or it can actually happen even within Android (idea theft)
2.1) Regarding the above concern: I was thinking about learning to develop Hybrid apps, but heard they're not too good right now, are there any examples of decent Hybrid apps now?
Thanks,
Pan
you can develop both android app and ios app simultaneously.
TC Soft said:
you can develop both android app and ios app simultaneously.
Click to expand...
Click to collapse
Thank you!
But how exactly? Hybrid apps? Or there are migration tools from Java to Objective-C / Swift ? I mean, developing alone for both languages should be quite hard isn't it? (Not talking about me, but even for skilled developers)
Pantosser said:
Thank you!
But how exactly? Hybrid apps? Or there are migration tools from Java to Objective-C / Swift ? I mean, developing alone for both languages should be quite hard isn't it? (Not talking about me, but even for skilled developers)
Click to expand...
Click to collapse
As far as i know, there are many programmers including me write native codes for both ios android app.
Of course, it takes double time.
I never thought it's an easy task to develop an app.
TC Soft said:
As far as i know, there are many programmers including me write native codes for both ios android app.
Of course, it takes double time.
I never thought it's an easy task to develop an app.
Click to expand...
Click to collapse
Wow Thank you! I didn't really think that's the case, so I guess I should focus on 1 language now (Java) before studying Swift as well!

What are the requirements to become a modder?

I am beginner and want to learn that how I can become android modder. So, I can mod android OS and apks?
It's just like being an interior designer. There isn't any requirements.
Just get your business cards printed and go for it!
So.. you're here just to advertise that site of yours?
Lame...
CXZa said:
So.. you're here just to advertise that site of yours?
Lame...
Click to expand...
Click to collapse
nope dude I actually want to learn. I mean to say that which language should I learn?
Java is as good as any. Once you learn one you can do others too...
CXZa said:
Java is as good as any. Once you learn one you can do others too...
Click to expand...
Click to collapse
Thank you very much
andromodguide said:
Thank you very much
Click to expand...
Click to collapse
EDIT: Ok, now I see what type of modding you were talking about. XDA is not the place to request such knowledge, as it's basically the same as a warez request. The website you have in your signature, idk if you're part of this scam or not, but seriously, GTA 5 apk mod... this website is sooo sketchy. Please read the rules before posting.
Don't get me wrong, I'm disapproving the website, if you're not part of it, and just asked if you could learn how to mod an apk it's fine, it's just not at xda you should ask. But if you're part of this website advertising those fake apks that maybe used to hack someone's device, I think that's truly despicable.
I left my original answer down here:
Spoiler: ...
XDA is the place !
I personally don't know much java, and was unable to understand a word of english, so all of the tech documentation was a mystery for me. I just heard about one reverse engineering tool called apktool. So I set it up and started cracking open apks to understand how they really works from the inside by reading files and stuff. Then I came here (with a better knowledge of English and of what's an apk) and found many resources to learn. It depends on the kind of things you want to mod. If the UI is your priority, I'll advice you to start by understanding what's xml and how google uses it inside of every app. Eventually you'll have to learn java for more deeper tweaks, but to begin I think understanding how xml works is easier, and more practical since you'll have to modify that in order to change any UI element.
If you're after modding how the app works itself, then java is the first thing you should learn. (And don't learn any java, Android uses more the Java OOP).
I'll leave you some links for both ways of modding :
Modding UI (theming):
App resources overview | Android Developers
developer.android.com
I also did guide for theme using a simple method that doesn't require any prior knowledge of xml and stuff, and get you to play with the interface (like changing color and stuff):https://forum.xda-developers.com/t/guide-theming-how-to-theme-any-android-app.3777101/
Ticklefish is one good themer here on xda, he made some guides about theming that, even if they're old, can teach you a lot about xml : https://forum.xda-developers.com/general/xda-university/xml-101-xml-modding-easy-t2929816/
For the Java way:
I've seen many many java courses around the internet. Actually I can't tell you which one is the best or which one to avoid because I didn't learn java yet myself. Your on your own for that one, but good luck !

Categories

Resources