[android-developers] Re: Playing youtube videos on Android
eh..forgot part of response: there is parameter on end of url which forces format, like: http://gdata.youtube.com/feeds/api/standardfeeds/watch_on_mobile?format=6 You can see details @ http://gdata.youtube.com/demo/index.html On 24 lis, 18:07, Nicholas Key nicholaskeythole...@gmail.com wrote: Hi all, I want to learn how to streamyoutubevideo in high quality mode (similar to those videos you watch from your android phones on theYouTubeapp) .I have been scouring the net to find code examples and tutorials about streamingyoutubevideos in high quality but those are not the ones I wanted. The examples that I found are about streaming 3gp video format and I don't want those because they are choppy and seem pixelated. Any ideas how to develop an app similar to the one asYouTubeapp? I know some of you may say, YouTubeapp is already doing what you want to do, why bother writing something similar. I want to learn how it works :) -- You received this message because you are subscribed to the Google 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 can i stop a thread in a Activity?
You can check this link on Sun site. http://java.sun.com/docs/books/tutorial/essential/concurrency/interrupt.html Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Dec 10, 10:03 am, Kumar Bibek coomar@gmail.com wrote: Interrupt the rhead. That's as good as stopping the thread. Thanks, Kumar Bibek http://tech-droid.blogspot.com On Dec 10, 8:41 am, niko20 nikolatesl...@yahoo.com wrote: Stop on threads I believe is deprecated. It probably doesn't do anything. Just use a global flag that the thread can check and exit if it's set. Most reliable way right now. On Dec 9, 7:15 pm, Richard Zhao zwher...@gmail.com wrote: My problem is: Activity A called Activity B, and in Activity B, it start a background thread to do some client-server work. But it maybe takes too much time. So i add a cancel button to call the stop() method to stop the thread, and call finish() to finish the Activity B and go back to Activity A. Although it is back to Activity A, the thread isn't stop immediately. Can i just call the finish() to go back to Activity A, and leave the thread to exit by itself? If it is not the right way, which is? Thanks for any help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: The proper way to set a timer in android
Use the AlarmManager. Refer to the online docs. There are a lot of samples out there. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Dec 10, 3:34 am, n179911 n179...@gmail.com wrote: Hi, What is the proper way to set a timer in android in order to kick off a task (a function that I create which does not change the UI)? Use this the Java way:http://java.sun.com/j2se/1.4.2/docs/api/java/util/Timer.html Or there is a better way in android (android's handler)? Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: SensorManager.registerListener gives unexpected results
I'm running firmware 1.5, baseband I7500XXII5, kernel 2.6.27.35, build no 76XXCSDCBALUM6375 On Dec 10, 4:51 am, dan raaka danra...@gmail.com wrote: what is the full version name ? -Dan On Wed, Dec 9, 2009 at 10:41 AM, TonyDoc tony...@gmail.com wrote: Thanks Dan, I see K4 is out in the wild now. But not yet on NPS. Is it this firmware you speak of? On Dec 9, 8:15 am, TonyDoc tony...@gmail.com wrote: Hi, I have firmware I5on my device (latest I think). Do you know which firmware gives correct sensor updates? On Dec 8, 6:31 pm, dan raaka danra...@gmail.com wrote: If you use NPS studio - it allows you to update your device software tonewer builds. -Dan On Tue, Dec 8, 2009 at 3:24 AM, TonyDoc tony...@gmail.com wrote: What do you mean? Newer builds? Do you mean 1,6, 2.0? I'm using 1.5 SDK to try this... On Dec 7, 5:45 pm, dan raaka danra...@gmail.com wrote: The newer versions of the build dont exhibit this problem .. -Dan On Mon, Nov 30, 2009 at 6:30 AM, TonyDoc tony...@gmail.com wrote: I'm registering a sensor listener with this line of code. mSensorManager.registerListener(this,mSensorManager.getDefaultSensor (Sensor.TYPE_ACCELEROMETER), SensorManager.SENSOR_DELAY_FASTEST); The rate is set to SENSOR_DELAY_FASTEST with the expectation that I would receive events roughly every 20-30ms. It turns out that I receive events only every 200-220ms (just now, my event code simply logcats the system time). No matter which rate I use, SENSOR_DELAY_NORMAL, SENSOR_DELAY_UI, SENSOR_DELAY_GAME, or SENSOR_DELAY_FASTEST, I get the same result? Any ideas to what am I 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 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com android-developers%252bunsubscr...@googlegroups.comandroid-developers%25252bunsubscr...@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 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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 -- You received this message because you are subscribed to the Google 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 communication with PC client.
Hi, I wrote a TCP socket client, an android application. On my emulator, it can successfully connect to a TCP sever running in my PC. But, when I deployed the the apk into my real phone, HTC g4, it dosen't work. An exception was raised said java.net.SocketException: Network unreachable. The situation is, my handset was connected to my PC via USB, and no other connections were available. How can my android application connect to a PC server in the case. I don't know if we can use socket over usb connection. If yes, then why my application doesn't work. If no, then how? Thanks a lot. jack -- You received this message because you are subscribed to the Google 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 Speech recognition only available for english?
Hi guys, Is Android Speech recognition only available for english? I tryed to set EXTRA_LANGUAGE in the RecognizerIntent but it doesn't work. EXTRA_LANGUAGE - Optional language override to inform the recognizer that it should expect speech in a language different than the one set in the getDefault(). Do you know anything about this? Best regards Flaviu -- You received this message because you are subscribed to the Google 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 turn off the screen display?
For other people who are looking for, That's Settings.System with permission WRITTE_SETTINGS On 28 oct, 06:25, Arun arun.tripa...@gmail.com wrote: Can someone from Android expert team kindly look into this? Regards, -Arun On Oct 23, 6:51 pm, Arun Tripathy arun.tripa...@gmail.com wrote: Hi All, I have a requirement to turn the screen display on and off from a Android Service. I should have a function SwitchScreenDisplay (ON/OFF), to ON or OFF the display. I searched through the SDK and found a few APIs and settings. One method I found is boolean err = android.provider.Settings.Secure.putInt(myThis.getContentResolver(), Settings.System.SCREEN_OFF_TIMEOUT, 1); But it gave the following security permission exception [03-14 21:24:41.575: ERROR/DatabaseUtils(1066): java.lang.SecurityException: Permission denial: writing to secure settings requires android.permission.WRITE_SECURE_SETTINGS] even though I had added the following statement in AndroidMenifestFile.xml uses-permission android:name=android.permission.WRITE_SECURE_SETTINGS/uses-permission So my question is: - Was the above method is the right way to SWITCH OFF the screen - How does the LONG END KEY press, switches/powers off the display? Which API it calls? - How to SWITCH on? Is it using the PowerManager wakelock? I appreciate and thankful for your time. Regards, -Arun -- You received this message because you are subscribed to the Google 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] passing paramters using ksoap2 to .net web service, always passes nulls (empty) values
Hi, I'm having a problem in calling .net c# web services from android using ksoap2. The call is executed just fine without parameters, but when I pass paramters of any type, the web service just recieves a null value. I tried everything possible but no luck so far. I hope someone can help, The client side code is: public static boolean temp(){ try { SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME_TEMP); PopertyInfo p = new PropertyInfo(); p.type = PropertyInfo.INTEGER_CLASS; p.setName(num); p.setValue(5); p.setNamespace(NAMESPACE); request.addProperty(p) ; SoapSerializationEnvelope envelope = new SoapSerializationEnvelope (SoapEnvelope.VER11 ); envelope.dotNet = true; envelope.encodingStyle = SoapSerializationEnvelope.ENC; envelope.setOutputSoapObject(request); AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport (URL); androidHttpTransport.setXmlVersionTag(?xml version= \1.0\ encoding=\UTF-8\?); androidHttpTransport.call(SOAP_ACTION_TEMP, envelope); -- You received this message because you are subscribed to the Google 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: Back-porting from Android 2.0 to Android 1.5
On Dec 7, 4:25 pm, Dianne Hackborn hack...@android.com wrote: On Mon, Dec 7, 2009 at 1:20 PM, AJ adam.j...@gmail.com wrote: 1) drawable verses the new drawable-* ... if I don't have an icon in drawable.png will my application be icon-less in 1.5? Do I need to copy one of the new icons in there? If so, which one? If you want to run on pre-1.6 platforms, I would suggest putting your medium density bitmaps in drawable/* instead of drawable-mdpi/*. 1.6 and later will assume that these are medium density. Thank you. 2) search ... how does the SEARCH activity get raised for an application on SDK 1.5 devices (which don't appear to have a hardware search button.) Do I need to add a menu option and raise SEARCH as a sub-activity? [Note: I am 100% confused by search button on all android versions 'cos what I read says SDK 2.0 copes with virtual buttons, yet those devices (in emulator) seem to have hardware ones. What am I missing?] Whether or not there is a search button is really a device thing, and not a platform version thing. For example, the G1 has a search key on its hard keyboard, and you can assume there will be devices running 2.0 and later that don't have a search key. If search is important for your app, you will want to have another mechanism to get to it -- often a menu item. Thanks, again, that helped a lot. I've added a menu option (although I'd love to know how to hide that if I could detect a hardware button.) My remaining problem is the search suggestion provider code (which I took from a 2.0 sample) will compile on SDK 1.5 (I've built a SDK project to ensure little is hidden by backwards compatibility.) Anyway, things seem good unless I actually return search suggestions via a /** * The columns we'll include in our search suggestions. There are others that could be used * to further customize the suggestions, see the docs in {...@link SearchManager} for the details * on additional columns that are supported. */ private static final String[] COLUMNS = { _id, // must include this column SearchManager.SUGGEST_COLUMN_TEXT_1, SearchManager.SUGGEST_COLUMN_INTENT_DATA, }; The generation is here: MatrixCursor cursor = new MatrixCursor(COLUMNS, 0); for (String ingredient : matching_ingredients) { cursor.addRow(new String[] { ingredient, // _id ingredient, // text1 ingredient // intent_data (included when clicking on item) }); } I've tried reading SearchManager documentation, but cannot seem to track down what columns it is expecting (or not expecting) for SDK 1.5 that causes it to try to get a long when I don't have one. Unless I comment that out, I get: 12-08 12:02:21.263: ERROR/AndroidRuntime(808): java.lang.NumberFormatException: Achee 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at java.lang.Long.parse(Long.java:368) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at java.lang.Long.parseLong(Long.java:358) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at java.lang.Long.parseLong(Long.java:323) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at java.lang.Long.valueOf(Long.java:570) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at android.database.MatrixCursor.getLong(MatrixCursor.java:245) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at android.database.CursorWrapper.getLong(CursorWrapper.java:127) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at android.widget.CursorAdapter.getItemId(CursorAdapter.java:156) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at android.widget.AutoCompleteTextView.buildDropDown (AutoCompleteTextView.java:900) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at android.widget.AutoCompleteTextView.showDropDown (AutoCompleteTextView.java:843) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at android.widget.AutoCompleteTextView.onFilterComplete (AutoCompleteTextView.java:749) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at android.widget.Filter$ResultsHandler.handleMessage(Filter.java:266) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at android.os.Handler.dispatchMessage(Handler.java:99) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at android.os.Looper.loop(Looper.java:123) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at android.app.ActivityThread.main(ActivityThread.java:3948) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at java.lang.reflect.Method.invokeNative(Native Method) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at java.lang.reflect.Method.invoke(Method.java:521) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) 12-08 12:02:21.263: ERROR/AndroidRuntime(808): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 12-08 12:02:21.263:
[android-developers] Looking for Android Developers for 6 Months contract in the US
Folks Not sure if this is appropriate but couldnt hurt posting this one in a down economy. I am looking for two Android User Interface developers to join my team for a 6 month stint. The candidates must be in the US. I can only entertain US candidates at this time please. Preferably in NJ or Denver Colorado. I am the end client. Please send resumes or your contact info to rajm...@gmail.com and I will get in touch with you. Remember I need someone who has a great background in UI development and on Android. Thanks Raj ** Two US based contractors for a 6 -9 Month position for Android UI Development. Candidates must have at least one full project implementation on Android Mobile development and expertise and emphasis on User Interface development. Candidate must be able to show sample screens or mock applications in Android and avail for a casual technical interview. Must Have skills: Experienced java developers, Mobile development and a flair for UI development. Flash development is a plus. ** -- You received this message because you are subscribed to the Google 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] Simple Upload Application with Images
I'm baffled - and I'm sure it's something really easy. I'm trying to create an application that allows the user to select an image from their device, add some minor details, and upload it to a server. I'm getting my Image Uri with this: startActivityForResult(new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI), SELECT_SHOT); public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == SELECT_SHOT) { if (resultCode == Activity.RESULT_OK) { Uri selectedImage = data.getData(); Intent intent = new Intent(); intent.setData(selectedImage); intent.setClass(this,Details.class); startActivity(intent); finish(); } } } The Uri being sent is usually something like this: content://media/external/images/media/4 No matter what I do - I can't seem to get this Uri into a format that a File opener will like... I'm currently trying to use this: java.net.URI juri = new java.net.URI(dataToUploadUri.getEncodedPath ()); FileInputStream fis =this.openFileInput(juri); Every time I run it I get this error: java.lang.IllegalArgumentException: File /media/external/images/media/ 4 contains a path separator. Any help would be greatly appreciated - I'm sure I'm just a line or two of code away. :-) On a side note - if anyone has a suggested method for uploading files to a remote server please feel free to share them. :-) Thanks! -David -- You received this message because you are subscribed to the Google 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: Updates to the Android SDK
Hi, I have Android 1.5 Platform on my machine. I just installed the latest version i.e. 2.0.1 using the android- sdk_r04-windows.zip available online. I am using Eclipse Galileo IDE. I have few questions on this, 1 Can i switch to the new version by just changing the preference in the IDE to the installed dir android-sdk-windows? 2 Doe the new SDK version has Google Maps API built in that? Thanks, Arun On Dec 6, 11:55 am, Adrian Romanelli adrian.o.romane...@gmail.com wrote: This is what I did, when I came upon the same problem, and it worked for me (Windows 7 x64). C:\Users\Public\android-sdk-windows\toolsandroid Starting Android SDK and AVD Manager SWT folder 'lib\x86_64' does not exist. Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo rm. C:\Users\Public\android-sdk-windows\toolsdir ..\swt.jar /s Volume in drive C has no label. Volume Serial Number is F484-7812 Directory of C:\Users\Public\android-sdk-windows\tools\lib\x86 12/04/2009 03:26 PM 1,584,454 swt.jar 1 File(s) 1,584,454 bytes Directory of C:\Users\Public\android-sdk-windows\tools\lib\x86_64 12/04/2009 03:26 PM 1,658,174 swt.jar 1 File(s) 1,658,174 bytes Total Files Listed: 2 File(s) 3,242,628 bytes 0 Dir(s) 238,457,712,640 bytes free C:\Users\Public\android-sdk-windows\toolsset ANDROID_SWT=C:\Users \Public\android-sdk-windows\tools\lib\x86_64 C:\Users\Public\android-sdk-windows\toolsandroid Starting Android SDK and AVD Manager No command line parameters provided, launching UI. See 'android --help' for operations from the command line. On Dec 4, 3:10 pm, Raphael r...@android.com wrote: For all of those who have the issue of 1.6_r2 not installing under Windows: that's because Eclipse is locking the folder. The solution is to close Eclipse and run the $SDK\tools\android.bat script directly. Then 1.6_r2 will install correctly. HTH R/ -- You received this message because you are subscribed to the Google 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: passing params from ksoap2 to .net web service, always passes nulls
Hi Mike, I have exactly the same problem and I googled for more than a week with no luck. I just saw your post now. I hope you found the solution, if so, can you please post it? Thanks, On Dec 1, 3:52 pm, Mike_Tek neobu...@gmail.com wrote: i've searched and googled to no avail i can call my.net c# web service just fine without parameters, as soon as i add a param that param is null when it hits the service.. i've tried passing objects, classes. I've tried every single SoapSerializationEnvelope type.. everything i could read on ksoap2. .net code below [SoapRpcMethod, WebMethod] public string ReturnResources(string Facility) { if (Facility == null) { System.Diagnostics.EventLog.WriteEntry(Application, Null); return Nothing Found; } } android code below (i assure you it works fine without params) SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty(Facility, Facilities[0]); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope (SoapEnvelope.VER11); envelope.dotNet = true; envelope.encodingStyle = SoapSerializationEnvelope.ENC ; envelope.setOutputSoapObject(request); HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); androidHttpTransport.call(SOAP_ACTION, envelope); java.lang.String receivedString = (String)envelope.getResponse(); i have no errors client or server side, just a null passed as param. i read xml is the only standard between languages, is this true? is it the d:string not matching up to s:string? if so why do i get a lang.string back just fine? sorry i'm just getting into android since the droid, but any help would be much appreciated.. 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 to disallow task switching
Hi All, How to disallow task switching? It is possible Thanks David -- You received this message because you are subscribed to the Google 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 do I get the current image using a service
If I have a service running how can I get the current image/music/ video URI from the Gallery or another media 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] Problem with List view's getCheckedItemPositions() sparse boolean array
(Sorry for re-mailing) Hi guys, I'm facing a problem with the result returned by list view's getCheckedItemPositions() method. This is the scenario: -I'm using a list view in multiple choice mode (list view with checkboxes) - the idea being that a user can select several items and delete them at once. -When the user clicks on the delete button, i use list view's getCheckedItemPositions() method to retrieve the checked item positions and i proceed to delete the items. -This is the tricky part: i begin by checking the number of times i have to delete eg. if the user has checked 3 items, then i'll delete 3 times. - Each time i delete an item, i retrieve the checked item positions - because after every delete the state of the list changes... So what do i expect when i call getCheckedItemPositions() after deleting an item ? i expect the checked item position keys to change to reflect the state of the list... if i'm not wrong eg. - i have a list with 6 items [a, b, c, d, e, f], and the user checks d, e and f , keys 3, 4 and 5 of the checked item positions list will be true - OK - in code, i remove item d at position 3 of my list using the adapter so my list is now [a, b, c, e, f] - at this point i do myList.getCheckedItemPositions() expecting the returned sparse array to be true for keys 3 4 - but this is not the case , instead the checked items are exactly the same as those of the list before deleting any item. I could be missing something here - could someone please clarify this.. ? Thanks in advance, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Upgrade from Android SDK 1.5 to SDK 2.0.1
Hi, I had Android 1.5 installed on windows XP with Eclipse Galileo as IDE. I downloaded the latest Android SDK 2.0.1 from http://developer.android.com/sdk/index.html and unzipped to My question is, 1 Can I switch to the new SDK by pointing in Eclipse IDE in the preference to the installed dir i.e. android-sdk-windows? 2 Does the new SDK version has Google Maps API in-built in it? Thanks, Arun -- You received this message because you are subscribed to the Google 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] 2010 Mobile Developer Survey Invitation
We are conducting a survey of mobile application developers aimed at improving our understanding of mobile application development, focused on developer practices for building mobile applications. This is a research project, sponsored by the CyLab Mobility Research Center of Carnegie Mellon University. Survey results will be made public and will be available at http://mobileplatforms.wikidot.com in early 2010. The survey is open to anyone who is involved in the design and development of mobile applications, and should take 10-15 minutes to complete. If you would like to participate, please follow this link. There you will first be asked to give your consent to participating in the survey. If you have questions about the survey, please send an email message to mobilesur...@sv.cmu.edu If you would like to participate in the survey, please click to go to the survey site at http://2010MobileDeveloperSurvey.questionpro.com Thank you very much for your participation. All responses will remain confidential and secure. Thank you in advance for your valuable feedback. Your input will be used to ensure that we continues to meet your needs. We appreciate your trust and look forward to serving you in the future. We would greatly appreciate if you can circulate this survey amongst the 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] Failed to persist new stats
Seeing this all the time pretty much after all key presses in log. Ideas? -- You received this message because you are subscribed to the Google 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] Using custom defaults for PreferenceScreen
Hello everyone, I am currently trying to implement a PreferenceActivity for my application that uses custom default values for its preferences instead of the defaults declared in the corresponding preference XML as the defaults are supposed to change dynamically based on certain conditions. However, when I modify the defaults via the Android API after loading the preferences through addPreferencesFromResource(R.xml.preferences); it already seems to be too late and the individual defaults set via Preference.setDefaultValue do not seem to be taken into consideration when rendering the UI. The cause seems to be that the defaults are read immediately (if necessary) in the Preference.onAttachedToHierarchy callback, which is triggered synchronously within the addPreferencesFromResource call (via PreferenceManager.inflateFromResource). As I would like to avoid re-inventing the wheel I hope there is some possibility to achieve this using the standard Android preference API. Is there any way to trigger a re-evaluation of the values (and default values) associated with a PreferenceScreen hierarchy? I did not yet try whether creating the PreferenceScreen via APIs instead of loading from XML would help, so that could be an option. Thanks, Thilo -- You received this message because you are subscribed to the Google 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: Services, Intents and Wakelocks
Hi Dan! I was following the pattern proposed in Mark Murphy's book Advanced Android Development. Unfortuantely it appears that the static variable mechanism for state doesn't work as the BroadcastReceiver can run in a separate DalikVM than the Service, making the static variable instances completely different. This intrigued me: * So, my BroadcastReceiver keeps a static MapLong, WakeLock ofWakeLocksit creates when onReceive is called. It creates a new WakeLock for each call to onReceive, and generates a new unique ID (hence the Long) for each one. The ID is sent as an Extra in the Intent to the Service being fired. The Service, in onStart, creates its own WakeLock, then sends a release wakelock Intent back to the BroadcastReceiver with the same ID. When the BroadcastReceiver gets that returned Intent, it releases the WakeLock stored in the map. This method is a bit more complex than the public static, but does allow the BroadcastReceiver and Service to reside in different processes. Please let me know if this technique is harmful or bad in some way. It seems to work for me. And indeed it does seem to work, but from the documentation: A BroadcastReceiver object is only valid for the duration of the call to onReceive(Context, Intent). Once your code returns from this function, the system considers the object to be finished and no longer active. http://developer.android.com/reference/android/content/BroadcastReceiver.html This seems to indicate that the fact that the static Map is still in existence between broadcast calls is simply coincidence. Since I can find (or think of) no way to pass a WakeLock to any global or shared location for the BroadcastReceiver and Service both to use, I am stuck figiuring out how to make this work. I need to check more implementations out there and see what other people do. I'm in contact with Mark Murphy about this issue and we're trying to look through a few pattern examples and come up with one of our own. Cheers, bk -- You received this message because you are subscribed to the Google 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: Updates to the Android SDK
Hi, I had Android 1.5 installed on windows XP with Eclipse Galileo as IDE. I downloaded the latest Android SDK 2.0.1 from http://developer.android.com/sdk/index.html and unzipped to My question is, 1 Can I switch to the new SDK by pointing in Eclipse IDE in the preference to the installed dir i.e. android-sdk-windows? 2 Does the new SDK version has Google Maps API in-built in it? Thanks, Arun On Dec 7, 11:41 am, Sekhar sek...@allurefx.com wrote: Actually, the original error said that r1 was being moved to a temp directory (not removed); but I see now it was probably just to handle errors during r2 install so it can roll back to r1 if necessary. So, all good - I guess deleting the platforms directory is the best way to handle this issue right now then. But I hope Google fixes this so regular update works and we don't need to resort to hacks. On Dec 7, 11:27 am, Xavier Ducrohet x...@android.com wrote: actually it's the same. installing 1.6_r2 wipes the 1.6_r1 folder (which is why you get a lock error if it fails to do so. It is completely safe to manually delete the 1.6_r1 folder and then get r2. Xav On Sun, Dec 6, 2009 at 10:47 PM, Sekhar sek...@allurefx.com wrote: Right, but my point is: if you delete the 1.6 platforms folder, you're going to lose the r1 - you only get 1.6 r2. I.e., you're basically wiping out 1.6 and just picking up the latest. May be OK if you don't need 1.6 r1, but it's not the same as a regular update. On Dec 5, 1:18 am, blindfold seeingwithso...@gmail.com wrote: Quitting Eclipse, manually deleting platforms\android-1.6, and restarting Eclipse to run Android SDK and AVD Manager from its Windows menu brought back platforms\android-1.6 with what I presume is a full replacement of the 1.6 folder with the now updated 1.6 content. This is further proven by the fact that another update check did not list 1.6, so I think my workaround for the file lock works just fine, and I used it on both Windows 7 64-bit and Windows XP without further issues. On Dec 4, 6:01 pm, Sekhar sek...@allurefx.com wrote: Yeah, that was the first thing I tried (kill-server), but adb will get started again automatically, so that doesn't help. I'd also tried deleting adb.exe from tools\ in the hope it would'nt get started, but then I can't even bring up the SDK/AVD manager to do the update. Also, blindfold: deleting the platforms\android-1.6 is really not a solution because you're just avoiding dealing with the 1.6 update. Bottom line, I don't believe there's still a solution to updating from 1.6 r1 to 1.6 r2. This is on Vista 64 bit. Anyone? On Dec 3, 11:11 pm, Mark Murphy mmur...@commonsware.com wrote: I'm not able to update 1.6 r1 to 1.6 r2 in Eclipse on Windows, it's throwing an error A folder failed to be renamed or moved. Looks like adb.exe that's running is preventing a move to temp. Anyone else having this problem? Run adb kill-server, or reboot, and try again. You probably have an adb daemon process in memory that is tying up adb.exe. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android 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 -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. 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] Problem with List view's getCheckedItemPositions() sparse boolean array
Hi guys, I'm facing a problem with the result returned by list view's *getCheckedItemPositions() *method. This is the scenario: -I'm using a list view in *multiple choice mode* (list view with checkboxes) - the idea being that a *user can select several items and delete them at once*. -When the user clicks on the delete button, i use list view's getCheckedItemPositions() method to retrieve the checked item positions and i proceed to delete the items. -This is the tricky part: i begin by checking the number of times i have to delete eg. if the user has checked 3 items, then i'll delete 3 times. - *Each time i delete an item, i retrieve the checked item positions* - because *after every delete the state of the list changes..*. So what do i expect when i call getCheckedItemPositions() after deleting an item ? i expect the checked item position keys to change to reflect the state of the list... *if i'm not wrong* eg. - i have a list with 6 items [a, b, c, d, e, f], and the user checks d, e and f , keys 3, 4 and 5 of the checked item positions list will be true - OK - in code, i remove item d at position 3 of my list using the adapter so my list is now [a, b, c, e, f] - at this point i do myList.getCheckedItemPositions() expecting the returned sparse array to be true for keys 3 4 - but this is not the case , instead the checked items are exactly the same as those of the list before deleting any item. I could be missing something here - could someone please clarify this.. ? Thanks in advance, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google Maps Navigation integration
Hello Guys! There is any way to integrate Google Maps Navigation with my app? Regards, RM -- You received this message because you are subscribed to the Google 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 with List view's getCheckedItemPositions() sparse boolean array
Hi guys, I'm facing a problem with the result returned by list view's getCheckedItemPositions() method. This is the scenario: -I'm using a list view in multiple choice mode (list view with checkboxes) - the idea being that a user can select several items and delete them at once. -When the user clicks on the delete button, i use list view's getCheckedItemPositions() method to retrieve the checked item positions and i proceed to delete the items. -This is the tricky part: i begin by checking the number of times i have to delete eg. if the user has checked 3 items, then i'll delete 3 times. - Each time i delete an item, i retrieve the checked item positions - because after every delete the state of the list changes... So what do i expect when i call getCheckedItemPositions() after deleting an item ? i expect the checked item position keys to change to reflect the state of the list... if i'm not wrong eg. - i have a list with 6 items [a, b, c, d, e, f], and the user checks d, e and f , keys 3, 4 and 5 of the checked item positions list will be true - OK - in code, i remove item d at position 3 of my list using the adapter so my list is now [a, b, c, e, f] - at this point i do myList.getCheckedItemPositions() expecting the returned sparse array to be true for keys 3 4 - but this is not the case , instead the checked items are exactly the same as those of the list before deleting any item. I could be missing something here - could someone please clarify this.. ? Thanks in advance, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: problem sending an email with an attachment programmatically
I'm trying to embed an HTML reference to an image to include in an HTML email. I used a SpannableString to successfully create an email that has a http href in it, as shown below. But I have not been able to add an image into the body of the email. Other programs add something like this directly to the body of the email: img src=http://thumbs1.ebaystatic.com/pict/ 1804380093048080_1.jpg This doesn't work for me - the text is a hot link. I've tried various permutations of using SpannableString but can't get the image to appear. Any tips for this would be muchly appreciated. Here's the body of an email message I've successfully created: pCheck out this item I found on eBay:/p pa href=http://cgi.ebay.com/DEALS-cps-QA-bid-test-do-not-bid-4- BID- BIN_W0QQitemZ250528416791QQcategoryZ30120QQcmdZViewItemDEALS cps QA bid test do not bid 4 BID + BIN/a/p Here's the code that successfully creates the above email message: String email_subject = getResources().getString (R.string.default_share_subject).trim(); final Intent i = new Intent(Intent.ACTION_SEND); i.setType(message/rfc822); i.putExtra(Intent.EXTRA_SUBJECT, email_subject); SpannableString item = new SpannableString (mFoundItem.getTitle().Value()); item.setSpan(new URLSpan(mFoundItem.GetItemUrl().Value ()), 0, item.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE); SpannableStringBuilder email_body = new SpannableStringBuilder(getResources().getString (R.string.default_share_text) + \n\n); email_body.append(item); i.putExtra(Intent.EXTRA_TEXT, email_body); startActivity(Intent.createChooser(i, getResources ().getString(R.string.share_chooser))); -- You received this message because you are subscribed to the Google 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] Extract list for android market?
I'm looking to create a backup/restore application for Android that uses an applications list to basically record what is installed (as opposed to merely saving the installed applications to the SD card on a device). The scope of this application would basically be to install a list of applications. (Those that work with APT packaging on Debian Linux and derived, note that a restore would be the Android equivalent of 'cat list-of-packages | aptitude install'.) The idea is this - restoring the installed applications from the SD card does not restore it into the market, so if there are updates, you don't get them without help. (That, and I've had Market forget my list when I did a master reset once.) Second, of course, is that a text list takes up much less room than a bunch of application packages. Here's the rub: I can't find a way to extract that list. In a word: HELP! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Developer contest - win up to $15,000
Hi all, My company, Motally, is sponsoring a contest for application developers with over $15,000 in prizes including a trip to Mobile World Congress in Barcelona. All you have to do is integrate the Motally analytics API into your app to be eligible to win. Our API helps developers monitor usage of apps so you can learn more about your users and their behavior as well as improve your product offering. More details on the contest are online at www.motally.com/contest Thanks, Kristine Holst Marketing Manager - Motally -- You received this message because you are subscribed to the Google 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] Widgets: controlling phone functionality
I'm a web developer who recently bought a Droid (Android 2.0) and was wondering if it's possible to write a widget that controls certain features of the phone (e.g. lock keypad, adjust screen brightness, etc.) Are there any tutorials that discuss this subject? 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] GeomagneticField - getDeclination() examples?
Hello, I'm new to Java/android and im really having trouble finding a source of good example bits of code. As an actionscript developer I have been spoilt in the past with helpful examples included in with the reference guide. But no such luck with the android reference pages unfourtunately. Does anyone have any examples of how to use the getDeclination() from the GeomagneticField class. Thank you very much, Nigel -- You received this message because you are subscribed to the Google 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: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
It appears that static members of activity remain allocated and referenced between consecutive runs of Activity. I can actually draw the bitmap from the previous launch -- in a new launch (between finish () calls). It's still there. So not only is memory of static members not deallocated (which is actually not surprising), but the static references are still alive, pointing to the memory, and can be used to invoke the members back. This last part was surprising to me. This is actually not bad, as long as developers are aware of it. Is this Dalvik's feature? So, my VM budget issue can now be solved by simply creating my bitmap (declared as static) on top of the activity, outside of onCreate (); This way, on each new run of the activity, the bitmap is either created (if memory was deallocated), or simply re-used (if memory is still there). No need for me to check if the reference points to null, or not. Again, not sure if this is the best way of handling this. Any thoughts? -S. On Dec 7, 2:23 pm, skominac stevan.komi...@gmail.com wrote: On Dec 6, 10:23 pm, Romain Guy romain...@android.com wrote: How come you still have a reference to your bitmap when a new Activity is created? That confuses me, too, actually. I really want to find out how I made this happen. If you have this bitmap somewhere else than within the Activity, then it's perfectly normal that it's not de-allocated when the Activity disappears. What would be an example of somewhere else within the Activity? In my case, the bitmap reference appears in onCreate(), onDraw(), onPause(), as well inside an activity method, which is declared as native and is called from C code. The null checking, that I posted previously, happens in onCreate(). That is where I learned that I can still refer to the same bitmap from the previous run. In addition, if your Activity is not garbage collected, you probably have a leak somewhere and are holding onto the Activity object. I am simply calling this activity via startActivity(). To my knowledge, I am not holding any references to the activity object. Some scenario I might be missing here? Help is appreciated. Thanks, -S. On Fri, Dec 4, 2009 at 7:19 PM,skominacstevan.komi...@gmail.com wrote: I had a similar issue. Calling finish() on Activity does not in itself deallocate memory allocated in Activity. The reason we notice this problem with bitmaps is because they are often so large. Recycling bitmaps did not work for me either. So, instead, when my Activity starts, and before I create a new bitmap, I do the following check: if (bitmap == null) { bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_); } else { bitmap.eraseColor(0); // just clear pixels } This way, I reuse the previously allocated bitmap in a subsequent run of the Activity. (My Activity only needs one bitmap.) Not sure if this is the best way to do it, but it works for me. -S. On Nov 25, 11:43 am, Matt Hall matt.h...@gmail.com wrote: Yeah, we've had a similar issue before. One thing you can try is to call recycle() on the last frame of your animation before you replace it. This is normally called by the garbage collector and works fine when you're not close to the memory limit, but it sounds like there might be cases where you temporarily go over the limit and the GC doesn't get to the bitmaps in time. Matt On Wed, Nov 25, 2009 at 2:37 PM, Matt Kanninen mathias...@gmail.com wrote: Matt, So in this case I definitely am frequently loading and unloading small images. Those 10 id's all point at different states in our animation. I can reduce the quality of our animation by reducing the views, and decrease how often I stumble down this cow path: but I only posted this stack trace because it was new, this happens anytime my app is run for more then half an hour, or 5 mins on the droid. The droid uses the same apk, same images, and 2 slightly different xmls (we added margins to our Droid xml). http://groups.google.com/group/android-developers/browse_thread/threa... or to quote myself: If my app runs for more then half an hour on the G1 it will fail on inflating views from xml, giving an error about insufficient memory creating a bitmap. Another issue, which may be a side effect is that global static strings that are assigned at startup become null. I have worked around that by throwing up setters around those statics that also store them as a private preference, and thrown up getters that read the preference in case of null. The root cause of all of my issues may be that when I call release on my MediaRecorder it sometimes hangs. No crash it just never returns, stalling the thread. I have worked around that by calling release in a thread that only does that. Is anyone else seeing and
[android-developers] Re: h264 rtsp streaming problems on android.
in oscl_error_codes.h #define OsclErrNoMemory 101 So I guess it is because of out of memory. On Dec 3, 6:56 pm, Ravinder ravinder.chou...@gmail.com wrote: Hi, I am currently involved with developing a streaming mediaplayerfor android. For testing purpose I have HTC HERO , HTC G1, and droid. I could stream audio and video both for only HERO. On G1 and Droid i get this error PlayerEngineAOdidaleave, error = 101 , surprisingly this comes as soon as DESCRIBE response is sent to the client !. So far i have not able to find out the exact cause of this error. should it imply that ( on droid and G1 )Video type H264 is not supported for streaming ? (rtsp ). firmware details. HERO 1.5 G1 1.6 droid 2.0 rtsp streaming for only aac works fine on all the devices. Any links toplayererror details would be grateful. regards, Ravinder Chouhan -- You received this message because you are subscribed to the Google 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] Using android.app.ActivityManagerNative and android.app.IActivityManager
I need to configure the language . After checking android Setting Code, I used that code: import android.app.ActivityManagerNative; import android.app.IActivityManager; Locale l = new Locale(zh, CN); IActivityManager am = ActivityManagerNative.getDefault(); Configuration config = am.getConfiguration(); config.locale = l; config.userSetLocale = true; am.updateConfiguration(config); But , In Eclipse, it reported that Description ResourcePathLocationType ActivityManagerNative cannot be resolvedMainActivity.java H3.Setup/ src/H3/Setupline 158Java Problem -- You received this message because you are subscribed to the Google 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] Getting contact's address
My app had in intent-filter to respond when users click on a person's address in the contacts application. In Android 1.5 I would get an intent with data like content://contacts/people/16/contact_methods/3 In order to retrive the address from the contact I would later I would do: Cursor c = getContentResolver().query(intentUri, ...); Get the column called data and take the address from there. That stopped working on later android releases. On 2.0 all I get is: content://com.android.contacts/data/4 And I do not know how to get the address form that. It fails when I query for it. Any suggestions? Thank you, Artak Kalantarian -- You received this message because you are subscribed to the Google 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] adding contact photos in emulator
Hi, If you access the contacts db, you can get all the details. For photo, you can get the path of the photo . Just use StreamReader and convert to bitmap. Guna -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of vidya Sent: 09 December 2009 13:47 To: Android Developers Subject: [android-developers] adding contact photos in emulator Hi , Can anyone tell me how to add contact photo in android emulator. I want to show the contact photo in my app. I am mew to 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 -- You received this message because you are subscribed to the Google 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] Creating a multi-choice list preference.
I had been wondering how to do this for a long time, and I had seen some questions on this group, but no real answers. So, here's some code I whipped up and wanted to share with fellow devs: http://pastebin.com/f6cecdf72 Basically, instead of using views for the list options, when an item is clicked, a state flag is enabled or disabled. When the dialog is closed (positive), the state is converted to a delimited string for persistent storage (which should be fine for just about any preference need). To use the preference, the following xml attributes should be supplied: = android:entries (string array ref) = android:key (for persistence) = android:entryValues (string array ref containing true or false for entries) OR = android:defaultValue (delimited string of numbers E.G: 0;3;5) There's some JavaDoc included, I hope this helps anyone who was in the same boat as I was. -- You received this message because you are subscribed to the Google 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 send a motionEvent through a transparent activity
Not sure if I made this clear. In short, how to let the transparent activtiy process some touch event and let the screen behind it deal the rest touch event. 2009/12/9 Shawn Field banxia...@gmail.com Hi All, I made an activity with the transparent theme. When it starts up, the background home screen or other activity can be seen. what I'm going to do is let my transparent activity handle the touch event if there is something drawn by the transparent activity, and let the other application behind deal the touch event when there is no content (transparent part). Any suggestion or skills will be appreciated. -- You received this message because you are subscribed to the Google 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 send a motionEvent through a transparent activity
Hi All, I made an activity with the transparent theme. When it starts up, the background home screen or other activity can be seen. what I'm going to do is let my transparent activity handle the touch event if there is something drawn by the transparent activity, and let the other application behind deal the touch event when there is no content (transparent part). Any suggestion or skills will be appreciated. -- You received this message because you are subscribed to the Google 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: Preference Validation
Hey julius, You will have to extend the EditTextPreference class and override some methods in the underlying EditText (use getEditText()). Best bet would be to make your own key listener, and have it check what the current text in your EditText is. Then in your preference XML (or whatever), you'll have to change your EditTextPreference to com.your.package.ExtendedEditTextPreference. On Dec 8, 10:36 pm, julius jul...@msa.co.nz wrote: Hi, If I have a Preference Activity and it has an edittext input, how would I go about say limiting the input to integers between 1 and 300? I've looked around and I can't seem to find anything regarding Preference Validation. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Lock Screen?
I also want to slove this problem. Do you have any idea now? I am trying using KeyguardManager to slove it. On Nov 19, 12:36 am, mehool mehoo...@gmail.com wrote: Hey, Is there some way that I can write a program tolockthescreen(the one that usually happens when you press the power buttong once)? Thanks, Mehool On Nov 11, 8:04 am, Mark Murphy mmur...@commonsware.com wrote: Fred Grott(Android Expert,http://mobilebytes.wordpress.com) wrote: My question is that I have use case whereas client wants me tolockan application.. Could any of the APIs for the DeviceLockscreenbe re-purposed to lockthe application in the same manner? Or would I have to come up with some new code? How do you define lockan application? -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Consulting/App Development:http://commonsware.com/consulting -- You received this message because you are subscribed to the Google Groups Android 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] Camera intent - what's safe to use?
Hi, I'd like to let the user take a picture using the camera, then use it in my app. Ideally I could use the built-in camera app via an intent for this. It looks like there's a range of issues with the camera app though: http://code.google.com/p/android/issues/detail?id=1480 is the only reliable option to use the 192x256 memory-only image supplied by the camera intent? The following seems to not work: 1) Asking the camera intent to write a 'full size' image to disk. 2) Writing your own camera app (issues on different devices etc). The Facebook app seems to use the memory-only 192x256 option, probably because that's the only safe option. Anyone else have different opinions / experiences? 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 Developers]how to make google's Java client library work in android
Hi everyone: Does anybody know how to make google's Java client library work in android or some references? -- You received this message because you are subscribed to the Google 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 to Android
Hello. I am new to the Android coding but not to programming as I learned on Pascal a LONG time ago. I would like to do some programming in this new language but need some tips and help. Sample code and video are always good for me as I am a visual learner but I welcome any and all help. Thanks! -Joe -- You received this message because you are subscribed to the Google 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 can I kown when the scroller.startScroll method finished,please?
The Scroller class has a startScroll method ,I don't kown when it finish? is there any method like onScrollEnd? -- You received this message because you are subscribed to the Google 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: Multitouch support in Android 2.0
Coming in on this part of the thread late, but this is incorrect -- you *can* actually test multitouch by plugging in multiple mice. ;) The MT4j framework, built in Java with the use of Processing, does just this: http://createdigitalmotion.com/2009/11/17/multitouch-buffet-quartz-composer-for-touchpads-magic-mouse-mt4j-and-pymt-for-everything-imagined-and-unimagined/ And here's an example built in the Microsoft Multipoint SDK. http://multipointtuio.iamhigham.com/ It should absolutely be possible to build a simple tool that would bridge multiple mouse input to the emulator for testing purposes. It wouldn't be a full-blown replacement for testing on the device, of course, but it couldn't hurt -- and it could be an interesting option for creating a solution that worked both on multitouch-ready Android devices and desktops. ;) Peter On Oct 27, 6:18 pm, RichardC richard.crit...@googlemail.com wrote: You missed the ;) in my reply - sorry was not ment as a serious response. On Oct 27, 10:00 pm, niko20 nikolatesl...@yahoo.com wrote: Wait, if I use two mice, they both control the same pointer. There isn't a way to have multiple pointers. At least on windows - maybe on Linux you can do so more easily? -niko On Oct 27, 3:33 pm, RichardC richard.crit...@googlemail.com wrote: niko20 wrote: Now, if only there was a great trick to do multitouch on the emulator ! just use 2 mice ;) On Oct 27, 8:27 pm, CraigsRace craig...@gmail.com wrote: Does anyone know if every phone will support multi-touch (I remember talk about the G1's hardware might not support multi-touch)? On Oct 28, 5:08 am, niko20 nikolatesl...@yahoo.com wrote: Dianne, Thanks for the great info. Yep looks like you just get the count of pointers and walk through that. Now, if only there was a great trick to do multitouch on the emulator ! (I should be getting an actual phone soon though) -niko On Oct 27, 11:45 am, Dianne Hackborn hack...@android.com wrote: It's basically just some new APIs on MotionEvent: http://developer.android.com/reference/android/view/MotionEvent.html http://developer.android.com/reference/android/view/MotionEvent.htmlHmmm and I'm not sure why, but in the doc all of those new APIs are in gray, so they should be easy to see. :) Or here is the API diff report: http://developer.android.com/sdk/api_diff/5/changes.html http://developer.android.com/sdk/api_diff/5/changes.htmlI see that I didn't get around to writing documentation in MotionEvent on the way multi-touchworks; sorry about that. Basically there are new actions that tell you when additional fingers go down and up, and each MotionEvent you receive allows you to query for the number of pointers in the event as well as the x, y, size, and pressure of each of those points (and the historical data for all those points as well if you want to collect all data since the last motion event you received). So it should be pretty straight-forward. The main thing to watch out for is the difference between the index in the current event for a pointer's data vs. the pointer ID for that pointer: http://developer.android.com/reference/android/view/MotionEvent.html#... http://developer.android.com/reference/android/view/MotionEvent.html#...The pointer ID allows you to keep track of the individual fingers across multiple motion events. For example, if the user touches finger 1, then finger 2, then releases 1, then touches 1 again, you would see: Finger 1 down: MotionEvent ACTION_DOWN with one pointer, whose ID is 0. Finger 2 down: MotionEvent ACTION_POINTER_2_DOWN with two pointers, whose IDs are 0 and 1. Finger 1 up: MotionEvent ACTION_POINTER_1_UP with one pointer, whose ID is 1. Finger 1 down: MotionEvent ACTION_POINTER_1_DOWN with two pointers, whose IDs are 0 and 1. Finger 1 up: MotionEvent ACTION_POINTER_1_UP with one pointer, whose ID is 1. Finger 2 up: MotionEvent ACTION_UP with one pointer, whose ID is 1. (And inspite of what the update documentation says, the API allows for an arbitrary number of fingers, not just 3. I just happened to define convenience constants for the first 3 finger down/up actions, but given their weird naming as seen above and the finger ID mask is actually 255, it is perhaps best just to ignore those constants. :p) On Tue, Oct 27, 2009 at 9:29 AM, Streets Of Boston flyingdutc...@gmail.comwrote: Kind-a burried inside the blog-post on developer.android.com (http:// developer.android.com/sdk/android-2.0-highlights.html), i saw that multi-touchis now supported:
[android-developers] setting image as hyperlink
Hi, I'm a beginner. This is my first post. I'm facing a problem. I want to show a image as a hyperlink. Touching that image will open the browser and go to given url. This should be in .xml file (not dynamic). Is it possible to do that? If yes, then how? Anyone please give me the code. 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: h264 rtsp streaming problems on android.
what media player are you using? I tried to use PSA software's 'stream media player' on HTC Hero and it connects to RTSP but it can never 'open' the stream. I'm using VLC as the rtsp server and network is wifi. thanks, xxiao On Dec 3, 4:56 am, Ravinder ravinder.chou...@gmail.com wrote: Hi, I am currently involved with developing a streaming media player for android. For testing purpose I have HTC HERO , HTC G1, and droid. I could stream audio and video both for only HERO. On G1 and Droid i get this error Player Engine AO did a leave , error = 101 , surprisingly this comes as soon as DESCRIBE response is sent to the client !. So far i have not able to find out the exact cause of this error. should it imply that ( on droid and G1 )Video type H264 is not supported for streaming ? (rtsp ). firmware details. HERO 1.5 G1 1.6 droid 2.0 rtsp streaming for only aac works fine on all the devices. Any links to player error details would be grateful. regards, Ravinder Chouhan -- You received this message because you are subscribed to the Google 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: Seg fault on Emulator startup?
Same problem happens to me today. with -no-audio options, I can start my emulator. My system is Arch x86_64 On Nov 24, 11:30 am, garycode garyma...@hotmail.com wrote: Hi, When I start the emulator with the command emulator -avd Android2.0 it comes up with Segmentation fault (core dumped) if i start it without sound it works emulator -no-audio -avd Android2.0 I'm using Fedora Core 12 64bit. If i run emulator -verbose -avd Android2.0 i get this, emulator: found SDK root at /home/gary/android-sdk-linux emulator: root virtual device file at /home/gary/.android/avd/ Android2.0.ini emulator: virtual device content at /home/gary/.android/avd/ Android2.0.avd emulator: virtual device config file: /home/gary/.android/avd/ Android2.0.avd/ config.ini emulator: locking user data image at /home/gary/.android/avd/ Android2.0.avd/userdata- qemu.img emulator: locking cache image at /home/gary/.android/avd/ Android2.0.avd/ cache.img emulator: ignoring non-existing SD Card at /home/gary/.android/avd/ Android2.0.avd/sdcard.img: No such file or directory emulator: found skin 'HVGA' in directory: /home/gary/android-sdk-linux/ platforms/android-2.0/ skins emulator: autoconfig: -skin HVGA emulator: autoconfig: -skindir /home/gary/android-sdk-linux/platforms/ android-2.0/ skins emulator: keyset loaded from: /home/gary/.android/ default.keyset emulator: trying to load skin file '/home/gary/android-sdk-linux/ platforms/android-2.0/skins/HVGA/ layout' emulator: skin network speed: 'full' emulator: skin network delay: 'none' emulator: registered 'boot-properties' qemud service emulator: registered 'boot-properties' qemud service emulator: Adding boot property: 'qemu.sf.lcd_density' = '160' emulator: Adding boot property: 'dalvik.vm.heapsize' = '16m' emulator: argv[00] = emulator emulator: argv[01] = -kernel emulator: argv[02] = /home/gary/android-sdk-linux/platforms/ android-2.0/images//kernel-qemu emulator: argv[03] = -initrd emulator: argv[04] = /home/gary/android-sdk-linux/platforms/ android-2.0/images//ramdisk.img emulator: argv[05] = -nand emulator: argv[06] = system,size=0x480,initfile=/home/gary/ android-sdk-linux/platforms/android-2.0/images//system.img emulator: argv[07] = -nand emulator: argv[08] = userdata,size=0x420,file=/home/gary/.android/ avd/Android2.0.avd/userdata-qemu.img emulator: argv[09] = -nand emulator: argv[10] = cache,size=0x420,file=/home/gary/.android/ avd/Android2.0.avd/cache.img emulator: argv[11] = -serial emulator: argv[12] = android-kmsg emulator: argv[13] = -serial emulator: argv[14] = android-qemud emulator: argv[15] = -append emulator: argv[16] = qemu=1 console=ttyS0 android.checkjni=1 android.qemud=ttyS1 android.ndns=1 emulator: argv[17] = -m emulator: argv[18] = 96 emulator: argv[19] = -clock emulator: argv[20] = unix emulator: mapping 'system' NAND image to /tmp/android/emulator-2nFiaj emulator: rounding devsize up to a full eraseunit, now 480f000 Segmentation fault (core dumped) Any idea why the emulator is getting a problem with sound? I'm trying to write an app that uses sound so really need to get this working but i'm stumped. Thanks Gary -- You received this message because you are subscribed to the Google 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] ADB no response after a long time communicate with PC.
For some reason, I need to communicate with my G1 by using ADB command Repeated for a long time, but often I cann't receive any response of ADB command after about 3 or 4 hours, does any one have an idea about this situation? -- You received this message because you are subscribed to the Google 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] Customizing the Emulator
Hi folks, I'm just starting with Android. I'm wondering how I could modify/customize the Android emulator. By that I mean how to take the actual display and put it into another context (for example a TV frame). I would also need to add a few custom functions like Create a Screenshot etc. Can you give me basic advice on where to start looking? Somewhere in the SDK I guess? Cheers, stephanos -- You received this message because you are subscribed to the Google 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: Rfcomm (2.0 1.6)
Previous posting matches experience here. Droid phone is exchanging data via RFCOMM with a wearable sensor with Mitsumi C46N BT part. I paired the devices by entering the sensor PIN on the phone in Bluetooth Settings, then the Android app created a BT client socket using the standard 128-bit SPP Service Class UUID. Running sdptool on a linux laptop showed the sensor offering the 16-bit SPP Service Class UUID. On Dec 2, 4:20 pm, Nick Pelly npe...@google.com wrote: On Tue, Dec 1, 2009 at 3:45 PM, Patrick lordthunder...@gmail.com wrote: Thanks a lot for your reply! Your understanding is not right here, UUID is used to lookup the port, not for encryption. The javadoc explains this. The only Javadoc i can find ( http://developer.android.com/reference/android/bluetooth/BluetoothAda... and http://developer.android.com/reference/android/bluetooth/BluetoothDev... ) is not very exact here. The device i'm using is a self developed device that uses a hardware chip for all the bluetooth stuff. So don't really have a lot influence on this. Guess we're back to the NDK, right? The non-android BT platform probably already advertises an sdp record. You just need to work out what UUID to look for. Try reading the thread bluetooth uuid on this list just 1 week ago, where some other developers hit this problem and found the UUID for there non-android platform. Also, if you have a rooted device, you can use the shell command 'sdptool' to browse the sdp records on your non-android device and see what is advertised. -- You received this message because you are subscribed to the Google 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] User Interface and User Experience
Hello, dear developers, I know that every android UI (standard, HTS Sense) is just an app, just like the apps you develop for the Market. What APIs and concepts do I need to know to write my own skins or UIs for the platform? 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: Strange behaviour with animation in tabhost
Try this. compteurView.startAnimation(animationCompteur); In my case, starting animation from Animation instance didn't work when that event caused by click ImageButton. (works internally but not displayed) So I've tried start from view, and that worked. I don't know the difference between them exactly. On Dec 9, 6:07 pm, arnouf arnaud.far...@gmail.com wrote: Hi all, I've a strange issue related an animation loaded automatically building the content of a Tabhost : start is called correctly bu there is no animation ! The goal is to load an animation when user is on the first tab of a list of 4 different tabs. I created an xml file describing my tabhost. Each tab contains a relativelayout. In the first relativelayout, included in the first tab, I added an ImageView component. I created an XML file describing my animation in /res/anim animation-list xmlns:android=http://schemas.android.com/apk/res/ android android:oneshot=false android:visible=true item android:drawable=@drawable/imgone android:duration=800 / item android:drawable=@drawable/imgwo android:duration=800 / item android:drawable=@drawable/imgthree android:duration=800 / /animation-list To load this animation and apply it on my ImageView, I load the layout in my activity and apply on TabHost a listener OnTabChangeListener. If the selected tab is the first I do following code : ImageView compteurView = (ImageView) findViewById(R.id.animcompteur); compteurView.setBackgroundResource(R.anim.anim_compteur); AnimationDrawable animationCompteur = (AnimationDrawable) compteurView.getBackground(); animationCompteur.start(); At the end of my onCreate method in my Activity, I do a setcurrenttab (0). My listener code is called correctly (debug mode) and even if start is called, my view doesn't display the animation (just the first image). If I go on another tab and come back on the first (index 0), animation is started correctly. I hope that these explanation will be sufficient to understand my problem. Thanks by advance 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
[android-developers] Google Location Service sometimes too busy for coarse location positioning request via cell ids?
All, I recently found that the Google Map Viewer's My Location function often doesn't return result these weeks. Here is the steps to test if this work in your area. 1. Turn off the Enable GPS satelites in Security location for My Location 2. Turn on Use wireless networks in Security location for My Location. 3. use Google Maps and choose My Location, then wait if it can locate your coarse postion or not. My testing result is: it sometimes work, and sometimes not work. Any idea?? 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] Question concerning List view's getCheckedItemPositions() method
Hi guys, I had the following scenario: -I'm using a list view in multiple choice mode to enable a user to delete several items he/she has checked, at once. -When the user clicks the delete button, i do the following; *get positions of checked items using: myList.getCheckedItemPositions (); *Get the items in this position and put them to a list - toDeleteList. **(QUESTION BASED ON THIS STEP) use myList.setItemChecked(position, false) to uncheck the list item. *Remove the items in the toDeleteList Now, i was forced to manually uncheck the list item because of this - if for example i delete the 1st item (a) of list [a, b, c, d], b will be checked after the delete ie. for list [b, c, d] - b will appear checked. Question is why? Because the SparseBooleanArray returned by myList.getCheckedItemPositions(); is the same before and after deleting from the list. I thought (i could be wrong) that after removing an item from the list via the adapter - the CheckedItemPositions array should also change to reflect the new state of the list eg. - for mylist = [a, b, c, d] - items at position 0 and 3 checked (a d) - the checked item positions (mylist.getCheckedItemPositions()) array has values true for positions 0 and 3 - If i remove a d from the list, therefore, mylist = [b,c], mylist.getCheckedItemPositions() is the same as above - doesn't change - positions 0 and 3 are checked. *I was expecting it not to be checked for positions 0 3 because the items at these positions are no longer in the list. So, i'm i getting something wrong here (or having the wrong expectations :) ) ? someone please clarify this.. Thanks in advance, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Question concerning List view's getCheckedItemPositions() method
No onez [?] ? On Wed, Dec 9, 2009 at 10:23 AM, cire pv.ra...@gmail.com wrote: Hi guys, I had the following scenario: -I'm using a list view in multiple choice mode to enable a user to delete several items he/she has checked, at once. -When the user clicks the delete button, i do the following; *get positions of checked items using: myList.getCheckedItemPositions (); *Get the items in this position and put them to a list - toDeleteList. **(QUESTION BASED ON THIS STEP) use myList.setItemChecked(position, false) to uncheck the list item. *Remove the items in the toDeleteList Now, i was forced to manually uncheck the list item because of this - if for example i delete the 1st item (a) of list [a, b, c, d], b will be checked after the delete ie. for list [b, c, d] - b will appear checked. Question is why? Because the SparseBooleanArray returned by myList.getCheckedItemPositions(); is the same before and after deleting from the list. I thought (i could be wrong) that after removing an item from the list via the adapter - the CheckedItemPositions array should also change to reflect the new state of the list eg. - for mylist = [a, b, c, d] - items at position 0 and 3 checked (a d) - the checked item positions (mylist.getCheckedItemPositions()) array has values true for positions 0 and 3 - If i remove a d from the list, therefore, mylist = [b,c], mylist.getCheckedItemPositions() is the same as above - doesn't change - positions 0 and 3 are checked. *I was expecting it not to be checked for positions 0 3 because the items at these positions are no longer in the list. So, i'm i getting something wrong here (or having the wrong expectations :) ) ? someone please clarify this.. Thanks in advance, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en331.gif
[android-developers] GMail unread mail count
Hello Forum, most other smart phones display the unread email count as a small number in the lower right hand corner of the email application icon. I like that. After realizing that this is not supported by the GMail app, I started looking around the market for a widget that achieves this. All I found was a commercial widget, which did not satisfy me (the count did not get instantly updated when the unread mail count changed). Therefore I want to develop a widget, which accomplishes exactly that. Many of you probably have more experience in android development than I do, so I would be happy to hear your opinions. I see two ways to realize this: 1) Somehow hook into a content provider of the GMail app and extract the unread mail count directly from there. Unfortunately the GMail app is not part of the SDK and closed source. Therefore I have no idea how to find out about the internal workings of the app and how to extract the unread mail count directly from there. 2) The second approach is much more indirect and has more overhead, but it will work nevertheless. I will let the user provide google username and password and log into the google imap server directly and find out how many unread mail there are. A port of the JavaMail library for the android OS should make this quite simple. The question remains when to update the mail count. What should trigger the update? A periodic time-out? Well, my first idea would be to update it when the widget is first started and then every time a new mail notification comes in. However I don't know whether this is possible. Can I tell my application to react to notifications, which where produced by another application (GMail app in our case) ? I really think there should be a free unread gmail widget, which accomplishes this! I would be happy to receive feedback. Cheers, Christoph -- You received this message because you are subscribed to the Google 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: ADB working with HTC Droid Eris?
I got the same exact issue as original poster. I tried what was on that unlockr site but it didn't workeither. I see the Android Compsosite ADB Interface not connected and Android Phone HTC Android PHone USB Device connected. Any other suggestions? I can't use any ADB commands on the phone. I'm running XP64. On Nov 9, 2:11 pm, wooter wilhew...@gmail.com wrote: this might help:http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-an... On Nov 8, 4:38 pm, drasticp drast...@gmail.com wrote: I'm trying to debug apps with the new HTC DroidErisandADBdoesn't seem to recognize the device. I have the latest SDK installed with Usb Driver Package, Revsion 2 downloaded through the Android SDK and AVD Manager. When the device is connected, it recognizes new hardware and I point it to the usb_driver folder to install the drivers. Windows accepts and installs the drivers. However, adbdevices from a command prompt never lists the phone. I've tried this on two different Windows XP systems. I have Unknown Sources and USB Debugging checked under Application Settings, Development. Is anyone else debugging with theEris?- 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
[android-developers] Images can run in emulator version1.11, but not in version1.12
I can run my images in emulator version1.11, but it failed in version 1.12. I have found their source code is so different. what wrong images? Can somebody take a look at bellow logs? emulator version 1.11's log(this success): emulator: qemud_serial_read: normal qemud detected. emulator: qemud_serial_read: channel= 0 len= 26 'connect:boot- properties:01' emulator: qemud_multiplexer_connect: registered client channel 1 for 'boot-properties' service emulator: qemud_serial_send: channel= 0 len= 13 'ok:connect:01' emulator: qemud_serial_read: channel= 1 len= 8 '0004list' emulator: qemud_serial_send: channel= 1 len= 23 'qemu.sf.lcd_density=160' emulator: qemud_serial_send: channel= 0 len= 13 'disconnect:01' emulator: qemud_serial_read: channel= 0 len= 14 'connect:gsm:02' emulator: qemud_multiplexer_connect: registered client channel 2 for 'gsm' service emulator: qemud_serial_send: channel= 0 len= 13 'ok:connect:02' emulator: qemud_serial_read: channel= 2 len= 9 'ATE0Q0V1\r' ATE0Q0V1 OK emulator: qemud_serial_send: channel= 2 len= 2 'OK' emulator: qemud_serial_send: channel= 2 len= 1 '\r' emulator: qemud_serial_read: channel= 2 len= 9 'ATE0Q0V1\r' ATE0Q0V1 OK emulator: qemud_serial_send: channel= 2 len= 2 'OK' emulator: qemud_serial_send: channel= 2 len= 1 '\r' emulator: qemud_serial_read: channel= 2 len= 7 'ATS0=0\r' ATS0=0 OK emulator: qemud_serial_send: channel= 2 len= 2 'OK' emulator: qemud_serial_send: channel= 2 len= 1 '\r' emulator: qemud_serial_read: channel= 2 len= 10 'AT+CMEE=1\r' AT+CMEE=1 OK emulator: qemud_serial_send: channel= 2 len= 2 'OK' emulator: qemud_serial_send: channel= 2 len= 1 '\r' emulator: qemud_serial_read: channel= 2 len= 10 'AT+CREG=2\r' emulator version 1.12's log(this fails) emulator: qemud_serial_read: normal qemud detected. emulator: qemud_serial_read: channel= 0 len= 26 'connect:boot- properties:01' emulator: qemud_multiplexer_connect: registered client channel 1 for 'boot-properties' service emulator: qemud_serial_send: channel= 0 len= 13 'ok:connect:01' emulator: qemud_serial_read: channel= 1 len= 4 '0004' emulator: qemud_serial_read: channel= 1 len= 4 'list' emulator: qemud_serial_send: channel= 1 len= 23 'qemu.sf.lcd_density=160' emulator: qemud_serial_send: channel= 1 len= 22 'dalvik.vm.heapsize=16m' emulator: qemud_serial_send: channel= 0 len= 13 'disconnect:01' 12-09 15:59:09.3652727 I DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 12-09 15:59:09.3652727 I DEBUG : Build fingerprint: '1.6/ DRC92/1:eng/debug,test-keys' 12-09 15:59:09.3652727 I DEBUG : pid: 28, tid: 45 / system/bin/rild 12-09 15:59:09.3652727 I DEBUG : signal 4 (SIGILL), fault addr 3fe0d4a4 12-09 15:59:09.3652727 I DEBUG : r0 0002 r1 600fff00 r2 600fff00 r3 0001 12-09 15:59:09.3752727 I DEBUG : r4 600fff00 r5 600fff00 r6 r7 3fe39dd4 12-09 15:59:09.3752727 I DEBUG : r8 beaf3848 r9 3fe39dd4 10 3e405445 fp 0001 12-09 15:59:09.3752727 I DEBUG : ip 0045 sp 600ffed0 lr 3fe0ea54 pc 3fe0d4a4 cpsr a010 12-09 15:59:09.4552727 I DEBUG : #00 pc d4a4 / system/lib/libc.so 12-09 15:59:09.4742727 I DEBUG : #01 pc ea50 / system/lib/libc.so 12-09 15:59:09.4862727 I DEBUG : stack: 12-09 15:59:09.4862727 I DEBUG : 600ffe90 12-09 15:59:09.4862727 I DEBUG : 600ffe94 12-09 15:59:09.4862727 I DEBUG : 600ffe98 12-09 15:59:09.4862727 I DEBUG : 600ffe9c 12-09 15:59:09.4862727 I DEBUG : 600ffea0 12-09 15:59:09.4962727 I DEBUG : 600ffea4 12-09 15:59:09.5052727 I DEBUG : 600ffea8 12-09 15:59:09.5052727 I DEBUG : 600ffeac 12-09 15:59:09.5052727 I DEBUG : 600ffeb0 12-09 15:59:09.5052727 I DEBUG : 600ffeb4 12-09 15:59:09.5052727 I DEBUG : 600ffeb8 12-09 15:59:09.5052727 I DEBUG : 600ffebc 12-09 15:59:09.5052727 I DEBUG : 600ffec0 12-09 15:59:09.5152727 I DEBUG : 600ffec4 12-09 15:59:09.5252727 I DEBUG : 600ffec8 df002777 12-09 15:59:09.5252727 I DEBUG : 600ffecc e3a070ad 12-09 15:59:09.5252727 I DEBUG : #00 600ffed0 600fff00 12-09 15:59:09.5252727 I DEBUG : 600ffed4 12-09 15:59:09.5252727 I DEBUG : #01 600ffed8 3e405445 / system/lib/libril.so 12-09 15:59:09.5252727 I DEBUG : 600ffedc 0078 12-09 15:59:09.5252727 I DEBUG : 600ffee0 beaf3848 [stack] 12-09 15:59:09.5252727 I DEBUG : 600ffee4 3fe39dd4 / system/lib/libc.so 12-09 15:59:09.5252727 I DEBUG : 600ffee8 3e405445 / system/lib/libril.so 12-09 15:59:09.5252727 I DEBUG :
Re: [android-developers] Re: App Not showing up on Verizon DROID Phones
I'm not sure - But I think that there are different stores for different versions of Android - and it just takes a bit for them to populate in, etc. On Wed, Dec 9, 2009 at 7:57 AM, Matt hansen.matt...@gmail.com wrote: Interesting. 10 minutes later, the app just started showing up. No idea what happened. Matt On Dec 8, 12:49 pm, Matt hansen.matt...@gmail.com wrote: I have an app (Call Waiting Configurations) that has been out on the market for several weeks, and is now gone. It isn't searchable from either the G1 or the Droid... I have double checked all of the settings on the Developer Console page, I have tried disabling the security settings but it hasn't helped. The app does, however, still show up in my downloads on my phone, indicating that it is on the market somewhere. Just not searchable. Matt On Nov 23, 11:37 pm, String sterl...@addressender.com wrote: There seems to be a family of problems here, not necessarily related other than the symptom: Some apps are not visible from some handsets. For Hero, Eris, and other 1.5 phones, the problem is copy protection. Documented here: http://groups.google.com/group/android-developers/browse_thread/threa... For Tattoo, the problem is requesting the CAMERA permission. Documented here: http://groups.google.com/group/android-developers/browse_thread/threa... For Droid, AFAIK no specific problem has been identified. Please chime in if you know otherwise. Taken together, these issues could easily mean that a developer is losing 25-75% of app sales, but there's nobody on this forum representing the Market team, so there's no official acknowledgement of the problem. String On Nov 23, 9:35 pm, Jerry jerrydiclau...@gmail.com wrote: Here are two more apps to add to your list. I have the Eris and can't find DroidESPN and Camera Zoom FX. I have tried both the search and QR scan and neither show up. Very, very frustrating. -- You received this message because you are subscribed to the Google 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] How to call a view from the view ?
Hi guys. I am a new developer for Android. I wanna know about View transitions. For my application, it has 5 screens that can shift each other. In order word, Screen1 - Screen2 -- Screen3 -- Screen4 - Screen5. How to make this screen transition on Android ? Please share the knowledge. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Question concerning List view's getCheckedItemPositions() method
Hey, i seriously think that this is a legitimate question - worth some thought.. On Wed, Dec 9, 2009 at 1:03 PM, pvrnd pvrnd pv.ra...@gmail.com wrote: No onez [?] ? On Wed, Dec 9, 2009 at 10:23 AM, cire pv.ra...@gmail.com wrote: Hi guys, I had the following scenario: -I'm using a list view in multiple choice mode to enable a user to delete several items he/she has checked, at once. -When the user clicks the delete button, i do the following; *get positions of checked items using: myList.getCheckedItemPositions (); *Get the items in this position and put them to a list - toDeleteList. **(QUESTION BASED ON THIS STEP) use myList.setItemChecked(position, false) to uncheck the list item. *Remove the items in the toDeleteList Now, i was forced to manually uncheck the list item because of this - if for example i delete the 1st item (a) of list [a, b, c, d], b will be checked after the delete ie. for list [b, c, d] - b will appear checked. Question is why? Because the SparseBooleanArray returned by myList.getCheckedItemPositions(); is the same before and after deleting from the list. I thought (i could be wrong) that after removing an item from the list via the adapter - the CheckedItemPositions array should also change to reflect the new state of the list eg. - for mylist = [a, b, c, d] - items at position 0 and 3 checked (a d) - the checked item positions (mylist.getCheckedItemPositions()) array has values true for positions 0 and 3 - If i remove a d from the list, therefore, mylist = [b,c], mylist.getCheckedItemPositions() is the same as above - doesn't change - positions 0 and 3 are checked. *I was expecting it not to be checked for positions 0 3 because the items at these positions are no longer in the list. So, i'm i getting something wrong here (or having the wrong expectations :) ) ? someone please clarify this.. Thanks in advance, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en331.gif
[android-developers] no printk logs /var/log/syslog
Hi, I am working with a driver module. Where are the the printk logs present There is no /var/log/syslog. How can i enable these logs ? Thanks. Prashant -- You received this message because you are subscribed to the Google 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] InstrumentationTestCase vs ActivityInstrumentationTestCase2
Can anybody tell me the difference between these two Test Case? -- You received this message because you are subscribed to the Google 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: Multitouch support in Android 2.0
Possibly worth adding -- while trying to analyze size is unwise with touchscreens as Dianne rightfully says, what some iPhone platform developers are doing is to determine pressure by analyzing the microphone input. This will work with Android, too (it's an old trick, pre-dating iPhone), especially Android phones. It's a bit tricky to code, and obviously this is more of an expressive thing than it is something you'd consider as fundamental to UI design, but I've tried some experiments that were pretty effective. Peter On Dec 1, 4:34 pm, Dianne Hackborn hack...@android.com wrote: On Tue, Dec 1, 2009 at 1:25 PM, patrick patrick.boul...@gmail.com wrote: -for the pressure, when i use 2 fingers, the size 'detected' is sometimes suddenly enormous. That is exactly how the G1 and myTouch screen works -- when two fingers are down, the size is essentially seeing them as a large touch area. So please keep in mind: even the x and y location during multi-touch can be somewhat inaccurate in some various ways, that depend on the exact screen hardware. The size and pressure are already not so accurate and vary in their response with just one finger; for two or more fingers you will see widely different behavior across different screens. As I have said many times before: size and pressure are really not too useful for driving the UI. This goes even more so for multi-touch. You just need to accept that. about the finger limit, do you know if it will be the same for the htc hero when it will receive the 2.1 firmware update? As I said, the framework has no finger limit. I don't know what screen htc uses on whatever devices the ship, so I can't answer this question. Sorry. -- 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] Re: Problem with ADP sensors
No one cant help? maby google admins? -- You received this message because you are subscribed to the Google 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] AdMob issue
I am developing an application in which I have used AdMob. When I run the application on emulator the it runs proper i.e. I get ads near about 8 times out of 10 requests. But when I run it through handset, the response get decremented i.e. I get near about 1 to 2 ads out of 10 to 20 requests. Can anyone tell me why this is happening?? -- You received this message because you are subscribed to the Google 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] suspend / resume
which braodcast-intent (or other trigger event?) is the native android musicplayer listening, to suspend/resume playing once a call is coming in? -- You received this message because you are subscribed to the Google 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] Please help me find documentation on actions for the manifest file
Hi, This has been killing me. I finally found examples around the net for things I wanted to experiment with. I had to go searching cuz I could find this information anywhere in the API Docs. Two things specifically that I'm interested in are: 1) For listening for broadcast SMS messages through a broadcast receiver, I see that you have to defined the action, for the intent in the broadcast receiver element as: receiver android:name=.myClassName intent-filter action android:name= android.provider.Telephony.SMS_RECEIVED / /intent-filter First, where is that name android.provider.Telephony.SMS_RECEIVED defined? How am I supposed to track that down in the API Doc? There is no android.provider.Telephony class or package. Second, in the code for receiving the actual broadcast, I see you need to do something like this to get the message(s). Object[] pdus = (Object[]) bundle.get(pdus); Where is it defined that the extra name in the bundle is pdus for SMS messages. 2) OK, similar thing for receiving GMail and Exchange email delivery notifications. First, is there a way to get them via a broadcast receiver? I see code floating around that you need to do something like this instead: contentResolver.registerContentObserver(Uri.parse(content://gmail- ls), true, gmailObserver); Cursor conversations = _contetResolver.query( Uri.parse(content://gmail-ls/ conversations/ + YourEmailAddress, null, null, null, null); And the actual conversation messages will be: Cursor messages = _contetResolver.query(Uri .parse (content://gmail-ls/conversations/ + YourEmailAddress + / + String.valueOf(conversationId) + /messages), null, null, null, null); If this is how you have to do it, then that's fine. But where is this documented so that I could have figured this out myself? Thanks, Joe -- You received this message because you are subscribed to the Google 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 call a view from the view ?
Hi Guys. I've tried ViewFlipper. But it is not better idea. Because it is very hard coding. All screens are placed in main.xml. Can you recommend any better idea ? Thanks in advance. On Wed, Dec 9, 2009 at 8:31 PM, RaidenDroid tugsjarga...@gmail.com wrote: Hi guys. I am a new developer for Android. I wanna know about View transitions. For my application, it has 5 screens that can shift each other. In order word, Screen1 - Screen2 -- Screen3 -- Screen4 - Screen5. How to make this screen transition on Android ? Please share the knowledge. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Educating Users
2009/12/9 Wayne Wenthin wa...@fuligin.com Has anyone got a good method to teach users that the Market is a one way street and that I can't reply there. I've tried putting that in the description, wasting valuable text space, I put in in my news button on the game but they still ask for help in the market and leave a low score because they can't figure out how to run the game. ... My first impression is that there's something lacking in your game which is leading people to attempt to contact you by leaving a comment and poor rating. I know a few people will just try and figure things out for themselves, but if you've got people asking the same things over again maybe it needs to be included within the app as a help or FAQ page for users to read. I don't think there's any way you'll be able to educate users, they want it their way or they complain. Just look at all the complaints when facebook refreshes the interface! On the side of this in my week of actually being an android developer I'm noticing a few bits lacking from the developer home page for applications. I'm pretty sure the data is available but not for us. Things I think are missing are: ability to see and respond to users comments what platform/os the application has been installed on ( Why develop for 1.1 if everyone's 1.6 and you want a 1.5 feature? ) install/upgrade stats + graphs. I know this isn't the place to ask for these and maybe there's plans but that's my thoughts so far. Maybe google will come to the rescue and give us access to see and reply to comments so we don't have to keep looking at our apps in the marketplace to see what comments have been made, making it look like we don't care what our users think. Regards Steve. -- You received this message because you are subscribed to the Google 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 is a 3G phone assigned an ip address?
hello guys, i'm wondering how is a 3g phone is assigned an ip address? is it like adsl? or is it like an inner network (Network Address Translation )? if i want to implement a p2p application, i need to dig hole on the inner network right? -- You received this message because you are subscribed to the Google 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] Getting an address from the contacts
My app has an intent-filter to respond when users click on a person's address in the contacts application. In Android 1.5 my app would start with intent like this: *content://contacts/people/16/contact_methods/3* In order to retrive the address from the contact I would later I would do: Cursor c = getContentResolver().query(intentUri, ...); Get the column called data and take the address from there. That stopped working on later android releases. On 2.0 all I get is: *content://com.android.contacts/data/4* And I do not know how to get the address form that. It fails when I query for it. Any suggestions? Thank you, Artak Kalantarian -- You received this message because you are subscribed to the Google 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: Audio Decoder
Hi, have you found any more info on this? I too cannot find anything new in the documentation. I'm trying to figure out how to access coreaudio / decoders directly in an android app. Thanks On Oct 13, 11:31 pm, coolbanana johanst...@gmx.de wrote: Hi, is it now possiable mit sdk1.6 the audiodecoderto access/use without using MediaPlayer ? i saw : New version of OpenCore Android 1.6 includes the updated OpenCore 2 media engine, which has: * Support for OpenMAX encoders * Support for additional audio codecs in AuthorEngine * Improved buffering model supports shared buffers allocated in thedecoder but dont know how! can anyone help me,please!? thanks c.b -- You received this message because you are subscribed to the Google 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] SSL handshake failure when server requests client certificate
Hello, I am trying to authenticate a SSL client via client certificate to the server. Therefore, I extended Apache's ClientCustomSSL.java example by creating a new SSLSocketFactory object with keystore, keystore password and truststore (key- and trustore in bks format). If I run this modified example on my desktop PC I am able to connect to the server and the client sends its certificate to the server. If I use the same code (and same key- and truststore) on the Android emulator, then I get an SSL handshake failure at the point when the server requests the client certificate. On the server side (openssl s_server) I can see that the Android emulator did not return the client certificate. Is there any known issue that an Android client does not send its SSL certificate to the server? Thanks for your help. Doraemon -- You received this message because you are subscribed to the Google 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] Bug in screen lock
Hi, i don´t know if this is the right place to report bugs, but there it goes: Android: 1.5 Phone: Samsung Galaxy Firmware: Any I found an annoying bug when the screen stops locking, and the workaround is to restart the phone or restart the dialer application. This bug happens when you use a SIM card that changes the dialed number (there are SIM cards that inserts a operator code automatically in the number) Steps to reproduce the bug: - Activate Auto insert operator code feature in your SIM card (usually in SIM Toolkit) - Make a distance call (without the operator code) - It will show a dialog in screen saying Number changed by SIM card or something similar - You don´t have to complete the call From this point, if you try to lock the screen, it just turns off the LCD, but the screen is not locked (if i press any button the phone goes on, unlocked) There are other users that confirmed this bug. -- You received this message because you are subscribed to the Google 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 with Map
Hi, that was the problem! Was still extending Activity and not MapView. Now the map is loading! BTW: Yes, was the emulator, using the latest SDK version and i put in the debug number :) On Dec 8, 7:00 pm, TreKing treking...@gmail.com wrote: Does your Activity loading the MapView extend MapActivity? - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android 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] Handler and Looper,Background service
whats d idea of handler and Looper combination? what is its significance while communicating from service to activity? and explain the concept of callback in context to handler and looper. -- You received this message because you are subscribed to the Google 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 update G1 firmware version to 2.0?
Hey, On Thu, Dec 10, 2009 at 12:49 AM, Disconnect dc.disconn...@gmail.com wrote: The word is the same as it was for 1.5 - it might come someday, it might not. 1.5 and 1.6 came (with some hacks, like offloading text-to-speech to an installable app) but only google knows right now and they're about as open as a lead wall. (And only slightly less toxic ;) ..) It seems really pointless to have a developer phone but no capability of running development images on it. Does anyone know the correct person to complain to? cheers, -- Clinton Roy CSIRO - Robotics Platform Engineer Autonomous Systems Lab humbug.org.au - Brisbane Unix Group azure.humbug.org.au/~croy/blog - Blog flickr.com/photos/croy/ - Photos -- You received this message because you are subscribed to the Google 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: Question about unit testing a seek bar's events
Anybody have any ideas on this? On Dec 6, 9:45 pm, zachariahyoung zpyo...@gmail.com wrote: I have a very simple activity created with one seek bar. I'm trying to figure out how best to unit test the events. Below is how I have the seek bar wired up in my activity. EditText billAmount = (EditText)findViewById(R.id.billAmountEditText); tip = (SeekBar) findViewById(R.id.tipPercentSeekBar); tip.setOnSeekBarChangeListener(new OnSeekBarChangeListener() { public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) { //tipPercent.setText(progress + %); billAmount.setText(1); } public void onStartTrackingTouch(SeekBar seekBar) { billAmount.setText(2); } public void onStopTrackingTouch(SeekBar seekBar) { billAmount.setText(3); } }); So with this I have a test class that extends ActivityInstrumentationTestCase and I have test method. Should I not be able to so something like this? Right now I'm getting Test run failed: String resource ID #0x2 with this code. @SmallTest public void testSeekTipEvents(){ TouchUtils.tapView(this, tip); assertEquals(1, billAmount.getText().toString()); } -- You received this message because you are subscribed to the Google 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] Where can I catch a point that is assured to be called when a Service is destroied
Hello, I have a Service, it is started by StartService(...), my program never stop it. The service can be destroied in other cases, such as: Stop it in Application-Running Services run command: Kill pid System kill it in case of memory low Phone shut down other unlist condition... I want to clean up and save settings whenever the service is destroied. I tried do this in onDestroy() or finalize(), Neither satisfies my demand, onDestroy() is only called whe Stop it in Application-Running Services, finalize() is never called in all above condition. Where is the right point? pls help me, THANK YOU! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can recognizer use a file for audio input?
Regarding the silly question, not the serious question, I have a data point. I used text-to-speech to output some audio at the same time as a transcription (Voice Recognition) Activity was listening for input. I got a successful transcription but the results were just a little better than random guesses. A lot of the blame probably belongs to the text-to-speech; it would be interesting to see how it would do if the text-to-speech were replaced with recorded speech. But still, it's not going to be a serious solution to anything. BTW, our Open Handset Alliance comrade Nuance just introduced a high- accuracy transcription service for the iPhone; are we going to get some of that action? -Mark On Nov 13, 6:03 pm, Mark Abbott abbott.m...@gmail.com wrote: Is there a way to use an audiofileas input to speechrecognition? If not, is this feature expected in the foreseeable future? A separate question (and this is going to sound ridiculous, but it might actually be okay for a joke app I'm thinking about): Would it be possible to play audio out of an Android handset, while at the same time having a recognizer listen to it via the microphone? (Guess I could just try 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] Query Regarding Phone Call Origination and Termination - Application
Dear All, I am trying to develop an application, which will originate a Phone call to a given number and end the same after some particular duration. I could originate the phone call with below code, but not able to terminate. Please help me. startActivityForResult(new Intent(Intent.ACTION_CALL, Uri.parse (tel: + number)),0); Thanks, Chandira -- You received this message because you are subscribed to the Google 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 Add Objects to Sqlite Database
I think Berkeley DB Java Edition is a good option for you. By using DPL schema in Berkeley DB Java Edition, you can store any java class easily. Further, Berkeley DB Java Edition have better performance and higher concurrency support than SQLite. On 11月18日, 下午2时06分, naveenballa naveenball...@gmail.com wrote: i have a class like class Mydata{ String name; int data; Location[] locarray; } ListMydata = new ArrayListMydata( ); can anyone tell me how to add the object of Mydata class toSqlite Database column Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to 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 use do xml c14n in android?
why I cannot post? On 12月10日, 下午2时21分, bear tung beart...@gmail.com wrote: i find c14n support in libxml2, but not able to use it in java. so, anyone help me? or i have to write jni myself to use it? thanks -- Bear ^O^ -- You received this message because you are subscribed to the Google 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 Add Objects to Sqlite Database
Why I cannot post? On 11月18日, 下午2时59分, Mark Wyszomierski mar...@gmail.com wrote: Do you have a database already setup and are wondering how to use thesqliteclasses, or you don't have one setup yet? If you're starting from scratch, I think the notepad tutorial shows you hot to setupsqlitefrom the start: http://developer.android.com/guide/tutorials/notepad/index.html On Nov 18, 1:06 am, naveenballa naveenball...@gmail.com wrote: i have a class like class Mydata{ String name; int data; Location[] locarray; } ListMydata = new ArrayListMydata( ); can anyone tell me how to add the object of Mydata class toSqlite Database column Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to 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 fetch datas from database like mysql/sqlite
Why I cannot post? On 11月24日, 下午8时08分, siva siva80san...@gmail.com wrote: HI how to fetch datas from database like mysql /sqlite.can any one help me in this,i have tried the examples gave in the NOTEPAD sample.its not working(it dont shows any errors.) can any one guide me in 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] Re: How to Add Objects to Sqlite Database
I think Berkeley DB Java Edition (http://www.oracle.com/technology/ products/berkeley-db/je/index.html) is good option for you! By using DPL API in Berkeley DB Java Edition, any java class can be stored easily. Further more, Berkeley DB Java Edition have better performance and higher concurrency support than SQLite. On 11月18日, 下午2时06分, naveenballa naveenball...@gmail.com wrote: i have a class like class Mydata{ String name; int data; Location[] locarray; } ListMydata = new ArrayListMydata( ); can anyone tell me how to add the object of Mydata class toSqlite Database column Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] without Absolutelayout, how to put button on arbitary coordinates
Hi, Since the absolutelayout is deprecated, how to put a widget (suck as a button) on arbitary (X,Y) thx -- You received this message because you are subscribed to the Google 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] AdMob issue
I am developing an application in which I have used AdMob. When I run the application on emulator the it runs proper i.e. I get ads near about 8 times out of 10 requests. But when I run it through handset, the response get decremented i.e. I get near about 1 to 2 ads out of 10 to 20 requests. Can anyone tell me why this is happening?? -- You received this message because you are subscribed to the Google 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] List view with textviews and imageview, best practices
Hi All, i'm developing an application which has an listview. I'm currently creating the list item view dynamically from code (linearlayout, which includes 2 textviews and 1 imageview), but i'd like to use an XML resource for this. I read it isresource intensive when getting this view using findViewById within a loop. I thougth of using a custom adapter for this, but am not sure on how to include lazy loading of the image then. Anyone has some suggestions for this? Regards, 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] Re: Pick photo from Gallery
This is the solution : in the activity class, I change onActivityResult method to handle picking contact and picking image from gallery. private static final int PICK_CONTACT = 0; private static final int PICK_IMAGE = 1; @Override public void onActivityResult(int reqCode, int resultCode, Intent data) { super.onActivityResult(reqCode, resultCode, data); switch (reqCode) { case (PICK_CONTACT): if (resultCode == Activity.RESULT_OK) { Uri contactData = data.getData(); Cursor c = managedQuery(contactData, null, null, null, null); if (c.moveToFirst()) { Bitmap photo = People.loadContactPhoto(this, contactData, DEFAULT_IMAGE, null); } } break; case (PICK_IMAGE): if (resultCode == Activity.RESULT_OK) { // the image is accessible via : data.getData(); } break; } } On 1 déc, 17:48, Tom thomas.coz...@gmail.com wrote: Thanks for your answer both of you... I'm going to look at this now... Best regards Tom On 1 déc, 16:22, Carmen Delessio carmendeles...@gmail.com wrote: Start the activity with startActivityForResult. Then handle the returned data in onActivityResult. The source below is how I do it. There should be enough here to get the photo data. Carmen -- Carmenhttp://www.twitter.com/CarmenDelessiohttp://www.talkingandroid.comhtt... Call the Intent somewhere in your activity using startActivityForResult: Intent i = new Intent(Intent.ACTION_GET_CONTENT); i.setType(image/*); startActivityForResult(i,4); // activity id is 4 // handle the activity // look at documentation for AssetFileDescriptor. That is how I ultimately got the photo //http://developer.android.com/reference/android/content/res/AssetFileD... protected void onActivityResult (int requestCode, int resultCode, Intent data){ if (requestCode==4){ grab the result if (resultCode == RESULT_OK) { try { AssetFileDescriptor thePhoto = getContentResolver().openAssetFileDescriptor(data.getData(), r); ... } } if (resultCode == RESULT_CANCELED) { } } On Tue, Dec 1, 2009 at 9:44 AM, Streets Of Boston flyingdutc...@gmail.comwrote: Take a look the the Intent framework. Start an activity given an intent (PICK_IMAGE) and this should start any app that responds to it (Galleryor some other 3rd party program). For examples, just take a look at the Contacts application in Android's framework's source-code. On Dec 1, 4:28 am, Tom thomas.coz...@gmail.com wrote: Nobody? Tom -- You received this message because you are subscribed to the Google 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: Pick photo from Gallery
I forgot in the same class, I start intents : // Pick contact information from contacts list Intent i = new Intent(Intent.ACTION_GET_CONTENT); i.setType(image/*); startActivityForResult(i, PICK_IMAGE); // Pick image from gallery Intent intent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI); startActivityForResult(intent, PICK_CONTACT); On 10 déc, 10:23, Tom thomas.coz...@gmail.com wrote: This is the solution : in the activity class, I change onActivityResult method to handle picking contact and picking image fromgallery. private static final int PICK_CONTACT = 0; private static final int PICK_IMAGE = 1; @Override public void onActivityResult(int reqCode, int resultCode, Intent data) { super.onActivityResult(reqCode, resultCode, data); switch (reqCode) { case (PICK_CONTACT): if (resultCode == Activity.RESULT_OK) { Uri contactData = data.getData(); Cursor c = managedQuery(contactData, null, null, null, null); if (c.moveToFirst()) { Bitmap photo = People.loadContactPhoto(this, contactData, DEFAULT_IMAGE, null); } } break; case (PICK_IMAGE): if (resultCode == Activity.RESULT_OK) { // the image is accessible via : data.getData(); } break; } } On 1 déc, 17:48, Tom thomas.coz...@gmail.com wrote: Thanks for your answer both of you... I'm going to look at this now... Best regards Tom On 1 déc, 16:22, Carmen Delessio carmendeles...@gmail.com wrote: Start the activity with startActivityForResult. Then handle the returned data in onActivityResult. The source below is how I do it. There should be enough here to get the photo data. Carmen -- Carmenhttp://www.twitter.com/CarmenDelessiohttp://www.talkingandroid.comhtt... Call the Intent somewhere in your activity using startActivityForResult: Intent i = new Intent(Intent.ACTION_GET_CONTENT); i.setType(image/*); startActivityForResult(i,4); // activity id is 4 // handle the activity // look at documentation for AssetFileDescriptor. That is how I ultimately got the photo //http://developer.android.com/reference/android/content/res/AssetFileD... protected void onActivityResult (int requestCode, int resultCode, Intent data){ if (requestCode==4){ grab the result if (resultCode == RESULT_OK) { try { AssetFileDescriptor thePhoto = getContentResolver().openAssetFileDescriptor(data.getData(), r); ... } } if (resultCode == RESULT_CANCELED) { } } On Tue, Dec 1, 2009 at 9:44 AM, Streets Of Boston flyingdutc...@gmail.comwrote: Take a look the the Intent framework. Start an activity given an intent (PICK_IMAGE) and this should start any app that responds to it (Galleryor some other 3rd party program). For examples, just take a look at the Contacts application in Android's framework's source-code. On Dec 1, 4:28 am, Tom thomas.coz...@gmail.com wrote: Nobody? Tom -- You received this message because you are subscribed to the Google 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 call a view from the view ?
Not an expert, but I don't think Android works through 'screens'. What you may want to try out is to create as many activities as you have screens, attach the UI elements to each activity, and transition from activity to activity in your preferred order (thereby bringing up the respective screens). sb On Dec 10, 9:12 am, 1 tug b tugsjarga...@gmail.com wrote: Hi Guys. I've tried ViewFlipper. But it is not better idea. Because it is very hard coding. All screens are placed in main.xml. Can you recommend any better idea ? Thanks in advance. On Wed, Dec 9, 2009 at 8:31 PM, RaidenDroid tugsjarga...@gmail.com wrote: Hi guys. I am a new developer for Android. I wanna know about View transitions. For my application, it has 5 screens that can shift each other. In order word, Screen1 - Screen2 -- Screen3 -- Screen4 - Screen5. How to make this screen transition on Android ? Please share the knowledge. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] GK:How to Animate the single image in the Gallery
Hi All, I added and displayed set of images in my gallery. I made like at a time use can view three images. Now I want to do different Animation for these images. I used following snippet but its refreshing entire Gallery. @ gallery.setGravity(10); gallery.setAnimationDuration(1000); gallery.setSelection(position, true); gallery.setFadingEdgeLength(100); gallery.startAnimation(mGallaryAnim); gallery.setCallbackDuringFling(false); @@@ Try to help me. I need to complete this soon. -- You received this message because you are subscribed to the Google 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: Controlling my service from main activity
Sorry to bump, but this must be possible? -- You received this message because you are subscribed to the Google 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 getting an APK's signature outside of Android (e.g. with jarsigner or another tool)
In Android we can get the signatures of a package with getPackageManager().getPackageInfo(packageName, PackageManager.GET_SIGNATURES).signatures; We can print a signature by calling signatures.toCharsString(); How to get the same string with jarsigner or another tool from the APK file ? -- You received this message because you are subscribed to the Google 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] Does android supports bootstraping
Hi, Is android supports bootstraping ? If so what are the apis to acheive this -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Replacing existing TabHost content
Since this crashes with NullPointerException in onResume() after a period of time, my solution is to restart the activity instead by starting itself and then finish()ing. On Nov 16, 10:34 pm, Miguel Paraz mpa...@gmail.com wrote: Hi, Since theTabHostAPI does not offer a way to change existing views or activities, what is the preferred means to replace an existing tab? I only know of: clearing the tabs and adding them again. Is there an alternative? Or is this really not provided by design? 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
Re: [android-developers] Re: Controlling my service from main activity
Sorry to bump, but this must be possible? But if the main activity loses focus (i.e. I go to the home screen) when I return to the activity it has no knowledge of the service anymore - even though the service is still running. What do you mean by it has no knowledge of the service anymore? When the activity resumes, how do I find out a) if the service is running, and if so b) re-bind to it, so that I can then stop it and collect the data I'm after. a). You don't need to. b). Call bindService() if you want to bind to it, to call methods on its binder. Call stopService() if you want to stop it. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android 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