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 [...]
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 [...]
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 [...]
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 [...]
Search»





