[android-beginners] Re: ATTENTION: Android-Beginners will be permanently disabled on August 9 2010
I will probably move to the android-developers group and take the wrath of the experts like a man... -- You received this message because you are subscribed to the Google Groups Android Beginners group. ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For more information about this change, please read [http://goo.gl/xkfl] or visit the Group home page. Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: I joined in a match on mobile app developing and i need an idea on GPS
do altitude. On Jul 31, 9:36 am, Robert Lin robertli...@gmail.com wrote: I joined in a match on mobile app developing and i wanna design an app based on GPS. But what exactly kind of app is the best? do u have ideas friends? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: How can my app let people pick a picture that I use as background in my app?
I believe in transparency... In 1 month, my app has had 41 total installs, 21 paid (non canceled). -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: how to self-close an Activity
my customers have requested auto-close. Its not actually closing an about-box, its on a things-are-progressing type pop-up window. Also, my customers are in their car, so they need to safely glance at the screen while its safely docked on the dashboard. I have resisted it for 6 months, but I can always put it back... jim -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] how to self-close an Activity
I want to auto-close my about-window after 10 seconds, but don't have a clue how to do it Any help appreciated. -jp -Translate.java--- public class Translate extends Activity implements OnClickListener { public void onClick(View v) { switch (v.getId()) { case R.id.about_button1: Intent i1 = new Intent(this, About1.class); startActivity(i1); break; ... --About1.java--- public class About1 extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.submitting); ... --- -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: How can my app let people pick a picture that I use as background in my app?
Can you elaborate a bit please? Intent covers so much material. Thank you very much! Jim On Jul 25, 10:36 am, Paul Turchenko paul.turche...@gmail.com wrote: Use intent to pick a picture and start activity for result On Jul 24, 10:47 pm, cellurl gpscru...@gmail.com wrote: How do I launch some external application to show phone pictures and let users pick one? The picture will serve as a background in my app. So all in all, I just need their selection. e.g. the path/name once they have chosen it. Something simple would be nice ;-) thanks jim -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] How can my app let people pick a picture that I use as background in my app?
How do I launch some external application to show phone pictures and let users pick one? The picture will serve as a background in my app. So all in all, I just need their selection. e.g. the path/name once they have chosen it. Something simple would be nice ;-) thanks jim -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: GPS satellite icon
GPS is such a power hog, no way around it. Physics! Not to soapbox, but there are a bunch of car apps that will require putting your Android in a cradle on your car dashboard. Why? Power. Only in a cradle will GPS be left on without draining the battery. Sooo, please Android, make hostmode-USB a priority so we can build car apps: self-steering, self-braking, stay-awake apps jp -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] When clicking on a widget, how to make it just change the text inside the widget?
I have a working widget. When pressed, it launches a class. Instead of launching a class, I just want it to change the text in the widget and also change setOnClickPendingIntent to something different. Or perhaps I should rephrase and say, If I launch a class, how can I make it invisible? Eg, I always get a little oval in the middle which I don't want... And I have to hit the back-button to erase it... My existing code is: RemoteViews updateViews = null; updateViews = new RemoteViews(context.getPackageName(), R.layout.widget_word); updateViews.setTextViewText(R.id.definition, off); Intent intent = new Intent(this, Translate.class); PendingIntent pendingIntent= PendingIntent.getActivity(context, 0, intent, 0); updateViews.setOnClickPendingIntent(R.id.widget, pendingIntent); - Thanks for any suggestions! jim -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Download A file
Just did a quick search and found this. It has some code samples... http://www.lysesoft.com/products/andftp/#download -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Can a full app (not widget) be postage stamp size?
Can an app not be full-screen? E.g. can I make a postage size app? I want to show the speed limit while you drive. It has to update a lot... It would look best in a postage size app, so other apps could show thru around the side... Widgets don't update enough, so I can't go the widget route. I also considered using a status-bar notification, but the status bar isn't big enough. E.g. The status bar probably isn't visible in a dashboard cradle mount type situ. Any solutions appreciated. jp -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Get data to android app from mysql server
Here's an OS Android project that does similar. (search for new URL) http://code.google.com/p/speedlimit/source/browse/Sean/src/org/wikispeedia/backseatdriverVI/TranslateTask.java The php (web) side is the following: http://www.wikispeedia.org/a/marks_bb.php.txt IMHO, synchronizing sqlite and mysql is tough. I wish tools existed to help, but I have found none. You have sports scores which must update quickly I imagine. I have slower update stuff, so I am seriously considering just a bulk ftp load daily. Each app is different... jim -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Android GPS degree format
yea its definitely degrees. No minutes, no seconds, just degrees and fractional degrees. DD Decimal Degrees (49.5000°,-123.5000°) On May 6, 1:09 pm, TreKing treking...@gmail.com wrote: On Thu, May 6, 2010 at 11:47 AM, msurrow msur...@gmail.com wrote: Does any one know what the degree format of the GPS fixes one get from the LocationManager is? I can't back this up, but I'm fairly certain it's decimal degrees. Seems like the only format that's easily represented by a single double value. - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow athttp://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Android square root function
Find a way to avoid square-roots. In school they say take the square-root for everything, but in real-life, if you really study the problem (like gps distance or such), you rarely really need it. Just think in terms of squares, it saves a ton of computation (and battery). 2cents. jp -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: How to connect to a robot.
I am looking for the cheapest solution. So USB is probably it. thanks -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: How to connect to a robot.
is there wifi? or just cellular... On Apr 6, 2:39 am, Alan Gauld alan.ga...@btinternet.com wrote: cellurl gpscru...@gmail.com wrote I want to control something external using Android. Q3: Are there any other interfaces I might be missing? GPIO pins or something? Android robot groups?? Wireless using IP/SSL or Bluetooth? Just a thought. -- Alan Gauld Author of the Learn to Program web sitehttp://www.alan-g.me.uk/ -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe, reply using remove me as the subject.
[android-beginners] Re: How to connect to a robot.
I want to create a Bluetooth channel for the robot, while the owner is possibly already on a separate phonecall using Bluetooth. My question is, can I create -two- separate bluetooth channels at the same time? -jp On Apr 6, 9:47 am, DonFrench dcfre...@gmail.com wrote: I have an Android app in development that uses Bluetooth to control this robotic camera mount: http://www.thegadgetworks.com/. On Apr 5, 7:45 pm, cellurl gpscru...@gmail.com wrote: I want to control something external using Android. Q1: Can I have two-RFCOMM channels running at the same moment? Eg, channel 1 for voice, channel 2 for my robot. Is that possible? Q2: I understand Android-USB doesn't support host mode, thus if I use USB, my external device becomes more expensive. Am I missing something? Q3: Are there any other interfaces I might be missing? GPIO pins or something? Android robot groups?? Thanks for any replys. jp -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: How to connect to a robot.
Thanks for that. So I will pursue USB and use a dock I guess. USB is probably more appropriate... -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe, reply using remove me as the subject.
[android-beginners] How to connect to a robot.
I want to control something external using Android. Q1: Can I have two-RFCOMM channels running at the same moment? Eg, channel 1 for voice, channel 2 for my robot. Is that possible? Q2: I understand Android-USB doesn't support host mode, thus if I use USB, my external device becomes more expensive. Am I missing something? Q3: Are there any other interfaces I might be missing? GPIO pins or something? Android robot groups?? Thanks for any replys. jp -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe, reply using remove me as the subject.
[android-beginners] Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);
I need location updates in a widget. The code below hangs in the emulator. Even if I change lat in emulator- control, it stays hung. Aside: The code works in a normal app. Any help appreciated! jim @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { final LocationManager lm= (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); final LocationListener locationListener= new LocationListener() { public void onLocationChanged(Location newloc) { Log.d(TAG,onLocation Changed); } public void onProviderDisabled(String provider) {} public void onProviderEnabled(String provider) {} public void onStatusChanged(String provider, int status, Bundle extras) {} }; Log.d(TAG,gets here); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener); Log.d(TAG,never gets here); -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);
I'm bummed. So it seems widgets are only useful for once-a-day type info, no exceptions? On Mar 12, 9:05 am, Mark Murphy mmur...@commonsware.com wrote: cellurl wrote: I need location updates in awidget. That will be difficult. You cannot fork threads from an AppWidgetProvider, since it is a manifest-registered BroadcastReceiver, and your AppWidgetProvider will be alive for milliseconds (I hope). There is no clean way to have an AppWidgetProvider be around for the tens of seconds necessary to get aGPSfix. Not to mention the fact that you might never get a fix (e.g., user is in a parking garage). @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { final LocationManager lm= (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); final LocationListener locationListener= new LocationListener() { public void onLocationChanged(Location newloc) { Log.d(TAG,onLocation Changed); } public void onProviderDisabled(String provider) {} public void onProviderEnabled(String provider) {} public void onStatusChanged(String provider, int status, Bundle extras) {} }; Log.d(TAG,gets here); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener); You cannot do that here. If you look at your logcat, you will probably see an exception complaining about there being no looper. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Consulting/App Development:http://commonsware.com/consulting -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: integrating gmail in android app
This should probably be a new thread, but this one is on a roll so I will put it here. Q: How do I embed a DONATE button? E.g. I have an ImageButton, and I want it to go to paypal somehow, using the normal method whatever that is. Thanks for any clues. -clueless jim -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: GPS Can't get onLocationChanged to hit
worked like a charm, thanks. jim On Feb 22, 10:03 am, Mark Murphy mmur...@commonsware.com wrote: cellurl wrote: I got it to work in an entirely different Activity, but this one uses a thread, so perhaps that's a clue. snip @Override public void run() { Looper.prepare(); It is quite stunning how much Android code you can write without needing a custom Looper. My advice has always been, and will remain, that if you feel you need a Looper, start by looking for other implementation patterns, then and only then actually put in the Looper. final LocationListener locationListener= new LocationListener() { public void onLocationChanged(Location newloc) { Log.d(TAG,NEVER GETS HERE); } public void onProviderDisabled(String provider) {} public void onProviderEnabled(String provider) {} public void onStatusChanged(String provider, int status, Bundle extras) {} }; You are declaring your LocationListener inside your Runnable. That is very scary. Try declaring it on your Activity or Service or something. Even better, there is absolutely no reason to be registering for location updates in a background thread. Register for the location updates on your main application thread. If you need to do the work triggered by the location update on a background thread, deal with it only at that point (e.g., by an AsyncTask). You can see an example of that pattern here: http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/ lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener); while (true) { } Never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never never do this. You went and declared a Looper, then decided that you're not actually going to use the Looper, because you never give the Looper a chance to do anything. So even if your LocationListener is properly registered, it will never get control, because your thread is tied up in this busy loop. Furthermore, a tight busy loop like that is going to chew up the CPU enough that it will make anything else difficult to run. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training in US: 26-30 April 2010:http://onlc.com -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] GPS Can't get onLocationChanged to hit
I am using Visa, Eclipse, Emulator. I can get my position using GPS using the Emulator. I want to make my program more battery friendly. This code never gets to onLocationChanged(). In DDMS I change Lat, and hit SEND. I briefly tried the other file-lat-methods, but they didn't do any better. Q: If I change the lat by 0.001 (approx 100meters) shouldn't it hit onLocationChanged() or am I confused... I got it to work in an entirely different Activity, but this one uses a thread, so perhaps that's a clue. Thanks for any help jim @Override public void run() { Looper.prepare(); final LocationManager lm= (LocationManager)getContext().getSystemService(Context.LOCATION_SERVICE); final LocationListener locationListener= new LocationListener() { public void onLocationChanged(Location newloc) { Log.d(TAG,NEVER GETS HERE); } public void onProviderDisabled(String provider) {} public void onProviderEnabled(String provider) {} public void onStatusChanged(String provider, int status, Bundle extras) {} }; lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener); while (true) { } } Log says: 02-22 09:36:10.598: DEBUG/dalvikvm(338): GC freed 43 objects / 2096 bytes in 75ms 02-22 09:36:13.688: DEBUG/LocationManager(2465): Constructor: service = android.location.ilocationmanager$stub$pr...@43cf2738 02-22 09:36:15.647: DEBUG/dalvikvm(105): GC freed 3321 objects / 192376 bytes in 118ms 02-22 09:36:21.978: WARN/GpsLocationProvider(55): Duplicate add listener for uid 10028 02-22 09:36:21.978: DEBUG/GpsLocationProvider(55): setMinTime 0 02-22 09:36:21.978: DEBUG/GpsLocationProvider(55): startNavigating Then I do DDMS-EmulatorControl- lon=-120.123 lat=20.0 SEND Then Log says: 02-22 09:36:31.288: DEBUG/GpsLocationProvider(55): TTFF: 9304 -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Sample Programs
This might help, might not. Its a video I just made of start-to-finish building-running an app in Eclipse. http://www.youtube.com/watch?v=UZLsEtkomeI -jim -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Sample Programs
crud. Youtube removed it because it was over 10minutes. Sorry -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Moderated list??
I will moderate if needed. I do Android all day long. (Mr Mom). Author of Back Seat Driver. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: How to rotate a bitmap?
look at the example code called jetboy. It has spinning asteroids. jim On Feb 3, 11:42 am, BobG bobgard...@aol.com wrote: I have a clock in the center of an 800x480 bitmap, and I have a 60x140 clock hand/dial needle with center of rot at 30,110 in the bitmap. To place the center of rotation in the center of the bitmap, do I plave the needle bitmap using the top left coord offset 30,100 from the center, which is 240,400? Thanks so far. Im stumped. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: About Sqlite Database
I have the same need. I am reading thru this.. Not sure if it will solve the re-create problem http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-1/#comment-6734 -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Problems Compiling Sudoku sample program
do the other examples work? Try the smallest one first. On Jan 15, 10:19 am, greggahorton greggahor...@gmail.com wrote: Im having an issue with running a sample program from the book Hello Android The process trys to start but then i get the error: The application has stop unexpectedly. Please try again. Using adb logcat while running the program gives me this: --- 21) E/AndroidRuntime( 819): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782) E/AndroidRuntime( 819): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) E/AndroidRuntime( 819): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 819): Caused by: java.lang.RuntimeException: Binary XML file line #3: You must supply a layout_width attribute. E/AndroidRuntime( 819): at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438) Which tells me i need a layout_width attribute, but here is my main.xml file: http://codepad.org/YZl1nZaO line 3, has a layout_width attribute where am i going wrong? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: how to place a landmark on a google map programmatically
I too need the same info. Typically I start by finding example code, so I will look for an example, and also monitor this thread -jim -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Error in Building Hello World
You gotta give more info up front. 1. Do it on a PC. 2. Run the existing HelloWorld first before writing your own HelloWorld. It works if you install and follow all the step by step steps. I had absolutely no experience and I got the HelloWorld to work right out of the box.. On Jan 4, 12:15 am, rocky hulkman...@gmail.com wrote: Hi All, i am getting the below 2 errors while Building a simple Hello World program. could anyone Genius help it out? looks some problem in my eclipse settings... regds rocky Description Resource Path Location Type Error launching external scanner info generator (sh -c 'gcc -E -P -v - dD D:/Profiles/xtcg76/workspace/.metadata/.plugins/ org.eclipse.cdt.make.core/specs.c ') HelloWorld Unknown C/C++ Problem Error launching external scanner info generator (sh -c 'gcc -E -P -v - dD D:/Profiles/xtcg76/workspace/.metadata/.plugins/ org.eclipse.cdt.make.core/specs.c ') HelloWorld Unknown C/C++ Problem -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Not sure why my app installs twice (I see two identical ICON's).
When I run my app in the emulator, I see the ICON in the list of programs twice instead of just once like it should be. FYI, This app originated as a copy of an old app, and also, I recently switched from 1.5 to 2.1, so perhaps thats involved. e.g. In the emulator, I see my apps ICON twice. I must have two entries in the manifests or two identical-ish classes or something dumb like that?? Any help appreciated. I can post the code if needed. Merry Christmas, jim, wikispeedia.org -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Issue with HelloWorld.
have you hit MENU on the emulator window? On mine it normally says, Locked, hit MENU to unlock. On Dec 21, 8:04 am, Sanjeev iamsanj...@gmail.com wrote: Hi, I tried to execute a simple Hello World program, but the screen only shows ANDROID irrespective of what string I type. I am not sure how to fix this issue. I am following the code inhttp://developer.android.com/guide/tutorials/hello-world.html package com.android.helloandroid; import android.app.Activity; import android.os.Bundle; *import android.widget.TextView;* public class HelloAndroid extends Activity { /** Called when the activity is first created. */ �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); *TextView tv = new TextView(this); tv.setText(Hello, Android); setContentView(tv);* } } No matter what I set the string I always see only ANDROID string on the simulator. Regards, Sanjeev -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Need follow-me map-example code
thanks, will do -jim On Dec 10, 11:42 am, TreKing treking...@gmail.com wrote: Have you looked at the Hello, MapViewhttp://developer.android.com/intl/zh-CN/guide/tutorials/views/hello-m... and / or MyLocationOverlahttp://code.google.com/android/add-ons/google-apis/reference/index.html y? - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking On Wed, Dec 9, 2009 at 6:56 PM, cellurl gpscru...@gmail.com wrote: Q: Are there any example map apps in the 2.0 SDK? I have the 1.5-SDK and all the jetboy tutorials and such which are fantastic examples. What I need is a map that uses GPS to show where I am at all times... Eg it automagically follows me using GPS. Thanks jim -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Need follow-me map-example code
Q: Are there any example map apps in the 2.0 SDK? I have the 1.5-SDK and all the jetboy tutorials and such which are fantastic examples. What I need is a map that uses GPS to show where I am at all times... Eg it automagically follows me using GPS. Thanks jim -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Why is Google launching Micello on the iPhone?
Why is Google launching Micello on the iPhone? http://news.slashdot.org/story/09/09/30/2052258/Google-Wants-to-Map-Indoors-Too --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] how to change text in a Button
Hi, On the fly, I want to change the text shown in a Button. Q: How do I do that. My teacher held me back a year from Android school ;-) (newbie again) jim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: how to change text in a Button
Heres my code. I don't see a .setText for View. I guess I am confusing button and view. thanks for any help. jp AndroidManifest.xml-- activity android:name=.About25 android:label=@string/about_title android:theme=@android:style/Theme.Dialog /activity ---Translate.java private void findViews // Set up click listeners for all the buttons View aboutButton25 = findViewById(R.id.about_button25); aboutButton25.setOnClickListener(this); broke here ?? if(mph) { aboutButton25.setText(25 Mph); } else { aboutButton25.setText(25 Kph); } } public void onClick(View v) { switch (v.getId()) { case R.id.about_button25: Intent i25 = new Intent(this, About25.class); startActivity(i25); break; } --About25.java--- public class About25 extends Activity { } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: how to change text in a Button
thanks On Sep 15, 11:12 pm, Justin Anderson janderson@gmail.com wrote: Don't make it a View... Make it a Button. Button inherits from TextView.http://developer.android.com/reference/android/widget/Button.html Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Tue, Sep 15, 2009 at 8:01 PM, cellurl gpscru...@gmail.com wrote: Heres my code. I don't see a .setText for View. I guess I am confusing button and view. thanks for any help. jp AndroidManifest.xml-- activity android:name=.About25 android:label=@string/about_title android:theme=@android:style/Theme.Dialog /activity ---Translate.java private void findViews // Set up click listeners for all the buttons View aboutButton25 = findViewById(R.id.about_button25); aboutButton25.setOnClickListener(this); broke here ?? if(mph) { aboutButton25.setText(25 Mph); } else { aboutButton25.setText(25 Kph); } } public void onClick(View v) { switch (v.getId()) { case R.id.about_button25: Intent i25 = new Intent(this, About25.class); startActivity(i25); break; } --About25.java--- public class About25 extends Activity { } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: confusion about bluetooth
How about USB? Can we access USB from Java? -jim On Aug 24, 2:02 pm, gymshoe gyms...@bresnan.net wrote: Ah. Thank you. On Aug 24, 12:58 pm, Mark Murphy mmur...@commonsware.com wrote: The current Android release offers: StereoBluetoothsupport (A2DP and AVCRP profiles) (http://developer.android.com/sdk/android-1.5-highlights.html) However, it has also been stated in the developers forum: There is noBluetoothAPI in the SDK at this time. http://groups.google.com/group/android-developers/browse_thread/threa... So how are theBluetoothA2DP or AVCRP profiles used if there are no BluetoothAPI's? There are noBluetoothAPIs available in the SDK for Java applications. Applications and features built into the firmware have access to bluez. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Spinners
This is a lousy response, but I got all my spinners working by copying/ examining the code in the example program called translate. On my PC its located in c:\user\me\workspaces\translate. -jp On Sep 9, 4:19 am, EverettG egoode...@speakeasy.net wrote: I am creating a Spinner but when it displays in the Emulator it does not display any sort of arrow to let the user know to click on it. If you click on it, it works properly and you can choose from the items. I have looked through Internet resources and three books but cannot seem to find an answer to this. Here are my files: spinner.xml: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent Spinner android:id=@+id/testSpinner android:layout_width=fill_parent android:layout_height=wrap_content android:drawSelectorOnTop=true / Button android:id=@+id/enableToggleButton android:layout_width=fill_parent android:layout_height=wrap_content android:text=Set enable toggle / Button android:id=@+id/changeColorButton android:layout_width=fill_parent android:layout_height=wrap_content android:text=Change Spinner Background Color / /LinearLayout arrays.xml ?xml version=1.0 encoding=utf-8? resources string-array name=months itemJan/item itemFeb/item itemMar/item itemApr/item itemMay/item itemJun/item itemJul/item itemAug/item itemSep/item itemOct/item itemNov/item itemDec/item /string-array /resources TestSpinner.java package com.aapg.AndroidViews; import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.Spinner; public class TestSpinner extends Activity { private int spinnerBackgroundColor = Color.BLUE; //private static final String[] MONTHS = new String[] // {Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec}; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.spinner); //Get a reference to the Spinner. final Spinner testSpinner = (Spinner)findViewById(R.id.testSpinner); testSpinner.setBackgroundColor(Color.BLUE); //Set up the ArrayAdapter. //ArrayAdapterString arrayAdapter = new ArrayAdapterString(this, //android.R.layout.simple_spinner_item, MONTHS); ArrayAdapterCharSequence arrayAdapter = ArrayAdapter.createFromResource(this, R.array.months, android.R.layout.simple_spinner_item); //Set up the DropDownViewResource. arrayAdapter.setDropDownViewResource (android.R.layout.simple_spinner_dropdown_item); //Attach the Spinner to the ArrayAdapter. testSpinner.setAdapter(arrayAdapter); final Button enableToggleButton = (Button)findViewById (R.id.enableToggleButton); enableToggleButton.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { changeEnabled(testSpinner); }//onClick(). });//Button.setOnClickListener(). final Button changeColorButton = (Button)findViewById (R.id.changeColorButton); changeColorButton.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { changeSpinnerBackgroundColor(testSpinner); }//onClick(). });//Button.setOnClickListener(). }//onCreate(). public void changeEnabled(Spinner testSpinner) { if(testSpinner.isEnabled()) { testSpinner.setEnabled(false); }//if(testSpinner.isEnabled()). else { testSpinner.setEnabled(true); }//else. }//changeEnabled(Spinner testSpinner2). public void changeSpinnerBackgroundColor(Spinner testSpinner) { if(spinnerBackgroundColor == Color.BLUE) { testSpinner.setBackgroundColor(Color.YELLOW); spinnerBackgroundColor = Color.YELLOW; }//if(SPINNER_BACKGROUND_COLOR == Color.BLUE) else { testSpinner.setBackgroundColor(Color.BLUE); spinnerBackgroundColor = Color.BLUE; }//else. }//changeSpinnerBackgroundColor(Spinner testSpinner). }//AutoComplete class. Thanks for your help. EverettG. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to
[android-beginners] Re: GPS Programming...
GPS code example. Doesn't display coords, but maybe useful.. http://code.google.com/p/speedlimit/source/browse/trunk/Wikispeedia/src/org/wikispeedia/translate/Translate.java -jp On Sep 4, 2:49 am, Xster x...@xiao-yu.com wrote: Hi, I'm trying to start a GPS program and I'm just trying out the first step to display coordinates as they change. I followedhttp://www.devx.com/wireless/Article/39239and used the LocationManager and LocationListener classes. Code: public class GPSTest extends Activity { /** Called when the activity is first created. */ private TextView text; private LocationManager manager; private LocationListener listener; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); text = (TextView) findViewById(R.id.Text); manager = (LocationManager) getSystemService (Context.LOCATION_SERVICE); listener = new MyLocationListener(); manager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, listener); } private class MyLocationListener implements LocationListener{ public void onLocationChanged(Location location) { // TODO Auto-generated method stub if (location != null){ text.setText(text.getText() + \n + location.getLatitude() + , + location.getLongitude() + - + location.getAccuracy()); } } public void onProviderDisabled(String provider) { // TODO Auto-generated method stub } public void onProviderEnabled(String provider) { // TODO Auto-generated method stub } public void onStatusChanged(String provider, int status, Bundle extras) { // TODO Auto-generated method stub } } } However, once I run the code on the phone, the GPS icon is seen flashing but nothing happens. The method onLocationChanged is never reached (according to breakpoints). What am I doing wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Want to graduate from android-beginners to android-developers
'looks like someone in Ukrane got it working... Maybe you gotta turn on gps or absofrickensomething. http://www.wikispeedia.org/l/maps.html S, where can I buy a reasonably priced android 1.5 phone? chao jp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Want to graduate from android-beginners to android-developers
Thanks Yusuf, It uses your-network to PUSH lat,lon,speed to show up here: http://www.wikispeedia.org/l/maps.html If it seems to be a network/programming issue, perhaps its ok to continue discussion here a little? BTW, it does yell at you if you drive 10 over the limit I only ever ran it on on eclipse, I will try to look in the logs to find you... Q: Perhaps there are some gotcha's in going to a real device? -jp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Get GPS time/date
He means NMEA I believe. Along with latitude and longitude, etc, there is time in GPS strings. http://www.gpsinformation.org/dale/nmea.htm -jim On Aug 31, 9:41 am, Justin Anderson janderson@gmail.com wrote: What exactly do you mean by the GPS time? I haven't done any GPS programming for Android but I would assume the current time/date would not be provided by the GPS API... If you just want the current time, you could use the currentTimeMillis() method but I'm not sure exactly what class that is on. Or you can create a Time object (android.text.format.Time) and call the setToNow() method on it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Want to graduate from android-beginners to android-developers
Hi, With the help of this group I went from 0 -to- submitting to ADC-2, Thanks! Now I have a favor to ask. Can anyone test this app? I am pretty sure in Iowa where I work, there isn't an Android within 100 miles of me. (yea, I need to get off my wallet)... If anyone can test this app, I would be eternally grateful! Rgds, Jim Pruett *.apk here: http://code.google.com/p/speedlimit/downloads/list gpscru...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] How do I keep an application alive?
How do I keep an application alive? e.g. keep the screen bright and everything displays instantly? I have tried these to no avail... pm = (PowerManager) getSystemService(Context.POWER_SERVICE); wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, TAG); wl.acquire(); System.setProperty(DIM_SCREEN,0); Its ok if I waste battery. (my application is tethered). Thanks jp code here http://code.google.com/p/speedlimit/source/browse/trunk/Speedlimit/src/org/speedlimit/Speedlimit.java --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] The server does not accept apks signed with the debug certificate.
I am trying to upload an app to the ADC-2. http://market.android.com/adc/Home#EDIT_APPLICATION: It says my .adk is wrong. The server does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years. The server requires that the certificate used to sign the apk be valid until at least October 22, 2033. Create a new certificate. Q: How do I fix this? I know how to run in eclipse in regular or debug, but I can't figure out how to make eclipse build a release version. FYI, I created my .apk using eclipse-Export button. Thanks for any help! jim pruett --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: The server does not accept apks signed with the debug certificate.
Thanks for that. What I found was that I had 2 apk files workspaces/app.apk workspaces/app/bin/app.apk I was uploading the bin one and instead I needed to upload the top one. It took it. thanks jp On Aug 29, 3:52 pm, Mark Murphy mmur...@commonsware.com wrote: cellurl wrote: I am trying to upload an app to the ADC-2. http://market.android.com/adc/Home#EDIT_APPLICATION: It says my .adk is wrong. The server does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years. The server requires that the certificate used to sign the apk be valid until at least October 22, 2033. Create a new certificate. Q: How do I fix this? I know how to run in eclipse in regular or debug, but I can't figure out how to make eclipse build a release version. FYI, I created my .apk using eclipse-Export button. http://developer.android.com/guide/publishing/app-signing.html#Export... To create a signed .apk, right-click the project in the Package Explorer and select Android Tools Export Signed Application Package. I don't use Eclipse personally, so I cannot get much deeper into the explanation than the public docs. As the section preceding the linked-to one points out, you can test an APK to see what key it was signed with via: jarsigner -verify -verbose -certs my_application.apk If it has CN=Android Debug, it was signed with the debug key. If the CN is your firm, it was probably signed with your production key. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Development Wiki:http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: I am trying to log my gps location to a website.
Thank you very much. You gave me the answer, If you use a function that needs a special permission you don't have in your AndroidManifest.xml it will throw a SecurityException -jp On Aug 19, 4:50 am, Lutz Schönemann lutz.schoenem...@sit.fraunhofer.de wrote: Usually you'll see it in the log files. I allways log the Exception message in addition to the stack trace so you always know what the problem is. If you use a function that needs a special permission you don't have in your AndroidManifest.xml it will throw a SecurityException. If you haven't enclosed the call to that function in a try-block this will cause to stop your application. So you'll see it w/o logging. Hope this helps Am 18.08.2009 um 20:27 schrieb cellurl: I figured it out. I forgot to add INTERNET to the androidManifest.xml file Q: In the future, how would I know that I need to add something to the manifest?? thanks jp- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] I am trying to log my gps location to a website.
I am trying to log my gps location to a website. This code runs, but I don't see any activity in my website log, so anything could be wrong The Log.d() looks good... Thanks for any suggestions. -jp ---http://www.wikispeedia.org/a/ process_submit_bb.php-- $mmlat=$_POST['mlat']; $mmlon=$_POST['mlon']; $mmmph=$_POST['mmph']; $mmtag=$_POST['mtag']; $mmcog=$_POST['mcog']; $query=; echo markers; $query = INSERT INTO signs (lat,lon,mph,cog,tag,hours,submittedOn,email)VALUES ('$mmlat','$mmlon','$mmmph','$mmcog','$mmtag','$mmhours',CURDATE (),'$eemail'); if ($query != ){ $results = mysql_query($query); } --android code-- String latString = Double.toString(myLatitude); String lonString = Double.toString(myLongitude); String speed= Double.toString(55); String name= test-android; String direction= Double.toString(270); Log.d(TAG, latitude= + latString + longitude= + lonString); Log.d(TAG, speed= + speed); try { HttpClient httpclient = new DefaultHttpClient (); ListNameValuePair formparams = new ArrayListNameValuePair(); formparams.add(new BasicNameValuePair(mlat, latString)); formparams.add(new BasicNameValuePair(mlon, lonString)); formparams.add(new BasicNameValuePair(mmph, speed)); formparams.add(new BasicNameValuePair(mtag, name)); formparams.add(new BasicNameValuePair(mcog, direction)); formparams.add(new BasicNameValuePair (mhours, hours)); formparams.add(new BasicNameValuePair (memail, email)); UrlEncodedFormEntity entity = new UrlEncodedFormEntity(formparams, UTF-8); HttpPost httppost = new HttpPost(http:// www.wikispeedia.org/a/process_submit_bb.php); httppost.setEntity(entity); httpclient.execute(httppost); }catch (Exception e) { e.printStackTrace(); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: I am trying to log my gps location to a website.
I figured it out. I forgot to add INTERNET to the androidManifest.xml file Q: In the future, how would I know that I need to add something to the manifest?? thanks jp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Example Lunar Lander crashes gives strange messages
not that this helps, but I am a total newbie and I got lunarlander to work. Try some of the other examples perhaps Sorry I am not more help. On Aug 13, 1:41 pm, JP jan.peter.simon...@gmail.com wrote: Hi everybody, I build Lunar Lander (from the android-1.5 directory) and launched it in the emulator. When i press the home-button while playing, the homescreen is displayed if i start lunar lander again (to get back to the game) it crashes with E/AndroidRuntime( 711): java.lang.IllegalThreadStateException: Thread already started.. (Sidenote: Leaving with the back-button an returning seems to work.) Is that a flaw in the example, or am I doing something wrong? Also while it is running when started normally adb logcat shows the following message periodically: W/SurfaceFlinger( 568): executeScheduledBroadcasts() skipped, contention on the client. We'll try again later... Is this another flaw in the example (maybe incorrect handling of the surface?) Thanks for any enlightenment on those questions. ps: tried googling, but the surfaceFlinger thing only seems to comes up as a sideeffect in crash logs for the emulator. -- jp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Need code sample for double lon= loc.getLongitude();
Thanks for that. I just want one fix one time, not updates. I will try LM, but why can't I use vanilla Location like the API says? (My question is more of a learning one, if there is a more appropriate Class, why shouldn't I use it?) Everyone says GPS is a battery hog, so I just want to get a fix and turn it off as quickly as possible. -jp LocationA class representing a geographic location sensed at a particular time (a fix). LocationManager This class provides access to the system location services. On Aug 10, 12:25 am, Jack Ha jack...@t-mobile.com wrote: You need to use the LocationManager: lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE); -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 9, 9:22 pm, cellurl gpscru...@gmail.com wrote: From GPS, I am trying to get latitude longitude, bearing and speed. Just a one time snapshot. My code is here:http://code.google.com/p/speedlimit/source/browse/#svn/trunk/Speedlim... Pblm: The loc is always 0. Q: Must I initialize the GPS provider somehow?? Any complete code snippet most welcomed... -excerpt from Speedlimit.java--- Gps gps = new Gps(); gps.doit(); --Gps.java package org.speedlimit; import android.app.Activity; import android.location.Location; public class Gps extends Activity { private Location loc; public void doit() { if (loc != null) { double lat= loc.getLatitude(); double lon= loc.getLongitude(); } }} -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Need code sample for double lon= loc.getLongitude();
From GPS, I am trying to get latitude longitude, bearing and speed. Just a one time snapshot. My code is here: http://code.google.com/p/speedlimit/source/browse/#svn/trunk/Speedlimit/src/org/speedlimit Pblm: The loc is always 0. Q: Must I initialize the GPS provider somehow?? Any complete code snippet most welcomed... -excerpt from Speedlimit.java--- Gps gps = new Gps(); gps.doit(); --Gps.java package org.speedlimit; import android.app.Activity; import android.location.Location; public class Gps extends Activity { private Location loc; public void doit() { if (loc != null) { double lat= loc.getLatitude(); double lon= loc.getLongitude(); } } } -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: JetBoy Sample Question
This tutorial shows how to make the switch from landscape to portrait. http://kronox.org/documentacion/Hello_Android.pdf -jim On Aug 5, 12:27 pm, Hamed3d hamed.sa...@gmail.com wrote: I found the answer. it is being done in manifest: android:screenOrientation=[unspecified | user | behind | landscape | portrait | sensor | nonsensor] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Why hello world can't be displayed?
In Eclipse at the bottom, click on the Console - tab. In there it should say launch or something like that. Maybe post the CONSOLE stuff here so we can see whats happening. On Jul 27, 10:21 pm, Pei bec...@gmail.com wrote: Hi, I am trying Hello World as explained in SDK. But why Hello World can't be displayed in my AVD? I always see Android string. Thanks, Pei --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: GridView example
I changed to this, but unfortunately got the same error. gridview.setAdapter(new com.HelloGridView.ImageAdapter(this)); // was ImageAdapter(this)); On Jul 25, 12:00 am, arin arinv1618b...@gmail.com wrote: Hi Cellurl... If your Image Adapter is not defined in the base class then you should not call 'this' in setAdapter()... have you tried setAdapter(new com.HelloGridView.ImageAdapter(this)) ? On Jul 25, 12:08 am, cellurl gpscru...@gmail.com wrote: I think I have the wrong package or import thanks for any help jim My error now is: [2009-07-24 14:03:15 - HelloGridView] trouble processing java/lang/Object.class: [2009-07-24 14:03:15 - HelloGridView] Attempt to include a core VM class in something other than a core library. It is likely that you have attempted to include the core library from a desktop virtual machine into an application, which will most assuredly not work. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine binary, as opposed to compiling an application -- then use the --core-library option to suppress this error message. If you go ahead and use --core-library but are in fact building an application, then please be aware that your build will still fail at some point; you will simply be denied the pleasure of reading this helpful error message. [2009-07-24 14:03:15 - HelloGridView] 1 error; aborting [2009-07-24 14:03:15 - HelloGridView] Conversion to Dalvik format failed with error 1 package com.HelloGridView; import android.app.Activity; import android.os.Bundle; import android.widget.GridView; public class HelloGridView extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); GridView gridview = (GridView) findViewById(R.id.gridview); gridview.setAdapter(new ImageAdapter(this)); } } - package com.HelloGridView; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.ImageView; public class ImageAdapter extends BaseAdapter { private Context mContext; public ImageAdapter(Context c) { mContext = c; } public int getCount() { return mThumbIds.length; } public Object getItem(int position) { return null; } public long getItemId(int position) { return 0; } //create a new ImageView for each item referenced by the Adapter public View getView(int position, View convertView, ViewGroup parent) { ImageView imageView; if (convertView == null) { //if its not recycled, initialize some attributes imageView = new ImageView(mContext); imageView.setLayoutParams(new GridView.LayoutParams(85, 85)); imageView.setScaleType(ImageView.ScaleType.CENTER_CROP); imageView.setPadding(8, 8, 8, 8 ); } else { imageView = (ImageView) convertView; } imageView.setImageResource(mThumbIds[position]); return imageView; } // reference to our images private Integer[] mThumbIds = { R.drawable.sample_2, R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_5, R.drawable.sample_6, R.drawable.sample_7, R.drawable.sample_1, R.drawable.sample_1, R.drawable.sample_2, R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_5, R.drawable.sample_6, R.drawable.sample_7, R.drawable.sample_1, R.drawable.sample_1, R.drawable.sample_2, R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_5, R.drawable.sample_6, R.drawable.sample_7 }; } --- ?xml version=1.0 encoding=utf-8? GridView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/gridview android:layout_width=fill_parent android:layout_height=fill_parent android:numColumns=auto_fit android:verticalSpacing=10dp android:horizontalSpacing=10dp android:columnWidth=90dp android:stretchMode=columnWidth android:gravity=center / - ?xml version=1.0 encoding=utf-8? manifest xmlns:android
[android-beginners] Re: How do I open the sample LunarLander sample Project
thanks for that, I also got snake and jetboy to run. Way cool ! Now, how do I add a simple button? (Thats my learn-task-goal for today ;-) -jim On Jul 23, 10:54 pm, atharva chauthaiwale atharva.c...@gmail.com wrote: hi , Inside eclipse , Go to new-android project and select option create project from existing source and browse to the path of ur sample project. {e.g Lunar lander } :) cheers, Atharva On Thu, Jul 23, 2009 at 9:24 PM, cellurl gpscru...@gmail.com wrote: I am using eclipse. I tried import, I tried copy manifest. Q: How do I open a sample android project in eclipse. I got Hello world to work, so now I am an expert right? thanks jim pruett- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] GridView example
I get an error in the GridView example. Heres my project http://www.wikispeedia.org/HelloGridView.zip In file HelloGridView.java, in the onCreate() method, I get my first error. gridview.setAdapter(new ImageAdapter(this)); My fixit choices are: Cast argument 1 to ListAdapter Let ImageAdapter implement ListAdapter Rename in file. Any help appreciated. jim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: GridView example
I got a little further, so close this out please --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: GridView example
I think I have the wrong package or import thanks for any help jim My error now is: [2009-07-24 14:03:15 - HelloGridView] trouble processing java/lang/Object.class: [2009-07-24 14:03:15 - HelloGridView] Attempt to include a core VM class in something other than a core library. It is likely that you have attempted to include the core library from a desktop virtual machine into an application, which will most assuredly not work. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine binary, as opposed to compiling an application -- then use the --core-library option to suppress this error message. If you go ahead and use --core-library but are in fact building an application, then please be aware that your build will still fail at some point; you will simply be denied the pleasure of reading this helpful error message. [2009-07-24 14:03:15 - HelloGridView] 1 error; aborting [2009-07-24 14:03:15 - HelloGridView] Conversion to Dalvik format failed with error 1 package com.HelloGridView; import android.app.Activity; import android.os.Bundle; import android.widget.GridView; public class HelloGridView extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); GridView gridview = (GridView) findViewById(R.id.gridview); gridview.setAdapter(new ImageAdapter(this)); } } - package com.HelloGridView; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.ImageView; public class ImageAdapter extends BaseAdapter { private Context mContext; public ImageAdapter(Context c) { mContext = c; } public int getCount() { return mThumbIds.length; } public Object getItem(int position) { return null; } public long getItemId(int position) { return 0; } //create a new ImageView for each item referenced by the Adapter public View getView(int position, View convertView, ViewGroup parent) { ImageView imageView; if (convertView == null) { //if its not recycled, initialize some attributes imageView = new ImageView(mContext); imageView.setLayoutParams(new GridView.LayoutParams(85, 85)); imageView.setScaleType(ImageView.ScaleType.CENTER_CROP); imageView.setPadding(8, 8, 8, 8 ); } else { imageView = (ImageView) convertView; } imageView.setImageResource(mThumbIds[position]); return imageView; } // reference to our images private Integer[] mThumbIds = { R.drawable.sample_2, R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_5, R.drawable.sample_6, R.drawable.sample_7, R.drawable.sample_1, R.drawable.sample_1, R.drawable.sample_2, R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_5, R.drawable.sample_6, R.drawable.sample_7, R.drawable.sample_1, R.drawable.sample_1, R.drawable.sample_2, R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_5, R.drawable.sample_6, R.drawable.sample_7 }; } --- ?xml version=1.0 encoding=utf-8? GridView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/gridview android:layout_width=fill_parent android:layout_height=fill_parent android:numColumns=auto_fit android:verticalSpacing=10dp android:horizontalSpacing=10dp android:columnWidth=90dp android:stretchMode=columnWidth android:gravity=center / - ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.HelloGridView android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.HelloGridView 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 uses-sdk android:minSdkVersion=3 / /manifest - --~--~-~--~~~---~--~~ You received this message because you are
[android-beginners] Re: Tutorial for using Android SDK samples with Eclipse
I am sorry if this posts twice. I dont see my post, so here goes again. I loaded lunar lander sample exactly as you described above. Thanks for that! It says I have errors. How do I identify and fix them? thanks jim On Jul 6, 2:00 pm, Kent Loobey k...@uoregon.edu wrote: On Monday 06 July 2009 09:54:59 Roman wrote: In your Eclipse Menu go to File --Android Project which opens a new window. File -- New -- Project... -- Android Project Select in the Contents section Create project from existing source. Now you can specify in the section called Location where to pick up your existing project (in this case thesampleapplications). For example the samples on my system are located at android-sdk-mac_x86-1.5_r1/platforms/android-1.5/samples/ApiDemos Now specify for which target you want to build (for example Android 1.5). If everything works fine, you should be able to click on the Finish button to create your Android project with the Androidsamplecode. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 3, 1:27 pm, Brian Jorgenson bjorgenst...@gmail.com wrote: How do Iusethe android SDK samples with eclipse? Anything I try results in horrible failure, the import dialog fails to find the projects even though I navigated straight to them, so I tried making a new project from existing source and it said Invalid project description I can't find any useful information on how to work with the IDE and get started, all I can do successfully is make new projects from scratch- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] How do I open the sample LunarLander sample Project
I am using eclipse. I tried import, I tried copy manifest. Q: How do I open a sample android project in eclipse. I got Hello world to work, so now I am an expert right? thanks jim pruett --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Tutorial for using Android SDK samples with Eclipse
I did what you said above, thanks for that. Q: I try to run [lunarlander]. It says, must-fix-errors first. How do I fix the errors? thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Does G1 have GPS?
lat, lon, cog, knots Does it have this? thanks jim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---