[android-developers] Re: Running ui thread from another thread
thank you so much for your information Mark . On Sep 16, 4:57 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 16, 2011 at 12:26 AM, Logesh rajendren loges...@gmail.com wrote: Is there any way to run a UI thread from another class ? You don't run a UI thread. If you mean run some code on the UI thread, use runOnUiThread(), or post(), or postDelayed(), or a Handler, or AsyncTask. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.1 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Running ui thread from another thread
Thank you Blake . On Sep 16, 9:56 am, blake blake.me...@gmail.com wrote: Logesh, Nearly all of your code runs on the UI thread, unless you do something, specifically, to arrange otherwise (the list of tools that Mark gives). If you are literally trying to do what your message suggests -- run a UI-like thread from somewhere -- have a look at Looper. -blake Programming Android, FTW!http://oreilly.com/catalog/0636920010364 On Sep 15, 9:26 pm, Logesh rajendren loges...@gmail.com wrote: Is there any way to run a UI thread from another class ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Running ui thread from another thread
Is there any way to run a UI thread from another class ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android's Virtual Device (AVD) doesn't start
Make sure that your sdk folder path dont have spaces. if there is any spaces , replace them by underscore of hypens. On Thu, Sep 15, 2011 at 1:57 PM, Peter wolfenm...@gmail.com wrote: I had a number of problems starting my VM as well. Not sure what OS you're running on, but my primary dev machine is Windows Vista 64-bit. I was running into issues because I didn't have the environment variables set up. Try running these two commands from the command prompt: SET PATH=%PATH%;c:\Java\android-sdk-windows\tools;c:\Java\android-sdk- windows\platform-tools SET ANDROID_SDK_HOME=c:\Java\android-sdk-windows Obviously, you should replace the path to whatever you have for your SDK installation. Cheers! Peter On Sep 13, 4:21 pm, JulioSergio julioser...@gmail.com wrote: I just downloaded Android's SDK and it comes with a facility to create and start virtual devices (AVD). I successfully created an AVD, however it has been impossible to start it. When I try, the machine outputs the following message: invalid command-line parameter: Files. Hint: use '@foo' to launch a virtual device named 'foo'. please use -help for more information Since I'm trying to start the AVD from the Android SDK and AVD Manager interface, I don't understand what the above message means, and how to start the AVD anyway. Do you have any suggestion? Thanks, Sergio. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] itemizedOverlay, onTap
you have only one activity in your manifest file . include the HelloItemizedOverlay activity in your manifest file. On Mon, Sep 12, 2011 at 12:30 AM, rochi pruebaenvioj...@gmail.com wrote: hello, I'm having problems with this code: http://developer.android.com/resources/tutorials/views/hello-mapview.html In main.xml I have: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/mainlayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/mapview android:layout_width=fill_parent android:layout_height=fill_parent android:clickable=true android:apiKey=myKey / /RelativeLayout In the AndroidManifest.xml ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=maps.rochi android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=13 / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / activity android:name=.MapsActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest In mapsActivity.java: public class MapsActivity extends MapActivity { LinearLayout linearLayout; MapView mapView; MapController mapController; ListOverlay mapOverlays; Drawable drawable; helloItemizedOverlay itemizedOverlay; protected boolean isRouteDisplayed() { return false; } /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mapView = (MapView) findViewById(R.id.mapview); mapView.setBuiltInZoomControls(true); mapController = mapView.getController(); mapOverlays = mapView.getOverlays(); drawable = this.getResources().getDrawable(R.drawable.bikeicon); itemizedOverlay = new helloItemizedOverlay(drawable); GeoPoint point = new GeoPoint(1924,-9912); OverlayItem overlayitem = new OverlayItem(point, Hola, Mundo!, I'm in Mexico City!); itemizedOverlay.addOverlay(overlayitem); mapOverlays.add(itemizedOverlay); } } And helloItemizedOverlay: public class helloItemizedOverlay extends ItemizedOverlay { Context mContext = null; private ArrayListOverlayItem mOverlays = new ArrayListOverlayItem(); public helloItemizedOverlay(Drawable marker) { super(boundCenterBottom(marker)); } public void addOverlay(OverlayItem overlay) { mOverlays.add(overlay); populate(); } @Override protected OverlayItem createItem(int i) { return mOverlays.get(i); } @Override public int size() { // TODO Auto-generated method stub return mOverlays.size(); } public helloItemizedOverlay(Drawable defaultMarker, Context context) { super(defaultMarker); mContext = context; } @Override protected boolean onTap(int index){ OverlayItem item = mOverlays.get(index); try{ AlertDialog.Builder dialog = new AlertDialog.Builder(mContext); dialog.setTitle(item.getTitle()); dialog.setMessage(item.getSnippet()); dialog.show(); } catch (Exception e){ e.printStackTrace(); } return true; } } When I click in some icon, I found a nullPointerException in this line AlertDialog.Builder dialog = new AlertDialog.Builder(mContext); what's my mistake??? Thank you so much! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit
Re: [android-developers] Emulator invalid command-line parameter
run the emulator in command prompt. On Sun, Sep 11, 2011 at 3:59 PM, Bhaskar Anand bhaskar...@gmail.com wrote: I created a Sample Android Project in Eclipse with a successful AVD created . But As I am trying to run the Project ,Console is throwing following sets of Error [2011-09-12 04:14:18 - App1] -- [2011-09-12 04:14:18 - App1] Android Launch! [2011-09-12 04:14:18 - App1] adb is running normally. [2011-09-12 04:14:18 - App1] Performing com.lara.Simple activity launch [2011-09-12 04:14:18 - App1] Automatic Target Mode: launching new emulator with compatible AVD 'MyAVD' [2011-09-12 04:14:18 - App1] Launching a new emulator with Virtual Device 'MyAVD' [2011-09-12 04:14:20 - Emulator] invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe. [2011-09-12 04:14:20 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'. [2011-09-12 04:14:20 - Emulator] please use -help for more information As I am Beginner. Kindly help me with the Basic issue of Starting up the Emulator Thanks Bhaskar Anand bhaskar...@gmail.com* * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to learn android?
android pro development . On Sun, Sep 11, 2011 at 7:19 AM, felix guofuchu...@gmail.com wrote: How to learn android well? Can you tell me some books videos or other resource? thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Help me with adding overlays in google maps
i found the problem. the problem is actually in manifest file . i didnt include HelloItemizedOverlay activity in the manifest file. On Mon, Sep 5, 2011 at 8:20 AM, TreKing treking...@gmail.com wrote: On Mon, Sep 5, 2011 at 6:24 AM, Logesh rajendren loges...@gmail.comwrote: *When i execute this application , i m getting the following error .* * application MapsOverlay(process.com.maps) has stopped unexpectedly. Please try again * *can u please help me now .. ?* Use LogCat and your debugger to debug your application. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Emulator starting Problem
use commant prompt to run your emulator if u r using windows . in cmd go to your android sdk folder and tools folder inside that where emulator.exe is there then execute using emulator @your_avd_name command . On Wed, Sep 7, 2011 at 10:04 AM, Rathna Kumara Premadasa rathnakumar...@gmail.com wrote: Hi All, Whe i'm going to start my Android Emulator (Vertion 1.5, API Level 3) getting an error and didn't start it.The error was like this invalid command-line parameter: Files\android-sdk-windows\tools/emulator-arm.exe. Hint: use '@foo' to launch a virtual device named 'foo'. please use -help for more information Please help me anyway Thanks, -- *Rathna Kumara Premadasa* Sri Lanka. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Error starting app. Must force a close
ya you are right . I am getting the same error when i run my application . when i look in logcat for debugging i found one reported problem as the process exits because of uncaught exceptions could not instantiate etc .. I dont know from where the problem is arising. On Sep 5, 11:49 pm, Indicator Veritatis mej1...@yahoo.com wrote: Mark- Your advice is good, as always, but I think the OP will be in need of advice that is a little more specific, namely, HOW is he going to find the cause of the error using adb logcat etc? Of course, since all we know is that he sees that one error, it is hard to get more specific. But I believe it would be helpful to point out to the OP in general terms what he should look for, i.e., look in the stack trace containing the unknown error for any exceptions involving his own package: if he finds one, he can be 99% certain that is the cause of the error. If he does not find one, then it is harder: he will have to figure out what it was that the Launcher needed to start his app, but he forgot to provide, such as listing all required permissions and Activities in the Manifest. On Sep 5, 4:19 pm, Mark Murphy mmur...@commonsware.com wrote: Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your error. On Mon, Sep 5, 2011 at 11:05 PM, NWD Sports nwdspo...@hotmail.com wrote: I have an app that I created that worked perfectly whenever I debugged it. Now whenever I try to run it, I get an error saying “unexpected error com.myPackageName.app could not be started.” the only option I get is to force a close of the app. Does anyone know what is wrong? Nicholas L. – NWD Sports.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC:http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] multi page form
my advice is to shrink your UI so that it fits into a single page. because Users dont like to use scrolls. Design your form in such a way if its feasible . On Tue, Sep 6, 2011 at 6:03 AM, ksmobilejava ksmobilej...@gmail.com wrote: Hello , I am new to android paltform. How to navigate through multi page form application? how to handle next and back button click event? My point of confusion is that, form filling is single activity , then how to display multiple pages of the form and how to navigate back and forth from pages in that activity? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] [ASK] HOW TO SEND LONGITUDE LATITUDE TO ANOTHER ANDROID PHONE VIA INTERNET..
you can use telnet client in windows through command prompt . connect to the android console using the command o localhost 554 if you are running in localhost . then use the command geo fix (latitude) (longitude) to send the location information hope you are benefitted :) On Tue, Sep 6, 2011 at 4:27 AM, dede pradana de.pri...@gmail.com wrote: i'm newbie.. give me your explanation master.. thx before,, :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to use Tap Gesture???
There is also a method onTap() . I dono much about its functionalities . you please check that. On Tue, Sep 6, 2011 at 10:48 AM, sam hotdude...@gmail.com wrote: Hi Guys , Can u please guide me on how to use Tap gesture .. I'm trying to enter into screen2 from screen1 when the user taps the screen How can i do that ?? I googled a lot .. didn't get a clear idea ... Can someone help me on this Please Cheers, Sam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to use Tap Gesture???
try making the whole first page as a button , so that it looks better . But I dono if its feasible because me too new to android. On Tue, Sep 6, 2011 at 11:35 AM, sam hotdude...@gmail.com wrote: Is there any other way that u know i can achieve that .. cozz i dnt want to keep a button the first screen .. i just need to touch the screen to get into the second screen .. On Sep 6, 11:31 pm, Logesh rajendren loges...@gmail.com wrote: There is also a method onTap() . I dono much about its functionalities . you please check that. On Tue, Sep 6, 2011 at 10:48 AM, sam hotdude...@gmail.com wrote: Hi Guys , Can u please guide me on how to use Tap gesture .. I'm trying to enter into screen2 from screen1 when the user taps the screen How can i do that ?? I googled a lot .. didn't get a clear idea ... Can someone help me on this Please Cheers, Sam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] My First Android Geolocation Application
Hi Abishek , i m doing similar kind of project for my final year project . Can u please help me with Map Overlays in googlemaps ? :) On Mon, Sep 5, 2011 at 3:40 AM, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com wrote: Hey guys I have launched my first android application. It is a geolocation application , users login using facebook sdk and in people section will be shown facebook users nearby. In Places section initially latest places are shown in a list and you can also search the places using searchbar which gets you dropdown suggestions. Link to the promo video :- http://vimeo.com/28581522 Link to the application in market place :- https://market.android.com/details?id=org.neighbourhoodfeature=search_result I would also like to thank this group for showing support to the beginners. The knowledge shared by you guys is always usefull and there is always something new in it if i check in. Regards Abhishek Talwar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Create an animation over an Overlay
Sorry guys , i need help to create overlays . can u help me ? On Sun, Sep 4, 2011 at 1:29 PM, TreKing treking...@gmail.com wrote: On Thu, Sep 1, 2011 at 11:36 PM, Massimo massimo.ca...@gmail.com wrote: It's possible to create an animation over an overlay into a map? Yes, this is probably possible. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Help me with adding overlays in google maps
*This is my main.xml layout file .* ?xml version=1.0 encoding=utf-8? com.google.android.maps.MapView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/mapview android:layout_width=fill_parent android:layout_height=fill_parent android:clickable=true android:apiKey=0RpY75HF_fGbjp8flqnOd0gS9T8CpZrsiiqVA_g / *and the manifest file contains * ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.maps android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=7 / application android:icon=@drawable/icon android:label=@string/app_name activity android:name=.MapsOverlayActivity android:label=@string/app_name android:theme=@android:style/Theme.NoTitleBar intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity uses-library android:name=com.google.android.maps / /application uses-permission android:name=android.permission.INTERNET / /manifest *The MapsOverlayActivity.java contains *package com.maps; import java.util.List; import android.graphics.drawable.Drawable; import android.os.Bundle; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; import com.google.android.maps.Overlay; import com.google.android.maps.OverlayItem; public class MapsoverlayActivity extends MapActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MapView mapView = (MapView) findViewById(R.id.mapview); mapView.setBuiltInZoomControls(true); ListOverlay mapOverlays = mapView.getOverlays(); Drawable drawable = this.getResources().getDrawable(R.drawable.icon); HelloItemizedOverlay itemizedoverlay = new HelloItemizedOverlay(drawable,this); GeoPoint point = new GeoPoint(30443769,-91158458); OverlayItem overlayitem = new OverlayItem(point, Laissez les bon temps rouler!, I'm in Louisiana!); GeoPoint point2 = new GeoPoint(17385812,78480667); OverlayItem overlayitem2 = new OverlayItem(point2, Namashkaar!, I'm in Hyderabad, India!); itemizedoverlay.addOverlay(overlayitem); itemizedoverlay.addOverlay(overlayitem2); mapOverlays.add(itemizedoverlay); } @Override protected boolean isRouteDisplayed() { return false; } } *And this is my HelloItemizedOverlay.java file * package com.maps; import java.util.ArrayList; import android.app.AlertDialog; import android.content.Context; import android.graphics.drawable.Drawable; import com.google.android.maps.ItemizedOverlay; import com.google.android.maps.OverlayItem; public class HelloItemizedOverlay extends ItemizedOverlayOverlayItem { private ArrayListOverlayItem mOverlays = new ArrayListOverlayItem(); private Context mContext; public HelloItemizedOverlay(Drawable defaultMarker, Context context) { super(boundCenterBottom(defaultMarker)); mContext = context; } public void addOverlay(OverlayItem overlay) { mOverlays.add(overlay); populate(); } @Override protected OverlayItem createItem(int i) { return mOverlays.get(i); } @Override public int size() { return mOverlays.size(); } @Override protected boolean onTap(int index) { OverlayItem item = mOverlays.get(index); AlertDialog.Builder dialog = new AlertDialog.Builder(mContext); dialog.setTitle(item.getTitle()); dialog.setMessage(item.getSnippet()); dialog.show(); return true; } } * When i execute this application , i m getting the following error .* * application MapsOverlay(process.com.maps) has stopped unexpectedly. Please try again * *can u please help me now .. ?* On Sun, Sep 4, 2011 at 1:24 PM, TreKing treking...@gmail.com wrote: On Sat, Sep 3, 2011 at 9:33 AM, Logesh loges...@gmail.com wrote: hello guys , i am just trying to add overlays and markers in google maps in my android application How? What are you trying? I am very new to android development . I have tried with all the examples and snippets given . What samples and snippets? Given by whom? But nothing is working for me . What does nothing is working mean? whatever i do i am getting only error message Want to share the error message, or should we guess? please help me to debug it !! How precisely would you like us to do that when you provide almost no information? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android
Re: [android-developers] My First Android Geolocation Application
Thank u so much . On Mon, Sep 5, 2011 at 4:10 AM, Robin Talwar r.o.b.i.n.abhis...@gmail.comwrote: I am not integrating map overlays though you could find the exact code in appress EBook beginners guide or may be pro android development. Instead i am calling the browser for following intent http://maps.google.com/maps?f=dsaddr=+fromLat+%20+fromLong+daddr=+ toLat+%20+toLong+hl=en This opens up browser or if the user has google maps application installed then he will be given choice to choose from On Mon, Sep 5, 2011 at 4:27 PM, Logesh rajendren loges...@gmail.comwrote: Hi Abishek , i m doing similar kind of project for my final year project . Can u please help me with Map Overlays in googlemaps ? :) On Mon, Sep 5, 2011 at 3:40 AM, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com wrote: Hey guys I have launched my first android application. It is a geolocation application , users login using facebook sdk and in people section will be shown facebook users nearby. In Places section initially latest places are shown in a list and you can also search the places using searchbar which gets you dropdown suggestions. Link to the promo video :- http://vimeo.com/28581522 Link to the application in market place :- https://market.android.com/details?id=org.neighbourhoodfeature=search_result I would also like to thank this group for showing support to the beginners. The knowledge shared by you guys is always usefull and there is always something new in it if i check in. Regards Abhishek Talwar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards Abhishek Talwar 9953395712 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Unable to launch Emulator
This problem arises after updating your android . here is the way to start your emulator . please follow these . 1) open command prompt in windows 2) go to android_sdk folder where u have installed it Eg: C:\android-sdk 3) go to the folder tools inside that where emulator.exe will be there 4) then type *emulator @My_avd (My_avd is your created android virtual device's name ) that's it :) * On Thu, Sep 1, 2011 at 8:29 PM, Sagar Rajagopal techie.andr...@gmail.comwrote: Hi, I am getting the below error while trying to run the helloworld android application. invalid command-line parameter: Files\Android\android-sdk\tools/ emulator-arm.exe. Hint: use '@foo' to launch a virtual device named 'foo'. please use -help for more information [2011-09-02 08:38:18 - HelloAndroid] -- [2011-09-02 08:38:18 - HelloAndroid] Android Launch! [2011-09-02 08:38:18 - HelloAndroid] adb is running normally. [2011-09-02 08:38:18 - HelloAndroid] Performing com.example.helloandroid.HelloAndroidActivity activity launch [2011-09-02 08:38:18 - HelloAndroid] Automatic Target Mode: Preferred AVD 'My_AVD' is not available. Launching new emulator. [2011-09-02 08:38:18 - HelloAndroid] Launching a new emulator with Virtual Device 'My_AVD' [2011-09-02 08:38:18 - Emulator] invalid command-line parameter: Files \Android\android-sdk\tools/emulator-arm.exe. [2011-09-02 08:38:18 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'. [2011-09-02 08:38:18 - Emulator] please use -help for more information Please help me out to figure the issue as I am a new bie to Android. I even tried searching for resolution but didnot find anything for already posted queries. Please help me to get this resolved. Awaiting your reply, Sagar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] getLocalActivityManager().getActivity(tabTag) return NULL
can u tell me how to trace using logcat ? i m new to it . On Fri, Sep 2, 2011 at 4:25 AM, paddy padam1...@gmail.com wrote: I have 2 tabs with tagID tag01 and tag02. I have explicitly set the focus to first tab by calling tabHost.setCurrentTab(0) When i call getLocalActivityManager().getActivity(tag01) i get the object of activity but when i call getLocalActivityManager().getActivity(tag02) then i get NULL. Now when i again run my app and this time click second tab and then getLocalActivityManager().getActivity(tag02) gives object (toString() in logcat). So after checking it again and again i found that only activity in first tab( that i had set focus explicitly by tabHost.setCurrentTab(0)) returns non-null and other tabs return null unless u don't click those tab. When i click all tabs i.e atleast i go through all tabs by clicking them then getLocalActivityManager().getActivity(anyTag) returns object(i am tracing toString()) . How to access activity from other tabs without clicking other tabs because user won't know that he/she has to click tabs. Please give some suggestions. Because i have to access activity in tabs in my app. I hope you understood my problem. (Note: i am tracing in LogCat) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Create an animation over an Overlay
ok ok. sorry . On Mon, Sep 5, 2011 at 8:21 AM, TreKing treking...@gmail.com wrote: On Mon, Sep 5, 2011 at 6:11 AM, Logesh rajendren loges...@gmail.comwrote: Sorry guys , i need help to create overlays . can u help me ? A - Don't hijack threads. B - No one can help you if you don't indicate what help you need. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Help me with adding overlays in google maps
thank you , i will look into it. On Mon, Sep 5, 2011 at 8:20 AM, TreKing treking...@gmail.com wrote: On Mon, Sep 5, 2011 at 6:24 AM, Logesh rajendren loges...@gmail.comwrote: *When i execute this application , i m getting the following error .* * application MapsOverlay(process.com.maps) has stopped unexpectedly. Please try again * *can u please help me now .. ?* Use LogCat and your debugger to debug your application. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Multithread, concurrent thread
By Running 100 threads , you will just drain the battery . Also in android when the machine is running out of memory , it will abruptly terminate your program without any prompt. On Sat, Sep 3, 2011 at 3:03 PM, Christopher Van Kirk christopher.vank...@gmail.com wrote: No idea if it's possible, but is it wise? Considering there are a maximum of two cpus to work with, what are you gaining with so many threads? On 9/4/2011 5:52 AM, Goutom wrote: Hello I want to run 100 thread concurrently.Is it possible for android? Regards RiskyCoder -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@**googlegroups.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help me with adding overlays in google maps
hello guys , i am just trying to add overlays and markers in google maps in my android application . I am very new to android development . I have tried with all the examples and snippets given . But nothing is working for me . whatever i do i am getting only error message . please help me to debug it !! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en