[android-developers] external or usb mic for audio recording?
I realize that MediaRecorder.AudioSource supports several input sources, although I think they all boil down to one of two physical sources: either a microphone on the bottom for phone-style-speaking and one on the back for camcorder recording (on phones that have such a secondary mic)...but do any Android devices physically support external mics, say through the USB port, and if so, what software hooks does the Android API offer for accessing those mics? I haven't found anything like this yet. 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: Need Android Service suggestions
yes use alarm manager to start your service and once work is done , self stop the service On Jan 4, 12:43 pm, Kumar Bibek coomar@gmail.com wrote: Alarm manager is the best option. On Jan 4, 9:33 am, Jacob jacobroutolo...@gmail.com wrote: Hi all My requirement: Need some piece of code executing every 5 minutes (no UI). This code needs to access server thru internet and get some data and use them on the device. This code is not heavy weight. Just light weight fetch of 5K to 10K. And the data is not always fetched. Data fetch from server happens only once a day or so. I thought about a service and have written one with a timer and a thread (does the server data fetch). But I read some articles and docs that a service might be *killed* by the OS in low memory or idle situations. Question: Whats the suggested method to achieve this goal in android? I would like the code to run even in low memory situations or at least be run after the memory situation gets better in the OS (OS can kill my code/ app and restart the code when its better; but don't wanna wait for hours). Thank you for the help! Jacob. -- 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: Fast way to write and read buffered data from AudioRecord
How do you predict the size of the destination array? I mean I think you also copy the samples from audiostream into a smaller temp buffer and then into your dest. larger one - if you use an array for the dest. one how do you set size of that? On 4 Sty, 08:49, Keith Wiley kbwi...@gmail.com wrote: In my audio app I just use System.arraycopy() to transfer samples from the recording buffer to a secondary buffer for real-time processing. -- 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: Fast way to write and read buffered data from AudioRecord
How do you predict the size of the destination array? I mean I think you also copy the samples from audiostream into a smaller temp buffer and then into your dest. larger one - if you use an array for the dest. one how do you set size of that? On 4 Sty, 08:49, Keith Wiley kbwi...@gmail.com wrote: In my audio app I just use System.arraycopy() to transfer samples from the recording buffer to a secondary buffer for real-time processing. -- 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: Fast way to write and read buffered data from AudioRecord
How do you predict the size of the destination array? I mean I think you also copy the samples from audiostream into a smaller temp buffer and then into your dest. larger one - if you use an array for the dest. one how do you set size of that? On 4 Sty, 08:49, Keith Wiley kbwi...@gmail.com wrote: In my audio app I just use System.arraycopy() to transfer samples from the recording buffer to a secondary buffer for real-time processing. -- 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] Can we access Java.util Map of a class in another class
I am using a SortedMap in a calss that extends SimpleCursoradapter. can i acess that map from another class that extends ListActivity. The code im using is given below. * public* *class* ListContacts *extends* ListActivity { ListAdapter lAdapter; @Override *public* *void* onCreate(Bundle savedInstanceState) { *super*.onCreate(savedInstanceState); setContentView(R.layout.*activitylist*); // /** * * Use the ContentResolver instance to query the database and return a * Cursor with the contacts list. The query is performed against the URI * stored in ContactsContract.Contacts.CONTENT_URI. */ Cursor cursor = getContentResolver().query( ContactsContract.Contacts.*CONTENT_URI*, *null*, ContactsContract.Contacts.*HAS_PHONE_NUMBER* + = 1, *null*,null); startManagingCursor(cursor); // start mappings String[] columns = *new* String[] { ContactsContract.Contacts.*DISPLAY_NAME * }; *int*[] names = *new* *int*[] { R.id.*contact_name* }; lAdapter = *new* ImageCursorAdapter(*this*, R.layout.*main*, cursor, columns ,names); @Override *protected* *void* onListItemClick(ListView l, View v, *int* position, *long * id) { *super*.onListItemClick(l, v, position, id); } } // end of class ListContacts * public* *class* ImageCursorAdapter *extends* SimpleCursorAdapter { *private* Cursor c; *private* Context context; SortedMapString, String phoneNumberMap = *new* TreeMapString, String(); *public* SortedMapString, String getPhoneNumberMap() { *return* phoneNumberMap; } *public* *void* setPhoneNumberMap(SortedMapString, String phoneNumberMap) { *this*.phoneNumberMap = phoneNumberMap; } *public* ImageCursorAdapter(Context context, *int* layout, Cursor c, String[] from, *int*[] to) { *super*(context, layout, c, from, to); *this*.c = c; *this*.context = context; } *public* View getView(*int* pos, View inView, ViewGroup parent) { phoneNumberMap.put(1, fasfa); phoneNumberMap.put(2, fasfa1); phoneNumberMap.put(3, fasfa2); phoneNumberMap.put(4, fasfa3); phoneNumberMap.put(5, fasfa4); phoneNumberMap.put(6, fasfa5); System.*out*.println( Map : size: + phoneNumberMap.size()); } }// end of class ImageCursorAdapter How can i access phoneNumberMap in the onListItemClick () method of Listcontacts class. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to play youtube videos within custom android activity
Huh? All the mobile youtube apps that aren't flash native are pulling down h264 video. So the trick is not converting them, but rather figuring out what the links are to those h264 videos. It may be special keys are required, but there are some HTML5 demo sites floating around that have javascript that pulls down those h264 videos, so people have figured out how to get them. You can't request them via the YouTube API, which is pretty strange, but all the youtube download scripts pull them down. Jonathan On Jan 3, 11:42 pm, Kumar Bibek coomar@gmail.com wrote: You need to understand first that youtube videos are generally in flv format, and the SDK doesn't provide default decoders or apis to handle such media. If you have to create your own player, then you have the tough task of converting the flv files to other supported media and then continue. On Jan 4, 10:49 am, sanjay sanjayujjain...@gmail.com wrote: Hi, I am able to play youtube videos by startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(http://www.youtube.com/watch?v=cxLG2wtE7TM;))); But this leave my application and starts the player activity where I have no control, How can I play youtube videos within my activity, as I have to provide the user some option menu? Let me know how can I achieve this. Thanks Sanjay Ujjainkar -- 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: Can we access Java.util Map of a class in another class
If you need a global object like that, the best thing to do is to hold a reference to it in your application class object, which you can access from any activity via getApplication(); Just be sure that whatever you are sticking in that map isn't keeping a strong reference to the activity context, otherwise you'll start leaking activities across lifecycle events. Jonathan On Jan 4, 1:07 am, jennifer jeenaraju...@gmail.com wrote: I am using a SortedMap in a calss that extends SimpleCursoradapter. can i acess that map from another class that extends ListActivity. The code im using is given below. * public* *class* ListContacts *extends* ListActivity { ListAdapter lAdapter; @Override *public* *void* onCreate(Bundle savedInstanceState) { *super*.onCreate(savedInstanceState); setContentView(R.layout.*activitylist*); // /** * * Use the ContentResolver instance to query the database and return a * Cursor with the contacts list. The query is performed against the URI * stored in ContactsContract.Contacts.CONTENT_URI. */ Cursor cursor = getContentResolver().query( ContactsContract.Contacts.*CONTENT_URI*, *null*, ContactsContract.Contacts.*HAS_PHONE_NUMBER* + = 1, *null*,null); startManagingCursor(cursor); // start mappings String[] columns = *new* String[] { ContactsContract.Contacts.*DISPLAY_NAME * }; *int*[] names = *new* *int*[] { R.id.*contact_name* }; lAdapter = *new* ImageCursorAdapter(*this*, R.layout.*main*, cursor, columns ,names); @Override *protected* *void* onListItemClick(ListView l, View v, *int* position, *long * id) { *super*.onListItemClick(l, v, position, id); } } // end of class ListContacts * public* *class* ImageCursorAdapter *extends* SimpleCursorAdapter { *private* Cursor c; *private* Context context; SortedMapString, String phoneNumberMap = *new* TreeMapString, String(); *public* SortedMapString, String getPhoneNumberMap() { *return* phoneNumberMap; } *public* *void* setPhoneNumberMap(SortedMapString, String phoneNumberMap) { *this*.phoneNumberMap = phoneNumberMap; } *public* ImageCursorAdapter(Context context, *int* layout, Cursor c, String[] from, *int*[] to) { *super*(context, layout, c, from, to); *this*.c = c; *this*.context = context; } *public* View getView(*int* pos, View inView, ViewGroup parent) { phoneNumberMap.put(1, fasfa); phoneNumberMap.put(2, fasfa1); phoneNumberMap.put(3, fasfa2); phoneNumberMap.put(4, fasfa3); phoneNumberMap.put(5, fasfa4); phoneNumberMap.put(6, fasfa5); System.*out*.println( Map : size: + phoneNumberMap.size()); } }// end of class ImageCursorAdapter How can i access phoneNumberMap in the onListItemClick () method of Listcontacts class. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Getting a test version of an .apk to a end user
Note: because you will have the tester install out-of-band from the Market, the tester will need to uninstall the App first. But if you sign the apk with the same key that has been used to upload the app on Market the user should be able to update the app without uninstalling it. (at least I tried that with my own apps and it worked fine..) Usually I send the apk by email, and tell the user to use a file manager to install it. Then if he doesn't have 'Unkown sources' checked he will just get a warning when trying to install and if I remember correctly there should be also a popup with instructions on how/where to enable it. On Tue, Jan 4, 2011 at 1:55 AM, metal mikey coref...@gmail.com wrote: Is Email easy enough? Note: because you will have the tester install out-of-band from the Market, the tester will need to uninstall the App first. On Jan 4, 9:58 am, John Lussmyer johnlussm...@gmail.com wrote: You mean you put it out on the Android Marketplace? On Mon, Jan 3, 2011 at 2:56 PM, Wayne Wenthin wa...@fuligin.com wrote: I've taken to putting the latest version on the website and letting them download and install from there. On Mon, Jan 3, 2011 at 2:54 PM, John Lussmyer johnlussm...@gmail.com wrote: Is there any relatively easy way for me to send a test version of my app.apk file to a user? I may have fixed a problem he's seeing (that doesn't happen on my phone of course), and I'd like to have him test it BEFORE I deploy it to the store. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.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] Starting email client with html pre-compiled code
Hi at all, I am trying to start the default email client with some pre-compiled html text inside body, but I am not able to do so, this is a sample of my code: Intent email = new Intent(Intent.ACTION_VIEW); email.setType(text/html); StringBuilder uri = new StringBuilder(mailto:;); uri.append(body=).append(Uri.encode(htmlbodybr/br/b +this.cardbase.getName()+/b - +this.panorama_input.get(position).getTitolo()+br/i +this.cardbase.getCountry()++ this.cardbase.getCity() + + this.cardbase.getCategory() +/ibr/ +this.panorama_input.get(position).getPhophotographer()+br/br/ img src=\ +this.panorama_input.get(position).getUrl_thumb() +\br/+br/View this image on your iPhone,a href= \http://itunes.apple.com/us/app/aroundertouch/id335574325?mt=8\; get This App/abr/View This panoramic image on +a href= \+getResources().getString(R.string.VT_info_email_link_arounder_website) +\Arounder/a/body/html )); Uri.encode(getResources().getString(R.string.VT_info_email_subject))); email.setData(Uri.parse(uri.toString())); startActivity(email); But I can only see an email with the html code isn't interpreted! Anyone knows a solution? -- 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 imitate multi-touch by emulator
I want to test my multi-touch program, but I don't know how to do. -- 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: Start default email client
Do you know how inserti HTML code in the body? I would like users see that HTML body interpreted by the email client, it's possible? On 30 Nov 2010, 12:31, Kostya Vasilyev kmans...@gmail.com wrote: If the message is sent but not received, something is wrong somewhere along the way (not in the intent). What happens if you send the message yourself, from the same email program / address, to the same address? -- Kostya 30.11.2010 14:17, pedr0 пишет: I am sorry, yes it's works, it show me a email client, but when I click to send button it say me that the email is sended, but the email account configured doesn't receive an email! What's wrong? On 30 Nov, 11:58, pedr0pulsarpie...@gmail.com wrote: Thanks, it works! On 30 Nov, 11:42, Kostya Vasilyevkmans...@gmail.com wrote: You can't. You can start *an* email client. Which one depends on what the user has installed, and which application he chooses. The code I use is: Intent view = new Intent(Intent.ACTION_VIEW); StringBuilder uri = new StringBuilder(mailto:;); uri.append(email address here); uri.append(?subject=).append(Uri.encode(subject here)); uri.append(body=).append(Uri.encode(message body here)); view.setData(Uri.parse(uri.toString())); startActivity(view); There are other ways to specify subject and body, but this one works with certain buggy email clients (H*C Se*se). -- Kostya 30.11.2010 13:30, pedr0 пишет: Hi at all, How can I make a intent to start the default email client? I would like to set the receiver address of message.. Thanks! -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can we access Java.util Map of a class in another class
can u pls explain a little bit more about this. how to hold a reference of a map it the application class object -- 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: Starting email client with html pre-compiled code
I searched in Google and found working examples to send HTML email from Android, which I used. Though I did not use images and did not include the html and body tags. I used formatting tags like strong etc. I don't exactly remember the code right now. I think you should first search in Google. Which can give you instant solution. Regards Sarwar Erfan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help me on AsyncTask
Hi, I am doing some AsyncTask thing and seems to work ok and after that I open another intent to display a listview. The thing is, if the user press the back key, it return to the caller intent showing the progress dialog and seems to be hanging there until it crash. What did I do wrong? I already do a dialog.dismiss() onPostExecute(). Please help me out. Many thanks, CJ private class LongOperation extends AsyncTaskString, Void, String { ProgressDialog dialog; @Override protected String doInBackground(String... params) { // download something from the net and processing it. // work perfectly return null; } @Override protected void onPostExecute(String result) { // execution of result of Long time consuming operation // some processing from the information taken from the internet (doInBackground) if (dialog.isShowing()) { dialog.dismiss(); } } /* (non-Javadoc) * @see android.os.AsyncTask#onPreExecute() */ @Override protected void onPreExecute() { // Things to be done before execution of long running operation. For example showing ProgessDialog dialog = ProgressDialog.show(Main.this, , Receiving data, true); } @Override protected void onProgressUpdate(Void... values) { // Things to be done while execution of long running operation is in progress. For example updating ProgessDialog } } -- 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] Facebook image share
Hi all, how to upload image to facebook through api ., Thanks in advance Thanks, Gurusagar -- 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: CPU cost of a semi-infinite loop
Wonderful :) And you know what ? It's taking 1% of the CPU now... 3% @ 250 BPM with all quarter notes running. Absolutely amazing. Topic closed ! Thanks again. On 1 jan, 19:55, Dianne Hackborn hack...@android.com wrote: adb shell top will show CPU usage. My favorite version is adb shell top -t -m 10. On Sat, Jan 1, 2011 at 7:49 AM, Slash4 alex.cen...@gmail.com wrote: After several tests involving AudioTrack, both STATIC and STREAM mode, It was obvious I could not use this because of the specificity of my metronome, which can mix and play Notes, Half notes, quarter notes and triplets at the same time. Filling and reseting the AudioTracks buffers between each tempo change was way too long, even if after that no more CPU was needed because I used the loops (pretty interesting feature though, especially with the OnPlaybackPositionUpdateListener features allowing to sync between several AudioTracks, or UI). In STREAM mode, filling the buffer permanently was CPU consuming too, and I was facing a sync problem with my UI, which needs to react to each first beat of the bar. To answer Kristopher, I can testify that the latencies are very low and pretty appropriate to short loops (for Audiotrack at least, as I didn't test Mediaplayer). So, after that I followed Dianne 's idea and searched about delayed message posting. Finally I came up to a mix between delayed messages and Bret supposition with a timeStamp refreshed on each first beat to compensate the (eventual) jitter. GC doesn't bothers it seems, even if it happens, I see it in the debug log, but do not hear jitter anyway. Is there something like Task Manager on android to see how much CPU it costs now ? I would like to compare the two versions now :) Thanks for your reactive and precise help. And oh, happy new year :) Rgds, Alex On 30 déc 2010, 10:56, Slash4 alex.cen...@gmail.com wrote: Thanks Kostya, Streaming seems to be a great solution. And it is very interesting because this way I can mix sounds... Let's do this :) Rgds, Alex On 29 déc, 21:23, Kostya Vasilyev kmans...@gmail.com wrote: To elaborate a bit: http://developer.android.com/reference/android/media/AudioTrack.html AudioTrack supports streaming mode of operation, where data can be fed into it on the fly. You'd still need to do some sort of scheduled periodic loop, for feeding data to AudioTrack in chunks, but this way can deal with much larger jitter, which would be reasonable at application level. At some point, you'd need to queue the metronome click, presumably from an audio file packed within the application. This should help with that: http://mindtherobot.com/blog/580/android-audio-play-a-wav-file-on-an-. .. -- Kostya 29.12.2010 22:40, Frank Weiss пишет: I'd look into Kostya's suggestion. Ideally, you only need the click sample and you can program the audio player to play the sample at precise intervals. Trying to do precise timing with SDK programming is just frought with pitfalls, AFAIK. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] New mobile number | Neue Handynummer
Hi everyone, As of today, I've got a new mobile number: +49 176 39160894 Home number: +49 241 53808454 Kind regards, Simon - Hallo in die Runde, Ab heute habe ich eine neue Handynummer: +49 176 39160894 Festnetz: +49 241 53808454 Gruß, Simon -- 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: getExternalStorageDirectory() on NEXUS S
Thanks Doug, Your reply is very helpful, you also replied to another post of mine so thanks again :) On Dec 20 2010, 1:51 am, Doug beafd...@gmail.com wrote: On Dec 19, 2:14 pm, Tabman tabishfay...@gmail.com wrote: I have a question related to this. How many phones are out there with this type of behavior ? I want to access Camera Photos/Videos on a phone and for that I've used EXTERNAL_CONTENT_URI but it seems that approach would fail on a phone likeDroidIncredible. How should I design my app such that it is able to get camera data from any android phone ? It will fail on theDroidIncrediblebecause they didn't wire up that URI to point to the external storage mounted at, I think, /emmc. That's fragmentation for you. (I think they did it wrong.) But at least their camera app doesn't put content on the sdcard. It's forced into the built-in space that will get picked up by the Android media scanner when it indexes EXTERNAL_CONTENT_URI. However, it works on Galaxy S devices because its built-in external space is wired to that URI --AND-- if you do have a sdcard in the device, it will mount THAT filesystem underneath the internal storage space. So if the internal storage space was at /mnt/sdcard, your additional sdcard would be at /mnt/sdcard/external_sd. And when the Android media scanner runs to index media referenced by EXTERNAL_CONTENT_URI, it will scan all of /mnt/sdcard, including the sdcard. So they're doing it in a more compatible way that lets you get at the media on the user's sdcard in addition to the built-in space. I don't know what the Nexus S or HTC Hero do. I also don't know what this Picasa Tool Pro does. Maybe it doesn't query against the Android content providers for media and does its own thing instead. Doug -- 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: initialization of usb from android Application
This relates to android-platform and beside this, what do you mean with initialize USB ? A fresh enumeration ? On 3 Jan., 16:29, bharath dg.bhar...@gmail.com wrote: Hi, Is it possible to initialize USB from Android Application? if possible please post a sample code. Thanks, Bharath -- 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: Starting email client with html pre-compiled code
I founded a lot of code which SEND email with HTML code inside the body, what I am looking for is open the email client with some HTML interpreted code. I didn't find this on Google! Bye pedr0 On 4 Gen, 10:47, Sarwar Erfan erfanonl...@gmail.com wrote: I searched in Google and found working examples to send HTML email from Android, which I used. Though I did not use images and did not include the html and body tags. I used formatting tags like strong etc. I don't exactly remember the code right now. I think you should first search in Google. Which can give you instant solution. Regards Sarwar Erfan -- 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] Emulator crashes when launching a new Activity
Hello, I've got a problem when I'm trying to create a new activity when I click on a button. My virtual device (emulator) crashes when I click on the button saying something like: The application has stopped unexpectedly Could you please help? My main activity I launch my application is LaunchRecruitMobile as below. I'd like this activity to lauch another activity MenuMain when I click on a button. public class LaunchRecruitMobile extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.logon); ImageButton btn=(ImageButton)findViewById(R.id.logon_ok_imagebutton); btn.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { Intent intent = new Intent(LaunchRecruitMobile.this, MenuMain.class); startActivity(intent); } }); } //end of constructor } public class MenuMain extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.menu_main); } } In the manifest I've only got: application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.LaunchRecruitMobile android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application I've tried the same in adding the following but doesn't work neither: activity android:name=.MenuMain android:label=@string/app_name intent-filter action android:name=android.intent.action.DEFAULT / /intent-filter /activity Thanks a lot. Best regards. Julien. -- 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 2.3 emulator crashed after a requestLocationUpdates call
Probably the same problem as: http://code.google.com/p/android/issues/detail?id=13015. Hopefully Android will fix this problem soon. On Dec 30 2010, 12:23 pm, Ians ian_steenbrug...@live.nl wrote: On older versions (2.3) there was no problem with this app. When I start the application on an Android 2.3 emulator it starts with a 'home screen' then I send the GPS coordinates. After sending the coordinates the emulator stops all his processes and tries to do a restart, but then it hangs. If I comment the requestLocationUpdates call the emulator does not crash… See the logcat output under this message. 12-30 10:31:28.174: INFO/DEBUG(31): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 12-30 10:31:28.185: INFO/DEBUG(31): Build fingerprint: 'generic/sdk/ generic:2.3/GRH55/79397:eng/test-keys' 12-30 10:31:28.194: INFO/DEBUG(31): pid: 89, tid: 229 system_server 12-30 10:31:28.194: INFO/DEBUG(31): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 12-30 10:31:28.205: INFO/DEBUG(31): r0 r1 405155a0 r2 4128fcbc r3 46282c74 12-30 10:31:28.205: INFO/DEBUG(31): r4 012d r5 r6 405155a0 r7 4128fcbc 12-30 10:31:28.205: INFO/DEBUG(31): r8 84301321 r9 84302240 10 0010 fp 0001 12-30 10:31:28.215: INFO/DEBUG(31): ip 82f0e7d4 sp 46282c60 lr 82f0ab37 pc 82f07d0e cpsr 0030 12-30 10:31:28.845: INFO/DEBUG(31): #00 pc 7d0e /system/ lib/libandroid_servers.so 12-30 10:31:28.845: INFO/DEBUG(31): #01 pc ab32 /system/ lib/libandroid_servers.so 12-30 10:31:28.845: INFO/DEBUG(31): #02 pc 12ca /system/ lib/hw/gps.goldfish.so 12-30 10:31:28.855: INFO/DEBUG(31): #03 pc 14ae /system/ lib/hw/gps.goldfish.so 12-30 10:31:28.855: INFO/DEBUG(31): #04 pc 00011a7c /system/ lib/libc.so 12-30 10:31:28.865: INFO/DEBUG(31): #05 pc 00011640 /system/ lib/libc.so etc. -- 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] Emulator crashes when launching a new Activity
Julien, You do need activity entries in the manifest for all your activities, including MenuMain. The intent filter for MenuMain is not necessary. Other than that, check the logcat for error messages. Might be something wrong in menu_main.xml. -- Kostya 04.01.2011 15:17, Rockline пишет: Hello, I've got a problem when I'm trying to create a new activity when I click on a button. My virtual device (emulator) crashes when I click on the button saying something like: The application has stopped unexpectedly Could you please help? My main activity I launch my application is LaunchRecruitMobile as below. I'd like this activity to lauch another activity MenuMain when I click on a button. public class LaunchRecruitMobile extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.logon); ImageButton btn=(ImageButton)findViewById(R.id.logon_ok_imagebutton); btn.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { Intent intent = new Intent(LaunchRecruitMobile.this, MenuMain.class); startActivity(intent); } }); } //end of constructor } public class MenuMain extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.menu_main); } } In the manifest I've only got: application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.LaunchRecruitMobile android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application I've tried the same in adding the following but doesn't work neither: activity android:name=.MenuMain android:label=@string/app_name intent-filter action android:name=android.intent.action.DEFAULT / /intent-filter /activity Thanks a lot. Best regards. Julien. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Emulator crashes when launching a new Activity
Hi pls post what you have written in menu_main.xml 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: Can we access Java.util Map of a class in another class
Yes its working for me: Thanks . The code is The more general problem you are encountering is how to save state across several Activities and all parts of your application. A static variable is a common Java way of achieving this. public class ImageCursorAdapter extends SimpleCursorAdapter { public static SortedMapString, String phoneNumberMap = new TreeMapString, String(); public static SortedMapString, String getPhoneNumberMap() { return phoneNumberMap; } public static void setPhoneNumberMap(SortedMapString, String phoneNumberMap) { ImageCursorAdapter.phoneNumberMap = phoneNumberMap; } } public class class ListContacts extends ListActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); System.out.println(Map size: : + ImageCursorAdapter.getPhoneNumberMap().size()); Set s = ImageCursorAdapter.getPhoneNumberMap().entrySet(); Iterator it = s.iterator(); while (it.hasNext()) { Map.Entry m = (Map.Entry) it.next(); String key = (String) m.getKey(); String value = (String) m.getValue(); System.out.println(loadContactDetails Map : Value : Names : + value); System.out.println(loadContactDetails Map : Key : Names : + key); } } } REFER: http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables -- 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: Starting email client with html pre-compiled code
Try this, final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType(text/html); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(emailText)); QuoteDroid.this.startActivity(emailIntent); Hope it works for 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
Re: [android-developers] Re: Starting email client with html pre-compiled code
Simple html is fine, but you won't be able to embed images this way. Inline images, I mean On 04-Jan-2011 6:08 PM, Sohil sohilva...@hotmail.com wrote: Try this, final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType(text/html); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(emailText)); QuoteDroid.this.startActivity(emailIntent); Hope it works for you. -- You received this message because you are subscribed to the Google Groups Android Developers... -- 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 play youtube videos within custom android activity
Hi, Try using video element of HTML5, though its experimental. but it will help for your problem put the webview component and load the static file with dynamic url to webview. It wont work for all the video that would be the limitation. Its supported in android 2.0+ . video id=video autobuffer height=240 width=360 source src=BigBuck.m4v source src=BigBuck.webm type=video/webm source src=BigBuck.theora.ogv type=video/ogg /video -- 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] Emulator crashes when launching a new Activity
Hello Kostya, Thanks for your help. It seems that I made a mistake in MenuMain indeed (imported an Button instead of an ImageButton -- stupid mistake). Sorry for bothering you all. Topic closed. Have a good day. Best regards. Julien. 2011/1/4 Kostya Vasilyev kmans...@gmail.com Julien, You do need activity entries in the manifest for all your activities, including MenuMain. The intent filter for MenuMain is not necessary. Other than that, check the logcat for error messages. Might be something wrong in menu_main.xml. -- Kostya 04.01.2011 15:17, Rockline пишет: Hello, I've got a problem when I'm trying to create a new activity when I click on a button. My virtual device (emulator) crashes when I click on the button saying something like: The application has stopped unexpectedly Could you please help? My main activity I launch my application is LaunchRecruitMobile as below. I'd like this activity to lauch another activity MenuMain when I click on a button. public class LaunchRecruitMobile extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.logon); ImageButton btn=(ImageButton)findViewById(R.id.logon_ok_imagebutton); btn.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { Intent intent = new Intent(LaunchRecruitMobile.this, MenuMain.class); startActivity(intent); } }); } //end of constructor } public class MenuMain extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.menu_main); } } In the manifest I've only got: application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.LaunchRecruitMobile android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application I've tried the same in adding the following but doesn't work neither: activity android:name=.MenuMain android:label=@string/app_name intent-filter action android:name=android.intent.action.DEFAULT / /intent-filter /activity Thanks a lot. Best regards. Julien. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Starting email client with html pre-compiled code
Not, the result is the same...I can see the HTML tag but I would like users see the interpretation of that. Any suggestion? Thanks any way On 4 Gen, 13:45, Kumar Bibek coomar@gmail.com wrote: Simple html is fine, but you won't be able to embed images this way. Inline images, I mean On 04-Jan-2011 6:08 PM, Sohil sohilva...@hotmail.com wrote: Try this, final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType(text/html); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(emailText)); QuoteDroid.this.startActivity(emailIntent); Hope it works for you. -- You received this message because you are subscribed to the Google Groups Android Developers... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to listen for ACTION_EXTERNAL_APPLICATIONS_AVAILABLE while Move2SD is enabled?
Any answer? - Original Message From: Armond Avanes armond...@yahoo.com To: android-developers@googlegroups.com Sent: Sunday, January 2, 2011 12:03:59 Subject: [android-developers] How to listen for ACTION_EXTERNAL_APPLICATIONS_AVAILABLE while Move2SD is enabled? Hi Guys, I have an application which I'm going to enable Move to SD for. The problem is that I have some scheduled alarms (for running some background tasks) so if the application has already been moved to SD and the SD is mounted as a disk drive, all my scheduled alarms and background services will be terminated. Obviously my app should listen for ACTION_EXTERNAL_APPLICATIONS_AVAILABLE broadcast to register/schedule the alarms again as a classic solution... Now the problem I'm facing is that the applications which have been moved to SD wouldn't receive ACTION_EXTERNAL_APPLICATIONS_AVAILABLE! The end result is that my application will never be able to resume its alarms and services in such cases!! Further reference (notice the sentence Note that the packages in this list do not receive this broadcast): http://developer.android.com/intl/fr/reference/android/content/Intent.html#A CTION_EXTERNAL_APPLICATIONS_AVAILABLE Also I've found a bug reported for this problem but it's still not accepted after 7 months: http://code.google.com/p/android/issues/detail?id=8485 Any solution? Any clues? Armond -- 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] Sensitivity of SCROLL_STATE_FLING event
Hello, I'm using AbsListView.onScrollListener, is there a way to decrease the sensitivity of when SCROLL_STATE_FLING is detected, I feel even on small scroll it fires the SCROLL_STATE_FLING event 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] Calling a non-static method in an Activity class from a non-Activity class ?
Hi, This question might actually have been brought to developer's attention here on the list before, yet I wasn't able to find a solution after a brief search on the net. I have a method in one of my Activity classes which I would like to call from a non-Activity class when the Activity class that the method is a member of is active and running (e.g. in my case the Activity class that I am refering to is in fact a ListActivity class and thus it displays a list of items on the screen when it is running) The problem arises when the non-Activity class, which has a Broadcast Receiver, needs to call this method to update the list. Here are my contraints: - I can't move the method to a static class - I can make neither the Activity class nor the method just by itself static Is there any way to retrieve the context for the Activity that is currently running ? Maybe I am missing a straight forward solution here. Any suggestions on how to proceed ? Thanks in advance, Emre -- 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] Calling a non-static method in an Activity class from a non-Activity class ?
You can override onPause and onResume in your activity and keep track of its screen time. Another, cleaner way is to pass a callback interface reference from your activity to the other class instance. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 04.01.2011 16:49 пользователь Emre A. Yavuz eayl...@hotmail.com написал: Hi, This question might actually have been brought to developer's attention here on the list before, yet I wasn't able to find a solution after a brief search on the net. I have a method in one of my Activity classes which I would like to call from a non-Activity class when the Activity class that the method is a member of is active and running (e.g. in my case the Activity class that I am refering to is in fact a ListActivity class and thus it displays a list of items on the screen when it is running) The problem arises when the non-Activity class, which has a Broadcast Receiver, needs to call this method to update the list. Here are my contraints: - I can't move the method to a static class - I can make neither the Activity class nor the method just by itself static Is there any way to retrieve the context for the Activity that is currently running ? Maybe I am missing a straight forward solution here. Any suggestions on how to proceed ? Thanks in advance, Emre -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to imitate multi-touch by emulator
See this: http://stackoverflow.com/questions/2082707/android-multitouch-possible-to-test-in-emulator On 4 Gen, 10:31, Kenny Chang eric-...@163.com wrote: I want to test my multi-touch program, but I don't know how to do. -- 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: Fast way to write and read buffered data from AudioRecord
I tried to switch to ENCODING_PCM_8BIT but am getting the exception: java.lang.IllegalArgumentException: Invalid audio buffer size Although I pass the correct value to getMinBufferSize. Do I need to change sth else? On 4 Sty, 09:41, Serdel adam.lichwierow...@gmail.com wrote: How do you predict the size of the destination array? I mean I think you also copy the samples from audiostream into a smaller temp buffer and then into your dest. larger one - if you use an array for the dest. one how do you set size of that? On 4 Sty, 08:49, Keith Wiley kbwi...@gmail.com wrote: In my audio app I just use System.arraycopy() to transfer samples from the recording buffer to a secondary buffer for real-time processing. -- 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: Help me on AsyncTask
If it's crashing then take a look at the exception that's logged it'll give you a line number. -- 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] What happens when MapView.invalidate() is called ?
Hi, Is anybody aware of a link or a tutorial on the web that explains what happens in detail when MapView's invalidate() method is called ? Isn't the onCreate() method in the MapActivity class recalled ? Cheers, Emre -- 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] Tracking activity launch
Hi, I'm trying to write a service that can tracks activity. It just need to get information when any activity is opened or closed on the device. I didn't find the solution with BroadcastReceiver, Intent or LauncherActivity So i've looked for AccessibilityManager/AccessibilityEvent, ActivityManager, PackageManager But didn't find yet; i'm sure there is a simple way to do this Anyone knows ? 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to add labels above this table layout
On Mon, Jan 3, 2011 at 10:53 PM, pramod.deore deore.pramo...@gmail.comwrote: I thought first that If your activity is exwnds from ListActivity then you don't have to add setContentView(). In general, setContentView() should be one of the first things you do in onCreate, regardless of Activity type. Ok TreKing Thank you very much for your help and time. You're welcome. Glad you figured it out. On Mon, Jan 3, 2011 at 10:55 PM, pramod.deore deore.pramo...@gmail.com wrote: Excellent patience! Yes Sarwar, He really has excellent patience. First time I've heard that ;-) - 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
Re: [android-developers] What happens when MapView.invalidate() is called ?
On Tue, Jan 4, 2011 at 8:48 AM, Emre A. Yavuz eayl...@hotmail.com wrote: Is anybody aware of a link or a tutorial on the web that explains what happens in detail when MapView's invalidate() method is called ? This method is just inherited from View, so just read the docs. If you need more detail, read the source. http://developer.android.com/reference/android/view/View.html#invalidate() Isn't the onCreate() method in the MapActivity class recalled ? Step 1: Put a log statement in onCreate(). Step 2: At some point, call invalidate(). Step 3: Question answered. - 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
Re: [android-developers] Facebook image share
On Tue, Jan 4, 2011 at 4:18 AM, guru sagar gurusagar...@gmail.com wrote: how to upload image to facebook through api That's a good question for a group focused on the Facebook API. - 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
Re: [android-developers] Tracking activity launch
On Tue, Jan 4, 2011 at 8:50 AM, Dany Poplawec dany.popla...@free.fr wrote: It just need to get information when any activity is opened or closed on the device. You can't do this. - 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
[android-developers] Why so many Free Apk, Happy Apk, Good Apk games?
Why so many Free Apk, Happy Apk, Good Apk games? What happened to Android Market? -- 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] Avoid Multiple click on button..
Hi, I have a button that opens a dialog box.. sometimes when i push the button i press it more than once and opens more than one dialog box.. is there any way to avoid this easily? Regards. -- 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] Avoid Multiple click on button..
On Tue, Jan 4, 2011 at 9:37 AM, ikalbeniz txup...@gmail.com wrote: is there any way to avoid this easily? Disable the button on press, re-enable on dialog dismiss. - 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
[android-developers] Re: Avoid Multiple click on button..
disable the button on click. enable it on close event of the dialog or on some other appropriate event But, if you are tapping with finger, how can you press more than once unwillingly? Regards Sarwar Erfan On Tuesday, January 4, 2011 9:37:53 PM UTC+6, ikalbeniz wrote: Hi, I have a button that opens a dialog box.. sometimes when i push the button i press it more than once and opens more than one dialog box.. is there any way to avoid this easily? Regards. -- 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: Getting a test version of an .apk to a end user
My phone, Motorola Backflip running 2.1, doesn't HAVE an Unknown Sources option in the Applications menu. When I try to install an app from email, I get a Security Warning: This application comes from an unknown source, and for your security only applications from trusted sources can be installed. On Mon, Jan 3, 2011 at 5:50 PM, metal mikey coref...@gmail.com wrote: Your tester will need to uninstall the current from-market instance of your App then go to MENU SETTINGS APPLICATIONS and check 'Unkown sources' to allow the not-from-market install. Then upon opening (aka clicking on) the .apk file attached to the email you sent, Android will install the App. -- 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: Avoid Multiple click on button..
the problem is that sometimes it takes a lot of time to open the dialog.. so i press more than one times because i think that i have note pressed correctly... On Jan 4, 4:42 pm, Sarwar Erfan erfanonl...@gmail.com wrote: disable the button on click. enable it on close event of the dialog or on some other appropriate event But, if you are tapping with finger, how can you press more than once unwillingly? Regards Sarwar Erfan On Tuesday, January 4, 2011 9:37:53 PM UTC+6, ikalbeniz wrote: Hi, I have a button that opens a dialog box.. sometimes when i push the button i press it more than once and opens more than one dialog box.. is there any way to avoid this easily? Regards. -- 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: AsyncTask why not must be created in UI thread?
I found out that you can create AsyncTask instances on any thread, as long as your code initially loads the class on the main UI thread (as you stated in your message, Bob). I hit upon this issue when writing JUnit tests that were testing AsyncTask subclasses in my code. JUnit tests don't run on the main UI thread. Creating just one dummy AsyncTask on the main UI thread before running the tests, let my JUnit tests run fine. On Dec 31 2010, 1:50 am, Bob Kerns r...@acm.org wrote: You need to create the AsyncTask instance on the UI thread, but the doInBackground() method runs in a separate thread. The reason for creating the AsyncTask instance on the UI thread is so that it can connect to the proper Looper and MessageQueue for that thread. (It does this through a single static Handler, so it will not work correctly if you first load the class in a different thread. That's unnecessarily fragile, in my opinion, but not a problem if you are using it as intended, as an easy way to move code off the main thread.) On Dec 30, 9:39 pm, water boiled boiledwater4...@gmail.com wrote: I mean that can i create AsycnTask instance not in UI thread? On 12月31日, 下午1时30分, water boiled boiledwater4...@gmail.com wrote: I mean that can i AsycnTask instance not in UI thread? On 12月31日, 下午1时24分, water boiled boiledwater4...@gmail.com wrote: the AsycnTask document says that:The task instance must be created on the UI thread. why create task instance must be created in UI thread? On 12月29日, 上午10时26分, Frank Weiss fewe...@gmail.com wrote: It's difficult to understand what you are asking. What problem are you having with AsyncTask.- Hide quoted text - - Show quoted text - -- 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: Getting a test version of an .apk to a end user
On Wed, Jan 5, 2011 at 12:47 AM, John Lussmyer johnlussm...@gmail.com wrote: My phone, Motorola Backflip running 2.1, doesn't HAVE an Unknown Sources option in the Applications menu. When I try to install an app from email, I get a Security Warning: This application comes from an unknown source, and for your security only applications from trusted sources can be installed. You can thank your carrier for that. ATT? -- 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: Getting a test version of an .apk to a end user
Yeah, ATT is the only one with signal where I live. (and it's marginal at that. The phone often shows 5 bars and 3G - then drops to no signal suddenly.) On Tue, Jan 4, 2011 at 7:53 AM, Nikolay Elenkov nikolay.elen...@gmail.comwrote: On Wed, Jan 5, 2011 at 12:47 AM, John Lussmyer johnlussm...@gmail.com wrote: My phone, Motorola Backflip running 2.1, doesn't HAVE an Unknown Sources option in the Applications menu. When I try to install an app from email, I get a Security Warning: This application comes from an unknown source, and for your security only applications from trusted sources can be installed. You can thank your carrier for that. ATT? -- 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: Avoid Multiple click on button..
Are you sure that you are just opening a dialog? If you are doing some other computations and stuff before actually opening it you might have the UI locked.. On Tue, Jan 4, 2011 at 4:52 PM, ikalbeniz txup...@gmail.com wrote: the problem is that sometimes it takes a lot of time to open the dialog.. so i press more than one times because i think that i have note pressed correctly... On Jan 4, 4:42 pm, Sarwar Erfan erfanonl...@gmail.com wrote: disable the button on click. enable it on close event of the dialog or on some other appropriate event But, if you are tapping with finger, how can you press more than once unwillingly? Regards Sarwar Erfan On Tuesday, January 4, 2011 9:37:53 PM UTC+6, ikalbeniz wrote: Hi, I have a button that opens a dialog box.. sometimes when i push the button i press it more than once and opens more than one dialog box.. is there any way to avoid this easily? Regards. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.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
Re: [android-developers] Re: Getting a test version of an .apk to a end user
On Tue, Jan 4, 2011 at 10:00 AM, John Lussmyer johnlussm...@gmail.comwrote: Yeah, ATT is the only one with signal where I live. Goodness, I would move =P - 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
[android-developers] Re: Help me on AsyncTask
Better yet -- use the debugger! On Jan 4, 6:48 am, MrChaz mrchazmob...@gmail.com wrote: If it's crashing then take a look at the exception that's logged it'll give you a line number. -- 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: Getting a test version of an .apk to a end user
Then upon opening (aka clicking on) the .apk file attached to the email you sent, Android will install the App. Wow, I had tested that previously, and it didn't work. The APK just got downloaded and there was no way to actually install it, without third party help like file managers, which are annoying to have to explain to users. I tried emailing an APK just now, though, and there was an Install button next to it in Gmail which worked (Nexus One, Android 2.2.1). So I guess it got fixed. I wonder if earlier versions of Android still can't install directly from email, however, or something like that. On Jan 3, 8:50 pm, metal mikey coref...@gmail.com wrote: Your tester will need to uninstall the current from-market instance of your App then go to MENU SETTINGS APPLICATIONS and check 'Unkown sources' to allow the not-from-market install. Then upon opening (aka clicking on) the .apk file attached to the email you sent, Android will install the App. On Jan 4, 12:23 pm, John Lussmyer johnlussm...@gmail.com wrote: Okay, email is fine - but how does an average end-user get the file onto their Android Device? That's what I was asking. On Mon, Jan 3, 2011 at 4:55 PM, metal mikey coref...@gmail.com wrote: Is Email easy enough? Note: because you will have the tester install out-of-band from the Market, the tester will need to uninstall the App first. On Jan 4, 9:58 am, John Lussmyer johnlussm...@gmail.com wrote: You mean you put it out on the Android Marketplace? On Mon, Jan 3, 2011 at 2:56 PM, Wayne Wenthin wa...@fuligin.com wrote: I've taken to putting the latest version on the website and letting them download and install from there. On Mon, Jan 3, 2011 at 2:54 PM, John Lussmyer johnlussm...@gmail.com wrote: Is there any relatively easy way for me to send a test version of my app.apk file to a user? I may have fixed a problem he's seeing (that doesn't happen on my phone of course), and I'd like to have him test it BEFORE I deploy it to the store. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Getting a test version of an .apk to a end user
Nah, It's too hard to find 20 acres of forest where I can own Cougars. On Tue, Jan 4, 2011 at 8:06 AM, TreKing treking...@gmail.com wrote: On Tue, Jan 4, 2011 at 10:00 AM, John Lussmyer johnlussm...@gmail.comwrote: Yeah, ATT is the only one with signal where I live. Goodness, I would move =P -- 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: HELP: Receiver killed on startup.
Mark, Thank you for your informative response. I had a Logcat() as the very first call in the receiver. Unfortunately, it never gets hit, and I do no see that message in the Logcat. I also see the following in the logcat [2011-01-04 11:43:35 - DroidLocator] No Launcher activity found! [2011-01-04 11:43:35 - DroidLocator] The launch will only sync the application package on the device! Do I need to do anything special in the manifest? Thanks, again. Regards, Raj. On Dec 29 2010, 2:29 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Dec 29, 2010 at 2:04 PM, Raj rnmalho...@gmail.com wrote: I have a simplereceiverthat listens to the BOOT_COMPLETED action. snip However, when I start debugging with an emulator, the apk gets installed, but thereceiverprocess is terminated. Of course. Actually, yourreceiverprocess was probably terminated earlier, as a manifest-registered BroadcastReceiver can only live for a few seconds, tops. and any workarounds? Don't install a new version of your APK. To debug BOOT_COMPLETED receivers, add Log statements to your code and reboot your emulator. Examine LogCat to see what happened. Adjust your code. Lather, rinse, repeat. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Refunds in the Market
I want to offer my users the option to install a different deployment for free but because I can't make a free version and switch it to a paid version, I want to offer them a refund if they install the new product. I will refund people who bought the app previously. Has anyone used the refund option in the market to refund money to their customers? I want to refund the customers but *not* remove the application from their phones. Essentially I want to give credit to users who already bought the original app. - Brill Pappin -- 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: Starting email client with html pre-compiled code
Can you use the mailto tag in the link? a href=mailto:ad...@examplecom?subject=yourmail;Label/a - Brill Pappin -- 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] Error inflating class android.widget.CompoundButton
I am trying to use a CompoundButton in a project I am working on. Every time I try and use it by declaring it in my layout xml file I receive the error 01-04 12:27:46.471: ERROR/AndroidRuntime(1771): Caused by: android.view.InflateException: Binary XML file line #605: Error inflating class android.widget.CompoundButton After fighting the error for a half an hour I decided to try a minimalistic example. I am using the latest eclipse developer tools, and targeting android 2.2 makign the minimum sdk required 2.2 (8). Here is the activity java code: package com.example.CompoundButtonExample; import android.app.Activity; import android.os.Bundle; public class CompoundButtonExampleActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } Here is the layout xml code: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / CompoundButton android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / /LinearLayout Here is the manifest xml code: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.example.CompoundButtonExample android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.CompoundButtonExampleActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=8 / /manifest As you can see it is just the default hello world project that eclipse create for you when you start a new Android project. It only differs in the fact that I add a CompoundButton to the main layout in a vertical LinearLayout. Can anyone confirm this bug? or tell me what I am doing wrong? -- 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: What happens when MapView.invalidate() is called ?
Check out the Android documentation of View. invalidate() calls the onDraw() method of View in future. On Jan 4, 7:48 pm, Emre A. Yavuz eayl...@hotmail.com wrote: Hi, Is anybody aware of a link or a tutorial on the web that explains what happens in detail when MapView's invalidate() method is called ? Isn't the onCreate() method in the MapActivity class recalled ? Cheers, Emre -- 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] Error inflating class android.widget.CompoundButton
CompoundButton is an abstract class and cannot be used directly since it cannot be instanciated. On Jan 4, 2011 9:46 AM, snctln catlin.s...@gmail.com wrote: I am trying to use a CompoundButton in a project I am working on. Every time I try and use it by declaring it in my layout xml file I receive the error 01-04 12:27:46.471: ERROR/AndroidRuntime(1771): Caused by: android.view.InflateException: Binary XML file line #605: Error inflating class android.widget.CompoundButton After fighting the error for a half an hour I decided to try a minimalistic example. I am using the latest eclipse developer tools, and targeting android 2.2 makign the minimum sdk required 2.2 (8). Here is the activity java code: package com.example.CompoundButtonExample; import android.app.Activity; import android.os.Bundle; public class CompoundButtonExampleActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } Here is the layout xml code: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / CompoundButton android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / /LinearLayout Here is the manifest xml code: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.example.CompoundButtonExample android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.CompoundButtonExampleActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=8 / /manifest As you can see it is just the default hello world project that eclipse create for you when you start a new Android project. It only differs in the fact that I add a CompoundButton to the main layout in a vertical LinearLayout. Can anyone confirm this bug? or tell me what I am doing wrong? -- 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.comandroid-developers%2bunsubscr...@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] compatible-screens
Did anyone get more information about whether the compatible-screens mentioned in the this is Android Market Update e-mail was a typo? I'm assuming it should be supported-screens, and then they do not need to be explicitly listed (i.e. for API 4+, the default is true for all screen sizes). Has anyone tried to very 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
[android-developers] Re: Error inflating class android.widget.CompoundButton
Thank you for the prompt reply, I should have read the documentation more carefully. It's too bad though, I would really like to have a button that I can set the state of, can I do this programmatically with a regular button? basically be able to set the state to pressed or not- pressed, and when the user clicks it it is toggled. I know the ToggleButton class offers similar functionality but I am not sure if it will fit exactly what I need due to the green line that identifies if it is on or off, maybe a custom background will work for me in that case... or maybe I will just have to manually toggle to background drawable depending on the state. On Jan 4, 12:49 pm, Romain Guy romain...@android.com wrote: CompoundButton is an abstract class and cannot be used directly since it cannot be instanciated. On Jan 4, 2011 9:46 AM, snctln catlin.s...@gmail.com wrote: I am trying to use a CompoundButton in a project I am working on. Every time I try and use it by declaring it in my layout xml file I receive the error 01-04 12:27:46.471: ERROR/AndroidRuntime(1771): Caused by: android.view.InflateException: Binary XML file line #605: Error inflating class android.widget.CompoundButton After fighting the error for a half an hour I decided to try a minimalistic example. I am using the latest eclipse developer tools, and targeting android 2.2 makign the minimum sdk required 2.2 (8). Here is the activity java code: package com.example.CompoundButtonExample; import android.app.Activity; import android.os.Bundle; public class CompoundButtonExampleActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } Here is the layout xml code: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / CompoundButton android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / /LinearLayout Here is the manifest xml code: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.example.CompoundButtonExample android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.CompoundButtonExampleActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=8 / /manifest As you can see it is just the default hello world project that eclipse create for you when you start a new Android project. It only differs in the fact that I add a CompoundButton to the main layout in a vertical LinearLayout. Can anyone confirm this bug? or tell me what I am doing wrong? -- 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Error inflating class android.widget.CompoundButton
Ok using a ToggleButton with a custom drawable state background that has an android:state_checked item works for me, thanks. On Jan 4, 1:02 pm, snctln catlin.s...@gmail.com wrote: Thank you for the prompt reply, I should have read the documentation more carefully. It's too bad though, I would really like to have a button that I can set the state of, can I do this programmatically with a regular button? basically be able to set the state to pressed or not- pressed, and when the user clicks it it is toggled. I know the ToggleButton class offers similar functionality but I am not sure if it will fit exactly what I need due to the green line that identifies if it is on or off, maybe a custom background will work for me in that case... or maybe I will just have to manually toggle to background drawable depending on the state. On Jan 4, 12:49 pm, Romain Guy romain...@android.com wrote: CompoundButton is an abstract class and cannot be used directly since it cannot be instanciated. On Jan 4, 2011 9:46 AM, snctln catlin.s...@gmail.com wrote: I am trying to use a CompoundButton in a project I am working on. Every time I try and use it by declaring it in my layout xml file I receive the error 01-04 12:27:46.471: ERROR/AndroidRuntime(1771): Caused by: android.view.InflateException: Binary XML file line #605: Error inflating class android.widget.CompoundButton After fighting the error for a half an hour I decided to try a minimalistic example. I am using the latest eclipse developer tools, and targeting android 2.2 makign the minimum sdk required 2.2 (8). Here is the activity java code: package com.example.CompoundButtonExample; import android.app.Activity; import android.os.Bundle; public class CompoundButtonExampleActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } Here is the layout xml code: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / CompoundButton android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / /LinearLayout Here is the manifest xml code: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.example.CompoundButtonExample android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.CompoundButtonExampleActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=8 / /manifest As you can see it is just the default hello world project that eclipse create for you when you start a new Android project. It only differs in the fact that I add a CompoundButton to the main layout in a vertical LinearLayout. Can anyone confirm this bug? or tell me what I am doing wrong? -- 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Getting a test version of an .apk to a end user
Ok just put an app out and call it test app(read description) and in the description explain to them to email and put an email button in your app, look if you want alot of feed back from alot of people all using diffrent phones this is a good way to go. On Jan 4, 2011 11:35 AM, John Lussmyer johnlussm...@gmail.com wrote: Nah, It's too hard to find 20 acres of forest where I can own Cougars. On Tue, Jan 4, 2011 at 8:06 AM, TreKing treking...@gmail.com wrote: On Tue, Jan 4, 2011 at 10:00 AM, John Lussmyer johnlussm...@gmail.com wrote: Yeah, ATT is the only one with signal where I live. Goodness, I would move =P -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Fast way to write and read buffered data from AudioRecord
On Jan 4, 12:41 am, Serdel adam.lichwierow...@gmail.com wrote: How do you predict the size of the destination array? I mean I think you also copy the samples from audiostream into a smaller temp buffer and then into your dest. larger one - if you use an array for the dest. one how do you set size of that? Hmmm. It's been a very long time since I looked at this code. I kick- start it with something like this: int minBufferBytes = AudioRecord.getMinBufferSize(sampleRate, channelConfig, audioFormat); mBufferBytes = /*Some value = minBufferBytes*/; mBufferFrames = mBufferBytes / (numChannels * sampleBytes); mReceivedAudioBufferSrt = new short[mBufferFrames]; mRecordingEndPos = 0; mAudioRecord = new AudioRecord(source, sampleRate, channelConfig, audioFormat, numBufferBytes); mAudioRecord.startRecording(); new Thread(new Runnable() { public void run() { processRecording(); } // Runnable.run() }).start(); // New Runnable inside New Thread ...where processRecording(), obviously now running on its own thread parallel to the ongoing recording, does something like this: while (mAudioRecord.getRecordingState() == AudioRecord.RECORDSTATE_RECORDING) { int numDataRead = mAudioRecord.read(mReceivedAudioBufferSrt, 0, mBufferFrames); System.arraycopy(mReceivedAudioBufferSrt, 0, mRecordingDesc.mRecordingSrt, mRecordingEndPos, mBufferFrames); mRecordingEndPos += mBufferFrames; if (mRecordingEndPos == mRecordingNumFrames) mRecordingEndPos = 0; } That's heavily pseudoized from my considerably more complicated overall setup, but it's the basic idea. I have to be very careful the size of the data chunks I grab because I need to perform realtime power-2 FFTs on them in my app. Plus I have switches all over the place to handle a variety of sampling rates, sample sizes (1 or 2 bytes), number of channels, etc. The complexity grows very quickly once you start worrying about all of that stuff. Cheers! -- 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: Fast way to write and read buffered data from AudioRecord
On Jan 4, 12:41 am, Serdel adam.lichwierow...@gmail.com wrote: How do you predict the size of the destination array? I mean I think you also copy the samples from audiostream into a smaller temp buffer and then into your dest. larger one - if you use an array for the dest. one how do you set size of that? Hmmm. It's been a very long time since I looked at this code. I kick- start it with something like this: int minBufferBytes = AudioRecord.getMinBufferSize(sampleRate, channelConfig, audioFormat); mBufferBytes = /*Some value = minBufferBytes*/; mBufferFrames = mBufferBytes / (numChannels * sampleBytes); mReceivedAudioBufferSrt = new short[mBufferFrames]; mRecordingEndPos = 0; mAudioRecord = new AudioRecord(source, sampleRate, channelConfig, audioFormat, numBufferBytes); mAudioRecord.startRecording(); new Thread(new Runnable() { public void run() { processRecording(); } // Runnable.run() }).start(); // New Runnable inside New Thread ...where processRecording(), obviously now running on its own thread parallel to the ongoing recording, does something like this: while (mAudioRecord.getRecordingState() == AudioRecord.RECORDSTATE_RECORDING) { int numDataRead = mAudioRecord.read(mReceivedAudioBufferSrt, 0, mBufferFrames); System.arraycopy(mReceivedAudioBufferSrt, 0, mRecordingDesc.mRecordingSrt, mRecordingEndPos, mBufferFrames); mRecordingEndPos += mBufferFrames; if (mRecordingEndPos == mRecordingNumFrames) mRecordingEndPos = 0; } That's heavily pseudoized from my considerably more complicated overall setup, but it's the basic idea. I have to be very careful the size of the data chunks I grab because I need to perform realtime power-2 FFTs on them in my app. Plus I have switches all over the place to handle a variety of sampling rates, sample sizes (1 or 2 bytes), number of channels, etc. The complexity grows very quickly once you start worrying about all of that stuff. Cheers! -- 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: Looking for GUI in android tablet
Fix the position of the components.. Regards, Eddy Liu, Bsc in Mobile Computing -Original Message- From: kampy narasimha1...@gmail.com Sender: android-developers@googlegroups.com Date: Tue, 28 Dec 2010 20:38:56 To: Android Developersandroid-developers@googlegroups.com Reply-To: android-developers@googlegroups.com Subject: [android-developers] Re: Looking for GUI in android tablet hi For the problem you are facing you need to create values-land and values-port where you need to mention the dimensions of the used buttons and other. The view will be take care by the device . On Dec 28, 6:39 pm, Nandlal Viranni nandlal.phys...@gmail.com wrote: Hi All, I am new to Android and I am developing an application for android tablet. but i am facing problem regarding GUI. I want same GUI for ladscape portrait in device. but GUI changes while portrait to ladscape. Is there any solution for this problem ?? OR Is there any good link for this ?? Thanks in andvance .. Regards Nandlal Virani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: pdf reader
wait wait, the op is talking about pdf reader program or opening pdf with any installed program ?? On Wed, Dec 29, 2010 at 3:56 PM, Robin Talwar r.o.b.i.n.abhis...@gmail.comwrote: This is my onclick code public void onClick(View v) { // TODO Auto-generated method stub Intent i = new Intent(); i.setAction(Intent.ACTION_VIEW); i.setDataAndType(Uri.parse(file:///raw/unlockingandroid.pdg), application/pdf); try{ startActivity(i); } catch (ActivityNotFoundException e) { Toast.makeText(pdfviewer.this, No Application Available to View PDF, Toast.LENGTH_SHORT).show(); } } I see a toast when i click the button :( i cant see the pdf On Wed, Dec 29, 2010 at 12:26 PM, Jake Basile jakerbas...@gmail.comwrote: Just like opening any other type of file on Android, you should try to launch an intent to view it. Intent openPdfIntent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(pdfFile), application/pdf); try { startIntent(openPdfIntent); } catch(ActivityNotFoundException e) { // No app can open PDF files on their 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 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- http://geek.s4a.cc -- 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] types media files in /system/media/audio/ui
Hi all, I want to customize default media files in the path: /system/media/ audio/ui but I find the format of them is ogg(VideoRecord.ogg,camera_click.ogg), is it possible for me to put mp3 files in? Can mp3 files be recognized by android? 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] Static when playing 2nd sound file with MediaPlayer
Guys and Gals - So I basically have the android GridView example and on click I am trying to play one sound file then follow it up with another. I get static when the 2nd file starts to play. Am I missing something? Do I need to have a more elaborate buffering set up or something? Thanks for any pointers or help. Will public class HelloGridView extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); GridView gridview = (GridView) findViewById(R.id.gridview); gridview.setAdapter(new ImageAdapter(this)); gridview.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? parent, View v, int position, long id) { Toast.makeText(HelloGridView.this, + position, Toast.LENGTH_SHORT).show(); MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.a); mp.start(); mp.setOnCompletionListener(new OnCompletionListener(){ public void onCompletion(MediaPlayer arg0){ MediaPlayer mp2 = MediaPlayer.create(getApplicationContext(),R.raw.apple); mp2.start(); } }); } }); } } -- 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] Failed to clear missed call notification
Hi, all I tried to clear missed call notification in my application. It works great in android2.2.1. But it can't work for Android2.3. The error is reported out as below. And I make sure I had added this line(uses-permission android:name=android.permission.MODIFY_PHONE_STATE / ) in AndroidManifest.xml. Would you like to point out what wrong it is? Thank you very much in advance. try { ITelephony iTelephony = ITelephony.Stub.asInterface(ServiceManager.getService(phone)); if (iTelephony != null) { iTelephony.cancelMissedCallsNotification(); } else { Log.w(TAG, Telephony service is null, can't call + cancelMissedCallsNotification); } } catch (RemoteException e) { Log.e(TAG, Failed to clear missed calls notification due to remote exception); } 12-29 13:41:32.656: ERROR/AndroidRuntime(995): FATAL EXCEPTION: main 12-29 13:41:32.656: ERROR/AndroidRuntime(995): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.lianyun.data/com.lianyun.data.Entry}: java.lang.SecurityException: Neither user 10037 nor current process has android.permission.MODIFY_PHONE_STATE. 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 1622) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 1638) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:928) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at android.os.Handler.dispatchMessage(Handler.java:99) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at android.os.Looper.loop(Looper.java:123) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at android.app.ActivityThread.main(ActivityThread.java:3647) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at java.lang.reflect.Method.invokeNative(Native Method) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at java.lang.reflect.Method.invoke(Method.java:507) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:839) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at dalvik.system.NativeStart.main(Native Method) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): Caused by: java.lang.SecurityException: Neither user 10037 nor current process has android.permission.MODIFY_PHONE_STATE. 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at android.os.Parcel.readException(Parcel.java:1322) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at android.os.Parcel.readException(Parcel.java:1276) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at com.android.internal.telephony.ITelephony$Stub $Proxy.cancelMissedCallsNotification(ITelephony.java:671) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at com.lianyun.data.Entry.onCreate(Entry.java:80) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 1586) 12-29 13:41:32.656: ERROR/AndroidRuntime(995): ... 11 more -- 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] Finishing a GLSurface view activity takes too long..
I'm still a little new to Android programming so you guys might have to bear with me here. The app I am working on is based off of the Rokon 2D game engine. (This is not a Rokon question, just general background information so please keep reading! :) ) The original idea was to use the 2D game engine to handle the menu, instructions, and a game board. We then have a separate activity that controls a GLSurfaceView which is drawing some .obj objects. We wanted to have a 3D feel to this part of the game so this was the best thing we could think of. The problem I'm having is that when I call .finish() on the GLSurfaceView activity, I get a black screen for 3 - 5 seconds while its trying to clean up the activity. This is a problem for me because 1.) its annoying to wait that long. and 2.) I have animations happening as soon as I get a result back from that GLSurfaceView activity. This is really weird because my primary activity resumes while the GLSurfaceView is still finishing up. So basically I lose my animations. I could put in some code to have this automatically wait 5 seconds before doing the animation, however I would like to avoid that if possible. This gets even weirder as I don't have this problem on my Samsung Captivate running Android 2.1, but we get this problem on a Nexus One using Android 2.2 and I get it on the emulator running 2.3. Is there some better way to kill an activity? Or some way to destroy GL objects before hand so that when we hit the .finish() it doesn't take as long to clean up? Any suggestions would be greatly appreciated! Thanks, Patrick -- 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] Android NDK
I am new guy for android. I am trying to use NDK in my Test Project. After getting MAKE APP successfully. I will get .so file but when I started my Test project its not able to load the file. It showing the error like unsatisfied link error . logcat message like : AndroidRuntime START D/AndroidRuntime( 275): CheckJNI is ON D/AndroidRuntime( 275): --- registering native functions --- I/ActivityManager( 65): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x1000 cmp=cem.net.NDKDem/.NDKDem } D/AndroidRuntime( 275): Shutting down VM I/AndroidRuntime( 275): NOTE: attach of thread 'Binder Thread #3' failed D/jdwp( 275): adbd disconnected W/ActivityManager( 65): Activity pause timeout for HistoryRecord{43fa6198 com.android.launcher/ com.android.launcher2.Launcher} I/ActivityManager( 65): Start proc cem.net.NDKDem for activity cem.net.NDKDem/.NDKDem: pid=282 uid=10036 gids={} W/dalvikvm( 282): Exception Ljava/lang/UnsatisfiedLinkError; thrown during Lcem/net/NDKDem/NativeLib;.clinit D/AndroidRuntime( 282): Shutting down VM W/dalvikvm( 282): threadid=1: thread exiting with uncaught exception (group=0x4001d800) E/AndroidRuntime( 282): FATAL EXCEPTION: main E/AndroidRuntime( 282): java.lang.ExceptionInInitializerError E/AndroidRuntime( 282):at cem.net.NDKDem.NDKDem.onCreate(NDKDem.java:21) E/AndroidRuntime( 282):at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) E/AndroidRuntime( 282):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2627) E/AndroidRuntime( 282):at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) E/AndroidRuntime( 282):at android.app.ActivityThread.access $2300(ActivityThread.java:125) E/AndroidRuntime( 282):at android.app.ActivityThread $H.handleMessage(ActivityThread.java:2033) E/AndroidRuntime( 282):at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 282):at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 282):at android.app.ActivityThread.main(ActivityThread.java:4627) E/AndroidRuntime( 282):at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 282):at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime( 282):at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) E/AndroidRuntime( 282):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) E/AndroidRuntime( 282):at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 282): Caused by: java.lang.UnsatisfiedLinkError: Library ndk_dem not found E/AndroidRuntime( 282):at java.lang.Runtime.loadLibrary(Runtime.java:461) E/AndroidRuntime( 282):at java.lang.System.loadLibrary(System.java: 557) E/AndroidRuntime( 282):at cem.net.NDKDem.NativeLib.clinit(NativeLib.java:6) E/AndroidRuntime( 282):... 14 more W/ActivityManager( 65): Force finishing activity cem.net.NDKDem/.NDKDem W/ActivityManager( 65): Activity pause timeout for HistoryRecord{43e3b3b8 cem.net.NDKDem/.NDKDem} I/ActivityManager( 65): Displayed activity com.android.launcher/ com.android.launcher2.Launcher: 108535 ms (total 108535 ms) W/ActivityManager( 65): Activity destroy timeout for HistoryRecord{43e3b3b8 cem.net.NDKDem/.NDKDem} D/KeyguardViewMediator( 65): pokeWakelock(5000) I/ARMAssembler( 65): generated scanline__0077:03515104__ [ 33 ipp] (47 ins) at [0x330a80:0x330b3c] in 3010726 ns I/Process ( 282): Sending signal. PID: 282 SIG: 9 I/ActivityManager( 65): Process cem.net.NDKDem (pid 282) has died. I/ARMAssembler( 65): generated scanline__0177:03515104_1001_ [ 91 ipp] (114 ins) at [0x330e60:0x331028] in 2971458 ns D/dalvikvm( 125): GC_EXTERNAL_ALLOC freed 1053 objects / 58696 bytes in 187ms I/ActivityManager( 65): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x1020 cmp=net.cem.HelloTest/.HelloTest } I/ActivityManager( 65): Start proc net.cem.HelloTest for activity net.cem.HelloTest/.HelloTest: pid=289 uid=10032 gids={} I/ActivityManager( 65): Displayed activity net.cem.HelloTest/.HelloTest: 2208 ms (total 2208 ms) D/dalvikvm( 125): GC_EXPLICIT freed 211 objects / 10200 bytes in 181ms W/KeyCharacterMap( 289): No keyboard for id 0 W/KeyCharacterMap( 289): Using default keymap: /system/usr/keychars/ qwerty.kcm.bin I/ActivityManager( 65): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x1020 cmp=com.android.launcher/ com.android.launcher2.Launcher } D/dalvikvm( 138): GC_EXPLICIT freed 1170 objects / 84960 bytes in 332ms I/ActivityManager( 65): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x1020
Re: [android-developers] hello!
You, seems added Sent from my android device. -Original Message- From: litlecathy litleca...@yahoo.co.uk To: Android Developers android-developers@googlegroups.com Sent: Wed, 29 Dec 2010 3:07 Subject: [android-developers] hello! Please ad me to you group. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: pdf reader
there is an open source project for pdf reader on google projects.check it out, http://code.google.com/p/*vudroid* On Wed, Dec 29, 2010 at 1:13 PM, Robin Talwar r.o.b.i.n.abhis...@gmail.comwrote: Even i would like to have the answer of this query. Please if anyone could share a link or tutorial it would be nice. On Wed, Dec 29, 2010 at 8:14 AM, DanH danhi...@ieee.org wrote: Send intent. Tricky. Some PDF readers not respond to some intent. Must learn different. On Dec 27, 6:00 am, Ramesh Solanki rkindia1...@gmail.com wrote: i am new in android make pdf reader in android any idea then reply me -- 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- http://geek.s4a.cc -- 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] paypal payment wholesale Jack Jones sweater,Gucci Sweater,Polo Sweater,Moncler Sweater,Columbia Coat,Arc'teryx,Moncler eiderdown
PAYPAL payment wholesale SHOES(UGG BOOTS, Timberland boots ,Munich shoes,NIKE,ADIDAS,LV,GUCCI,CHANEL,PRADA,POLO,DG,D IOR AND SO ON) Replica LV Wallets wholesaler (paypal payment) Paypal payment,Chanel handbags,Coach handbags,LV Purse,Gucci Bags free shipping PAYPAL payment WATCH(ROLEX,OMEGA,CHANEL,LV,CARTIER Wholesale fashion shoes DG Gucci LV Coach shoes paypal payment paypal payment LV Handbags Discount Wholesale free shipping GUCCI bags,CHLOE bags( paypal payment ) Wholesale newest LV men scarf with paypal payment louis vuitton etoile bowler replica - louis vuitton replica paypal Sell LV shoes with PAYPAL payment - Suppliers of jordan, shoes http://www.24hours-online.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Suggestions for my inventory application
How about warnings when the number of items in a product drop under a certain number? Manuel R. Ciosici http://manuelciosici.com On Dec 29, 6:50 am, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com wrote: Hey guys I have an application on which i have been working on for a while now. The application has 4 major areas :- 1. Item Master - Where user can create new products 2. Purchase - Created products are inflated in autocompletetextview and user can add quantity to it . 3. Sale - Created products are inflated in autocompletetextview and user can enter quantity of it sold . 4. Stock - This shows the list of the products present along with the colour and quantity. What else can i add in this to make it the only inventory solution out in mobile. Let me know. I don't mind spending time. Regards Abhishek -- 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] Is Android compatible to LG cookie Pep GD 510 ?
I want to know that GD 510 is compatible to Android or Not .. ! -- 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] Opening a pdf file in emulator
Hi all i have installed the adobe reader on my android emulator now i wonder on how to store a pdf file in a emulator and open it. Any help would be appreciated. Regards Sai Rajesh -- 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] BroadcastReciever Process outgoing calls
I am targeting 2.2 using eclipse. I have a Broadcast Reciever that I have given permission to process outgoing calls. When I run the application, and make a call out, I get an error on the screen saying the application has stopped unexpectedly. I have set debug points and it seems the process just dies. I set a debug point at the first line. When I did this, it stopped at that line and it will let me step through the code but ends up dying. I also let it hit that first debug point and just sat there, it seems given enough time (a couple of seconds) with no activity it will just kill the process also. The logs are giving me no indication what the problem could be. Anyone have any idea why this could be? I'm not trying to do anything with the outgoing call I just want to check the contact and pop up a toast but my application dies before I can. -- 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] katrina kaif sex with friend in hotel unseeen videos relese
http://dattinggirls.hpage.us/linklist_74886.html -- 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] Transition from the end of an animation to a new Activity?
I am trying to make my application transition to the MenuActivity(main menu) and the end the SplashActivity(splash screen) once the fade2 animation has finished, but instead of this happening my app force closes after the SplashActivity ends. I think that my error lies in the onAnimationStart and onAnimationRepeat lines but I am unsure. What can I fix in my code? import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.view.animation.Animation.AnimationListener; import android.widget.ImageView; import android.widget.TextView; public class SplashActivity extends Activity { TextView maker, motto; ImageView ball; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash); maker = (TextView)findViewById(R.id.dev); Animation fade1 = AnimationUtils.loadAnimation(this, R.anim.fade_in); maker.startAnimation(fade1); ball = (ImageView)findViewById(R.id.Ball); Animation customAnim = AnimationUtils.loadAnimation(this, R.anim.custom_anim); ball.startAnimation(customAnim); motto = (TextView)findViewById(R.id.motto); Animation fade2 = AnimationUtils.loadAnimation(this, R.anim.fade_in2); motto.startAnimation(fade2); fade2.setAnimationListener(new AnimationListener() { public void onAnimationEnd(Animation animation) { startActivity(new Intent(SplashActivity.this, MenuActivity.class)); SplashActivity.this.finish(); } @Override public void onAnimationRepeat(Animation animation) { // TODO Auto-generated method stub } @Override public void onAnimationStart(Animation animation) { // TODO Auto-generated method stub } }); } } -- 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 storereterive message in SQLite database
Hi developers, I am new person develope Android application. I want how the message stored in our message inbox and database. -- 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] Cash reward for killer Android translation plugin
Hey guys, tokyo-based translation startup myGengo is giving away up to $1400 to the first developer to submit a working Android App using our human translation API. Rewards are also available for a total of over 40 additional platforms. You can go to our API Lab page for more info: http://mygengo.com/services/api/lab Short list of eligible platforms: iPhone Blackberry Wordpress Drupal Joomla Facebook Zen Cart Ruby on Rails Salesforce Git... -- 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 on memory management in android
Hi, I have a single image that is slightly larger than the android screen which I load into a ScrollView. My question is the following: Does android load the entire image into memory even though parts of it are invisible(need to be scrolled to), or does it use some kind of external/internal cache to store parts of the image that are not currently visible? If not, do you think it would be possible to implement something like this. 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] How does it work controlling mouse and keyboard with android phone via wifi?
There are several apps that are able to control mouse and keyboard from cell phone through wifi, anyone knows how it works? I wanna make one myself. 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] Android opengl app
I'm having trouble getting my Android opengl app to display a quad. Is there anything obviously wrong with this code? public void onDrawFrame(GL10 gl) { gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); gl.glMatrixMode(GL10.GL_MODELVIEW); gl.glLoadIdentity(); float[] myverts = new float[] { -.77f, .58f, .77f, .58f, .77f, -.58f, -.77f, -.58f }; FloatBuffer[] fb = new FloatBuffer[1]; fb[0] = FloatBuffer.wrap(myverts); float[] mytex = new float[] { 0, 0, 1, 0, 1, 1, 0, 1 }; FloatBuffer[] tfb = new FloatBuffer[1]; tfb[0] = FloatBuffer.wrap(myverts); gl.glTranslatef(0, 0, -5); gl.glBindTexture(GL10.GL_TEXTURE_2D, texturesBuffer.get(0)); gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); gl.glVertexPointer(2, GL10.GL_FLOAT, 0, fb[0]); gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, tfb[0]); gl.glDrawArrays(GL10.GL_TRIANGLE_FAN, 0, 4); gl.glDisableClientState(GL10.GL_VERTEX_ARRAY); gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY); } -- 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 submit one application with separate apk files for each size available
Hi, How do you submit one application with separate apk files for each android size available? Also, how can we make sure each separate apk file is only made available for it's appropriate size? We don't want to have each apk file for the one application made available across all android sizes. We'd appreciate any helpful information you have on this issue and we thank you for your time. Thank you, Edmond -- 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] Submitting one application with different apk files for different screen sizes
Hi, We want to submit one application but separate the different sizes with separate apk files. How can we do this and how can we make sure each apk file for the application is made available for it's specific size only. We want to make sure each apk file submitted for the one application wont be available for all sizes. We appreciate any information you can help us with. Thank you so much for your time and help. Thank you, Edmond -- 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] Problem interacting (by a button and edit text field in the main activity) with a Custom View (not defined as an inner class)
Hello all, I came across the vintage thermometer code from Ivan Memruk (mindtherobot) and decided to use it to learn from. If you would take a look at it, http://mindtherobot.com/blog/272/android-custom-ui-making-a-vintage-thermometer/ it and follow along I have a problem I don't understand as of yet. You see I used his code and built the project, added in the code from Orn Kristjansson (post #39) to randomly seed the value for the setHandTarget() method. That works just fine. Now I wanted to expand my understanding and take the custom view (not defined as an inner class) and interact with it by way of a Button (actually two, like Move, and Reset) with an EditText. I wanted to take the value in the EditText and send it as an argument to the SetHandTarget() method. So essentially allowing the user to call setHandTarget(50) and then watch as the invalidate() method redraws the custom view with the needle moving to the newly entered location. setHandTarget() is a private void instance method within the thermometer class (extends view). I don't understand how to properly prefix it with (some object) to allow me to call it from the thermometerActivity class (extendeds activity). So here's some code I added to the thermometerActivity: //== CalculateButton //Define a calculate button and it's handler //Grab hold of the instance of our button Button calcButton = (Button) findViewById(R.id.calculate); //== instantiate ButtonHandler and Listener //set the Callback calcButton.setOnClickListener(new calcButtonHandler()); //=== private class calcButtonHandler implements OnClickListener{ @Override public void onClick(View v) { // // I though since it's in the same package I could call is by it's ParetClass.method() // but it is not a static method so this will not work //Thermometer.setHandDTarget( (float)(76) ); // So I thought, I'll import the public class (Thermometer) and change the method to public // an try calling it //setHandTarget((float) (76)); // but that didn't work either // So if calcButtonHandler is a private inner class of ThermometerActivity // can I call the setHandTarget() method from the public class Thermometer } } Useful resources (not specific to Android): http://www.leepoint.net/notes-java/index.html -- 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 check the state of an activity and buttons(for selector : res/Drawable)
Hi... It's good day, but I'm not. This problem makes me crazy. I'm using the selector for changing the image of button by using the state_enable, state_focusedect But sometimes my application is doing wrong action. So I tried to find how to check the state(state_enable or state_focusedect) and who is checking. That are two I want to know Please give your advice to me Thank you for reading -- 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 implement vertical seekbar.
Hi All I am trying to have vertical seek bar in my app. I am trying to rotate built in seekbar by 90 degrees to get it as vertical, but no positive output. I have referred the below link..but not able to use it for seekbar. http://groups.google.com/group/android-developers/browse_thread/thread/b4edcc487c1f28d7/d75b7f88261aec22?lnk=gstq=rotate+view+permanently#d75b7f88261aec22 Can anyone help me to get this. Thanks in advance On Thu, Dec 30, 2010 at 6:59 PM, Badri urba...@gmail.com wrote: Hi All I am trying to have vertical seek bar in my app. I am trying to rotate built in seekbar to get it as horizontal, but no positive output. I have referred the below link..but not able to use it for seekbar. http://groups.google.com/group/android-developers/browse_thread/thread/b4edcc487c1f28d7/d75b7f88261aec22?lnk=gstq=rotate+view+permanently#d75b7f88261aec22 Can anyone help me to get this. Thanks in advance Badri -- Thanks Badrinath -- 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 comeback to my app after calling some other app from my app?
Hi everybody. I am new to android so dont know exact terms of android to put question. Actually i have develop to one project and its function requirements seems to me little difficult. right now i wanted to know is that (below question) possible and how. Q1. from my app i wanted to open other application (browser, vedio player, pdf reader, as i have idea to just send an intent to call any app) - Q2: after open application need to read PDFs(through pdf reader), play video(through video player), open url(through brower) Q3, after reading/open different stuff wanted to back to my plication. all question seems difficult for me. but Q3 seems me more difficult. could someone please help me how to perform these three tasks. Thank you so much guys Regards, ijaz -- 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] Native code Query
hi. I have done task of ndk successfully. from my application I am able to call my native function. I have a problem I have a huge c code .Is it necessary to rewrite whole code as native function. Please help me as soon as possible. Thanks' Anshuman -- 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: Upgrade to ADT 8.0.1: I knew I shoudn't have done it!
Just wanted to report I had the same problem. I was working fine and downloaded the an update which caused the Graphical Layout view would get the NoClassDefFoundError: Could not initialize class: sun.awt.image.BufImgSurfaceData. Based on this forum, I tried re-installing all components (Eclipse HELIOS, ADT), Finally installing the latest version of java (jdk-6u23- windows-i586) solved the problem. -bob On Dec 15, 7:59 pm, Zarah zarahj...@gmail.com wrote: ObsidianGT: No more flogging! :D Xav: I ended up only re-installing Eclipse (not everything). I believe you when you say I _shouldn't_ have to do that, but in real life I need to to make ADT work again. :( Btw, ADT 9.0.0 looks promising! Peter: Also, why is it that WebView is not listed as one of the available Views? I moved my Eclipse folder to C:/Users/My Folder, and let's see what happens on the next upgrade. Thanks for the comments everyone! - Zarah. On Dec 16, 3:55 am, Peter Eastman peter.east...@gmail.com wrote: I didn't have to reinstall Eclipse, and it worked fine for me.* Peter * The word fine must be interpreted very broadly, given that the layout editor has actually managed to become even more buggy and painful to use than it was before (and that's an accomplishment). I've filed a bug report listing the issues I've found so far:http://code.google.com/p/android/issues/detail?id=13134. -- 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: Does Android's GPS location provider do a built-in optimization?
hai, answer herehttp://www.arisingsoft.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en