Please explain what porting is. I'm still confused after countless google searches. - OS Porting

I'm called for a job interview this Monday. They need someone to port some programs children play with on the web to Android. It's educational software that looks accessible to children.
My only experience with porting is working with Unity and going back and forth from PC to my Android phones. My problem is I don't know how porting is done exactly.
Let's say I want to port a Java program to Android. Do I have to create a layer of coding around the original Java source code and make it work with Android? Or is it just modifying the original source code to fit the new platform?
I searched multiple forums and countless google searches. I'm going insane. Please help me!
Thank you! :laugh:

Well I guess it depends. Unless you are using a cross-platform framework (e.g. Xamarin), then it would involve re-writing the code in Java.
If you already have some Java back end code (e.g. some servlet implementation), then I would just create an interface to this module and leave it as it is. No point in rewriting working code in a language that already runs on Android (unless your one of these people who can't help themselves and has to refactor everything to death).

i dont think there is much for u to do, if the games are web based, just build a laucher that links to the games, otherwise look for similar games in android version and install them as a package on all phones.
Sent from my U8150 using xda app-developers app

Related

Android application developer Guides (for Dummies!)

Hi all,
I created this thread to collect informations, suggestions and links for who want to start learning developing android applications, whitout being an expert developer.
I like programming (vb6, vb.net ) but I don't know anything about android and linux, and just a little about java... Now I bought an Hero and I met android world... I downladed Eclipse IDE, Android SDK and I starded with dev guide on SDK... I just take a look to helloandorid application... it works! and now? In the xml layout seems easy to add View like buttons or text... but how can I handle to the user actions like the button click? in vb is simple to manage the buttonpressed event...!
If someone knows some simple guides about java, eclipse and android, please let links on this thread!
Thank you!
This one's awesome for learning how to create widgets:
http://nm-blog.sanid.com/wp-content/uploads/2009/07/android_howto-hellowidget.pdf
here are some other resources you could easily find by using google search:
http://www.helloandroid.com/tutorials
http://nexsoftware.net/wp/2009/07/29/tutorial-creating-a-custom-analogclock-widget/
http://www.anddev.org/index.php
Other than that, just start from the simplest Hello World -examples on Google's own Android site.
I'm going to start leurning Android programming
If ill find nice links i will post them here. Is there btw a way to program inside visual studio? Cuz all tutorials on the net are using eclipse.
You'll need to use Eclipse to my knowledge as its all Java based. The other alternatives are the IntelliJ plugin and doing it all from Command line/Text Editor.
Back to the Topic, I'm just trying my hand at a little Android development this week too, the tutorials and manuals at developer.android.com have been great!
Another thing, while I remember, if you've done any sort of .NET/ASP.NET development before you should find it a breeze, apart from the lack of Visual Studio (best IDE that ever was), they're VERY similar compared to some other languages/technologies I've used.
HeY Furios, Im new to android dev also, so if you don't mind, I would like to follow you and share any info I find with you and to whom ever else would like any info...Thanx
SDK 2.1
Hi Guys,
I went onto the SE developer site and got he x10 SDK, but it only gives me the choice for a 1.6 virtual Machine. Is there another place that I have to go to get the SDK for 2.1?
Thanks.
It would be cool to learn how to develop roms as well...or is that much deeper?
Well guy's start here on this thread first >>>http://forum.xda-developers.com/showthread.php?t=667298
Made me think
need minor help!
im actually developing a few games, but im running into some seemingly basic issues, that i seem i cannot get to work. basically a button mash game, single/multi player, well on multi player i cannot for my life get the multi player functions to work, as in in the end the game already knows who the winner is based on an integer score, then it is supposed to use an sqlite database to take the highest scored player such as P1 or P2 and allow them to input there name to be permanently displayed. it cannot seem to differentiate using IF statements, but the feature does work with single player flawlessly, i may link source code if asked, TY

[Q]Iphone Apps for Android: A new look

Yes, yes, yes.. There are multiple versions of this thread floating around.. and Yes I did a search for them but none of them are quite what I was looking for. I've been seeing and reading things recently, ok the article isn't so recent but me reading it is. Anyway, It talks about being able to compile recent iphone apps for use on Android phones. I know they are written in certain language (objective-c) and Androids are (java).. But, as stated on that site:
“Well with no code changes, about 2 hours to have the graphics tweaked (thanks to @pneal), I was able to port Happy Peg over to Android.”
In regards to why I want this... I want to be able to play Urban Rivals on my android.. Yes, this can be played by just going to there website, but it runs extremely slow and it wasn't meant for people with sausage fingers like myself.
So I guess the Question would be.. Would you be able to Decompile an iphone app and recompile for Adobe AIR and then use that app on an android phone?
I appreciate the support and look forward to seeing some constructive thoughts on the matter.
You know what I want? CANABALT! They made it for the iPhone and not Android and im pissed.
Just found this Video on Youtube. A company is developing a way to convert Objective-C or Java (and others) into and out of HMLVN. So this would allow converting of iphone apps to Android apps.
http://xmlvm.org/overview/ IS there website.. They say the only way to download the source code is subversion.. but I don't know what that means.
Subversion: method by which governments control their sheeple. See WMD's.
Absolutely no help there leebo.
iam87x said:
Just found this Video on Youtube. A company is developing a way to convert Objective-C or Java (and others) into and out of HMLVN. So this would allow converting of iphone apps to Android apps.
http://xmlvm.org/overview/ IS there website.. They say the only way to download the source code is subversion.. but I don't know what that means.
Click to expand...
Click to collapse
See http://en.wikipedia.org/wiki/Subversion_(software)

[Q] Android Development

I'm interested in doing some development for android. I'm just not sure where to start. I see a ton of books on Amazon.
I'm just wondering what would be recommended for an absolute beginner. I know my way around a computer so i don't need it that noob'd down.
I think i would like to play with some apps, and eventually move to Kernels and Roms.
What you you recommend?
Probably the best way to start is to learn Java (the main coding language for apps and userspace), and C (the main languages for kernelspace stuff). After that, messing with the App Inventor would be the place to go.
Search dsixda very helpful thread
Sent from my PC36100 using XDA App
i was thinking of learning some basics of android app development and coding with a very basic walk through so that i can fully understand what i'm going to be able to use the Java code in particular applications. Would this be a bad strategy.
As a software developer, I would recommend spending a couple weeks getting the basics of Java and object-oriented development down. Do a few sample apps in Java. Once you've done that, try Android. I'm afraid that learning to code, learning Java, and learning to develop for Android all in one may be too much for someone.
You really need to have the basics of Java and object-orientation down, then take on Android as it's not altogether simple, particularly for someone who's just learned to code.
As far as kernel/ROM development, I'm guessing C and Linux shell scripts are the things to learn there. If you want to write Android apps, do as I've mentioned above.

<Dev help plz> looking to get into developing stuff...tips?

Hi, I have experience programming in Java and c/c++ and was looking at getting into programming some apps or even helping on on some roms and finally start helping out around the EVO community. I just need a little help getting started. I have eclipse and such set up, but does anyone have any tips or tutorials that might help. (Yes, I have searched Google). Maybe alittle insight in to somethings that I may run into. I want to create apps and games that will be helpful to the community. Thanks
I don't know if it would help but there is an android 'chef' section here on xda:
http://forum.xda-developers.com/forumdisplay.php?f=613
and this thread seems to have a few resources for getting started:
http://forum.xda-developers.com/showthread.php?t=697938
Have you run through the tutorials and read all the documentation on developer.android.com? The "Dev Guide" and the "Resources" tabs are a good place to start, as is just reading through the javadocs for the API. If you're already a Java programmer, you know the code semantics already. It's just a question of understanding the Android concepts. Not to say that's trivial, but the foundation of the language is Java, which means knowing it gives you a head start.
Do a search On xda site for "everything android" its a huge file I put together that includes lots of needed tools and setup files for cooking roms and building apps. It also has a guide with links to the sites where I got the tools from. That should help. Just remember it's for windows and I recommend downloading to ur computer not ur phone cause its over a gig in size
Papa Smurf151 said:
Do a search On xda site for "everything android" its a huge file I put together that includes lots of needed tools and setup files for cooking roms and building apps. It also has a guide with links to the sites where I got the tools from. That should help. Just remember it's for windows and I recommend downloading to ur computer not ur phone cause its over a gig in size
Click to expand...
Click to collapse
Thanks, for that. I looked around the forum but prob would of had a real hard time finding that.
If you are more comfortable with the .net framework, get MonoDroid. C# programming for android. You just need a copy of visual studio 2010, thank god for the free ultimate version I got from school. I haven't messed around with it a lot yet but there is no visual representation of the screen or adding strings like in Eclipse but I like C# more than Java so I'll use this more often than not
Sent from my Evo powered by MIUI
Comrade P said:
If you are more comfortable with the .net framework, get MonoDroid. C# programming for android. You just need a copy of visual studio 2010, thank god for the free ultimate version I got from school. I haven't messed around with it a lot yet but there is no visual representation of the screen or adding strings like in Eclipse but I like C# more than Java so I'll use this more often than not
Sent from my Evo powered by MIUI
Click to expand...
Click to collapse
I have visual studio 2010 ultimate as well from my school. I haven't ever worked with c# but i cant imagine that its much more different from C/C++. Just some different ways of calling/naming things
Exactly. I like it a lot more than Java. Can't really explain it. Just test both of them out and see which you prefer.

[Q] Converting PC game to Xperia Play

Hello everyone. I was wondering if there is any way to convert the popular game, "I wanna be the guy" to the Xperia Play. Or for that matter, any Multimedia Fusion game. Since the game was made in Multimedia Fusion 2, and the source code was released, AND there is an option to export the game into android, it should be possible, right? If anyone knows how to do this, and will be willing to work on it with me, then please reply to this thread. Thank you.
The android export is only a placeholder-text at this point, it's still being worked on
Hmmm, well there is a java export. Maybe we could somehow import that into eclipse and then edit the buttons.
bballchace said:
Hmmm, well there is a java export. Maybe we could somehow import that into eclipse and then edit the buttons.
Click to expand...
Click to collapse
Its nowhere near that simple. While Android programs are programmed in "Java" theres way more behind the scenes with libraries involved and other parts of the Android SDK.
It could be done, but it is a staggering amount of work.
Rogue Leader said:
Its nowhere near that simple. While Android programs are programmed in "Java" theres way more behind the scenes with libraries involved and other parts of the Android SDK.
It could be done, but it is a staggering amount of work.
Click to expand...
Click to collapse
well, since thats basically out of the question, what if i got an html5 source code of a similar game that was made in gamemaker? would that be possible to port onto the Xperia Play? Sorry about me being such a noob, I am not familiar with the Android SDK, and only know C++
bballchace said:
well, since thats basically out of the question, what if i got an android export of a similar game that was made in gamemaker? would that be possible to port onto the Xperia Play? Sorry about me being such a newbie, I am not familiar with the Android SDK, and only know C++
Click to expand...
Click to collapse
Creating a game using game maker will only give you the binaries not the source, you cant just use it to make an android or iOS game.
Honestly the easiest way to make a game for android would be to create it in flash and then put in in some kind of wrapper to make it launch natively. The proper way to make a game would be to learn how to create one using C++ which will probably take a good few months before you could even create something basic. It depends how fast you are at learning new things.
However if you are going to learn programming I highly recommend starting somewhere easier like VB or Java to at least understand the general concept of programming. (preferably VB is you are a total newbie)
bballchace said:
well, since thats basically out of the question, what if i got an html5 source code of a similar game that was made in gamemaker? would that be possible to port onto the Xperia Play? Sorry about me being such a noob, I am not familiar with the Android SDK, and only know C++
Click to expand...
Click to collapse
That would be even more work than converting the Java program. There is no simple way to "Port" games from one platform to another unless there is an emulator (and they don't make PC emulators for Android, and even if they did it would probably run like ****).
Android games are programmed in Java, however the Android SDK has libraries to make it work for every possible function of an Android Phone. If you don't know Java, you won't get very far in making anything work on Android. There are also special libraries for the Xperia Play you will need to download and then program the code into the game to recognize the gamepad controls.
If you really want to do this I would go ahead and learn Java, make a few programs and then tackle the game. Its going to be quite the project, but you'll definitely learn a lot.

Categories

Resources