Welcome

how would you rate The Holy Qura'an - Arabic ver?

Monday, May 24, 2010

some thoughts

At first I thought coding for android would be easy. Just shove your code in one file and you're done. aaaaaaaaaaaah NOPE, that's not the case. Everything is separate, some people will say what the hell, some others love it. It is more sufficient and organized, you've got (if you are using Eclipse):

1. src folder, contains source code (java)

2. gen folder, contains a R class file which gets generated automatically by the compiler

3. res folder, contains your recourses folders; drawable(images will be here), layouts(xml files will be here), and values(strings.xml)

4. AndroidManifest.xml this file "in my understanding" is used to include all the java classes as activities and looooots more, google it :D

By the way, to be able to publish your project your AndroidManifest.xml files should start like this:
[manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="package.name"
android:versionCode = "2"
android:versionName = "1.0.1"]
[uses-sdk android:minSdkVersion="7" /]
[application android:icon="@drawable/icon"]
****** use <> instead of [] *******

Another thing, some people will wonder what to do with the project after they're done programming. How could I compress my project in a .apk file?
All you need to do is:
right click on your project
> Android Tools
> Export Signed Application Package
> Export Unsigned Application Package

then follow the steps.

No comments:

Post a Comment