Archive | Android RSS feed for this section
product-icon-4_thumb2_thumb.png

Avoid Dependencies In a library: Android

When providing a library like a parser for location-based information one of the most important points is to not create any kind of dependency into the application which later uses the library. But what does this mean? Here is a small example: The application ApplA wants to get the location for a certain GPS position [...]

Read full story Comments { 1 }
product-icon-4_thumb.png

Random Name Generator: Android

Today i needed a name generator so i wrote one myself (i didn’t like the existing ones i found via Google. Here is the test code i used: 1: NameGenerator gen = new NameGenerator(); 2: for (int i = 0; i < 30; i++) { System.out.println(gen.getName()); } It produces names like:PausypBraurjnnThushoobEinnjkQeideghAubXoihutVoopychGljintOchStontaighLoofauttGrennooghJshjntZjlouvFabeihAishofHoirAitJihointAivPoimFlottUstjvZjisXittouttI also added constructors for [...]

Read full story Comments { 5 }
it7SQxSNDamKw.png_thumb.jpg

10 Rules Every Android Programmer Should Know

I’ve now read a few interesting things that you should consider when programming Android in order to ensure as much performance as possible: As rarely as possible allocate memory Possible use etc but no integer int. Temporary return values ​​to avoid if possible! Strings that are used once and then return to the no longer [...]

Read full story Comments { 1 }
Animated Splash Screen

Create Animated Splash Screen in Android

Create a new project in Eclipse named AnimatedSplashScreen Create a new xml file in the res/layout folder named splash.xml and add the following code to it. Add the following code to AndroidManifest.xml Now add the following code to AnimatedSplashScreenActivity.java     Add a new class in the src folder and named MainActivity and add the [...]

Read full story Comments { 2 }
>