[android-developers] Re: How do you compile the bundled apps that comes with the Android source code
Assuming you have downloaded the open source project and you can build it using the given instructions: 1. Make sure you're cd'd into the android/ directory 2. Type . build/envsetup.sh 3. Type lunch 1 4. Type mmm packages/apps/Email Exercise left to the reader as to what each of these commands does. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Keeping a service alive?
It's a huge huge waste of resources for you to have the system keep your app running forever to just have a timer go off every 5 minutes or more. Please use the alarm manager instead. On Oct 27, 10:24 pm, Eric B [EMAIL PROTECTED] wrote: I have created a service that runs a Timer and TimerTask. That timer may fire every 5 minutes to 4 hours, depending on the user's settings. My problem is that my service eventually gets destroyed. Is there a setting to keep it alive, or someway to tell the OS to restart it once enough resources are available? In addition, I'm not sure my implementation is the most sound. What's the best way run a TimerTask as a background process? Thanks, Eric --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to debug the source code using Eclipse
[ Note, this mailing list is intended for app development, typically using the SDK. Questions about building or debugging the open source release may get better answers discussion in one of android-platform, android-framework, or android-porting. But since we're here ] There is an eclipse .classpath file in android/development/ide/eclipse/. You can use this to set up a project, as follows: 1. Download open source and do a complete build cycle. Deal with any errors or tool problems before continuing. 2. Copy android/development/ide/eclipse/.classpath to android/.classpath 3. In eclipse, select New Java Project (not Android) 4. Tell it to use existing sources and point it at your android/ folder. Eclipse should set up a project with a long string of packages. It will take a while the first time (Eclipse will recompile everything using its own toolchain) but when it's done, you should see all of the Java sources available and 0 errors in the problems view. Debugging requires some additional steps which I don't want to describe here (I'm not in front of a running system and I don't want to describe something incorrectly). --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] G1 Bug: Google Imported Primary Phones
I just noticed that contacts imported from GMail do not include a default/primary flag on any of the associated phone numbers. This seems counter to the android framework, since when I input a phone number manually on the phone, a phone number is automatically flagged as the primary phone number. Can anyone suggest any work-arounds, from the perspective of Contacts.Phone client that is relying on the primary flag for some functionality? I want to include at least one phone number for every contact in a query, preferring the primary if available. At this point, I'm guessing I'm going to have to manually filter a Cursor that does not include the isprimary==1 selection. Anm --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: g1 keyboard missing up/down/left/right keys?
Center pressing on the trackball is remapped to DPAD center if nobody handled it themselves. This is why you can long press on the trackball all over the UI to bring up the context menu. On Oct 27, 8:13 pm, s d [EMAIL PROTECTED] wrote: How do we bring up context menu when there is no D-Pad Center? Holding down the trackball didn't seem to work for me. Thanks! On Mon, Oct 27, 2008 at 5:04 PM, hackbod [EMAIL PROTECTED] wrote: They are translated, but of course it will be a quick down/up pair. Snake should work; Lunar Lander not so well since it relies on you holding down the button which you can't do with a trackball. On Oct 27, 12:58 pm, Ed [EMAIL PROTECTED] wrote: Dear Mark, Thanks for your message. Are you saying that when you install LunarLander on your G1 device, you can steer left and right using the trackball? Because it sure doesn't work for me, or other G1 users in my office. Please try it out and let me know. Thanks, --Ed On Oct 27, 9:59 am, Mark Murphy [EMAIL PROTECTED] wrote: Ed wrote: I had the same problem with the Lunar Lander application. Someone on this group told me that the D-Pad events are supposed to be handled by the trackball, but this is definitely not happening. Sure it is. If nothing handles onTrackballEvent(), it translates the events into KeyEvent instances and calls onKeyEvent(). It works just fine. Well, other than the fact that I find the trackball to be less precise than a D-pad for things that actually try using these events. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.3 Published! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: java.io.IOException: Couldn't open /data/data/com.basic.ui/cache_/data.xml (parser problem)
hi, sorry for late reply... the code is :- SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp = spf.newSAXParser(); XMLReader xr = sp.getXMLReader(); ServicesXMLParser parser = new ServicesXMLParser(con, this); xr.setContentHandler(parser); try { //this is the path where the xml has been downloaded, if got java.io.IOException occur, will then parse directly using url address xr.parse(new InputSource(path)); } catch (Throwable e) { xr.parse(new InputSource(addXML)); } hope this will address my problem more clearly... thanks. have a nice day. wesley. On Sat, Oct 25, 2008 at 2:43 AM, Justin (Google Employee) [EMAIL PROTECTED]wrote: Ummm, can you post your code? Its impossible to know what might be going wrong without any code. Also, do you own the basic.com domain? Cheers, Justin Android Team @ Google On Oct 20, 2:10 am, Wesley Sagittarius [EMAIL PROTECTED] wrote: hi all, I want to download a xml file from internet and store it in my app dir... I manage to download it... but... I cannot parser due to the error below... 09-30 05:41:09.305: INFO/WESLEY(2340): java.io.IOException: Couldn't open /data/data/com.basic.ui/cache_/data.xml any one got this exception before??? how to solve it??? wesley. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: g1 keyboard missing up/down/left/right keys?
Thank you very much for your comment! My code was handling MotionEvent in onTrackballEvent(), which is why context menu never showed up. On Mon, Oct 27, 2008 at 11:19 PM, hackbod [EMAIL PROTECTED] wrote: Center pressing on the trackball is remapped to DPAD center if nobody handled it themselves. This is why you can long press on the trackball all over the UI to bring up the context menu. On Oct 27, 8:13 pm, s d [EMAIL PROTECTED] wrote: How do we bring up context menu when there is no D-Pad Center? Holding down the trackball didn't seem to work for me. Thanks! On Mon, Oct 27, 2008 at 5:04 PM, hackbod [EMAIL PROTECTED] wrote: They are translated, but of course it will be a quick down/up pair. Snake should work; Lunar Lander not so well since it relies on you holding down the button which you can't do with a trackball. On Oct 27, 12:58 pm, Ed [EMAIL PROTECTED] wrote: Dear Mark, Thanks for your message. Are you saying that when you install LunarLander on your G1 device, you can steer left and right using the trackball? Because it sure doesn't work for me, or other G1 users in my office. Please try it out and let me know. Thanks, --Ed On Oct 27, 9:59 am, Mark Murphy [EMAIL PROTECTED] wrote: Ed wrote: I had the same problem with the Lunar Lander application. Someone on this group told me that the D-Pad events are supposed to be handled by the trackball, but this is definitely not happening. Sure it is. If nothing handles onTrackballEvent(), it translates the events into KeyEvent instances and calls onKeyEvent(). It works just fine. Well, other than the fact that I find the trackball to be less precise than a D-pad for things that actually try using these events. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.3 Published! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: T-mobile G1 for testing purposes
This could be FUD, as the G1 is reported to have “quad-band GSM plus dual-band UMTS, which means it will work abroad [i.e. outside US] as well“. It turns out that 3G standards are a bit complex: http://www.three-g.net/3g_standards.html Although I do use a T-Mobile Germany laptop PCMCIA 3G card (presumably UMTS), and the connection speeds aren’t that bad: http://www.3gnewsroom.com/3g_news/feb_06/news_6661.shtml Could someone who knows comment on this? (I.e. how well a US or even UK optimised unlocked G1 would work in my country) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google maps not working on G1
I have solved the problem. After going back and carefully re-reading the publish and signing docs, I realized I had made a big mistake. What I was doing wrong was I was using jarsigner on the .apk file that was being automatically built by eclipse. This is incorrect. Here is the correct way to do it (as per the instructions in the publish and signing docs). 1) right click on your project in the left package pane and select Android Tools Export Unsigned Application Package 2) use jarsigner to sign the package you have just manually created 3) use adb install to install the package on the phone (don't forget to install the android usb drivers, only do this once) This tricky little error took me hours to figure out. I'm sure it's going to mess up developers for years to come... That will teach me to RTFM more carefully. Nick --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Possible bug in Market? (about versionCode)
Have you used Project / Clean... in Eclipse before rebuilding your file? Sometimes changes in the Manifest are not updated properly. Peli On Oct 28, 9:50 am, Teo [EMAIL PROTECTED] wrote: No one has any idea what might be the problem? Currently users which will bump into this bug will render the app useless, so the faster i'm able to upgrade, the better. Please help :) On Oct 27, 10:04 pm, Teo [EMAIL PROTECTED] wrote: I get the following error when i try to upload a new .apk: The new apk's versionCode (1) in AndroidManifest.xml must be higher than the old apk's versionCode (1). But the version code is set to 2. Is this a bug with someone, or just 'by design' until the comments/ratings bug is fixed? Thanks, Teo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google maps not working on G1
So you can save on FedEx to Mountain View now ;) ? Anyways this is very helpful info for those (like me) who are not familiar with Android for Eclipse. jarsigner refuses to sign already signed apk (that is in-fact .jar file). What I did before was compiling in debug mode (with debug key) then manually erasing key info from the .apk and then signing it with jarsigner. It will save me lot of time, thanks nick On Oct 28, 2:12 am, nick fox [EMAIL PROTECTED] wrote: I have solved the problem. After going back and carefully re-reading the publish and signing docs, I realized I had made a big mistake. What I was doing wrong was I was using jarsigner on the .apk file that was being automatically built by eclipse. This is incorrect. Here is the correct way to do it (as per the instructions in the publish and signing docs). 1) right click on your project in the left package pane and select Android Tools Export Unsigned Application Package 2) use jarsigner to sign the package you have just manually created 3) use adb install to install the package on the phone (don't forget to install the android usb drivers, only do this once) This tricky little error took me hours to figure out. I'm sure it's going to mess up developers for years to come... That will teach me to RTFM more carefully. Nick --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: T-mobile G1 for testing purposes
Hi Hong, how can I unlock it in US? And what about You can buy a G1 here..., do you refer to the 399$ G1? I've been told they don't sell it in T-Mobile stores. Anyway, if it si unlocked either the 3G and the EDGE will work On Oct 27, 8:10 pm, Hong [EMAIL PROTECTED] wrote: You can buy a G1 here in US, and unlock it. You can use GSM calls/sms, wifi at your country. 3G will obviously not work. EDGE might. But wifi should be good enough. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Implementing a custom Suggestions Provider
On 26 Paź, 23:41, shotwave [EMAIL PROTECTED] wrote: Hi, I am trying to implemente a customsuggestionproviderwhich will allow to promt user in selecting email addresses. Unfortunately no matter what I do I keep getting the '10-26 22:22:02.871: WARN/SearchDialog(565): Suggestions cursor discarded due to missing required columns.' message in console, though looks like I have specified all the possible columns in the resulting cursor... final MatrixCursor result = new MatrixCursor(new String[] { SearchManager.SUGGEST_COLUMN_FORMAT, SearchManager.SUGGEST_COLUMN_TEXT_1, SearchManager.SUGGEST_COLUMN_TEXT_2, SearchManager.SUGGEST_COLUMN_ICON_1, SearchManager.SUGGEST_COLUMN_ICON_2, SearchManager.SUGGEST_COLUMN_INTENT_ACTION, SearchManager.SUGGEST_COLUMN_INTENT_DATA, SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID, SearchManager.SUGGEST_COLUMN_QUERY, SearchManager.SUGGEST_MIME_TYPE, SearchManager.SUGGEST_URI_PATH_QUERY}); // fill the cursor using addRow(Object[]) return result; what am I doing wrong? i think you missed column _id skink --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Implementing a custom Suggestions Provider
On 28 Paź, 11:15, skink [EMAIL PROTECTED] wrote: On 26 Paź, 23:41, shotwave [EMAIL PROTECTED] wrote: Hi, I am trying to implemente a customsuggestionproviderwhich will allow to promt user in selecting email addresses. Unfortunately no matter what I do I keep getting the '10-26 22:22:02.871: WARN/SearchDialog(565): Suggestions cursor discarded due to missing required columns.' message in console, though looks like I have specified all the possible columns in the resulting cursor... final MatrixCursor result = new MatrixCursor(new String[] { SearchManager.SUGGEST_COLUMN_FORMAT, SearchManager.SUGGEST_COLUMN_TEXT_1, SearchManager.SUGGEST_COLUMN_TEXT_2, SearchManager.SUGGEST_COLUMN_ICON_1, SearchManager.SUGGEST_COLUMN_ICON_2, SearchManager.SUGGEST_COLUMN_INTENT_ACTION, SearchManager.SUGGEST_COLUMN_INTENT_DATA, SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID, SearchManager.SUGGEST_COLUMN_QUERY, SearchManager.SUGGEST_MIME_TYPE, SearchManager.SUGGEST_URI_PATH_QUERY}); // fill the cursor using addRow(Object[]) return result; what am I doing wrong? i think you missed column _id i mean android.provider.BaseColumns._ID skink skink --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Go from one Screen to another screen
I am Begginer for the Android and I want to Go from One Screen to Another Screen But i dont undestand How it is possible plz give me a code for that. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Go from one Screen to another screen
You might consider the [EMAIL PROTECTED] mailinglist. As for the answer - different screens are Activities in Android. To move from one screen to another, you are technically moving from an activity to another - eg starting a new Activity. Navigating between Activities is done by sending Intents. One way to do it is by calling startActivity(Intent intent) in the first activity. For example yourActivity.startActivity(new Intent(this, NewActivity.class)); Read about Activities here: http://code.google.com/android/reference/android/app/Activity.html and about Intents here: http://code.google.com/android/reference/android/content/Intent.html Tauno On Tue, Oct 28, 2008 at 12:55 PM, Rahul [EMAIL PROTECTED] wrote: I am Begginer for the Android and I want to Go from One Screen to Another Screen But i dont undestand How it is possible plz give me a code for that. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Run function when EditText text changed
Yes, you are correct. (You can also create your own class that implements OnTabChangeListener like this: public class TabChangeListener implements OnTabChangeListener { public void onTabChanged(String tabID) { // XXX do something } } and then use it: TabChangeListener listener = new TabChangeListener(); tabHost.setOnTabChangeListener(listener); that goes for all cases of using interfaces :) ) Tauno On Mon, Oct 27, 2008 at 7:10 PM, David [EMAIL PROTECTED] wrote: So that's how I use the TextWatcher...Ok, it works perfectly! Thanks tauntz! (Am I correct in assuming this is how to use the tabHost.setOnTabChangeListener()?) On Oct 26, 12:39 pm, tauntz [EMAIL PROTECTED] wrote: http://code.google.com/android/reference/android/widget/TextView.html...) Example: editText.addTextChangedListener(new TextWatcher() { public void afterTextChanged(Editable s) { //XXX do something } public void beforeTextChanged(CharSequence s, int start, int count, int after) { //XXX do something } public void onTextChanged(CharSequence s, int start, int before, int count) { //XXX do something } }); Tauno On Sun, Oct 26, 2008 at 9:33 PM, David [EMAIL PROTECTED] wrote: I want to run a function when the text in an EditText is changed. How would I do this? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] ContentProvider chaining
Hi, is there a way to implement content provider chaining? I need something that works like this: - I install a provider which has similar scheme/paths as a known provider - when invoked, I perform some pre-processing - then invoke an old provider - do some post-processing - return results This is necessary for filtering and extending existing data sources with some useful content (some special attributes on people from contacts). Thanks. Denis --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] access to getprop from Java?
Is there any way to access the system properties (as listed by getprop) from within Java on Android? thanks, Ray --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: access to getprop from Java?
Not a supported way AFAIK. Currently you can use something like this (modified and taken from http://groups.google.com/group/android-developers/browse_thread/thread/2572d2da0d75de08) private void getProperties() { try { ArrayListString processList = new ArrayListString(); String line; java.lang.Process p = Runtime.getRuntime().exec(getprop); BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream())); while ((line = input.readLine()) != null) { System.out.println(line); //-- Parse data here. processList.add(line); } input.close(); } catch (Exception err) { err.printStackTrace(); } } But as hackbod said: that is not something that is part of the SDK and so you have no guarantees of it working on future releases or other phones. Tauno On Tue, Oct 28, 2008 at 2:07 PM, Ray Bellis [EMAIL PROTECTED] wrote: Is there any way to access the system properties (as listed by getprop) from within Java on Android? thanks, Ray --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can I specify message body part in SMS intent?
I'm looking for the same thing, but I just want to start the built-in SMS application with a forwarded destionation number. How do I do that? //HTP --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AlertDialog Question
you need to use AndroidPhoneDialer.this On Oct 27, 10:44 pm, disappearedng [EMAIL PROTECTED] wrote: I have tried using this and it didn't work for me. Could you give me an example in my context? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Updating Imageviews During functions
Some more info: I declared a handler in my class: private Handler mHandler = new Handler(); Then added my runnable private Runnable mUpdateTimeTask = new Runnable() { public void run() { updateDisplay.sendEmptyMessage(0); } }; and have a handler that does my update... private Handler updateDisplay = new Handler() { public void handleMessage(Message msg) { // ImageView update is here... } }; The image views are still not updating from what I can tell until the rest of the activity completes. I've tried variations implementing runnable and spawning threads (which works well with progress dialogs) and still can't get it to work. Basically I want to quickly change some ImageViews almost like an animation or a clock in with an activity.. is there a better method of doing this? Thanks, Mark On Oct 27, 5:44 pm, Mark Hansen [EMAIL PROTECTED] wrote: I have some image views I'd like to update as somethings change in a function in an activity. I can't seem to get them to refresh, at least not in away that appears visible on the phone. I've tried running them in a seperate thread, and even from that thread using a custom handler to do the image update, but still no dice. Anyone have any tips for doing this? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: give-up screen (going to sleep)
I see... I guess more specifically.. if I use Thread.sleep(100); will the thread wake up 1000 seconds later if the phone is asleep? or must I use the AlarmManager to do something like this? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems writing to SD card of physical T-Mobile G1?
Hello all, I'm new to android development. I hope I could find some answer regarding sdcard. I'm trying to access a custom SQlite db file from my emulated SDCARD. The same db file can be access from the application databases folder but not from sdcard. In debug mode I have an android.database.sqlite.SQLiteDiskIOException: disk I/O error exception when trying to open database via : SQLiteDatabase.openDatabase(/sdcard/myDB.db, null, SQLiteDatabase.OPEN_READONLY); Could someone help me please ? I've look for this issue on the net but no succeed. Thanks. Thao --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Somehow get RandomAccessFile from getAsset
I am trying to get a RandomAccessFile from either Resources.openRawResource() or getAsset(). I cannot find a direct way to get one. I have been focused on this task for the last few hours and have found nothing of use. Does anyone know how I can somehow get a RandomAccessFile from getAsset()? Thank you --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to format data within Cursor before displaying to screen?
Hello, I am working on an application that involves displaying dates from my database. I have the dates formatted within my database using the ISO8601 format: -MM-dd'T'HH:mm:ss.SSS. I run my query which returns a cursor. I then map the DATE field within the cursor to my TextView. My issue is that the date is still formatted as -MM- dd'T'HH:mm:ss.SSS. My plan was to convert it back to a Date object and format it as I like, but I don't see where I can intercept the value from the cursor before it is displayed on the TextView... any ideas? Thanks, Vince --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] how to read the trace file
Hi all: Now I create a trace file by emulator -trace xxx, but I don't know how to read it. Could you help me? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: mime handler with inline content disposition
I am stuck with the same problem: Starting up my application when a specific mime has been downloaded. Did you manage to get it work? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Issue with installing ADT for Eclipse Ganymede 3.4
I'm getting this error now. Also using Ubuntu, Sun-Java-6. Ever solve this, Frantz? =/ On Oct 5, 5:23 pm, Fräntz Miccoli [EMAIL PROTECTED] wrote: Nobody has an idea ? On 4 oct, 14:42, Fräntz Miccoli [EMAIL PROTECTED] wrote: Yeah, i've realized after post that the problem wasn't the same. I've tried to use the archive in order to install and i got this when I'm trying to make a new Android project : Plug-in com.android.ide.eclipse.adtwas unable to load class com.android.ide.eclipse.adt.project.internal.NewProjectWizard. An error occurred while automatically activating bundle com.android.ide.eclipse.adt(581). When I want to set the parameters of the plugin I got a new error : Unable to create the selected preference page. An error occurred while automatically activating bundle com.android.ide.eclipse.adt(581). Any idea around all this problem ? I found nothing around troubleshooting that could be helpful Thank you Fräntz On 4 oct, 14:18, Charlie Collins [EMAIL PROTECTED] wrote: The issue with updating via the update site is different. For that one, make sure you have tried the troubleshooting steps in the install doc: http://code.google.com/android/intro/installing.html. Note that if you can't get to the update site, you can usually still download the plugin locally and install it as a local archive (see the troubleshooting section). On Oct 4, 7:21 am, Fräntz Miccoli [EMAIL PROTECTED] wrote: I got the same problem... The path given on android website is :https://dl-ssl.google.com/android/eclipse/ This give me an error in my firefox browser, is this a problem that came from google's server ? On 20 sep, 04:04, Trevor [EMAIL PROTECTED] wrote: I'm having this issue as well, only after having installed everything just today to start developing. Using Ubuntu Hardy Eclipse SDK Version: 3.2.2 Build id: M20070212-1330 (Ubuntu version: 3.2.2-5ubuntu2) Update Manager for Eclipse also seems to be taking an eternity to run as well. Perhaps the issues are linked? On Sep 19, 2:35 am, Sidhartha [EMAIL PROTECTED] wrote: Hi All, I am trying to insatll theADTplug-in for Eclipse Ganymede 3.4 using the archive path. I had provided the archive for installing theADT. It gives me an error stating some resource files are missing. When i try to create a new project i get the following error: The selected wizard could not be started. Plug-in com.android.ide.eclipse.adtwas unable to load class com.android.ide.eclipse.adt.project.internal.NewProjectWizard. com/android/ide/eclipse/adt/project/internal/NewProjectWizard (Unsupported major.minor version 49.0) This was working till Sep 17th, not sure i some new version's been released. Could someone provide some pointers as how to solve this issue. Thanks, Sidhartha --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Button press (vs. release) callback?
I'm using setOnClickListener() for my buttons, but I also need a way to get a method called when the button is first pressed (touched), in addition to on release. Is there any easy way to do that? I didn't see anything obvious in the API docs, so I went digging through the source code, and it looks like this stuff happens all the way up in the View class. Do I have to override onTouchEvent() to deal with this? At first I thought maybe overriding setPressed() might be a good way to deal with it, but it turns out that various methods in View set the pressed state (in mPrivateFlags) directly rather than calling setPressed(). It also seems like responsibility for determining whether a click or long click has happened should be done in setPressed(), rather than separately in onKeyUp() and onTouchEvent(). These seem like design flaws, but maybe there are good reasons for them that aren't evident to me yet. Eric --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is BrowserCallback missing in my SDK or does it not exist?
WebViewClient is the new interface which replaced the old BrowserCallback. If you attach a WebViewClient to your WebView and make sure to { return false; } for shouldOverrideUrlLoading. The url will be loaded in your WebView instead of the platform choice, Browser. On Oct 24, 1:01 pm, Obormot [EMAIL PROTECTED] wrote: Guys, I found WebViewClient interface, which is probably a replacement for theBrowserCallback, but I couldn't figure out how to override the url loading... What happens is once I click on a URL inside a page opened in my WebView it takes me to the standard browser. Instead, I'd like to load that URL in my WebView. Is there a way to do that? Sincerely, Andriy Trubka. On Oct 23, 7:20 pm, Obormot [EMAIL PROTECTED] wrote: Hi, guys. I apologize for the rather dumb question. I'm trying to use WebView with theBrowserCallbackto handle URL loading. I see tons of examples and documentation on the internet, but I don't see this class in my SDK. I tried to find out whether this is newest addition or it's been removed, but no luck so far. So I decided to ask you, guys. I'm using the SDK from the following archive: android-sdk-windows-1.0_r1.zip and it doesn't have that class. There's something with similar API called CallbackProxy, but it's package local and not used in public WebView API. Thank you in advance. Sincerely, Andriy Trubka. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Sending DTMF
Then what is the point of this class? On Oct 6, 9:46 pm, j [EMAIL PROTECTED] wrote: I assume you are trying to generate tones for uplink audio path. TheToneGeneratorAPI states that: This API is not for generating tones over the uplink audio path. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] First Run Method
I am trying to have the typical first run message that prompts the user to accept a contract and then I want it to populate my database with some initial values. I was thinking about adding a table to the database, setting a single value to zero in that table, and then when the user clicks 'ok' set it to 1, but that's probably a bit much. How do you all check to see if it's the first run? Thanks! -fREW --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem with the onUpdate method of an SQLiteOpenHelper
Ok, so everything that I've been doing with my db has been fine until I changed it. I made sure that the onUpgrade was right and I get errors nonetheless. Here is my method: @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(DROP TABLE IF EXISTS + TABLE_NAME); db.execSQL(DROP TABLE IF EXISTS + FIRST_RUN_TABLE); onCreate(db); } and here is the error: android.database.sqlite.SQLiteException: Can't upgrade read-only database from version 1 to 2 I can't seem to find my error. Can you tell what I am doing wrong here? Thanks! -fREW --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Invoking the web browser from my app
How can I invoke the web browser from my app? For example, when i click an item in my ListView I want to open a web browser with a specific URL. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Help with cross compile of Android for G1 and flashing the image
Android Developers, I am looking for any help I can get regarding flashing my G1 with new firmware. I don't trust factory firmware on any device. I would like to check out Android and the Linux kernel from git, cross compile them, and then flash a new image to the G1. I have had no success with web and group searches. Does anyone out there even know how the factory flashed the G1? Was it usb, jtag, or a proprietary interface? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Updating Imageviews During functions
Opps.. I start the Runnable with the following: mHandler.post(mUpdateTimeTask); forgot to add that.. On Oct 28, 10:12 am, Mark Hansen [EMAIL PROTECTED] wrote: Some more info: I declared a handler in my class: private Handler mHandler = new Handler(); Then added my runnable private Runnable mUpdateTimeTask = new Runnable() { public void run() { updateDisplay.sendEmptyMessage(0); } }; and have a handler that does my update... private Handler updateDisplay = new Handler() { public void handleMessage(Message msg) { // ImageView update is here... } }; The image views are still not updating from what I can tell until the rest of the activity completes. I've tried variations implementing runnable and spawning threads (which works well with progress dialogs) and still can't get it to work. Basically I want to quickly change some ImageViews almost like an animation or a clock in with an activity.. is there a better method of doing this? Thanks, Mark On Oct 27, 5:44 pm, Mark Hansen [EMAIL PROTECTED] wrote: I have some image views I'd like to update as somethings change in a function in an activity. I can't seem to get them to refresh, at least not in away that appears visible on the phone. I've tried running them in a seperate thread, and even from that thread using a custom handler to do the image update, but still no dice. Anyone have any tips for doing this? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Issue accessing DB from SDCARD
Hi all. I'm new to android development. I'm trying to access a sqlite3 custom DB from SDcard emulation. When opening the database with SQLiteDatabase.openDatabase(/sdcard/ MyDB.db, null, SQLiteDatabase.OPEN_READONLY) I got : android.database.sqlite.SQLiteDiskIOException: disk I/O error. Is there any permission to grant the application to write on sdcard ? Am I missing something ? Please advise. Thank. Thao --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Userspace Hardware Abstraction layer
I got to know that android is using a userspace HAL to avoid GPL complications with linux kernel. Can any one give more brief understanding on it? So if you want to port android to a specific hardware do we need to make any changes in this userspace HAL? if yes what are the changes we have to make and where we have to make? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] New site offering free android apps
check out http://www.androidapps.org/ for free app downloads. pretty nice selection of apps.. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] g1phone
why cant i put my music and pics on the new g1 phone it wont let me do anything are there drivers yhat i need to down load? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can I specify message body part in SMS intent?
You can try this for destination number only: Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(sms:1234567890)); startActivity(i); On Oct 28, 6:04 am, HTP [EMAIL PROTECTED] wrote: I'm looking for the same thing, but I just want to start the built-inSMSapplication with a forwarded destionation number. How do I do that? //HTP --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Keeping a service alive?
Perfect, that's what I was looking for. Thanks for your help. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: g1phone
This post does not belong here. It should be in [android-beginners] please do not post requests for non-development help in this forum. [EMAIL PROTECTED] wrote: why cant i put my music and pics on the new g1 phone it wont let me do anything are there drivers yhat i need to down load? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Invoking the web browser from my app
On Oct 28, 2:20 am, lopan [EMAIL PROTECTED] wrote: How can I invoke the web browser from my app? For example, when i click an item in my ListView I want to open a web browser with a specific URL. I don't have my code handy because I'm at work, but you do it with the VIEW intent. Look up intents in the api. If you haven't figured it out in about 7 hours let me know and I'll give you exact code. -fREW --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Updating Imageviews During functions
ImageView, like all subclass of View, cannot be called from any thread other than the UI thread. That said, what is the update you are try to do? On Oct 28, 2008, at 10:24 AM, Mark Hansen wrote: Opps.. I start the Runnable with the following: mHandler.post(mUpdateTimeTask); forgot to add that.. On Oct 28, 10:12 am, Mark Hansen [EMAIL PROTECTED] wrote: Some more info: I declared a handler in my class: private Handler mHandler = new Handler(); Then added my runnable private Runnable mUpdateTimeTask = new Runnable() { public void run() { updateDisplay.sendEmptyMessage(0); } }; and have a handler that does my update... private Handler updateDisplay = new Handler() { public void handleMessage(Message msg) { // ImageView update is here... } }; The image views are still not updating from what I can tell until the rest of the activity completes. I've tried variations implementing runnable and spawning threads (which works well with progress dialogs) and still can't get it to work. Basically I want to quickly change some ImageViews almost like an animation or a clock in with an activity.. is there a better method of doing this? Thanks, Mark On Oct 27, 5:44 pm, Mark Hansen [EMAIL PROTECTED] wrote: I have some image views I'd like to update as somethings change in a function in an activity. I can't seem to get them to refresh, at least not in away that appears visible on the phone. I've tried running them in a seperate thread, and even from that thread using a custom handler to do the image update, but still no dice. Anyone have any tips for doing this? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Issue accessing DB from SDCARD
Do you actually have an SD card in the emulator? (By default there is no SDcard in the emulator. You first need to create an SDcard with mksdcard.exe (in tools), then mount it when starting the emulator (with -sdcard mysdcard.iso or something similar in the emulator options). If this might be it, please read http://www.mail-archive.com/android-developers@googlegroups.com/msg08608.html for some more info.) Ludwig 2008/10/28 Thao [EMAIL PROTECTED] Hi all. I'm new to android development. I'm trying to access a sqlite3 custom DB from SDcard emulation. When opening the database with SQLiteDatabase.openDatabase(/sdcard/ MyDB.db, null, SQLiteDatabase.OPEN_READONLY) I got : android.database.sqlite.SQLiteDiskIOException: disk I/O error. Is there any permission to grant the application to write on sdcard ? Am I missing something ? Please advise. Thank. Thao --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Userspace Hardware Abstraction layer
This list [android-developers] is intended primarily for app developers (users of the SDK). You'll probably find more help and better answers for your question on the [android-porting] mailing list. Details here: http://source.android.com/discuss --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: First Run Method
One option is do to it in preferences. I have something where if the application is started the first time, it offers to show the help screen first for some explanations. The user can then opt out of seeing the help screen first, but can, by editing the settings, can turn it back on to get the help back at start-up. In a similar fashion, your user could opt into the contract. Ludwig 2008/10/28 Frew [EMAIL PROTECTED] I am trying to have the typical first run message that prompts the user to accept a contract and then I want it to populate my database with some initial values. I was thinking about adding a table to the database, setting a single value to zero in that table, and then when the user clicks 'ok' set it to 1, but that's probably a bit much. How do you all check to see if it's the first run? Thanks! -fREW --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to format data within Cursor before displaying to screen?
A SimpleAdapter is too simple for your case. Try creating a new class that overrides the CursorAdapter, which gives you two methods: newView(..) and bindView(..). You can still use your XML based layout inside newView(..) using the LayoutInflater and findById(..): @Override public View newView( Context context, Cursor cursor, ViewGroup parent ) { LayoutInflater inflater = (LayoutInflater)context.getSystemService( Context.LAYOUT_INFLATER_SERVICE ); View view = inflater.inflate( R.layout.phone_item, null ); bindView( view, context, cursor ); return view; } @Override public void bindView( View view, Context context, Cursor cursor ) { // Bind one cursor value to one sub-view String display_name = INVALID CURSOR; int column = cursor.getColumnIndex( Contacts.Phones.DISPLAY_NAME ); if( column != -1 ) display_name; // Format the returned cursor value here... TextView name_view = (TextView)view.findViewById( R.id.name ); if( name_view != null ) name_view.setText( display_name ); } On Oct 27, 8:01 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I am working on an application that involves displaying dates from my database. I have the dates formatted within my database using the ISO8601 format: -MM-dd'T'HH:mm:ss.SSS. I run my query which returns a cursor. I then map the DATE field within the cursor to my TextView. My issue is that the date is still formatted as -MM- dd'T'HH:mm:ss.SSS. My plan was to convert it back to a Date object and format it as I like, but I don't see where I can intercept the value from the cursor before it is displayed on the TextView... any ideas? Thanks, Vince --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: First Run Method
A lighter-weight solution might be to simply write out a little first.run.has.happened file, and check for it on subsequent launches. For most purposes (e.g. show the welcome page once) the file could be empty, and a simple existence check is sufficient. If you need something more strict, you could write a small key into it (e.g. some sort of hash) to make it harder to spoof. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Copying an area from a drawable
The way to copy a drawable into a bitmap is to draw it there. void draw(Drawable dr, Bitmap bm, int left, int top) { Canvas c = new Canvas(bm); c.translate(-left, -top); dr.draw(canvas); } void loop() { Drawable dr = // your master drawable dr.setBounds(0, 0, 320, 320); for (int y = 0; y 10; y++) { for (int x = 0; x 10; x++) { Bitmap bm = // the bitmap at cell location (x, y) draw(dr, bm, x * 32, y * 32); } } } mike On Oct 27, 2008, at 11:57 AM, PorkChop wrote: OK thanks Ludwig. On 27 Oct, 11:25, Ludwig [EMAIL PROTECTED] wrote: I am not entirely sure if this is what you are looking for, but the Canvas has a method where you can specify the a source and destination rectangle to draw from and to: public void drawBitmap(Bitmapfile:///C:/Software/android/docs/reference/android/graphics/Bitmap.html bitmap, Rectfile:///C:/Software/android/docs/reference/android/graphics/Rect.html src, Rectfile:///C:/Software/android/docs/reference/android/graphics/Rect.html dst, Paintfile:///C:/Software/android/docs/reference/android/graphics/Paint.html paint) HTH Ludwig 2008/10/26 PorkChop [EMAIL PROTECTED] What I am trying to achieve is breaking a drawable down into an array of separate bitmaps. E.g. I am passing a grid of 32x32 images (lets say the image is 320x320 pixels and contains a grid of 10x10 smaller bimap images) and i want to create an array of 100 bitmaps. So I need to copy from (eg) x=32, y=32, w=32,h=32 into another bitmap which is 32x32 pixels. Anyone got any idea how to do this? Hope I have explained this well enough. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Button press (vs. release) callback?
You can simply use an OnTouchListener and listen for MotionEvent.ACTION_DOWN touch events. -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: g1 keyboard missing up/down/left/right keys?
Guys, I still don't understand how the trackball wakes up the programs after a restart. I have re-mapped ALL the key events, for example: KEYCODE_DPAD_UP to KEYCODE_I (because I dont want to use the DPAD or the trackball). But I still need to first hit the track ball before I could use the new keys. Why doesn't the onKeyDown() event get triggered when the program first load up? What does the trackball do to wake up the program? Insights? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: g1 keyboard missing up/down/left/right keys?
This is because you are launching the application witht he touch screen. Try launching it with trackball instead. The reason is that in touch mode focus does not exist so a key press is required to bring focus back. In the particular case of games, you can make the game's view focusableInTouchMode=true. This will fix your issue. Do not, however, do this with regular views/UIs. On Oct 28, 2008 8:58 AM, g1ster [EMAIL PROTECTED] wrote: Guys, I still don't understand how the trackball wakes up the programs after a restart. I have re-mapped ALL the key events, for example: KEYCODE_DPAD_UP to KEYCODE_I (because I dont want to use the DPAD or the trackball). But I still need to first hit the track ball before I could use the new keys. Why doesn't the onKeyDown() event get triggered when the program first load up? What does the trackball do to wake up the program? Insights? --~--~-~--~~~---~--~~ You received this message because you are subs... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Issue accessing DB from SDCARD
Hi Ludwig, Unfortunately, I have ran the emulator with -sdcard option. I can browse the sdcard content via the DDMS perspective with eclipse. What I also notice is that if I try to create some folder (via the code) on the SDCARD it fails. Whereas trying to create folder with the same code in the data/data/myApplication folder works fine. I've also tried to open the same custom DB ( as named above ) from the data/data/myApplication/databases and this is successful. I can list DB's item. But no way to access from SDCARD. What leads me to think about permission...Do you have any clue ? Thanks a lot. On Oct 28, 4:06 pm, Ludwig [EMAIL PROTECTED] wrote: Do you actually have an SD card in the emulator? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Updating Imageviews During functions
Imagine a clock made up of ImageViews so I have custom images for each digit. I want to be able to update it from within the activity. On Oct 28, 11:01 am, Mike Reed [EMAIL PROTECTED] wrote: ImageView, like all subclass of View, cannot be called from any thread other than the UI thread. That said, what is the update you are try to do? On Oct 28, 2008, at 10:24 AM, Mark Hansen wrote: Opps.. I start the Runnable with the following: mHandler.post(mUpdateTimeTask); forgot to add that.. On Oct 28, 10:12 am, Mark Hansen [EMAIL PROTECTED] wrote: Some more info: I declared a handler in my class: private Handler mHandler = new Handler(); Then added my runnable private Runnable mUpdateTimeTask = new Runnable() { public void run() { updateDisplay.sendEmptyMessage(0); } }; and have a handler that does my update... private Handler updateDisplay = new Handler() { public void handleMessage(Message msg) { // ImageView update is here... } }; The image views are still not updating from what I can tell until the rest of the activity completes. I've tried variations implementing runnable and spawning threads (which works well with progress dialogs) and still can't get it to work. Basically I want to quickly change some ImageViews almost like an animation or a clock in with an activity.. is there a better method of doing this? Thanks, Mark On Oct 27, 5:44 pm, Mark Hansen [EMAIL PROTECTED] wrote: I have some image views I'd like to update as somethings change in a function in an activity. I can't seem to get them to refresh, at least not in away that appears visible on the phone. I've tried running them in a seperate thread, and even from that thread using a custom handler to do the image update, but still no dice. Anyone have any tips for doing this? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Available space in device?
Hello Everyone, How can I find the available space in the device? I could not find any API for the same :( I would appreciate your help !! 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Invoking the web browser from my app
Or consult the table of intents at OpenIntents: Quoted from: http://www.openintents.org/en/node/118 To open a web site use: Intent i = new Intent(Intent.ACTION_VIEW); Uri u = Uri.parse(http://www.openintents.org;); i.setData(u); startActivity(i); Peli www.openintents.org On Oct 28, 3:56 pm, Frew [EMAIL PROTECTED] wrote: On Oct 28, 2:20 am, lopan [EMAIL PROTECTED] wrote: How can I invoke the web browser from my app? For example, when i click an item in my ListView I want to open a web browser with a specific URL. I don't have my code handy because I'm at work, but you do it with the VIEW intent. Look up intents in the api. If you haven't figured it out in about 7 hours let me know and I'll give you exact code. -fREW --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Available space in device?
Use android.os.StatFs. On Tue, Oct 28, 2008 at 9:27 AM, Iroid [EMAIL PROTECTED] wrote: Hello Everyone, How can I find the available space in the device? I could not find any API for the same :( I would appreciate your help !! Thanks -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Download Count Reset on App Upgrade in Android Market
I saw the warning when we upgraded our app about the reviews and ratings being temporarily reset when you do an upgrade. Can someone at Android comment on how long it will be before a fix is pushed that will merge the old comments and ratings with the new ones? Also, the download count was reset and it was not mentioned in the warning message. I assume that too will be merged, is that correct? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Button press (vs. release) callback?
I asked about handling button press (vs. release), and Romain Guy wrote: You can simply use an OnTouchListener and listen for MotionEvent.ACTION_DOWN touch events. That was the first thing I tried, but it has two problems: 1) The button doesn't behave normally if you do that. For example, it doesn't highlight when it's pressed 2) This doesn't really get you the actual pressed state of the button, because that can change in ways other than ACTION_UP and ACTION_DOWN events. Looks like I've got some more spelunking through the Android source code ahead of me. This seems like an odd omission; all the other GUI toolkits I've used provide callbacks for both button press and release. In particular, it wasn't a problem for the iPhone port of my application. If it was just a matter of subclassing or reimplementing Button it wouldn't be that big a deal, but this omission is all the way up in View, and I really don't want to reimplement that. Eric --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: g1 keyboard missing up/down/left/right keys?
Thanks Romain! After issuing setFocusableInTouchMode(true), it worked perfectly! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Possible bug in Market? (about versionCode)
Wow, that did the trick :) Thanks! On Tue, Oct 28, 2008 at 11:13 AM, Peli [EMAIL PROTECTED] wrote: Have you used Project / Clean... in Eclipse before rebuilding your file? Sometimes changes in the Manifest are not updated properly. Peli On Oct 28, 9:50 am, Teo [EMAIL PROTECTED] wrote: No one has any idea what might be the problem? Currently users which will bump into this bug will render the app useless, so the faster i'm able to upgrade, the better. Please help :) On Oct 27, 10:04 pm, Teo [EMAIL PROTECTED] wrote: I get the following error when i try to upload a new .apk: The new apk's versionCode (1) in AndroidManifest.xml must be higher than the old apk's versionCode (1). But the version code is set to 2. Is this a bug with someone, or just 'by design' until the comments/ratings bug is fixed? Thanks, Teo -- Teo (a.k.a. Teominator a.k.a. Teodor Filimon) site www.teodorfilimon.com | blog www.teodorfilimon.blogspot.com GMT +2 (or PDT +10) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Button press (vs. release) callback?
If the button doesn't behave normally you probably returned true from your touch listener. Which you should not do in this case :) On Tue, Oct 28, 2008 at 9:44 AM, Eric [EMAIL PROTECTED] wrote: I asked about handling button press (vs. release), and Romain Guy wrote: You can simply use an OnTouchListener and listen for MotionEvent.ACTION_DOWN touch events. That was the first thing I tried, but it has two problems: 1) The button doesn't behave normally if you do that. For example, it doesn't highlight when it's pressed 2) This doesn't really get you the actual pressed state of the button, because that can change in ways other than ACTION_UP and ACTION_DOWN events. Looks like I've got some more spelunking through the Android source code ahead of me. This seems like an odd omission; all the other GUI toolkits I've used provide callbacks for both button press and release. In particular, it wasn't a problem for the iPhone port of my application. If it was just a matter of subclassing or reimplementing Button it wouldn't be that big a deal, but this omission is all the way up in View, and I really don't want to reimplement that. Eric -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Button press (vs. release) callback?
Romain Guy wrote: If the button doesn't behave normally you probably returned true from your touch listener. Which you should not do in this case :) I thought I'd tried both, but you're right, returning false does make the highlight work. I'm not sure that all the button behavior is correct, though. Digging through the source suggests that if you use setOnTouchListener(), then dispatchTouchEvent() in the view won't call onTouchEvent(). I haven't figured out the ramifications of that. I tried having my touch listener call onTouchEvent(), and return its return value. That seems to work, but I'm not sure whether it's actually any better than just having the touch listener not call onTouchEvent() and simply return false. Thanks, Eric --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Taking Camera Pictures in app
Still trying to figure this out, but not getting anywhere on it. Does taking a picture using the camera only require creating the Camera.PictureCallback for onPictureTaken() and passing it into Camera.takePicture() as an input? Or do you have to stop the preview, lock the canvas, and convert/extract data from there to get it into a writable form? I'm fine with the first one, but completely confused as to how to do the latter. Also, is taking pictures in the emulator functional or not? I tried to run CameraApiTest and it crashes hard whenever I hit spacebar, even though I have an SD card instantiated. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Button press (vs. release) callback?
try this http://bend-ing.blogspot.com/2008/10/android-how-to-implement-custom-button.html it's not exactly a callback, but you can put your logics in the onDraw() method. On Oct 28, 4:59 am, Eric [EMAIL PROTECTED] wrote: I'm using setOnClickListener() for my buttons, but I also need a way to get a method called when the button is first pressed (touched), in addition to on release. Is there any easy way to do that? I didn't see anything obvious in the API docs, so I went digging through the source code, and it looks like this stuff happens all the way up in the View class. Do I have to override onTouchEvent() to deal with this? At first I thought maybe overriding setPressed() might be a good way to deal with it, but it turns out that various methods in View set the pressed state (in mPrivateFlags) directly rather than calling setPressed(). It also seems like responsibility for determining whether a click or long click has happened should be done in setPressed(), rather than separately in onKeyUp() and onTouchEvent(). These seem like design flaws, but maybe there are good reasons for them that aren't evident to me yet. Eric --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Can I use my PC's serial port to communicate with my bluetooth reference board
I am running emulator on Ubuntu8.04 virtual machine on top of Windows XP. Is there any way that I can use PC's serial port as emulator's UART to communicate with an external bluetooth reference board? Thanks, Jinjun --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Available space in device?
android.os.StatFs JBQ On Tue, Oct 28, 2008 at 9:27 AM, Iroid [EMAIL PROTECTED] wrote: Hello Everyone, How can I find the available space in the device? I could not find any API for the same :( I would appreciate your help !! 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Screen Only Numeric Input
I'm wandering through the interwebs and the discussion boards looking for a way to input numeric text only without having to flip open the keyboard. I've fumbled my way across several options, including the NumberKeyListener, the DigitsKeyListener and the DialerKeyListener. These are all helpful and everything, but what I've been hoping for is for some kind of dialer-ish input widget. Scanning the android jar file, I can see that there is a number_picker.xml and a number_picker_edit.xml, (in the res.layout section) but I don't see a way of accessing these UI nuggets. Am I missing something in particular? I can write my own numeric widget if there is none available, but I'd feel really stupid writing one if there is already one in the android jar. Thanks in advance. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Available space in device?
You could use the StatFs class (see frameworks/base/core/java/android/os/StatFs.java) to figure out the space available in a file system. You would need to call this for each file system you are interested in. I would suggest using android.os.Environment.getDataDirectory() to get the path to the data directory, and android.os.Environment.getExternalStorageDirectory() to get the path to the SD card mount point. On Tue, Oct 28, 2008 at 9:27 AM, Iroid [EMAIL PROTECTED] wrote: Hello Everyone, How can I find the available space in the device? I could not find any API for the same :( I would appreciate your help !! Thanks --- Mike Lockwood Google android team --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: give-up screen (going to sleep)
This describes the various clocks and their behaviors: http://code.google.com/android/reference/android/os/SystemClock.html AlarmManager is what you're looking for. JBQ On Tue, Oct 28, 2008 at 7:15 AM, Brian [EMAIL PROTECTED] wrote: I see... I guess more specifically.. if I use Thread.sleep(100); will the thread wake up 1000 seconds later if the phone is asleep? or must I use the AlarmManager to do something like this? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: give-up screen (going to sleep)
No, there is no guarantee about that. As I said, use the Alarm Manager. Plus it is big waste of resources to have a thread sitting there doing nothing. If you want to want for minutes or more of time, schedule an alarm to wake you up (possibly relaunching your app if it needed to be killed for resources elsewhere) at the desired time. On Oct 28, 7:15 am, Brian [EMAIL PROTECTED] wrote: I see... I guess more specifically.. if I use Thread.sleep(100); will the thread wake up 1000 seconds later if the phone is asleep? or must I use the AlarmManager to do something like this? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: keytool usage different, can't generate debug MD5 fingerprint
Thanks for your reply. I keep getting 'Usage error, and is not a legal command'. I've looked at my command several times and don't see anything wrong. Here it is: C:\Program Files\Java\jdk1.6.0_07\binkeytool -list -alias androiddebugkey -keystore C:\Documents and Settings\...me...\Local Settings\Application Data\Android\debug.keystore -storepass androidpassword -keypass androidpassword androiddebugkey I'm on WinXP if that matters. What is the last 'androiddebugkey' parameter? I don't see a - argument before it. I tried it with and without that and still got the 'Usage error' On Oct 27, 3:41 pm, androlog [EMAIL PROTECTED] wrote: Just use this: C:\Program Files\Java\jdk1.6.0_07\bin\keytool-list -alias androiddebugkey -keystore C:\Users\...\AppData\Local\Android \debug.keystore -storepass androidpassword -keypass androidpassword androiddebugkey and substitute with your actual path tokeytooland your local folder where keystore lives. Please let me know whether it helps. On Oct 27, 12:21 pm, Brian [EMAIL PROTECTED] wrote: I'm following the directions here: http://code.google.com/android/toolbox/apis/mapkey.html#getfingerprint but it appears mykeytoolusage is different: -list[-v | -rfc] [-alias alias] [-keystore keystore] [-storepass storepass] [-storetype storetype] [-provider provider_class_name] ... what do I use for storetype and provider? Are the directions for a different version ofkeytool? Does it use the one from the JAVA_HOME path? I initially had that as java1.4 and then changed to java1.5, but got the samekeytool-list usage and same error. I'm pretty confused by all this. I was glad to find what looked like up to date instructions, but now I'm back to confusion and despair ;-( Would appreciate any help, 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Audio recorder format
In AudioEncorder class (http://code.google.com/android/reference/ android/media/MediaRecorder.AudioEncoder.html#DEFAULT) there are 2 attribute, DEFAULT and AMR_NB. What is DEFAULT? What is the bandwidth for DEFAULT and AMR_NB? Thanks! April --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How fast is the T-Mobile G1?
My emulator gives a result of 543.94 bogomips, better be careful coding games otherwise they are going to end up sucking on the actual device! On 27 Oct, 18:05, shyamal [EMAIL PROTECTED] wrote: I didn't get a command line on the phone. The phone is hooked in via the USB cable to my development machine. An an 'adb shell' command on the development machine gives me a shell on the device. Cheers! Shyamal On Oct 27, 10:34 am, zl25drexel [EMAIL PROTECTED] wrote: how did you get a command line prompt on the phone? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Button press (vs. release) callback?
I wrote: Digging through the source suggests that if you use setOnTouchListener(), then dispatchTouchEvent() in the view won't call onTouchEvent(). Looking at it more carefully reveals that I was mistaken, and that if the onTouchListener returns false, onTouchEvent() is invoked. I'm very curious, why does View.onTouchEvent() set and clear the PRESSED flag in mPrivateFlags directly, rather than invoking setPressed()? It seems like if it used setPressed(), I could get what I want by overriding dispatchSetPressed(). Thanks! Eric --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Copying an area from a drawable
Thanks Mike, what I ended up with yesterday looks a lot like your code (sourceImage is a Drawable object, the grid of images): int w=32, h=32; // target size of images int width = sourceImage.getIntrinsicWidth(); int height = sourceImage.getIntrinsicHeight(); int top = 0, left = 0, maxImages = 0; Bitmap sourceBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_); Canvas sourceCanvas = new Canvas(sourceBitmap); sourceImage.setBounds(0, 0, width, height); sourceImage.draw(sourceCanvas); //sourceBitmap now contains grid of sprite images while ( top height ) { while ( left width ) { image[maxImages] = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_); Canvas canvas = new Canvas(image[maxImages]); canvas.drawBitmap(sourceBitmap, -left, -top, mPaint); left += w; maxImages++; } left = 0; top += h; } currentImage = 0; On 28 Oct, 15:43, Mike Reed [EMAIL PROTECTED] wrote: The way to copy a drawable into a bitmap is to draw it there. void draw(Drawable dr, Bitmap bm, int left, int top) { Canvas c = new Canvas(bm); c.translate(-left, -top); dr.draw(canvas); } void loop() { Drawable dr = // your master drawable dr.setBounds(0, 0, 320, 320); for (int y = 0; y 10; y++) { for (int x = 0; x 10; x++) { Bitmap bm = // the bitmap at cell location (x, y) draw(dr, bm, x * 32, y * 32); } } } mike On Oct 27, 2008, at 11:57 AM, PorkChop wrote: OK thanks Ludwig. On 27 Oct, 11:25, Ludwig [EMAIL PROTECTED] wrote: I am not entirely sure if this is what you are looking for, but the Canvas has a method where you can specify the a source and destination rectangle to draw from and to: public void drawBitmap(Bitmapfile:///C:/Software/android/docs/reference/android/graphics/Bitmap.html bitmap, Rectfile:///C:/Software/android/docs/reference/android/graphics/Rect.html src, Rectfile:///C:/Software/android/docs/reference/android/graphics/Rect.html dst, Paintfile:///C:/Software/android/docs/reference/android/graphics/Paint.html paint) HTH Ludwig 2008/10/26 PorkChop [EMAIL PROTECTED] What I am trying to achieve is breaking a drawable down into an array of separate bitmaps. E.g. I am passing a grid of 32x32 images (lets say the image is 320x320 pixels and contains a grid of 10x10 smaller bimap images) and i want to create an array of 100 bitmaps. So I need to copy from (eg) x=32, y=32, w=32,h=32 into another bitmap which is 32x32 pixels. Anyone got any idea how to do this? Hope I have explained this well enough. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: eclipse debug keystore and google maps api key problem
I'm a bit unclear on whta works and what doesn't. The application works in the emulator and you see tiles or not? When you load the application on your phone, are you exporting the unsigned APK and then signing with jarsigner and then using 'adb install'? Cheers, Justin Android Team @ Google On Oct 27, 4:08 am, nick fox [EMAIL PROTECTED] wrote: I have created a debug map api key and a production map api key with the MD5 fingerprint that I created to sign my apps. The debug map program I created works fine in the emulator and I am able to load the app onto the phone using my production map api key, but I still am not able to see map tiles. I just see a grid. I am using the tutorial I found here: http://www.devx.com/wireless/Article/39145 It's pretty simple... Not sure what I'm doing wrong. Any help would be greatly appreciated. thanks Nick On Oct 24, 10:40 am, Xavier Ducrohet [EMAIL PROTECTED] wrote: While we do realize this is not a perfect work flow, you should always test your app after your sign it with its release key. Proper testing will quickly show you whether you forgot to update an apiKey or not (either the maps tile loads or they don't). Xav On Thu, Oct 23, 2008 at 1:31 PM, shrisha [EMAIL PROTECTED] wrote: Hmm.. So, there's no easy way to both debug and release with the same XML Layout files? I understand the need for separate keystores (and thereforemapkeys); but, I was hoping ADT and/or the emulator would somehow take themapkey as a command line or system parameter. This just makes the release process more error-prone, no? Cheers, Shrisha On Oct 23, 1:23 pm, Justin (GoogleEmployee) [EMAIL PROTECTED] wrote: Also, if you wanted to use a differentkeystore, you would need to use the same passwords for thatkeystoreand key. The value that the Eclipse plugin uses to access the store is hard coded. Cheers, Justin Android Team @Google On Oct 23, 11:37 am, Xavier Ducrohet [EMAIL PROTECTED] wrote: Hi Dave, the password is android for both thekeystoreand the key. More information about getting the MD5 fingerprint is here:http://code.google.com/android/toolbox/apis/mapkey.html#getfingerprint It shows the full command line for the debug key. Xav On Wed, Oct 22, 2008 at 9:24 PM, Dave [EMAIL PROTECTED] wrote: Maybe I'm being stupid, but I cant seem to figure this out. I want eclipse to generate a debug version of my app signed with a custom keystorethat is associated with mygooglemaps api key so it works now that the key is required. I created an api key from mykeystore, added it to theMapView, and set the Preferences-Android-Build- Custom debugkeystoreto point to mykeystore. I was assuming this would use mykeystorerather than the default, but it seems to have no effect. I can't generate agooglemaps api key from the default debugkeystoresince I don't know the password, so I cant generate a key from that. So how are you supposed to do this? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Application install unsuccessful after signing
I can not install my application after signing my application when I try to download from my server. I keep getting the error Application install unsuccessful after signing when I try to install it. It was working before I signed it. I am not sure what I am doing wrong. I have added the MIME type to the server as well. I made my key using C:\Program Files\Java\jdk1.6.0_10\binkeytool -genkey -alias myapp.keystore -keyalg RSA -validity 2 -keystore keys/ myapp.keystore I signed my application by using C:\Program Files\Java\jdk1.6.0_10\binjarsigner -verbose -keystore keys/myapp.keystore MyApp.apk myapp.keystore I have double checked with the following C:\Program Files\Java\jdk1.6.0_10\binjarsigner -verify myapp.apk jar verified. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems with file permissions on actual G1 platform
Jeff, I checked out the code from the project, and there's an error on line 179 of android.androidVNC.VncCanvas.java. I'd suggest using Bitmap.Config.RGB_565 for the third argument. Once I fixed this I was able to build the project and install fine. My guess would be that the install was failing because one of the classes named in the manifest relied on this class, which couldn't be referenced due to this error. You're also using the android.androidVNC namespace, which is a big no- no. android.* should only be used by system classes that are part of the main Android open source project. Please change your namespace to avoid confusion and conflict. Cheers, Justin Android Team @ Google On Oct 25, 8:47 am, azz710 [EMAIL PROTECTED] wrote: Dear Justin, Thanks so much for responding. Here's a link to the project page for the VNC Viewer: http://code.google.com/p/android-vnc-viewer/ ...and here's the page for the VNC server: http://code.google.com/p/android-vnc/ Note the latter's instructions simply to move the file to the phone, something we can't do due to the phone's security features. If you can illuminate these issues further, I will be very grateful. Thanks! Jeff On Oct 25, 10:08 am, Justin (Google Employee) [EMAIL PROTECTED] wrote: ...snip... The error message is saying there is something wrong with your manifest file. Perhaps you are not building against the 1.0r1 SDK? Can you provide pointers to both the APK and the source? ...snip... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Available space in device?
Did anyone mention android.os.StatFs already? :-) Peli On Oct 28, 5:27 pm, Iroid [EMAIL PROTECTED] wrote: Hello Everyone, How can I find the available space in the device? I could not find any API for the same :( I would appreciate your help !! 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Launch Voice Dial From Bluetooth Headset Button
How easy would it be to write an application for Android that would listen for the bluetooth headset's button press and then launch the same voice dial application that is launched from a long press on the green send button? What's the bluetooth API look like and is there an option to even listen for this event on a bluetooth headset? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Issue accessing DB from SDCARD
I do not think there is any permission required to write to the SDcard, if it is there.This works for me: File sdcard = Environment.getExternalStorageDirectory(); File destination = new File(sdcard, mydir); if (destination.mkdir()){ Log.e(TAG, made directory); } else { Log.e(TAG, could not mkdir); } What is the string you provide to the -sdcard option for your emulator? Ludwig 2008/10/28 Thao [EMAIL PROTECTED] Hi Ludwig, Unfortunately, I have ran the emulator with -sdcard option. I can browse the sdcard content via the DDMS perspective with eclipse. What I also notice is that if I try to create some folder (via the code) on the SDCARD it fails. Whereas trying to create folder with the same code in the data/data/myApplication folder works fine. I've also tried to open the same custom DB ( as named above ) from the data/data/myApplication/databases and this is successful. I can list DB's item. But no way to access from SDCARD. What leads me to think about permission...Do you have any clue ? Thanks a lot. On Oct 28, 4:06 pm, Ludwig [EMAIL PROTECTED] wrote: Do you actually have an SD card in the emulator? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: T-mobile G1 for testing purposes
I bought one in my local cell phone store for $450. i'm a t-mobile customer so i can unlock the device free of charge. :) On Tue, Oct 28, 2008 at 6:10 AM, Ale [EMAIL PROTECTED] wrote: Hi Hong, how can I unlock it in US? And what about You can buy a G1 here..., do you refer to the 399$ G1? I've been told they don't sell it in T-Mobile stores. Anyway, if it si unlocked either the 3G and the EDGE will work --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: keytool usage different, can't generate debug MD5 fingerprint - resolved
I added double-quotes around the path to the keystore and got it to work. On Oct 28, 1:32 pm, Brian [EMAIL PROTECTED] wrote: Thanks for your reply. I keep getting 'Usage error, and is not a legal command'. I've looked at my command several times and don't see anything wrong. Here it is: C:\Program Files\Java\jdk1.6.0_07\binkeytool -list -alias androiddebugkey -keystore C:\Documents and Settings\...me...\Local Settings\Application Data\Android\debug.keystore -storepass androidpassword -keypass androidpassword androiddebugkey I'm on WinXP if that matters. What is the last 'androiddebugkey' parameter? I don't see a - argument before it. I tried it with and without that and still got the 'Usage error' On Oct 27, 3:41 pm, androlog [EMAIL PROTECTED] wrote: Just use this: C:\Program Files\Java\jdk1.6.0_07\bin\keytool-list -alias androiddebugkey -keystore C:\Users\...\AppData\Local\Android \debug.keystore -storepass androidpassword -keypass androidpassword androiddebugkey and substitute with your actual path tokeytooland your local folder where keystore lives. Please let me know whether it helps. On Oct 27, 12:21 pm, Brian [EMAIL PROTECTED] wrote: I'm following the directions here: http://code.google.com/android/toolbox/apis/mapkey.html#getfingerprint but it appears mykeytoolusage is different: -list[-v | -rfc] [-alias alias] [-keystore keystore] [-storepass storepass] [-storetype storetype] [-provider provider_class_name] ... what do I use for storetype and provider? Are the directions for a different version ofkeytool? Does it use the one from the JAVA_HOME path? I initially had that as java1.4 and then changed to java1.5, but got the samekeytool-list usage and same error. I'm pretty confused by all this. I was glad to find what looked like up to date instructions, but now I'm back to confusion and despair ;-( Would appreciate any help, 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Listview click event with button
I had the same problem. A simple button.setFocusable(false) solved the problem for me. On 16 Okt., 20:03, goldfish [EMAIL PROTECTED] wrote: Hello, I have a custom listview contol that performs on click event handling when a user clicks a list item. When I add a button to each listview item my listview click event stops working and only my button's click event fires. If I remove the button the listview's click event fires correctly. Is there a way to have both click events fire correctly? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Issue accessing DB from SDCARD
Thank for the folder creation code. It would be helpfull for me later. Since there are much more sample codes done with the former sdk, I usually use those that does'nt work the the last sdk. I'm providing the following with sdcard option : -sdcard E:\_sources\android\filesytem\mySDCard.iso Thao --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Issue accessing DB from SDCARD
That won't work if mySDCard.iso is an ISO (CD-ROM) file system. The image file needs to be FAT16 or FAT32 format. Mike On Tue, Oct 28, 2008 at 12:07 PM, Thao [EMAIL PROTECTED] wrote: Thank for the folder creation code. It would be helpfull for me later. Since there are much more sample codes done with the former sdk, I usually use those that does'nt work the the last sdk. I'm providing the following with sdcard option : -sdcard E:\_sources\android\filesytem\mySDCard.iso Thao -- Mike Lockwood Google android team --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Issue accessing DB from SDCARD
Maybe it is a typo: you say 'filesytem' -- should it be filesystem? 2008/10/28 Mike Lockwood [EMAIL PROTECTED] That won't work if mySDCard.iso is an ISO (CD-ROM) file system. The image file needs to be FAT16 or FAT32 format. Mike On Tue, Oct 28, 2008 at 12:07 PM, Thao [EMAIL PROTECTED] wrote: Thank for the folder creation code. It would be helpfull for me later. Since there are much more sample codes done with the former sdk, I usually use those that does'nt work the the last sdk. I'm providing the following with sdcard option : -sdcard E:\_sources\android\filesytem\mySDCard.iso Thao -- Mike Lockwood Google android team --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] ArrayAdapter
How does the ArrayAdapter know when the array has been modified? I am using my own adapter, and I want to add items as they come in while asynchronously updating the ListView displaying them. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Application install unsuccessful after signing
Looks like I had the old key that the debugger had in there so the new key was not working. I went ahead and set it back to factory default. Any way to remove the old key without doing this? On Oct 28, 11:22 am, Danny [EMAIL PROTECTED] wrote: I can not install my application after signing my application when I try to download from my server. I keep getting the error Application install unsuccessful after signing when I try to install it. It was working before I signed it. I am not sure what I am doing wrong. I have added the MIME type to the server as well. I made my key using C:\Program Files\Java\jdk1.6.0_10\binkeytool -genkey -alias myapp.keystore -keyalg RSA -validity 2 -keystore keys/ myapp.keystore I signed my application by using C:\Program Files\Java\jdk1.6.0_10\binjarsigner -verbose -keystore keys/myapp.keystore MyApp.apk myapp.keystore I have double checked with the following C:\Program Files\Java\jdk1.6.0_10\binjarsigner -verify myapp.apk jar verified. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How fast is the T-Mobile G1?
my G1 output: $ cat /proc/cpuinfo Processor : ARMv6-compatible processor rev 2 (v6l) BogoMIPS: 383.38 Features: swp half thumb fastmult edsp java CPU implementer : 0x41 CPU architecture: 6TEJ CPU variant : 0x1 CPU part: 0xb36 CPU revision: 2 Cache type : write-back Cache clean : cp15 c7 ops Cache lockdown : format C Cache format: Harvard I size : 32768 I assoc : 4 I line length : 32 I sets : 256 D size : 32768 D assoc : 4 D line length : 32 D sets : 256 Hardware: trout Revision: 0080 Serial : --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] first Map app getting stopped unexpectedly error - how to get more info?
I finally got my Map APIKey and added it to the MapView properties in the layout xml I've added the uses-library android:name=com.google.android.maps / to the manifest xml. I'm developing with Eclipse/ADT and from the Signing and Publishing reference doc, I think I've got the basic setup for signing in debug mode, with JAVA_HOME pointing to a 1.6 JDK. I've also got the uses-permissions android.permission.INTERNET and android.permission.ACCESS_COARSE_LOCATION. Anything obvious I'm missing? Is there any way to get more information as to why it's failing? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Design decision on Local Service versus Remote Service
I understand that local service runs in the same process as the app and remote service runs in a separate process as the app. Also, Remote service requires IPC to communicate with client. But can someone give me concrete examples of when local service service should be used (and remote service)? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] attempting to insert a contact
I've looked at the other code fragments in this forum, and at the sample code in the Accessing Content Providers document, but I'm still having problems. The following code fragment dies with an IOException at uri = getContentResolver().insert(Contacts.People.CONTENT_URI, contact); Can someone please point out where I am going astray? Thanks, Robert O'Hara -- import android.app.Activity; import android.content.ContentValues; import android.net.Uri; import android.os.Bundle; import android.provider.Contacts; import android.provider.Contacts.Phones; import android.view.KeyEvent; public class Testbed extends Activity { // * // Testbed is used to try out new program fragments. // * public void onCreate(Bundle savedInstanceState) { // - // Create our activity. // - super.onCreate(savedInstanceState); setContentView(R.layout.main); InsertContact(Harry Ijen, +18142386651, 1); } public void InsertContact(String name, String phoneNumber, int favorite) { // - // Insert a new contact into the contacts application. // - Uri phoneUri = null; Uri uri = null; ContentValues contact = new ContentValues(); contact.put(Contacts.People.NAME, name); contact.put(Contacts.People.STARRED, favorite); uri = getContentResolver().insert(Contacts.People.CONTENT_URI, contact); // Now get the CONTENT_URI of the contact we just inserted build the URI for the phone num. phoneUri = Uri.withAppendedPath(uri, Contacts.People.Phones.CONTENT_DIRECTORY); contact.clear(); contact.put(Contacts.Phones.TYPE, Phones.TYPE_MOBILE); contact.put(Contacts.Phones.NUMBER, phoneNumber); getContentResolver().insert(phoneUri, contact); } public boolean onKeyUp(int keyCode, KeyEvent keyMsg) { // - // Terminate the application if the user presses the Q key. // - if (keyCode == KeyEvent.KEYCODE_Q) finish(); return true; } } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] AssetManager asset file path inconsistency
I've found an inconsistency with the AssetManager. I have a file in my package with the path assets/models/cube.xml. Succeeds without FileNotFoundException: getAssets().open(models/cube.xml) getAssets().openXmlResourceParser(assets/models/cube.xml) Notice above that the second call requires the root assets/ to succeed. This is inconsistent with the open method. This will fail with FileNotFoundException: getAssets().openXmlResourceParser(models/cube.xml) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How fast is the T-Mobile G1?
So that's odd...different results. Does anyone know how the bogomips are calculated? On Oct 28, 7:31 pm, Hong [EMAIL PROTECTED] wrote: my G1 output: $ cat /proc/cpuinfo Processor : ARMv6-compatible processor rev 2 (v6l) BogoMIPS : 383.38 Features : swp half thumb fastmult edsp java CPU implementer : 0x41 CPU architecture: 6TEJ CPU variant : 0x1 CPU part : 0xb36 CPU revision : 2 Cache type : write-back Cache clean : cp15 c7 ops Cache lockdown : format C Cache format : Harvard I size : 32768 I assoc : 4 I line length : 32 I sets : 256 D size : 32768 D assoc : 4 D line length : 32 D sets : 256 Hardware : trout Revision : 0080 Serial : --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---