Re: [android-developers] How to stop terminate the Android application when using the native code
I know, i can disable it, so it will work, but i'd like to let the app can run many times again. So i disable the exit(), but when call the second times, it generates errors. Could you help? Thanks Clark On Sunday, July 15, 2012 5:52:38 AM UTC+7, Dianne Hackborn wrote: You just need to fix your native code so it doesn't do this. Anyone giving you a native library that is calling exit() in it is an evil sadist. :p On Fri, Jul 13, 2012 at 3:02 AM, Clark kent nguyenle...@gmail.com wrote: Hello every body I have this problem which can not resolve it. I'm calling the native code(*C code*) from the android application. But in the native code, they call function *exit(0)* so it makes the app on Android terminate. Could any one know how to stop this one, because after i called one method from native code , after it finished, it will terminate the Android application. I found a way is disable the method *exit(0)*, so it will not terminate the Android app, but it meet error when i called the native method second time, some error kind like this: *Invalid heap address in internal_realloc*. I think that came from the re allocation the memory. So if any one know how to free all memory of native call, please let me know. Thanks for any comments Thanks Clark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to stop terminate the Android application when using the native code
Hello every body I have this problem which can not resolve it. I'm calling the native code(*C code*) from the android application. But in the native code, they call function *exit(0)* so it makes the app on Android terminate. Could any one know how to stop this one, because after i called one method from native code , after it finished, it will terminate the Android application. I found a way is disable the method *exit(0)*, so it will not terminate the Android app, but it meet error when i called the native method second time, some error kind like this: *Invalid heap address in internal_realloc*. I think that came from the re allocation the memory. So if any one know how to free all memory of native call, please let me know. Thanks for any comments Thanks Clark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] [HELP] File Dialog
Hello there, I want to create a Button that will show File Dialog on onClick event and let user to choose a .txt file, after he choose a file, its file path will be set to a textview via setText I think. But I dont know how to start from. Please help --- Regards, Hoang Nguyen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] [HELP] File Dialog
Lol ok, i used andexplorer intent to solve my problem. Thanks On Jun 11, 2011 9:03 AM, TreKing treking...@gmail.com wrote: On Thu, Jun 9, 2011 at 11:48 PM, KENT hoangk...@gmail.com wrote: I want to create a Button that will show File Dialog on onClick event and let user to choose a .txt file, after he choose a file, its file path will be set to a textview via setText I think. But I dont know how to start from. Please help Do exactly what you described. I want to *create a Button* that will *show File Dialog* *on onClick event* and *let user to choose a .txt file*, after he choose a file, *its file path will be set to a textview via setText * I think. If you get stuck on a specific thing, ask a specific question. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] AlertDialog + setMultiChoiceItems + cursor, oh my!
Has anyone got this dialog to work? How does one get the selected checkbox to reflect the change when clicked? = String myList = ROW_ID + , + ITM_DESC + , + ITM_CHECKED; final Cursor myCursor = myDB.rawQuery( SELECT + myList + FROM + myTable + ORDER BY + ITM_DESC + ASC, null); final AlertDialog alertDialog = new AlertDialog.Builder(this); alertDialog.setMultiChoiceItems(myCursor, ITM_CHECKED, ITM_DESC, new DialogInterface.OnMultiChoiceClickListener() { @Override public void onClick( final DialogInterface dialog, int which, boolean isChecked) { if (cursor.moveToNext()) { long rowId = cursor.getLong(cursor.getColumnIndex(ROW_ID)); // I would think that rowId would be the correct _id but it is not. // which is the right line number but how to get the correct _id? // And they there is the issue of how to get the check box checked... // Since we must have a column in the database for the check box // state I would think that everything would be taken care of by the // AlertDialog code and that after a return from the dialog all I would // need to do is query the database for checks in the check box column. } } ); } ... set other stuff ... alertDialog.create(); = Frankly I have spent way too much time on this problem. I have searched high and low on the Internet and I can't find anyone that has gotten this to 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] AlertDialog + setMultiChoiceItems + cursor, oh my!
Has anyone got this dialog to work? How does one get the selected checkbox to reflect the change when clicked? = String myList = ROW_ID + , + ITM_DESC + , + ITM_CHECKED; final Cursor myCursor = myDB.rawQuery( SELECT + myList + FROM + myTable + ORDER BY + ITM_DESC + ASC, null); final AlertDialog alertDialog = new AlertDialog.Builder(this); alertDialog.setMultiChoiceItems(myCursor, ITM_CHECKED, ITM_DESC, new DialogInterface.OnMultiChoiceClickListener() { @Override public void onClick( final DialogInterface dialog, int which, boolean isChecked) { if (cursor.moveToNext()) { long rowId = cursor.getLong(cursor.getColumnIndex(ROW_ID)); // I would think that rowId would be the correct _id but it is not. // which is the right line number but how to get the correct _id? // And they there is the issue of how to get the check box checked... // Since we must have a column in the database for the check box // state I would think that everything would be taken care of by the // AlertDialog code and that after a return from the dialog all I would // need to do is query the database for checks in the check box column. } } ); } ... set other stuff ... alertDialog.create(); = Frankly I have spent way too much time on this problem. I have searched high and low on the Internet and I can't find anyone that has gotten this to 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] AlertDialog + setMultiChoiceItems + cursor, oh my!
Gosh, I finally figured it out. On Saturday, June 04, 2011 01:16:32 PM Kent Loobey wrote: Has anyone got this dialog to work? How does one get the selected checkbox to reflect the change when clicked? = String myList = ROW_ID + , + ITM_DESC + , + ITM_CHECKED; final Cursor myCursor = myDB.rawQuery( SELECT + myList + FROM + myTable + ORDER BY + ITM_DESC + ASC, null); final AlertDialog alertDialog = new AlertDialog.Builder(this); alertDialog.setMultiChoiceItems(myCursor, ITM_CHECKED, ITM_DESC, new DialogInterface.OnMultiChoiceClickListener() { @Override public void onClick( final DialogInterface dialog, int which, boolean isChecked) { if (cursor.moveToNext()) { long rowId = cursor.getLong(cursor.getColumnIndex(ROW_ID)); // I would think that rowId would be the correct _id but it is not. // which is the right line number but how to get the correct _id? // And they there is the issue of how to get the check box checked... // Since we must have a column in the database for the check box // state I would think that everything would be taken care of by the // AlertDialog code and that after a return from the dialog all I would // need to do is query the database for checks in the check box column. } } ); } ... set other stuff ... alertDialog.create(); = Frankly I have spent way too much time on this problem. I have searched high and low on the Internet and I can't find anyone that has gotten this to 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: high scores
FWIW, I like to keep the top 5. Even if playing against yourself, it's nice to see the recent high marks you've hit. Or at least I like to sometimes - so everyone gets a screen that does it they can ignore. :-) On Apr 16, 4:58 pm, Filip Havlicek havlicek.fi...@gmail.com wrote: You're welcome, Kris, I'm glad you can bath in the light of my knowledge :) Ibendlin, ten people is unlikely, but I can imagine 4-5 people playing games on one device (not everyone has a thousand dollars to buy a new smartphone for every child, but believe me, everyone wants to play with the new toy). Filip 2011/4/17 Kristopher Micinski krismicin...@gmail.com I'd imagine that this is the same as how high scores work on a desktop: most of the time only I use my desktop, but Microsoft Solitaire still keeps track of high scores. Kris On Sat, Apr 16, 2011 at 6:34 PM, lbendlin l...@bendlin.us wrote: How likely is it that ten people will use the same Android device? If you really need a highscore list it should live on your game server, not on the device. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ScheduledExecutorService memory leak question.
Hey, trying to puzzle out someone else's code and have a question. If there is a custom subclass of RelativeLayout that holds a ScheduledExecutorService declared in the class as: public ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1); Assume that the RelativeLayout-extension is created from .XML by Activity.setContentView(). In a case where the scheduler is off getting an image from an URL when the activity is destroyed, it returns some time after the new activity is shown and pushes it's image into the Layout (which is not attached to any window and invisible), then goes idle - presumably waiting for another task. Did the Activity just leak? A more specific question. Does a ScheduledExecutorService need to be explicitly shut down in order to be cleaned? Whenever I've used this class, I always just did it - what happens if you don't? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Amazon MP3 store intents - quick how to.
I think you are correct. If there were official docs, this post would have been redundant. You did say this exact same thing when Android was first released and the original Amazon methodology was shared unofficially ... and that worked for a good long time (longer than a few Android functions I've known). Shazam is using this right now. If future updates break it - they will break some pretty substantial apps integrating the architecture. Shifting sands ... functions turned to null. C'est La Vie. The life of an Android programmer ;-) If top-tier Market Apps are doing it, it seems to be accepting a significant disadvantage to refuse to compete with equivalent functionality because the future might require an app update. (See what happens when my questions about the ScheduledExecutorService leaking activities gets moderated into oblivion? I check my silly profile!) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Amazon MP3 store intents - quick how to.
It has been pretty difficult to track down information on interacting with the Amazon MP3 application. After a bit of poking around, it appears the app provides a way to handle external intents through a proxy activity. There are two mechanisms for accessing the Amazon MP3 search service. Here are a few code snippits to demonstrate how to set up the intent object using both methods. The first implementation appears to be geared to handle searches based on the MediaStore constants and responds to the INTENT_ACTION_MEDIA_SEARCH action. Intent i = new Intent(); String query = SEARCH TERMS; i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); i.setClassName(com.amazon.mp3, com.amazon.mp3.activity.IntentProxyActivity); i.setAction(MediaStore.INTENT_ACTION_MEDIA_SEARCH); i.putExtra(MediaStore.EXTRA_MEDIA_TITLE, query); A more interesting way to accomplish the same thing is using the EXTERNAL_EVENT action. This is the mechanism used by the Shazam app. Intent i = new Intent(); String query = SEARCH TERMS; i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); i.setClassName(com.amazon.mp3, com.amazon.mp3.activity.IntentProxyActivity); i.setAction(com.amazon.mp3.action.EXTERNAL_EVENT); i.putExtra(com.amazon.mp3.extra.EXTERNAL_EVENT_TYPE,com.amazon.mp3.type.SEARCH); i.putExtra(com.amazon.mp3.extra.SEARCH_TYPE, 0); // 0 = Song, 1 = album i.putExtra(com.amazon.mp3.extra.SEARCH_STRING, query); Both of these do essentially the same thing. The EXTERNAL_EVENT action has several other EXTERNAL_EVENT_TYPE values to launch other features. Here's a quick rundown of the fields extra: com.amazon.mp3.type.SEARCH (uses) extra: com.amazon.mp3.extra.SEARCH_STRING (uses) extra: com.amazon.mp3.extra.SEARCH_TYPE extra: com.amazon.mp3.type.SHOW_ALBUM_DETAIL (uses) extra: com.amazon.mp3.extra.ALBUM_ASIN extra: com.amazon.mp3.type.GENRE_BROWSE (uses) extra: com.amazon.mp3.extra.BROWSE_TYPE (uses) extra: com.amazon.mp3.extra.GENRE_NAME extra: com.amazon.mp3.type.TOP_MUSIC_BROWSE (uses) extra: com.amazon.mp3.extra.BROWSE_TYPE there does not appear to be any way to indicate an associate ID. However, the Amazon system does log the package initiating the search. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can someone test my app on the Nexus One and Droid?
On Tuesday 06 April 2010 05:07:02 Isaac Wagner wrote: I published an app that works in all the emulators I've tried and on the two Android phones that I've tried. I've got the Droid and my wife has the Eris. This morning I received the OTA update to 2.1 and now all the fonts in my app are REALLY tiny and unreadable. My app looks fine in the 2.1 emulator, so I'm not sure what the problem is. Does anyone know anything about this problem? I'd appreciate it if people would try my app on the following phones and let me know if the fonts are OK. * Droid before 2.1 update * Droid after 2.1 update * Nexus One Font size looks okay to me on my Nexus One. The app is called Just GPS by 42 Productions and is free in the Android market. Thanks, Isaac -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
Re: [android-developers] Nexus One - Stalled when downloading Apps from Market using Wi-Fi
On Tuesday 12 January 2010 19:21:22 48-New wrote: Anybody experiences the same issue? Saw a post last March complaining the same issue for G1. Did it get resolved but re-surface again on Nexus One w/ 2.1? Please advise. P.S. If I have a data plan from T-Mobile, would it resolve the issue? I have a data plan from T-Mobile and my ADP1 still stalls downloading application updates from the Market. I haven't noticed it yet on my Nexus One but then I don't think it has done an application update yet. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android 2.1 SDK
On Monday 11 January 2010 15:24:44 Xavier Ducrohet wrote: Hello everyone, We've just released the 2.1 SDK. More info: http://android-developers.blogspot.com/2010/01/android-21-sdk.html Enjoy! Xav Thank you! Thank you! Thank you all! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: iPhone to Android: Creating good Android Interfaces
On Saturday 09 January 2010 23:18:58 kylestew wrote: ... I am hoping the Android community will come together on the subject of interaction design. Its going to take developers making apps with good usability for Android to beat iPhones market share. +1 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Nexus 2.1 one sale, WHERE is the SDK!
On Sunday 10 January 2010 17:32:22 nexbug wrote: Users reporting that the notification lights are not working as on earlier devices(let alone LED color customization). Have been chasing around trying to figure this out until i realized none of the apps are showing the flashing notification which we have all come to expect on the device. Not even SMS messages. I am sure the dog-fooders used the phone long enough to notice that the typical flashing notification light on top never seems to light up for notifications. Maybe its only to indicate charging.. While the pulsing trackball is nice, it is not as noticeable, and its colors cannot be manipulated. (of course unless i am missing something very obvious) http://www.google.com/support/android/bin/static.py?page=guide.csguide=27201topic=27212answer=168442#1074245 -g On Jan 10, 8:18 am, vorcigernix vorciger...@gmail.com wrote: Whole idea of having google superphone and write some main parts of OS as closed source bits for that device is flawed from beginning. On other hand, if your code works on 2.01, then it should work on nexus (except that hw related things). I am missing some big notice on developers page month before, saying : There will be phone with major market penetration, which uses 2.01; fix your apps guys And..android was never a real opensource system. Google is kind to let us access parts main parts of OS, that's it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How much is the weight of the shipped box?
On Friday 08 January 2010 06:58:31 Mario Chacon wrote: Hello, I'm from Argentina and I'm searching the weight of the Nexus Box, Could you tell me how much it is, please? I can't find it and I need to know before the ship. Weight: 2.0 lbs/0.9 kg Thank you salu2... masch... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google Maps: Package file was not signed correctly
I have an Android Dev Phone 1 Firmware version 1.6 and for the last month or so it has been trying to update Google Maps but it keeps getting Installation error Package file was not signed correctly. I have done a search on the Internet and a number of people have successfully completed this update and a number of others have received this same error message. But I have not been able to find a solution to the not signed correctly problem. Does anyone here know how to get Google Maps to update correctly? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Package naming/renaming
I am trying to do an update to an app that was released under 1.0 about a year ago. When it was released, I used the package naming convention: com.android.myApp. At the time, I thought this was the correct naming convention. In retrospect, this is not the case. The AndroidMarket does not accept new apps with com.android package names, so I am assuming the way I did it is frowned upon/disallowed. So my question is two-fold. #1: What is a correct method for selecting package names? I have started using a convention com.myAppClass.appname. Where myAppClass is a arbitrary name that applies to a group of related apps and appname is the specific application (e.g. com.mycategory.appDemo and com.mycategory.appFull). Is this right? #2: What do I do about the app already released as a com.android package? My assumption is to recreate it using the above convention. What will the effect be on users who want to upgrade the application through the market ... or will the market even accept an upgrade version using a different package name? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Package naming/renaming
Thanks for the info. Can't say it's good news (the app has 10K+ active installs), but I suspected something like this. Android is my first foray into Java applications (a bit different than Java web applets) ... the programs work fine, but obviously I'm making some serious noob-style errors. I guess I'm off to seek some advice on the AndroidMarket forum. -K On Oct 21, 12:11 pm, Mark Murphy mmur...@commonsware.com wrote: Kent wrote: #1: What is a correct method for selecting package names? I have started using a convention com.myAppClass.appname. Where myAppClass is a arbitrary name that applies to a group of related apps and appname is the specific application (e.g. com.mycategory.appDemo and com.mycategory.appFull). Is this right? I would recommend it be the reverse of a domain name that you own (e.g., com.commonsware.whatever). That is what the com.* convention refers to: http://en.wikipedia.org/wiki/Java_package#Package_naming_conventions #2: What do I do about the app already released as a com.android package? My assumption is to recreate it using the above convention. What will the effect be on users who want to upgrade the application through the market ... or will the market even accept an upgrade version using a different package name? AFAIK, the Market will not accept an upgrade version using a different package name. You will need to release it as a new app. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.1 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to unsubscribe from this list?
Messages received from this list contain the following at the botton: ... To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com ... When I send a message to that address I get a message back that includes: ... - The following addresses had permanent fatal errors - android-developers-unsubscr...@googlegroups.com (reason: 550-5.1.1 The email account that you tried to reach does not exist. Please try) ... Before you say it, the address I used did not include the or symbols. Messages from this list also include: ... For more options, visit this group at http://groups.google.com/group/android-developers?hl=en .. I have gone to that address and poked around and I didn't see a way to unsubscribe there either. Does anyone have an idea how to get free of this list? And yes I know I could just filter all these messages to trash but that would seem to be at best a last choice option. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: CONTRACT - ANDROID Developers - Toronto
On Thursday 20 August 2009 13:16:21 Kevin - IT Recruiter wrote: I have 3 month contracts (extendable) available for Android Developers in Toronto You must be local (no remote work) Send me a word version of your resume ASAP You won't accept a sound version? kevi...@talgroup.net kevin (dot) b (at) talgroup (dot) net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: unsubscribe
On Wednesday 19 August 2009 20:07:55 FrogPad wrote: What does it take to be taken off of this group? I have tried to unsubscribe for a week. Any insights would be greatly appreciated. To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to draw text in rectangle
I don't know what you are trying to do, but if it's just simple layout stuff you may be making life more difficult for yourself than necessary. Try one of these things instead: a: use a textView and set it's background property (either to a color #argb or to a drawable). This has limitations, but for a single text item it should work fine. Depending on what you want, you can tweak the layout_width/layout_height parameters to get pretty close. An .xml example: TextView android:id = @+id/text1 android:background = @+drawable/filename android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/hello android:textSize = 12pt android:textStyle= bold android:textColor= #001 / b: use a layout(relativeLayout, etc) and set it's background/size then put the textView or anything else you want into it. You could also leave the background blank and put the drawable into the layout directly. RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id = @+id/container1 android:background = @+drawable/image android:layout_width=wrap_content android:layout_height=wrap_content android:layout_marginTop=20dip android:layout_marginLeft=20dip TextView android:id = @+id/text1 android:text=@string/hello android:layout_width=wrap_content android:layout_height=wrap_content android:layout_centerHorizontal=true android:layout_centerVertical=true / /RelativeLayout There is an awful lot of flexibility, so without knowing what you are after ... it's hard to say. Probably check the beginners forum at: http://groups.google.com/group/android-beginners and there will be a lot more information on this sort of thing. Hope that helps. On Aug 4, 6:54 am, wr1472 wadud@xqoob.com wrote: Hi, I have just started looking at developing for Google Android and want to draw a rectangle with some text in it that I then want to position where i want on screen. I have got as far as drawing a rectangle on screen using a ShapeDrawable and RectShape I now want to put some text in the rectangle. How can I best do this? Should I be looking at somehow adding a textView to the RectShape? Or am i going down the the wrong avenue completely? Some pointers would help greatly! Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!
On Friday 24 July 2009 20:16:41 Juan Hernandez wrote: How can you guys even use the term software piracy and propose the dead on arrival DRM and use Linux as a platform? it's because of people like you that the industry is driven by crappy corporations. Shame on you. Go and develop something on Windows CE or the iPhone. I agree! Go already. Here you are on a list serve cherry picking free information from the community and all you can talk about is how to lock people out from your harvest. Shame indeed. On Sat, Jul 25, 2009 at 10:07 PM, coolbho3k mike.g.hu...@gmail.com wrote: Any DRM should be programmed in the NDK - Dalvik bytecode is too easy to modify when disassembled. On Jul 22, 9:30 am, Moto medicalsou...@gmail.com wrote: Sorry but I'm very mad about this situation! I found one of my applications on the web all over for free! Every time I do an update 1 day goes by and BAM! For free on the web... So I want the help from all developers, we need to come up with something to make this at least harder to distribute. 1. Can we use phone numbers to register the application? And if illegally installed we got a phone number to use so pursue the pirate...? 2. Do we have access to the phones unique ID? This could be used to track who is using the application... How many illegal copies are runnning... There are ideas I have but will just go against the user friendliness ways of Android Please provide your ideas... thanks! -Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android Toast Duration
On Thursday 23 July 2009 08:17:25 Mohamed Amir wrote: Is there a way to make the Toast last for longer time? I have tried this code Toast t = new Toast(this); View v = View.inflate(this, R.toast_layout, null); t.setView(v); t.setDuration(Toast.LENGTH_LONG); t.show(); t.show(); t.show(); By calling show() method more than once, I hoped this would give a similar effect to lasting for longer time with some flickering, but I didn't see any difference. Is there some limit to the number of times that show() method can be called on the same Toast? e.g. just once per toast instance and further calling has no effect? Any ideas to increase that duration? Toast.makeText(mContext, Some comment goes here., 4); 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to run Android live cd on sun virtualbox in windows xp?
On Monday 20 July 2009 02:42:07 901 wrote: how to run Android live cd on sun virtualbox in windows xp? I searched web,it tell us use cat command,but windows have not that command cat will display the contents of a file. In windows you would use type to get the same affect. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Failed import from 1.0, issue with R.java
On Sunday 19 July 2009 22:29:01 Frank wrote: Hi all, Attempting to import my code from 1.0 to 1.5 sdk. just a bit of background info, i originally wrote the code for 1.0 on a windows machine, now i have a mac, eclipse and the latest sdk and would like to import and continue coding. The import went bumpy and some problems were solved from this post: http://groups.google.com/group/android-developers/browse_thread/thread/8f34 10d2b8131cb4 After I performed the android properties fix and did a clean rebuild I'm getting an error in R.java. Eclipse says that The type R is already defined. Any thoughts? is there a way to force regenerate R.java? Delete it. Eclipse will rebuild it during the next compile of your application. Thanks, I appreciate the 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Select a specific InputMethod by program
On Monday 13 July 2009 10:09:57 Dianne Hackborn wrote: If you just want a custom keyboard, you can use the same keyboard class to implement a keyboard within your app. Currently that is the only thing that is really supported. I want to do a similar thing. I have an EditText field that I want to fill with a dialog key pad that I have created. I am using et.setOnClickListener(this); to catch the click on the edit text field and everything is working fine except that the softkeyboad flashes between the click and the display of my dialog. Is there some way to disable/block the sofkeyboard from a specified EditText field? On Mon, Jul 13, 2009 at 10:00 AM, condor 25apr1...@gmail.com wrote: Hi Dannie thanks for the answer. If is not possible to change the IME by program how can I extend the standard one to mange number in a custom way? Actually, I need a keyboard that show only the 10 digits and the + - * / operators for a view that contains multiple EditText where the user can only input numbers. Regards On 13 juil, 18:12, Dianne Hackborn hack...@android.com wrote: Sorry, the application can't change the global IME. On Mon, Jul 13, 2009 at 5:41 AM, condor 25apr1...@gmail.com wrote: I compiled the example SoftKeyboard in the SDK successfully, but to use it, user has to select it as default IME or select it by the context menu. How to select it by program and use it in an EditText? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Spinner style?
Is there a way to set a Spinner's style so that each entry has the but no radio button? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Spinner style?
On Saturday 27 June 2009 16:38:20 Kent Loobey wrote: Is there a way to set a Spinner's style so that each entry has the but no radio button? Is there a way to set a Spinner's style so that each entry has text but no radio button? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Application Needed
OI Countdown might do what you want. Do a search on AndroidMarket. On Tuesday 23 June 2009 10:17:22 Brian Cloutier wrote: While I do not know of such an app, if you give me a week or two I could write one for you. On Tue, Jun 23, 2009 at 9:56 AM, Fred Grott(shareme) fred.gr...@gmail.comwrote: I would imagine if you would mention your branch of service that might help in getting the help you require. Myself, I am a former Airman, USAF..1980s.. Fred Grott http://mobilebytes.wordpress.com On Jun 22, 3:49 am, bizzy401 bizzy...@gmail.com wrote: I am an instructor in the military. I have an instructor evaluation coming up and I am looking for an application that might be able to help me out. When I am instructing a class I have to ask a question every three to six minutes. No more no less. I was looking for an app that would vibrate in my pocket every four minutes. Does anyone know of an app like this? Thank you very much for any help that is offered. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] horizontal/vertical finger swipe...
How do you detect a horizontal or vertical finger swipe? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Able to use T-Mobile G1 without contract for application testing?
The following is my opinion. I have a dev g1 phone. I was not able to get it to register with google without a sim card. This means that I couldn't get past the registration screen until I had a sim card. I think google makes it have to go through a phone connection to complete the registration. I got a sim card from T-Mobile ($63/mo, one month minimum). I could not get a data only plan from them. I haven't tried it yet without the sim because my month isn't up yet but I believe that it works fine with just WiFi which is just any WiFi connection (That is to say the WiFi isn't going through T-Mobile.). The point of a T-Mobile G1 contract is to get the phone discounted. If you don't want the phone discounted then you don't need the contract. The monthly rate is the same with or without the contract. You only need a T-Mobile account if you need to make cellular phone calls and to do the initial google registration. If you already have a GMail account the registration might not be necessary. On Tuesday 09 June 2009 19:35:49 tgustafson wrote: Hi Todd, Thank you very much for the reply. Is there a charge for the wifi- only data plan? I will be using this solely to develop and will always be covered by wifi coverage. Cheers, Tom On Jun 9, 7:16 am, Todd Sjolander guyfantas...@gmail.com wrote: I'm using a G1 with the old non-Android (read: Wifi only) data plan. The only downside that I've seen is the loss of connectivity outside of your Wifi networks. But if you're developing from inside a wireless network, it makes no difference. You can still buy apps on the market, and use all the usual network-based software. Todd Sjolander On Jun 9, 1:55 am, tgustafson tommygustaf...@gmail.com wrote: Hi John, Thanks for the tip, they look like they are quite expensive unfortunately given the low supply. Have you had any experience with developers using a generic t-mobile G1 phone for development without data plan? Cheers, Tom On Jun 8, 10:12 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: There are a few of the unlocked HTC Magic phones available on eBay. These are the ones given out at the Google IO conference that will work without a SIM or on any capable network. Search eBay for Google IO and you'll find them. Nice phones, I wouldn't part with mine for anything. -John Coryat http://maps.huge.info http://www.usnaviguide.com http://www.zipmap.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: If I buy a Dev G1 phone, will it be delivered to my US address as registered item or not?
On Tuesday 26 May 2009 02:50:01 codeplay wrote: Hi folks: If I buy a Dev G1 phone, will it be delivered to my US address as registered item or not? Is my signature required when it is delivered to me? Thank you! I had to sign for mine. Rgds, cp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] A $400.00 learning experience...
Because I wanted to develop an android application that ran on a G1 device I bought an Android Dev 1 Phone. I thought that having the actual device in hand would help me get a better feel for the device as I worked on the application. I don't personally use a phone that much and don't have any need for a cel phone. So now I have the device but can't use it without opening an account with T- Mobile. It seems that Google requires the G1 have a SIM installed to activate the device. I am really disappointed in the lack of honesty in this matter. The G1 device isn't really unlocked and how open is it if you have to have an account with a specific provider. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Question about cupcake changes.
I asked this on the discuss forum also. The cupcake roadmap indicates: A number of settings in android.provider.Settings.System were moved to android.provider.Settings.Secure. Only system software can modify these settings. Is there any word on which settings will no be longer accessible to public developers? And a related question: will this change cripple settings management applications already posted on the Market? Thanks, Kent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to scan for WiFi networks?
I think you are looking for BroadcastReceiver (More info @ http://code.google.com/android/reference/android/content/BroadcastReceiver.html ) . Try something like this in your application's onCreate() ... // -- Sample WiFi implementation IntentFilter i = new IntentFilter(); i.addAction (WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); registerReceiver(new BroadcastReceiver(){ public void onReceive(Context c, Intent i){ // Code to execute when SCAN_RESULTS_AVAILABLE_ACTION event occurs WifiManager w = (WifiManager) c.getSystemService (Context.WIFI_SERVICE); w.getScanResults(); // Returns a list of scanResults } }, i ); // Now you can call this and it should execute the broadcastReceiver's onReceive() WifiManager wm = (WifiManager) getSystemService (Context.WIFI_SERVICE); boolean a = wm.startScan(); // -- End Wifi Sample NOTE: I don't think wiFi stuff works in the emulator, and you must set the correct Wifi permissions in your Application's manifest for it to work on an actual device. -K On Dec 9, 2:44 pm, Ian [EMAIL PROTECTED] wrote: Hi everyone, I want to write an app that scans for WiFi networks and displays their signal strengths, continually updating. It seems like a no-brainer to use android.net.wifi.WifiManager.startScan() and get the results; but how? startScan() says: The availability of the results is made known later by means of an asynchronous event sent on completion of the scan. How do I get this asynchronous event? I can't see any API to register a listener. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---