The Super Mobile Platform

Not much technical blog posts lately, but there was one time our IT company asked us of any innovative software solution, or basically an “idea”.

On this date, Facebook has become the de Facto internet portal. Even some people in other parts of the world don’t go through a web browser just to view the internet. Although creating an internet content may still come from blogs and other personal websites. Email , still is the basic building structure to create all internet accounts, but as for Web page searches, Google may only be used for academic or work research.

So for my software idea, I was thinking of a One Mobile Platform ( or the Super Mobile Platform ), Much like the Facebook, but with a somehow enhanced or different features. The features I was thinking are the following.

1.) It should be Localized. Per country or region in a country.

2.) Yes it should add and chat with friends, that’s the most important feature it has to have. And as I said it is Localized, so the chat is direct, but the end to end nodes of each interface is localized.

3.) It can receive notification when you paid your latest bills, straight from your local bank or utility service, or any other monthly payments you are enrolled in

4.) It has connectivity to your vehicle and home. Or better yet, to your vehicle and buildings, if you happen to have those.

5.) Should be completely custom on the user’s interests or occupation.

6.) It has a photo sharing function, but strict on photos especially involving people. It should have a Security System to detect stolen pictures, or a fraud account created on your name.

7.) What else?? Maybe a group app, or a collaborator, then again I will go to the design details of each……

 

Advertisements

Steps to sign the APK – for Google Play acceptance

Run all these in the command line:

1. Set the Java path, to use the Java signer

2. Generating a certificate
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

3. Sign your apk
arsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name

4. Verify if signature is done ( use any of the commands below )
jarsigner -verify my_signed.apk
or
jarsigner -verify -verbose my_application.apk
or
jarsigner -verify -verbose -certs my_application.apk

5. using zip align tool
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

6. Zipalign the apk
zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk

7. check version
aapt d –values badging

version is located here:
andriod_dev\adt-bundle-windows-x86_64-20130917\adt-bundle-windows-x86_64-20130917\sdk\build-tools\android-4.3

Setting Android versions in AndroidManifest.xml

Hi, Although I haven’t worked with Android for quite a while, but It seems this topic is quite popular, so therefore I am “obliged” to post another Android blog.

In the AndroidManifest.xml file it is important to declare the correct <uses-sdk>. When developing Android applications, please note of the API level you are using in the development. The correct API level is determined during the creation of the project. API levels may have some issues when running the application. The API levels are declared in the <uses-sdk> of the AndroidManifest.xml.

Here’s an example:

<uses-sdk
android:minSdkVersion=”8″
android:targetSdkVersion=”18″/>

This means that minimum API level to run this application is version 8 , which in this case is  2.2.x FROYO.  This level should match the API level you set when the project is created. Then we should also indicate target API level, and in this example we set it to 18, which is 4.3 JELLY_BEAN_MR2. In this case target sdk is backward compatible to min sdk, and in this example, the application was deployed/tested in a API level 18 device.

Here’s the complete documentation from Google and the API level chart, In where we can see which version corresponds to it’s API level.

http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

NOTE: A mistake in <uses-sdk> will cause some of your applications to crash and may not succeed in some test scenarios.

Platform Version API Level VERSION_CODE Notes
Android 4.4 19 KITKAT Platform Highlights
Android 4.3 18 JELLY_BEAN_MR2 Platform Highlights
Android 4.2, 4.2.2 17 JELLY_BEAN_MR1 Platform Highlights
Android 4.1, 4.1.1 16 JELLY_BEAN Platform Highlights
Android 4.0.3, 4.0.4 15 ICE_CREAM_SANDWICH_MR1 Platform Highlights
Android 4.0, 4.0.1, 4.0.2 14 ICE_CREAM_SANDWICH
Android 3.2 13 HONEYCOMB_MR2
Android 3.1.x 12 HONEYCOMB_MR1 Platform Highlights
Android 3.0.x 11 HONEYCOMB Platform Highlights
Android 2.3.4
Android 2.3.3
10 GINGERBREAD_MR1 Platform Highlights
Android 2.3.2
Android 2.3.1
Android 2.3
9 GINGERBREAD
Android 2.2.x 8 FROYO Platform Highlights
Android 2.1.x 7 ECLAIR_MR1 Platform Highlights
Android 2.0.1 6 ECLAIR_0_1
Android 2.0 5 ECLAIR
Android 1.6 4 DONUT Platform Highlights
Android 1.5 3 CUPCAKE Platform Highlights
Android 1.1 2 BASE_1_1
Android 1.0 1 BASE

 

 

More Android Basics

( revived from October 13, 2013 post )

Android is developed using the Java language, so if you were familiar with the Java Swing GUI toollkit, Android Java functions are just similar.

In Android, the “main()” method comparable to C, C++, Java is the “onCreate()” method in MainActivity.java

Also make sure to arrange the text fields and buttons so it may not overlap. You may use the “android:layout_below=” in the /layout/activity_main.xml.

 

Starting to Create Android Applications

If you would like to create Andriod applications you may refer to this site

You may download android SDK here
http://developer.android.com/training/basics/firstapp/index.html

Here you may try the Android “Hello World”
http://www.tutorialspoint.com/android/android_hello_world_example.htm

Basically Andriod development is in Java Language. Then with Java it is
integrated with Eclipse IDE.

The Andriod SDK already comes with an Eclipse IDE.
To test the Android code, you need to add an Andriod Phone Simulator ( Usually Google Nexus ) called AVD ( Android Virtual Device ) . See the strings.xml file under /values folder. This is where the “Hello World” String is defined. See “Hello World” screenshot below.

Creating an Image in Android

Here’s how you can insert images in your Android App development.

1.) make an entry on /layout/activity_main.xml
an example entry would be like:

<ImageView
android:id=”@+id/imageView1″
android:layout_width=”wrap_content”
android:layout_height=”wrap_content”
android:layout_below=”@id/button_n”
android:src=”@drawable/yellowandroid” />

2.) add an image in the drawable-hdpi folder and also in drawable-mdpi folder
3.) make sure the “android:src=” value would match the ImageView xml entry. *.jpg may be omitted in ImageView.

Android imaging and graphics design is in much more bigger topic to be covered. But anyway I also include a video here from Google graphics developer Chet Haase for some advanced Android graphics.

 

Create a new Android Project in Eclipse

( This post is revived from November 13, 2013 on my previous blog site )

Here’s a guide on how to create an Android Software Project in Eclipse. First you need to download the Android SDK from google. It comes with Eclipse already.

1.)  Right click on the Project Explorer tab and select “New”> “Project”
2.)  In the wizard window select “Android”>”Android Application Project”
3.)  The “New Android Application” window opens. Type on the Application name, then it will auto fill on the Project Name and Package Name.
4.)  Also select the Minimum Required SDK from lowest version to highest. Selecting SDK version will matter for the availability of Activity Pages.
5.)  On the next window in “Configure Launcher Icon”, you may select a launcher icon. this icon will be the launch icon on your Android Phone. Example is that blue “f” square icon for Facebook or the “g+” red square icon in Google.
6.) Then select the Activity, Blank Activity is the most basic, then moving to Master/Detail Flow which will have more complicated auto-generated framework code.

 

I just updated this post with screenshots.

 

new_project  android_application android_iconactivity