Error Running the map application in Android Emulator

Tutorials that use the MapActivity. Many using GPS functionality.

Error Running the map application in Android Emulator

Postby aptgopal » Mon Dec 20, 2010 9:43 pm

Hi
I have created a map application in android but the map doesn't displayed in the emulator
It shows the error:error=9 Bad File Number

Please any one help me what is the error and how to run the application
I have attached my code
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. import com.google.android.maps.MapActivity;
  2. import android.os.Bundle;
  3.  
  4. public class MapApp extends MapActivity  {
  5.     /** Called when the activity is first created. */
  6.     @Override
  7.     public void onCreate(Bundle savedInstanceState) {
  8.         super.onCreate(savedInstanceState);
  9.         setContentView(R.layout.main);
  10.     }
  11.  
  12.     @Override
  13.     protected boolean isRouteDisplayed() {      
  14.         return false;
  15.     }
  16. }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


Thanks in advance
aptgopal
Developer
Developer
 
Posts: 25
Joined: Tue Nov 16, 2010 7:08 pm
Location: India

Top

Return to Map Tutorials

Who is online

Users browsing this forum: Google Feedfetcher and 3 guests