09 wrz

Android: MapFragment nested in parent fragment

Would you like to show map in your smart Android app? It is very easy, but after successfully passed some steps. In this tutorial I would like to make these steps with you to make the process faster and in a specific case – we will show our map in nested fragment.

Before funny work with the Android code we need to go through basic checkpoint list:

  1. Check if you have installed a Google Play Services in your Android SDK Manager. If no of course please install it! Second part of this point is to import the google-play-services-lib project into your workspace.
  2. Find your debug.keystore (or other) to list some details about it (like SHA-1 hash which is extremly important to accomplish next step.
  3. Create Google Maps API Key basing on SHA-1 from 2nd step and your application package name.

Read More

19 mar

Android: Not enough memory for apps? Move non-moveable apps to sd card!

Insufficient storage for Android apps? Move apps which you think are non-movable to your SD card (like Google Drive, YouTube, Maps, some keyboards like Swype + Dragon) and save space on your internal storage. To do this, you will need to download Android SDK Tools and execute only two commands in Command Line / Shell console. Read More

20 lut

Android with Eclipse: Conversion to Dalvik format failed with error 1 [solved]

During compiling some Android projects using Eclipse I had regular problems with exporting signed apk file. It is a known problem and everyone has his own solution to fix the issue. For my projects where I included many apk libs or jar files (Actionbarsherlock, gson, etc…) every export was finished with result:

Eclipse Android dalvik format failed with error

Conversion to Dalvik format failed with error 1

or my Eclipse crashed or the package was corrupted 🙂 It was very frustrating. It was not problem with Proguard. The solution is very simple. Before you start to create signed apk file you should:

  • go to Project menu -> disable Build Automatically…
  • after that Project -> Clean.. and clean all yours projects you use to create your apk ( uncheck Start a build immediately)

eclipse.clean_.android.without.recompile

  • and now right click on the project -> Android tools -> Export signed application package…

Works for me on my workstations with Windows. And you still have problems with that?

22 mar

Scanning and generating barcodes using ZXING library on Android

logoThe most popular all-in-one codes library for Android is zxing. Everyone used a Barcode scanner app based on this lib. But this library provides also ability to generate codes. In this example I show you how scan 1D code – Code 128. Code 128 is a very popular type of 1D code. After scanning, we obtain scanned information and… encode again to show on Android device for further scanning. Let’s go!

What we need:

29 cze

Bitbucket and Github on your Android smartphone

Do you use Bitbucket or Github? I use the repositories for bitbucket.org and I like when traveling see if a friend dropped something new. On Google Play we can find two applications: repoman and bitbeaker.

Personally, I like bitbeaker more. Looks good, I find quickly the corresponding information in this application. Anyway I only use a changesets list, rarely look for changes to files on the phone. Repoman has a very poor layout, but provides similar functionality. 

The choice is yours. Scan codes to download apps from Market… sorry from Google Play:

Bitbeaker
Repoman
18 cze

New version of Andlytics Project!

I wrote earlier that, Andlytics Android project has been discontinued, but… Today on @andlytics twitter channel appeared good news. Somebody did good work and new version Andlytics available from here http://t.co/9chm3OBt or scan this code:
New (working) Andlytics project available on Google Play or simply scan this new code: