Sebastian - Android developer

When there’s no limit to what Android gets, there’s no limit to what Android does

Follow me on TwitterRSS Feeds

  • Home
  • My work
  • About me
  • Contact
Stages map

La Vuelta – Tour of Spain

Aug 29th

Posted by Sebastian in Applications

No comments


La Vuelta – Tour de Spain on Android

With La Vuelta you can see Tour de Spain in detail directly on your Android device.

  • see overall standings,
  • stage results,
  • stage details,
  • teams
  • riders.

Not live during the race, but after every stages results will be updated via internet.

Hope the size it has does not create problems. I embedded in the application the images about stages : map, profil and last km.

Please comment if you want more features.

More >

bike, results, spain, stage, tour, vuelta
Info Traffic screen

EuropaFM

Aug 29th

Posted by Sebastian in Applications

No comments


Main functions of EuropaFM Android application :

  • listen to Europa FM Radio from online streaming servers
  • receive via internet auto traffic information
  • send via internet auto traffic information
  • read Europa FM tweets
  • read news from Europa FM via Twitter

Version : 1.0

Release date : 30.08.2010
More >

europafm, info traffic, infotrafic

Admob with padding

Aug 26th

Posted by Sebastian in Android development

No comments

I just added AdMob to my Android app DRoute and it doesn’t work. I receive many calls to onFailedToReceiveAd event function

  1. @Override
  2.         public void onFailedToReceiveAd(AdView adView)
  3.         {
  4.                 Log.d("DRoute", "onFailedToReceiveAd");
  5.                 super.onFailedToReceiveAd(adView);
  6.         }

I dig into the problem, search on the internet and didn’t found a solution. This morning I’ve created step by step a fresh new app only to test AdMob publisher code and ID and it works fine on emulator with :

  1. AdManager.setTestDevices(new String[] {AdManager.TEST_EMULATOR});

After step by step testing I found out that the problem was with a padding value that I have in my surrounding
More >

admob, android, onFailedToReceiveAd, padding

ScrollView and fillViewport

Aug 16th

Posted by Sebastian in Android development

No comments

Romain Guy write a little info about a ScrollView attribute that is missing  from documentation : android:fillViewport=”true” .

It must be set to ScrollView and has the following efect : when set to true, this attribute causes the scroll view’s child to expand to the height of the ScrollView if needed. When the child is taller than the ScrollView, the attribute has no effect.

Source : http://www.curious-creature.org/2010/08/15/scrollviews-handy-trick/

fillViewport, scrollview

Handle Back button action

Aug 10th

Posted by Sebastian in Android development

No comments

By default pressing Back button on any activity the Android sistem will close / destroy the activity ( OnDestroy method is called ) See : Activity Lifecycle.

This can be a little annoying when you have some service that perform background work.
More >

back button, close, moveTaskToBack

Install/Move to sd card on Froyo

Aug 5th

Posted by Sebastian in Android development

No comments

On Froyo ( Android 2.2 ) the user have the option to move / install applications to sd card. This is good due to lack of space on phone memory.

To enable this option at application level the developer should do some simple modifications.

  1. Open manifest file ( AndroidManifest.xml ).
  2. Add android:installLocation=”auto” as attributes to your root manifest element. Here you have 3 options :
    • internalOnly: Install the application on internal storage only. This will result in storage errors if the device runs low on internal storage.
    • preferExternal: The android system tries to install the application on external storage. If that is full, the application is installed on internal storage.
    • auto: Let the Android system decide the best install location for the application. The default system policy is to install the application on internal storage first. If the system is running low on storage, the application is then installed on external storage.
  3. Change Project Build Target to Android 2.2
  4. Keep android:minSdkVersion as low as you want. This new option will be available only on devices running Froyo (2.2)

References : http://android-developers.blogspot.com/2010/07/apps-on-sd-card-details.html

froyo, installLocation, sd card

Services – connect and communicate using aidl

Jul 31st

Posted by Sebastian in Android development

No comments

With services there are 2 ways to work with :

  1. One is to use startService(Intent) to start the service and stopService(Intent) to stop the service from within your activity. With this solution you cannot communicate directly with the service, but you can use SQLITE as a layer between activities and services.
  2. The second is to use bindService() to bind the service with the activity. With this the service is alive all the time the activity that is bind to is alive. With this method you can communicate with the service directly.

I will write a simple tutorial about the second option.

I use Eclipse and ADT Plugin for Eclipse . This will do some background work.

More >

android, bindService, service, serviceConnection, startService

Add settings to an application using Preferences

Jul 10th

Posted by Sebastian in Android development

3 comments

You can use Preference classes from Android SDK to store, set and retrieve Settings at application level or at activity level.

There are 2 ways to manipulate preferences :

  1. Using your own screen to modify the settings
  2. Using the built in PreferenceActivity class

More >

android, Preferences, SharedPreferences

DRoute – Car route example

Jul 5th

Posted by drouteapp in All routes

No comments

My route name : runcu
More >

droute, route

DRoute – Bike route example

Jul 2nd

Posted by drouteapp in All routes

2 comments

My route name : ceainarie valea cetatii
More >

bike route, Ceai et caetera, droute
12»
    • Popular posts
    • Archives
    • Categories
    • All routes (100)
    • Android development (9)
    • Applications (6)
      • DRoute (3)
      • DTrackTime (1)
    • September 2010 (4)
    • August 2010 (95)
    • July 2010 (9)
    • June 2010 (2)
    • May 2010 (3)
    • Add settings to an application using Preferences (3)
    • DRoute – Bike route example (2)
    • DTrackTime – Monitoring your time (0)
    • How to get string resources values (0)
    • Create a custom adapter (0)
  • android back button bike bike route bindService Brasov Ceai et caetera close co custom adapter dd droute dtracktime email facebook fillViewport froyo gps installLocation mb moveTaskToBack pietrele Plaiul Foii Poiana Brasov Preferences racadau record resource route Sacele scrollview sd card send service serviceConnection share SharedPreferences solomon startService string Tarlungeni time time monitoring track time twitter

    WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

  • Facebook

  • My latest tweets

    Loading tweets...
    Follow me on Twitter!
  • Friends

    • Ceai et caetera Tea house in Brasov, Romania
Mystique theme by digitalnature | Powered by WordPress
RSS Feeds XHTML 1.1 Top