Saturday, August 15, 2015
Provide Multiple Language(Localization) in Android Application
In this post, i will explain how to make your application available for different languages.
To put a string/word is easy in android, if too lazy,
just use this line, android:text = "YOUR TEXT", in XML Layout file or
use this, view.setText("Your Text"), in Java File.
But, if you use above method that just make code management become hardest and to make an application may support different language is impossible or difficult.
Tuesday, July 14, 2015
Threading in android
For this post, I will use Timer as sample app and example for this explanation.
If you already have experience in creating timer in Java SE, then you already know how to use thread/runnable. If not, please view/use this link as reference :
https://docs.oracle.com/javase/tutorial/essential/concurrency/runthread.html
https://docs.oracle.com/javase/tutorial/essential/concurrency/runthread.html
In android you still can use Thread class provided in Java, but you can't make modify any View in thread. There are certain thing you need to handle before you can use it.
Sunday, July 12, 2015
Passing Data Between Activity in Android (Backward)
Continue from previous post, Passing Data Between Activity in Android (Forward)...
In this post, I will explain how return response/data to previous/parent Activity..
Send forward is easy, just attach with intent or store in a storage the start activity...in onCreateView() call the data...because one Activity only have one parent.
In this post, I will explain how return response/data to previous/parent Activity..
Send forward is easy, just attach with intent or store in a storage the start activity...in onCreateView() call the data...because one Activity only have one parent.
Subscribe to:
Posts (Atom)
