How to run Android/Java app from 12 years ago?

JB_User

Member
Mar 16, 2013
10
0
1
Visit site
I'm trying to compile and then run an old Android App that I coded in Java about 12 years ago. I just installed the Android SDK on an Ubuntu machine, but my knowledge is rusty. I don't even know how to run the SDK.

12 years ago, I saved a copy of the source code directory tree. It contains several files I think are important like:
  • ./AndroidManifest.xml
  • ./bin/AndroidManifest.xml
  • ./build.xml
  • ./res/layout/main.xml
  • ./src/com/commonsware/android/linearpct/LinearLayoutDemo.java

There are many other files as well. The main Java source code is in LinearLayoutDemo.java. I hope I can simply copy this somewhere and be able to compile it in the new version of the Android SDK. Is that possible? If not, what can I read in order to figure this out?
 

Golfdriver97

Trusted Member Team Leader
Moderator
Dec 4, 2012
35,513
400
83
Visit site
I would have thought the SDK would point out where things may not compile any longer and suggest how to fix it.

Did you comment on any documentation within the files to at least let you know what was going on?

You could just reread the code and it all may come back to you. If you don't have any comments, comment as you go.
 
  • Like
Reactions: Laura Knotek

JB_User

Member
Mar 16, 2013
10
0
1
Visit site
Thank you for your reply. I may have not been clear. I don't need help understanding my code. I need help in how to load the code into an Android project, or the Android SDK, or Android Studio, of whatever. I have not done any Android development for the past 12 years so all Android development knowledge is lost. How would I start the Android SDK, then load the code into an Android Project ( or whatever it is named) and then how would I begin the compile process. Once I get that far, I think I can figure out the compiler errors, maybe.
 

Laura Knotek

Moderator Captain
Moderator
Jan 8, 2011
12,483
6,070
113
Visit site
Thank you for your reply. I may have not been clear. I don't need help understanding my code. I need help in how to load the code into an Android project, or the Android SDK, or Android Studio, of whatever. I have not done any Android development for the past 12 years so all Android development knowledge is lost. How would I start the Android SDK, then load the code into an Android Project ( or whatever it is named) and then how would I begin the compile process. Once I get that far, I think I can figure out the compiler errors, maybe.
Android Central doesn't have many people doing coding. Your best option would be to post this at XDA Developers forums.
 

Members online

Trending Posts

Forum statistics

Threads
948,782
Messages
6,940,081
Members
3,161,237
Latest member
xyuxfufuuf