[android-developers] Re: How do I get the virtual device's browser connected the internet?
from Virtually I am understanding the Emulator, I faced the same problem for 2.1 even after setting the proxy settings, I was not able to browse, but in 2.2 it worked for proxy settings in Emulator. 1. Go to Settings. 2. Click on Wireless and Network Settings. 3. Click on Mobile Networks. 4. Click on Access Point Names. 5. Click on Telkila. 6. Give your Proxy and Port and save. Dont change other default values. -- Rahul On Oct 15, 10:30 pm, Zizzy zizzybaloo...@gmail.com wrote: When running a virtual device, how do I get it connected to the internet? When I check the settings of the Android SDK and AVD Manager, it knows about my proxy, but when I actually run a virtual device, the browser won't even bring up the Google home page. Instead, I get the dialog box: Data Connectivity Problem 'The server failed to communicate. Try again later.' and the browser displays 'Web page not available'. I'm driving myself crazy searching for what I thought should be an easy solution to this, but can't find it anywhere. Is it really that difficult? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: strike through text in widget
From what I know, its not possible. You'd have to try something like placing a line (in, say, an ImageView) on top of the TextView. That shouldn't be a problem if the text in your TextView is static, but would be quite tricky otherwise! On Oct 19, 4:41 pm, Guru gurudut...@gmail.com wrote: Is it possible to have strike through text in widget? the setFlags method is not available in the RemoteViews method?Is there any other way to accomplish this? This was the only link which i found on strike through textView. http://fupeg.blogspot.com/2010/01/strikethrough-android.html 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: strike through text in widget
You can try this, I am not sure if it works or not. setText(Html.fromHtml(strikeYour text/strike); On Tue, Oct 19, 2010 at 11:32 AM, metal mikey coref...@gmail.com wrote: From what I know, its not possible. You'd have to try something like placing a line (in, say, an ImageView) on top of the TextView. That shouldn't be a problem if the text in your TextView is static, but would be quite tricky otherwise! On Oct 19, 4:41 pm, Guru gurudut...@gmail.com wrote: Is it possible to have strike through text in widget? the setFlags method is not available in the RemoteViews method?Is there any other way to accomplish this? This was the only link which i found on strike through textView. http://fupeg.blogspot.com/2010/01/strikethrough-android.html 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Freeing DB resources
I'm not doing anything re locking the DB, so I would imagine I would be getting default behaviour. But if one of Activities does: db = mySQLiteOpenHelper.getReadableDatabase(); db.exexSQL(...) or db.query(...) and the IntentService does the following BEFORE the code above has managed to close the DB db2 = mySQLiteOpenHelper2.getWritableDatabase(); db2.exexSQL(...) or db.query(...) then a stacktrace is written in the logs indicating that the ReadableDatabase resources were not closed when they should have been. So then seems to be some kind of resource conflict caused by the race condition. And I'd like to avoid that. And I didn't understand your example that you suggests improves performance. It looks like you are just replacing the value of a local cursor variable with a newly constructed cursor each time. It doesn't appear that you are reusing the cursor in any way. Unless someDbAccessMethod(); is always returning the same cursor ?? But that doesn't make sense because a) it would be returning the cursor you just closed, so its no longer any good to you. b) the cursor would always return the same dataset, so I can't see how its that useful. But maybe I'm way off mark .. On Oct 19, 2:05 pm, Bret Foreman bret.fore...@gmail.com wrote: SQLite has locking on by default and you can have any number of threads accessing it concurrently if you leave it in locking mode. Opening and closing the database and/or the cursors is not especially expensive. One trick that improves performance is to re-use the cursor after you close it so the object doesn't have to be rebuilt. Something like this: // cursor used here // Now finished with cursor theCursor.close(); theCursor = someDbAccessMethod(); // More work with new cursor For example, I might have 5 or 6 methods in a given Activity that all re-use the same cursor as long as I'm sure my logic does not require two of them to use the cursor at the same time. Then the cursor object is only created in onCreate. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: strike through text in widget
No it does not work.. On Tue, Oct 19, 2010 at 11:38 AM, Kumar Bibek coomar@gmail.com wrote: You can try this, I am not sure if it works or not. setText(Html.fromHtml(strikeYour text/strike); On Tue, Oct 19, 2010 at 11:32 AM, metal mikey coref...@gmail.com wrote: From what I know, its not possible. You'd have to try something like placing a line (in, say, an ImageView) on top of the TextView. That shouldn't be a problem if the text in your TextView is static, but would be quite tricky otherwise! On Oct 19, 4:41 pm, Guru gurudut...@gmail.com wrote: Is it possible to have strike through text in widget? the setFlags method is not available in the RemoteViews method?Is there any other way to accomplish this? This was the only link which i found on strike through textView. http://fupeg.blogspot.com/2010/01/strikethrough-android.html 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: eclipse HELIOS (3.6) Code Assist very slow
Yeah. I find myself wondering why I am using it instead of Galileo. The *only* thing I like about it is the interface for installing new plugins. Maybe I'll just switch back... On Oct 18, 4:36 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Helios is a steaming pile of dunk, IMHO. On Oct 18, 2:30 pm, JonFHancock jonfhanc...@gmail.com wrote: Thank you an infinite number of times! I was going out of my way to not allow assists in cases where I knew it would be slow. On Oct 16, 12:06 pm, SChaser crotalistig...@gmail.com wrote: If you are using the JEE edition of HELIOS, the assists can be speeded up by turning off JAX-WS assist in the edit/advanced preference (Window-Preferences-Java-Editor-Content Assist-Advanced. It also appears that the assists cycle through a list of suggestion sources, starting with a different one each time, which would explain why the assists are not always slow. Seehttps://bugs.eclipse.org/bugs/show_bug.cgi?id=317979-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] Re: How to connect to a remote MySQL DB without webservices... ?
Not that I'm aware of, but remember that any code executed on a machine you do not control is untrusted. It would be all too easy for someone to modify your code in a way that can make calls to your db that corrupt the db. Making a php or java server-side application that you can just send http post data to is way too easy to justify the risk. On Oct 18, 2:29 pm, saex elpablos...@gmail.com wrote: Hi can i do it? I just wanna make SELECT/INSERT into a remote database with my android phone application, i think it have to be easy but i can't find the way. I only find people that tell i have to make a webservice os romething like that, but that is another world for me, and i can't put a webservice in the database host... ¿there is not a normal way to do it without a webservice? 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 send data from one activity to another?
If the underlying data being changed is in a database think about creating a cursor and adding an observer. In such a way that the cursor's observer in the B activity will be triggered when the activity A changes it and updates the database. Look into the android API documentation, class Cursor and methods registerContentObserver and registerDatasetObserver. Using the activityForResult seems to not be suitable in the situation you described since it is not a nested activity situation. You could also broadcast and Intent and get in the other activity. Furthermore, you could define both activities as single instance in the stack and use the startActivity to pass an intent to the other activity which will have the onPause/onNewIntent/onResume called. On Oct 18, 10:12 pm, Rocky rkjhaw1...@gmail.com wrote: use the Bundle for send data from one activity to other, startActivityForResult, this will give u that a activity can hold the result of next activity. On Tue, Oct 19, 2010 at 10:17 AM, Chandroid chandrathecentur...@gmail.comwrote: I have an application where there are two screens(activities.) When I make changes in the second screen those values should get reflected in the first screen. For that I have to pass the values of second screen to the first one. Can anyone help out on how to do this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to 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 -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O)+918030274295 (R)+919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: strike through text in widget
Hmm, then may be, have a background for the TextView with a strike bar. On Oct 19, 11:15 am, Guru gurudut...@gmail.com wrote: No it does not work.. On Tue, Oct 19, 2010 at 11:38 AM, Kumar Bibek coomar@gmail.com wrote: You can try this, I am not sure if it works or not. setText(Html.fromHtml(strikeYour text/strike); On Tue, Oct 19, 2010 at 11:32 AM, metal mikey coref...@gmail.com wrote: From what I know, its not possible. You'd have to try something like placing a line (in, say, an ImageView) on top of the TextView. That shouldn't be a problem if the text in your TextView is static, but would be quite tricky otherwise! On Oct 19, 4:41 pm, Guru gurudut...@gmail.com wrote: Is it possible to have strike through text in widget? the setFlags method is not available in the RemoteViews method?Is there any other way to accomplish this? This was the only link which i found on strike through textView. http://fupeg.blogspot.com/2010/01/strikethrough-android.html 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to connect to a remote MySQL DB without webservices... ?
There is nothing implemented into the standard SDK to directly connect to a MySQL database. Your best bet might be to use something like an external library such as: http://code.google.com/p/sqldroid/ I've never used this myself though. On Mon, Oct 18, 2010 at 11:29 PM, JonFHancock jonfhanc...@gmail.com wrote: Not that I'm aware of, but remember that any code executed on a machine you do not control is untrusted. It would be all too easy for someone to modify your code in a way that can make calls to your db that corrupt the db. Making a php or java server-side application that you can just send http post data to is way too easy to justify the risk. On Oct 18, 2:29 pm, saex elpablos...@gmail.com wrote: Hi can i do it? I just wanna make SELECT/INSERT into a remote database with my android phone application, i think it have to be easy but i can't find the way. I only find people that tell i have to make a webservice os romething like that, but that is another world for me, and i can't put a webservice in the database host... ¿there is not a normal way to do it without a webservice? 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Location API. Detecting proximity to a given point
Yup. did that in the mean time. Thx for the tip. Although I have other questions, I will poste them in a new thread. Thank you for your help Regards Tomislav On Oct 18, 11:47 pm, TreKing treking...@gmail.com wrote: On Mon, Oct 18, 2010 at 5:52 AM, Hatch tomislav.hecimo...@gmail.com wrote: Am I missing something, or that's the only way ? That proximity alert take a PendingIntent, into which you can shove whatever data your little heart desires - including some way of ID'ing the location that generated the alert. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Registering for proximity alert doesn't work for more than one Location.
Hi all. I am trying to register to several proximity alerts. Here's an excerpt: FOR EACH location: { Intent intent = new Intent(context, Service_locationUpdated.class); // remember which location is it intent.putExtra(Service_locationUpdated.MSG_LOCATION_UPDATED_EXTRA_LOCATION_ID, locationInformation.getInternalID()); // prepare new PendingIntent pIntent = PendingIntent.getService(aApplication, 0, intent, 0); lm.addProximityAlert(location.getLatitude(), location.getLongitude(), location.getRadius(), -1L, pIntent); } And when I change the location, the service doesn't get started :( BUT ! if i put a break; after adding only one proximityAlert, everything works just fine. So does anyone have a clue why it works for one and not for more locations? Am I missing a flag or something while creating the intents ? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: please fetch me a location
Hi. Excuse my noobishness, but I cannot find an answer on how to preform 'get location' operation on google maps. I don't need any special map view and just need the user to pick a location from google maps application. I found (http://developer.android.com/guide/appendix/g-app- intents.html) that you can start google maps app on a given location. Since the list of intent on that page is incomplete, I wonder, where can one find the complete list of intents that google maps can respond to ? In short, my app requires a user to pick some location from a map. Do I have to create a specialized MapView for 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] Not able to update values of other activity in the current one
Hi all, I have an application which has 2 screens. When a value is changed in the second screen and when the first screen is called, the value must be updated on the button of first screen. But I am not able to update the value on any of the widget of first screen. But I am able to see that I am getting the value, But when it comes to updating the same on button it does not happen. Some help needed on 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] Not able to update values of other activity in the current one
Hi all, I have an application which has 2 screens. When a value is changed in the second screen and when the first screen is called, the value must be updated on the button of first screen. But I am not able to update the value on any of the widget of first screen. But I am able to see that I am getting the value, But when it comes to updating the same on button it does not happen. Some help needed on 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: Not able to update values of other activity in the current one
some help needed urgently On Oct 19, 1:26 pm, Chandroid chandrathecentur...@gmail.com wrote: Hi all, I have an application which has 2 screens. When a value is changed in the second screen and when the first screen is called, the value must be updated on the button of first screen. But I am not able to update the value on any of the widget of first screen. But I am able to see that I am getting the value, But when it comes to updating the same on button it does not happen. Some help needed on 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] How to import the License Verification Library into workspace?
I can't import the License Verification Library to the workspace. In the Eclipse wizard I click File import but no Android option available, if I choose normal Java project then it doesn't work because it has no Android api reference. How to do? 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: startService an unusual way results in a a NullPointerException
On 11 Okt., 07:32, TreKing treking...@gmail.com wrote: Show the stack trace? I think the reason is that there is no context at some point. Compare this answer: http://stackoverflow.com/questions/3888602/android-startservice-from-the-service-class-itself/3889237#3889237 Here is the stack trace, anyway: Uncaught handler: thread main exiting due to uncaught exception java.lang.NullPointerException at android.content.ContextWrapper.startService(ContextWrapper.java: 326) at com.example.helloandroid.UnusualService.startService(UnusualService.java: 59) at com.example.helloandroid.HelloAndroid $3.onClick(HelloAndroid.java:31) at android.view.View.performClick(View.java:2364) at android.view.View.onTouchEvent(View.java:4179) at android.widget.TextView.onTouchEvent(TextView.java:6541) at android.view.View.dispatchTouchEvent(View.java:3709) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1659) at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java: 1107) at android.app.Activity.dispatchTouchEvent(Activity.java:2061) at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1643) at android.view.ViewRoot.handleMessage(ViewRoot.java:1691) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4363) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Why doesn't my 2d polygon get filled?
Thanks, it worked! On 8 Okt, 17:53, Romain Guy romain...@android.com wrote: That is not how drawVertices() works. drawVertices() only fills with shaders. If you want to draw an arbitrary shape, just use a Path instead. On Fri, Oct 8, 2010 at 12:35 AM, MobileVisuals eyv...@astralvisuals.com wrote: I can draw polygons with canvas.drawVertices, but I can notfillthem. I have set Paint.Style.FILLon the paint object,but thepolygon doesn't get filled. Why doesn't thepolygonget filled? This is my code: mLinePaint2 = new Paint(); mLinePaint2.setARGB(255, 255, 0, 0); mLinePaint2.setStyle(Paint.Style.FILL); canvas.drawVertices(Canvas.VertexMode.TRIANGLES, verts.length, verts, 0, null, 0, null, 0, null, 0, 0, mLinePaint2); -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them- Dölj citerad text - - Visa citerad text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Not able to update values of other activity in the current one
Your description of the problem is not clear. Can you please explain it in more details? May be talk in terms of Activities. On Tue, Oct 19, 2010 at 1:58 PM, Chandroid chandrathecentur...@gmail.comwrote: some help needed urgently On Oct 19, 1:26 pm, Chandroid chandrathecentur...@gmail.com wrote: Hi all, I have an application which has 2 screens. When a value is changed in the second screen and when the first screen is called, the value must be updated on the button of first screen. But I am not able to update the value on any of the widget of first screen. But I am able to see that I am getting the value, But when it comes to updating the same on button it does not happen. Some help needed on 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Vertical Tab View
Hi All, I want to create the TabView with Vertical tabs. I searched a lot but didn't get any pointer for the same. As per the tutorials I have used Linear Layout with Vertical orientation but is of no use. If any one has any other clue please let me know. Thanks in advance, Swapnil Dalal. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 get non-removal SD card storage information?
On Oct 19, 3:51 am, Chris libo5...@gmail.com wrote: Hi All Now I need some information about SD card storage. I know that the API Environment.getExternalStorageDirectory() can return SD card path. But if an Android phone have some no-removal SD card, how do I get this storage information. I think the removalable SD and no-removalable should be at different path. Thank you a lot Chris I recently saw two threads about this issue. Samsung Captivate sdcard issues. http://groups.google.com/group/android-developers/browse_thread/thread/d9cfab4394a6c282/3cc34281bc47bbf4?lnk=gstq=Samsung+Captivate#3cc34281bc47bbf4 ATT Samsung Captivate mExternalStorageAvailable == false; http://groups.google.com/group/android-developers/browse_thread/thread/a1adf7122a75a657/744cafd232cd66e2?lnk=gstq=Samsung+Captivate#744cafd232cd66e2 I have the same issue with Galaxy S. Until now all Android devices I got have mount command available. I build a list of available volume parsing mount response. This is not perfect but cleaver than Android storage API. String cmd = /system/bin/mount; try { Runtime rt = Runtime.getRuntime(); Process ps = rt.exec(cmd); BufferedReader rd = new BufferedReader( new InputStreamReader(ps.getInputStream()) ); String rs; while ((rs = rd.readLine()) != null) { //check what you need! Log.i(MOUNT_CMD, rs); } rd.close(); ps.waitFor(); } catch(Exception e) { } -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 connect to a remote MySQL DB without webservices... ?
i check that library and it's for LOCAL SQLITE databases! i am talking about remote mysql dabatabases, not sqlite and not local greets On 19 oct, 08:36, Miguel Morales therevolti...@gmail.com wrote: There is nothing implemented into the standard SDK to directly connect to a MySQL database. Your best bet might be to use something like an external library such as:http://code.google.com/p/sqldroid/ I've never used this myself though. On Mon, Oct 18, 2010 at 11:29 PM, JonFHancock jonfhanc...@gmail.com wrote: Not that I'm aware of, but remember that any code executed on a machine you do not control is untrusted. It would be all too easy for someone to modify your code in a way that can make calls to your db that corrupt the db. Making a php or java server-side application that you can just send http post data to is way too easy to justify the risk. On Oct 18, 2:29 pm, saex elpablos...@gmail.com wrote: Hi can i do it? I just wanna make SELECT/INSERT into a remote database with my android phone application, i think it have to be easy but i can't find the way. I only find people that tell i have to make a webservice os romething like that, but that is another world for me, and i can't put a webservice in the database host... ¿there is not a normal way to do it without a webservice? 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://developingthedream.blogspot.com/,http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2
Hi, I have an app that runs perfect on 2.2 and 2.2 but always getting VerifyError on 1.6 while startup, I don't think that my app cannot run under 1.6 because I don't call any APIs that don't support 1.6. I'm really confused, does anybody has the same issue? How do you solve this problem? Thanks, Alex -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Memory Leaks
On Mon, Oct 18, 2010 at 6:21 PM, DanH danhi...@ieee.org wrote: I doubt that adding content to the object would make it any more likely to be collected. The garbage collector doesn't generally weigh objects as to whether they should be collected or not. The only differentiating factors are 1) the absolute size of the object itself (not counting references to other objects), 2) the number of times the object has survived garbage collection, and (sometimes) 3) the class of the object. Dan, It is true that from a single object point of view, said object is either reachable from the root or is not, hence it can be garbage collected or it can not. However would you not agree, that from a heap management and GC strategy point of view size matters? Plenty of GC performance tuning tricks talk about the heap sizes, sizes of various generations and so on. From experience you can see, that GC kicks in much more often, when the amount of live objects on the heap increases (past certain thresholds). Heap resizing is also determined by the total size of life objects. I also know that in Android we don't have freedom to set those, which does not mean that they are not set. Please refer to following article: http://www.oracle.com/technetwork/java/gc-tuning-5-138395.html -- Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 connect to a remote MySQL DB without webservices... ?
i will try using sqldroid library to my needs, i will try to connect to a remote mysql dabatabase, not sqlite and not local but im having some problems, plz can someone help me? - how can i add sqldroid-0.1.jar to my project (sorry but i am newbie and i can't find nothing about adding this to a project) - where i have to put these two lines? Class.forName(SQLite.JDBCDriver); DriverManager.getConnection(jdbc:sqlite:/data/data/your-package/ db.sqlite); - in the connection code, wich lines i have to change to connect to my remote database? my database is on 81.202.190.170:3306 thanks On 19 oct, 11:20, saex elpablos...@gmail.com wrote: i check that library and it's for LOCAL SQLITE databases! i am talking about remote mysql dabatabases, not sqlite and not local greets On 19 oct, 08:36, Miguel Morales therevolti...@gmail.com wrote: There is nothing implemented into the standard SDK to directly connect to a MySQL database. Your best bet might be to use something like an external library such as:http://code.google.com/p/sqldroid/ I've never used this myself though. On Mon, Oct 18, 2010 at 11:29 PM, JonFHancock jonfhanc...@gmail.com wrote: Not that I'm aware of, but remember that any code executed on a machine you do not control is untrusted. It would be all too easy for someone to modify your code in a way that can make calls to your db that corrupt the db. Making a php or java server-side application that you can just send http post data to is way too easy to justify the risk. On Oct 18, 2:29 pm, saex elpablos...@gmail.com wrote: Hi can i do it? I just wanna make SELECT/INSERT into a remote database with my android phone application, i think it have to be easy but i can't find the way. I only find people that tell i have to make a webservice os romething like that, but that is another world for me, and i can't put a webservice in the database host... ¿there is not a normal way to do it without a webservice? 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://developingthedream.blogspot.com/,http://www.youtube.com/user/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
Re: [android-developers] Re: How to connect to a remote MySQL DB without webservices... ?
As far as I can imagine, the whole concept of having a library that could connect to a remote DB is not worth for a mobile platform. You are not writing a desktop app anyway, which would require the whole DB with all it's features exposed through a remote DB connection. It too much for a mobile app I would say. Apart from the security issues, if at all you get a direct connection to a remote DB, then there is no point in keeping a local DB, which is bad in various situations (no network connectivity). In case you are having a local DB as well, don't you think it's redundant duplication of data, and also, don't you think that your code will also be more? Well, if you have a webservice over your DB on your servers, you still have to write extra bit of code, but then, you will only deal with functions that the webservice exposes, and thus, you would be handling a subset of all possible situations, if it would have been a direct DB connection. Another issue I might think can come up very soon, is that you are looking for a MySQL version library. If at all there are any for Android, I am sure, they are not yet matured enough to use in an enterprise level setup. You might want to change the DB to Oracle, or SQL server, are you sure that these libraries can really handle that well? I personally don't think so. May be in the future, they will be available, BUT RIGHT NOW, Use a webservice and SQLite, I would suggest. On Tue, Oct 19, 2010 at 2:50 PM, saex elpablos...@gmail.com wrote: i check that library and it's for LOCAL SQLITE databases! i am talking about remote mysql dabatabases, not sqlite and not local greets On 19 oct, 08:36, Miguel Morales therevolti...@gmail.com wrote: There is nothing implemented into the standard SDK to directly connect to a MySQL database. Your best bet might be to use something like an external library such as:http://code.google.com/p/sqldroid/ I've never used this myself though. On Mon, Oct 18, 2010 at 11:29 PM, JonFHancock jonfhanc...@gmail.com wrote: Not that I'm aware of, but remember that any code executed on a machine you do not control is untrusted. It would be all too easy for someone to modify your code in a way that can make calls to your db that corrupt the db. Making a php or java server-side application that you can just send http post data to is way too easy to justify the risk. On Oct 18, 2:29 pm, saex elpablos...@gmail.com wrote: Hi can i do it? I just wanna make SELECT/INSERT into a remote database with my android phone application, i think it have to be easy but i can't find the way. I only find people that tell i have to make a webservice os romething like that, but that is another world for me, and i can't put a webservice in the database host... ¿there is not a normal way to do it without a webservice? 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/,http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2
Is it a warning, does it force closes your apps? If not, then probably you shouldn't care. Can you post the stack trace as to which class is missing ? Your logcat should show some hints On Tue, Oct 19, 2010 at 2:55 PM, Alex Xin xinxi...@gmail.com wrote: Hi, I have an app that runs perfect on 2.2 and 2.2 but always getting VerifyError on 1.6 while startup, I don't think that my app cannot run under 1.6 because I don't call any APIs that don't support 1.6. I'm really confused, does anybody has the same issue? How do you solve this problem? Thanks, Alex -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to connect to a remote MySQL DB without webservices... ?
i will try using sqldroid library to my needs, i will try to connect to a remote mysql dabatabase, not sqlite and not local but im having some problems, plz can someone help me? - how can i add sqldroid-0.1.jar to my project (sorry but i am newbie and i can't find nothing about adding this to a project) - where i have to put these two lines? Class.forName(SQLite.JDBCDriver); DriverManager.getConnection(jdbc:sqlite:/data/data/your-package/ db.sqlite); - in the connection code, wich lines i have to change to connect to my remote database? my database is on 81.111.190.170:3306 thanks On 19 oct, 11:33, Kumar Bibek coomar@gmail.com wrote: As far as I can imagine, the whole concept of having a library that could connect to a remote DB is not worth for a mobile platform. You are not writing a desktop app anyway, which would require the whole DB with all it's features exposed through a remote DB connection. It too much for a mobile app I would say. Apart from the security issues, if at all you get a direct connection to a remote DB, then there is no point in keeping a local DB, which is bad in various situations (no network connectivity). In case you are having a local DB as well, don't you think it's redundant duplication of data, and also, don't you think that your code will also be more? Well, if you have a webservice over your DB on your servers, you still have to write extra bit of code, but then, you will only deal with functions that the webservice exposes, and thus, you would be handling a subset of all possible situations, if it would have been a direct DB connection. Another issue I might think can come up very soon, is that you are looking for a MySQL version library. If at all there are any for Android, I am sure, they are not yet matured enough to use in an enterprise level setup. You might want to change the DB to Oracle, or SQL server, are you sure that these libraries can really handle that well? I personally don't think so. May be in the future, they will be available, BUT RIGHT NOW, Use a webservice and SQLite, I would suggest. On Tue, Oct 19, 2010 at 2:50 PM, saex elpablos...@gmail.com wrote: i check that library and it's for LOCAL SQLITE databases! i am talking about remote mysql dabatabases, not sqlite and not local greets On 19 oct, 08:36, Miguel Morales therevolti...@gmail.com wrote: There is nothing implemented into the standard SDK to directly connect to a MySQL database. Your best bet might be to use something like an external library such as:http://code.google.com/p/sqldroid/ I've never used this myself though. On Mon, Oct 18, 2010 at 11:29 PM, JonFHancock jonfhanc...@gmail.com wrote: Not that I'm aware of, but remember that any code executed on a machine you do not control is untrusted. It would be all too easy for someone to modify your code in a way that can make calls to your db that corrupt the db. Making a php or java server-side application that you can just send http post data to is way too easy to justify the risk. On Oct 18, 2:29 pm, saex elpablos...@gmail.com wrote: Hi can i do it? I just wanna make SELECT/INSERT into a remote database with my android phone application, i think it have to be easy but i can't find the way. I only find people that tell i have to make a webservice os romething like that, but that is another world for me, and i can't put a webservice in the database host... ¿there is not a normal way to do it without a webservice? 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/,http://www.youtube.com/user/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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at
[android-developers] how to use alert dialog in services
Hey i want to use alert dialog in services, but i'm not getting the dialog, public void myEventOccurred(Event evt) { // TODO Auto-generated method stub System.out.print( Event fired...); new AlertDialog.Builder( this ) .setTitle( R.string.SaveConnectionChangeWarningTitle ) .setMessage( Alert ! ) .setPositiveButton( android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick( DialogInterface dialog, int whichButton) { dialog.dismiss(); } }) .show(); } is i'm doing wrong, (this alert dialog code is working in activity). -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Memory Leaks
On Tue, Oct 19, 2010 at 1:25 AM, Tom Gibara tomgib...@gmail.com wrote: It is possible that the finalize() has been called at much later point. I should have probably said that lack of finalize() does not mean that the memory has not been regained. This isn't correct. If an object is an instance of a class with a non-trivial finalize method, then the object's memory cannot be reclaimed until the finalizer has run. Tom. Tom, What if the system decides to send KILL to a process running some background task (application) to regain memory. Each task on android get its own process and fork of VM. Once deemed not used and in critical situation, system will simply kill that process without triggering any garbage collection, and rightly so. -- Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 change of color of list
Hi , I have developing list as public class AddSwitch extends ListActivity { public void onCreate(Bundle savedInstanceState) { System.out.println (First stmt in onCreate of AddSwitch); super.onCreate(savedInstanceState); String[] switchName = getResources().getStringArray(R.array.Switch_array); setListAdapter(new ArrayAdapterString(this,android.R.layout.simple_list_item_1, switchName)); getListView().setTextFilterEnabled(true); } protected void onListItemClick(ListView l, View v, int position, long id) { } public void onItemSelected(AdapterView parent,View v,int position,long id) { } } Now I want to change the color of list to other color. How to do that? Because here I had not used any .xml file so how to write code to change the color of list? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can Android 2.X connect to 3G and Wifi data networks simultaneously?
Ok. Thanks for the info. Will try to implement it. Thanks, Perumal On Oct 18, 8:23 pm, Kostya Vasilyev kmans...@gmail.com wrote: Perumal, Tethering and internal APIs aside, there is only one active network connection. If the phone is currently connected to WiFi, then network traffic from all applications goes through that. Don't know the answer to your MMS quesiton. -- Kostya 18.10.2010 15:31, perumal316 пишет: Hi Kostya, I meant if I am connected to wifi, how to make sure other apps requiring network access will only connect to the wifi I am connected to and do not use the 3G network? My app will only ensure I am connected to the wifi but can it control the network system of the Android system? Meaning if I am going to send a MMS and am connected to my preferred wifi using my app, can my app prevent it from not switching to the 3G network? Thanks and Regards, Perumal On Oct 18, 7:05 pm, Kostya Vasilyevkmans...@gmail.com wrote: 18.10.2010 4:54, perumal316 пишет: Hi Kostya, Yes, I am referring to WiFi as the particular network. But, You can monitor WiFi state, and just not do any networking while it's not active... You can monitor WiFi state using Broadcast Actions defined here: http://developer.android.com/reference/android/net/wifi/WifiManager.html or here: http://developer.android.com/reference/android/net/ConnectivityManage... -I don't understand how to do this. Through an app? You can monitor the WiFi state, but how to not do any networking? Um, now it's my turn to not understand. If this is your own application, you can tell it what to do (and not do), right? -- Kostya Regards, Perumal On Oct 18, 3:16 am, Kostya Vasilyevkmans...@gmail.com wrote: If by particular network you mean WiFi vs. cellular, then yes. You can monitor WiFi state, and just not do any networking while it's not active... Notifying the user that your app is doing this might be a good idea, too - so he can take the phone in hand and run towards the nearest WiFi hotspot. -- Kostya 17.10.2010 17:36, perumal316 пишет: I am just wondering. Is it possible to make all data connection to a particular network only? Meaning even if 3G will be available it will only connect to a particular network for all data related processing. Regards, Perumal On Oct 15, 9:34 pm, Jensdunkingbikk...@gmail.com wrote: Afaik - Android 2.1 has a bug related to hipri data, it *only* works for Android 2.2 and later. That said, your probably better off asking the user to turn of WiFi before using your app - or restrict it to sdk level 8 and higher. On 11 Okt, 17:38, Steven PERRAUDINunsee...@gmail.com wrote: On 31 août, 13:36, Jensdunkingbikk...@gmail.com wrote: With Android 2.2 you can route data over the 3G connection explicitly while still using WiFi. The feature exists in Android 2.1 also but is *broken* as the high-priority 3G data connection is torn down incorrectly almost directly. How do you get 3G and WiFi connected at the same time ? So is this possible in Android 2.1 to route either to 3G or WiFi ? If both interfaces are connected to a separate network, a simple change of routing table would allow to choose the interface to send/ receive data no ? Or is there a simpler way to achieve this. -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com-Hidequoted text - - Show quoted text - -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com-Hide quoted text - - Show quoted text - -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to use alert dialog in services
As per my knowledge its is not possible to display dialog in service On Tue, Oct 19, 2010 at 3:17 PM, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hey i want to use alert dialog in services, but i'm not getting the dialog, public void myEventOccurred(Event evt) { // TODO Auto-generated method stub System.out.print( Event fired...); new AlertDialog.Builder( this ) .setTitle( R.string.SaveConnectionChangeWarningTitle ) .setMessage( Alert ! ) .setPositiveButton( android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick( DialogInterface dialog, int whichButton) { dialog.dismiss(); } }) .show(); } is i'm doing wrong, (this alert dialog code is working in activity). -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] SMS Group Messaging - Speech to Text
HI I just uploaded our SMS Group Messaging E2 Apps with Speech to Text and the Apps do not show up as an update on the phone or AppBrain. Can you please tell me how do I update the Android Market. Al -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] java.io.FileNotFoundException:No files supported by provider
Hi, I am trying to insert images into my custom content provider. this is my piece of code where i try to insert.. ContentValues values = new ContentValues(); values.put(ImageProvider.KEY_ID, position); values.put(ImageProvider.KEY_TITLE,bluezz.png); Uri insertedUri = getContentResolver().insert(Uri.parse(ImageProvider.CONTENT_URI), values); try { OutputStream outStream = getContentResolver().openOutputStream(insertedUri);///LINE 1 b.compress(Bitmap.CompressFormat.PNG, 50, outStream); outStream.close(); } catch (Exception e) { Log.e(ImageProvider.TAG, exception while writing image, e); } but this(LINE 1) is throwing me up with an exception java.io.FileNotFoundException:No files supported by provider. I have searched a lot on internet for the solution but in vain. can anybody please provide some solution for my problem Thanks in advance, Grace. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 alert dialog in services
Service, normally use notifications.. not dialog.. Nithin On Oct 19, 3:35 pm, damodhar meshran dmesh...@gmail.com wrote: As per my knowledge its is not possible to display dialog in service On Tue, Oct 19, 2010 at 3:17 PM, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hey i want to use alert dialog in services, but i'm not getting the dialog, public void myEventOccurred(Event evt) { // TODO Auto-generated method stub System.out.print( Event fired...); new AlertDialog.Builder( this ) .setTitle( R.string.SaveConnectionChangeWarningTitle ) .setMessage( Alert ! ) .setPositiveButton( android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick( DialogInterface dialog, int whichButton) { dialog.dismiss(); } }) .show(); } is i'm doing wrong, (this alert dialog code is working in activity). -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Can I get the facebook profile picture in my application?
Hi Friends, I am developing a application in android in which i have to get the facebook profile picture in to my application. Is it possible in android? I have done the wallpost and share functionalities in my app with facebook. please help me. Thanks and Regards, Kiran. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to use alert dialog in services
Notification ,toast easy implemented in service On Tue, Oct 19, 2010 at 4:21 PM, Nithin nithin.war...@gmail.com wrote: Service, normally use notifications.. not dialog.. Nithin On Oct 19, 3:35 pm, damodhar meshran dmesh...@gmail.com wrote: As per my knowledge its is not possible to display dialog in service On Tue, Oct 19, 2010 at 3:17 PM, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hey i want to use alert dialog in services, but i'm not getting the dialog, public void myEventOccurred(Event evt) { // TODO Auto-generated method stub System.out.print( Event fired...); new AlertDialog.Builder( this ) .setTitle( R.string.SaveConnectionChangeWarningTitle ) .setMessage( Alert ! ) .setPositiveButton( android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick( DialogInterface dialog, int whichButton) { dialog.dismiss(); } }) .show(); } is i'm doing wrong, (this alert dialog code is working in activity). -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Re: How to change of color of list
try using on of these methods on the listview setBackgrungdColor() or setBackgroungDrawable() or setBackgroundResource(). to set the color to your listview On Oct 19, 2:57 pm, pramod.deore deore.pramo...@gmail.com wrote: Hi , I have developing list as public class AddSwitch extends ListActivity { public void onCreate(Bundle savedInstanceState) { System.out.println (First stmt in onCreate of AddSwitch); super.onCreate(savedInstanceState); String[] switchName = getResources().getStringArray(R.array.Switch_array); setListAdapter(new ArrayAdapterString(this,android.R.layout.simple_list_item_1, switchName)); getListView().setTextFilterEnabled(true); } protected void onListItemClick(ListView l, View v, int position, long id) { } public void onItemSelected(AdapterView parent,View v,int position,long id) { } } Now I want to change the color of list to other color. How to do that? Because here I had not used any .xml file so how to write code to change the color of list? 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] Can I get the facebook profile picture in my application?
ya its is possible . just used facebook SDK On Tue, Oct 19, 2010 at 4:24 PM, rokson kiranrepa...@gmail.com wrote: Hi Friends, I am developing a application in android in which i have to get the facebook profile picture in to my application. Is it possible in android? I have done the wallpost and share functionalities in my app with facebook. please help me. Thanks and Regards, Kiran. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Memory Leaks
What if the system decides to send KILL to a process running some background task (application) to regain memory. In that case, the object's memory has not been reclaimed from the heap, the heap has been destroyed. These are two different things: if the VM's process is terminated, it's no longer meaningful to talk about garbage collection within the VM. 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to use alert dialog in services
thanx for tremendous ans. but i want to thr alertdialog in any way, like first call activity den thr alert dialog, or call any java class, den any activity class, and den alert dialog, so i mean, in any way, (any steps), it is not possible. On Tue, Oct 19, 2010 at 4:25 PM, damodhar meshran dmesh...@gmail.comwrote: Notification ,toast easy implemented in service On Tue, Oct 19, 2010 at 4:21 PM, Nithin nithin.war...@gmail.com wrote: Service, normally use notifications.. not dialog.. Nithin On Oct 19, 3:35 pm, damodhar meshran dmesh...@gmail.com wrote: As per my knowledge its is not possible to display dialog in service On Tue, Oct 19, 2010 at 3:17 PM, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hey i want to use alert dialog in services, but i'm not getting the dialog, public void myEventOccurred(Event evt) { // TODO Auto-generated method stub System.out.print( Event fired...); new AlertDialog.Builder( this ) .setTitle( R.string.SaveConnectionChangeWarningTitle ) .setMessage( Alert ! ) .setPositiveButton( android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick( DialogInterface dialog, int whichButton) { dialog.dismiss(); } }) .show(); } is i'm doing wrong, (this alert dialog code is working in activity). -- You received this message because you are subscribed to the Google Groups Android Developers group. 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 I get the facebook profile picture in my application?
Thanks you very much damodhar. On Oct 19, 3:57 pm, damodhar meshran dmesh...@gmail.com wrote: ya its is possible . just used facebook SDK On Tue, Oct 19, 2010 at 4:24 PM, rokson kiranrepa...@gmail.com wrote: Hi Friends, I am developing a application in android in which i have to get the facebook profile picture in to my application. Is it possible in android? I have done the wallpost and share functionalities in my app with facebook. please help me. Thanks and Regards, Kiran. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to use alert dialog in services
its is possible just bind your service with activity On Tue, Oct 19, 2010 at 4:31 PM, Rocky rkjhaw1...@gmail.com wrote: thanx for tremendous ans. but i want to thr alertdialog in any way, like first call activity den thr alert dialog, or call any java class, den any activity class, and den alert dialog, so i mean, in any way, (any steps), it is not possible. On Tue, Oct 19, 2010 at 4:25 PM, damodhar meshran dmesh...@gmail.comwrote: Notification ,toast easy implemented in service On Tue, Oct 19, 2010 at 4:21 PM, Nithin nithin.war...@gmail.com wrote: Service, normally use notifications.. not dialog.. Nithin On Oct 19, 3:35 pm, damodhar meshran dmesh...@gmail.com wrote: As per my knowledge its is not possible to display dialog in service On Tue, Oct 19, 2010 at 3:17 PM, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hey i want to use alert dialog in services, but i'm not getting the dialog, public void myEventOccurred(Event evt) { // TODO Auto-generated method stub System.out.print( Event fired...); new AlertDialog.Builder( this ) .setTitle( R.string.SaveConnectionChangeWarningTitle ) .setMessage( Alert ! ) .setPositiveButton( android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick( DialogInterface dialog, int whichButton) { dialog.dismiss(); } }) .show(); } is i'm doing wrong, (this alert dialog code is working in activity). -- You received this message because you are subscribed to the Google Groups Android Developers group. 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Memory Leaks
John, You could try forcing GC (for debugging) by creating a thread that allocates memory in a loop, something like this: for (;;) { byte[] buf = new byte[100 * 1024]; Log.i(TAG, new buf: + buf); Thread.Sleep(100); } Note that references to these byte buffers are not kept around, but the code allocates more and more. This should force the GC at some point, perhaps you'll see log messages from your finalize then? And what I said about Bitmaps doesn't really apply - since you're using Drawables. -- Kostya 19.10.2010 4:50, John Gaby пишет: And yet, I have objects where I log the finalize call but find, when looking at the heap dump, those objects are gone even though I never received a finalize log for them. I also have custom ViewGroup objects where the memory analyzer tells me that the only references are from it's children, and yet these objects are never freed (this appears to be the source of my leak). I am somewhat baffled as to what is going on here. Thanks for your help On Oct 18, 5:25 pm, Tom Gibaratomgib...@gmail.com wrote: It is possible that the finalize() has been called at much later point. I should have probably said that lack of finalize() does not mean that the memory has not been regained. This isn't correct. If an object is an instance of a class with a non-trivial finalize method, then the object's memory cannot be reclaimed until the finalizer has run. Tom. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to import the License Verification Library into workspace?
see there other option available chose other and the select android project On Tue, Oct 19, 2010 at 2:09 PM, jlopeznava...@gmail.com jlopeznava...@gmail.com wrote: I can't import the License Verification Library to the workspace. In the Eclipse wizard I click File import but no Android option available, if I choose normal Java project then it doesn't work because it has no Android api reference. How to do? 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.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: Can I get the facebook profile picture in my application?
Thank you very much damodhar. On Oct 19, 3:57 pm, damodhar meshran dmesh...@gmail.com wrote: ya its is possible . just used facebook SDK On Tue, Oct 19, 2010 at 4:24 PM, rokson kiranrepa...@gmail.com wrote: Hi Friends, I am developing a application in android in which i have to get the facebook profile picture in to my application. Is it possible in android? I have done the wallpost and share functionalities in my app with facebook. please help me. Thanks and Regards, Kiran. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Market - installation never finishes
I recently released an update to my application (about a week ago). Since then, I've had two emails from users who report that, while updating the app through Market, the installation process gets stuck and never finishes. This is after the application has been downloaded. They can't abort the installation. Did anyone here have similar reports recently? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Market - installation never finishes
Yeah, It happens sometimes. Cancelling and starting the download again generally solves the problem. If the installation gets stuck, I have tried phone re-starts and it normally continues. But this is really irritating though. On Tue, Oct 19, 2010 at 4:41 PM, Kostya Vasilyev kmans...@gmail.com wrote: I recently released an update to my application (about a week ago). Since then, I've had two emails from users who report that, while updating the app through Market, the installation process gets stuck and never finishes. This is after the application has been downloaded. They can't abort the installation. Did anyone here have similar reports recently? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Install an app.apk in an App
I want to pack a service application pack into asserts folder and install it at first run. Is it possible to install it silently at runtime? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Market - installation never finishes
Occasionally, though in my case it is usually a general problem happening to several users at the same time. This seems to happen if something goes wrong with the update process. I usually ask the users to clean out the Market cache and the Download Manager cache. If that does not solve issues, then a re-upload of the app is usually required (I've had two updates which were essentially simply the same as the previous version with a different version number because of these kind of problems). Regards, Michael A. On Oct 19, 1:13 pm, Kumar Bibek coomar@gmail.com wrote: Yeah, It happens sometimes. Cancelling and starting the download again generally solves the problem. If the installation gets stuck, I have tried phone re-starts and it normally continues. But this is really irritating though. On Tue, Oct 19, 2010 at 4:41 PM, Kostya Vasilyev kmans...@gmail.com wrote: I recently released an update to my application (about a week ago). Since then, I've had two emails from users who report that, while updating the app through Market, the installation process gets stuck and never finishes. This is after the application has been downloaded. They can't abort the installation. Did anyone here have similar reports recently? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] screen referesh dealy
Your activity may be taking too long to draw. Use Traceview to determine where your performance problem lies: http://developer.android.com/guide/developing/tools/traceview.html On Tue, Oct 19, 2010 at 1:28 AM, Shakeel shakeelaha...@tataelxsi.co.in wrote: Dear all, I am facing problem with delay in display when I tilt the device. Screen takes few seconds to adjust to portrait or landscape when device is tilted. Thanks shakeel -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Google maps: please fetch me a location
On Tue, Oct 19, 2010 at 3:39 AM, Hatch tomislav.hecimo...@gmail.com wrote: Since the list of intent on that page is incomplete, I wonder, where can one find the complete list of intents that google maps can respond to ? That is the complete list of documented and supported Intents that Google Maps honors. In short, my app requires a user to pick some location from a map. Do I have to create a specialized MapView for this ? Yes, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Tab Icons
Hi all, just a simple question..anyone knows of any icon packs for android tabhost? Let's say I'm not good at drawing.. :) -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 import the License Verification Library into workspace?
There is no such option in Import. Just Existing Projects into Workspace. On Oct 19, 1:04 pm, damodhar meshran dmesh...@gmail.com wrote: see there other option available chose other and the select android project On Tue, Oct 19, 2010 at 2:09 PM, jlopeznava...@gmail.com jlopeznava...@gmail.com wrote: I can't import the License Verification Library to the workspace. In the Eclipse wizard I click File import but no Android option available, if I choose normal Java project then it doesn't work because it has no Android api reference. How to do? 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: screen referesh dealy
Thanks guys, this is what I needed. I will target it for 2.0 then, maybe, if the game seems successful, make a fixed pipeline version. On Oct 19, 2:37 pm, Mark Murphy mmur...@commonsware.com wrote: Your activity may be taking too long to draw. Use Traceview to determine where your performance problem lies: http://developer.android.com/guide/developing/tools/traceview.html On Tue, Oct 19, 2010 at 1:28 AM, Shakeel shakeelaha...@tataelxsi.co.in wrote: Dear all, I am facing problem with delay in display when I tilt the device. Screen takes few seconds to adjust to portrait or landscape when device is tilted. Thanks shakeel -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Button organisation
Hi all, I want to put three buttons in one single line with the left and the right button at a fixed size, and the middle button wich take the distance between the two buttons. My application will work in different device, so I can't fix the size, it has to be adaptative... Here is my current code : RelativeLayout android:layout_height=wrap_content android:layout_width=fill_parent android:orientation=horizontal android:gravity=center Button android:layout_width=70dp android:layout_height=wrap_content android:text=@string/lbl_help android:gravity=center android:background=@drawable/btn_grey_9p android:textColor=#cc android:textSize=18dp android:layout_margin=1dp android:layout_alignParentLeft=true/ LinearLayout android:layout_height=wrap_content android:layout_width=wrap_content android:gravity=center android:layout_centerInParent=true Button android:id=@+id/btnApply android:layout_width=140dp android:layout_height=wrap_content android:text=@string/protect_me android:gravity=center android:background=@drawable/btn_bottom android:textColor=#ff android:textStyle=bold android:textSize=18dp android:layout_marginTop=1dp/ /LinearLayout Button android:id=@+id/btnLocate android:layout_width=70dp android:layout_height=wrap_content android:gravity=center android:background=@drawable/btn_bottom android:textColor=#ff android:textSize=18dp android:text=@string/btn_locate android:layout_margin=1dp android:layout_alignParentRight=true/ /RelativeLayout For the moment, the size is fixed (in red in the code). If I use a LinearLayout, with the middle button widht parameter : 'android:layout_width=fill_parent' It start at the right of the left button (OK) but overwrite the right button (NOT OK) Anyone can help me ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Memory Leaks
Yes, size matters from the standpoint of triggering GC, simply because GC is generally triggered when the total amount of allocated space exceeds some threshold (or when the amount allocated since the last GC exceeds some threshold). I worked on a GC implementation off and on for 12 years, so I'm fairly familiar with how things work. On Oct 19, 4:27 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Mon, Oct 18, 2010 at 6:21 PM, DanH danhi...@ieee.org wrote: I doubt that adding content to the object would make it any more likely to be collected. The garbage collector doesn't generally weigh objects as to whether they should be collected or not. The only differentiating factors are 1) the absolute size of the object itself (not counting references to other objects), 2) the number of times the object has survived garbage collection, and (sometimes) 3) the class of the object. Dan, It is true that from a single object point of view, said object is either reachable from the root or is not, hence it can be garbage collected or it can not. However would you not agree, that from a heap management and GC strategy point of view size matters? Plenty of GC performance tuning tricks talk about the heap sizes, sizes of various generations and so on. From experience you can see, that GC kicks in much more often, when the amount of live objects on the heap increases (past certain thresholds). Heap resizing is also determined by the total size of life objects. I also know that in Android we don't have freedom to set those, which does not mean that they are not set. Please refer to following article: http://www.oracle.com/technetwork/java/gc-tuning-5-138395.html -- Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 connect to a remote MySQL DB without webservices... ?
It's kind of a hopeless cause: Android does not implement remote DB, and because of that it's considered unnecessary or unsafe. But I think you can do the operations yourself, if you're willing to get down and dirty with the protocols. On Oct 18, 4:29 pm, saex elpablos...@gmail.com wrote: Hi can i do it? I just wanna make SELECT/INSERT into a remote database with my android phone application, i think it have to be easy but i can't find the way. I only find people that tell i have to make a webservice os romething like that, but that is another world for me, and i can't put a webservice in the database host... ¿there is not a normal way to do it without a webservice? 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 import the License Verification Library into workspace?
If I use the Existing project into Workspace option then the project gets this error: The import android.os can not to be resolved I suposse it's because it's not an Android project. On Oct 19, 1:52 pm, jlopeznava...@gmail.com jlopeznava...@gmail.com wrote: There is no such option in Import. Just Existing Projects into Workspace. On Oct 19, 1:04 pm, damodhar meshran dmesh...@gmail.com wrote: see there other option available chose other and the select android project On Tue, Oct 19, 2010 at 2:09 PM, jlopeznava...@gmail.com jlopeznava...@gmail.com wrote: I can't import the License Verification Library to the workspace. In the Eclipse wizard I click File import but no Android option available, if I choose normal Java project then it doesn't work because it has no Android api reference. How to do? 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2
What did you compile against? You should always compile/build against the earliest version you hope to run on. On Oct 19, 4:25 am, Alex Xin xinxi...@gmail.com wrote: Hi, I have an app that runs perfect on 2.2 and 2.2 but always getting VerifyError on 1.6 while startup, I don't think that my app cannot run under 1.6 because I don't call any APIs that don't support 1.6. I'm really confused, does anybody has the same issue? How do you solve this problem? Thanks, Alex -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: send events from Android device to PC
Thanks! I am having a look at the code, and apparently they managed to do the messaging using the USB. On Oct 15, 8:13 pm, Lee Fisher blib...@gmail.com wrote: [...] Does anyone know about a (easy) way of messaging between android device and PC? This tool might do what you need. http://code.google.com/p/android-notifier/ -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2
Actually, you should build against a version of the platform that has all of the features that your application can use. This is often not the same as the earliest version on which it will run. 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: send events from Android device to PC
That was my initial idea, but the problem would be the synchronization. I would need to know when the application finishes writing the file in order to retrieve it from the device... On Oct 15, 12:01 pm, Chris Shieh ccsh...@gmail.com wrote: How about another file created by your task describing the status of your task? On 10月14日, 下午10時40分, Miguel Pellón miguelpel...@gmail.com wrote: Hi all, I am trying to automate some tasks using adb commands in java, but in order to confirm tasks are completed, I need some reply from the device to the PC controlling it. I thought about using the logcat, but since android is continuously writing on the log, there might be problems accessing it, and checking the correct message. Does anyone know about a (easy) way of messaging between android device and PC? Thanks in advance for the help! Regards, Miguel -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Button organisation
Step #1: Get rid of the LinearLayout, since you do not appear to need it Step #2: Get rid of the android:orientation=horizontal from the RelativeLayout, since orientation is not a valid attribute for RelativeLayout Step #3: Give your first Button an android:id value, so we can refer to it from within the XML Step #4: Have your middle Button anchor itself to the other two (android:layout_toRightOf=... and android:layout_toLeftOf=@+id/btnLocate) Step #5: Remove the + sign from @+id/btnLocate in the last Button, since ideally you only use the + sign on the first occurrence of the ID value in the layout file, and step #4 refers to btnLocate first On Tue, Oct 19, 2010 at 8:11 AM, Laurent Lugon Moulin laurent.lu...@gmail.com wrote: Hi all, I want to put three buttons in one single line with the left and the right button at a fixed size, and the middle button wich take the distance between the two buttons. My application will work in different device, so I can't fix the size, it has to be adaptative... Here is my current code : RelativeLayout android:layout_height=wrap_content android:layout_width=fill_parent android:orientation=horizontal android:gravity=center Button android:layout_width=70dp android:layout_height=wrap_content android:text=@string/lbl_help android:gravity=center android:background=@drawable/btn_grey_9p android:textColor=#cc android:textSize=18dp android:layout_margin=1dp android:layout_alignParentLeft=true/ LinearLayout android:layout_height=wrap_content android:layout_width=wrap_content android:gravity=center android:layout_centerInParent=true Button android:id=@+id/btnApply android:layout_width=140dp android:layout_height=wrap_content android:text=@string/protect_me android:gravity=center android:background=@drawable/btn_bottom android:textColor=#ff android:textStyle=bold android:textSize=18dp android:layout_marginTop=1dp/ /LinearLayout Button android:id=@+id/btnLocate android:layout_width=70dp android:layout_height=wrap_content android:gravity=center android:background=@drawable/btn_bottom android:textColor=#ff android:textSize=18dp android:text=@string/btn_locate android:layout_margin=1dp android:layout_alignParentRight=true/ /RelativeLayout For the moment, the size is fixed (in red in the code). If I use a LinearLayout, with the middle button widht parameter : 'android:layout_width=fill_parent' It start at the right of the left button (OK) but overwrite the right button (NOT OK) Anyone can help me ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2
Unfortunately, setting minsdk version in the manifest doesn't cause any sort of validation against that platform version. So the OP's problem could easily be caused by him using an API that doesn't exist prior to 2.x -- Kostya 19.10.2010 16:29, Tom Gibara пишет: Actually, you should build against a version of the platform that has all of the features that your application can use. This is often not the same as the earliest version on which it will run. 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2
Yes. Temporarily changing the Project Build Target in the project's android properties (assuming you're using eclipse) should highlight any unexpected Java source incompatibilities. 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Memory Leaks
On Tue, Oct 19, 2010 at 11:57 AM, Tom Gibara tomgib...@gmail.com wrote: What if the system decides to send KILL to a process running some background task (application) to regain memory. In that case, the object's memory has not been reclaimed from the heap, the heap has been destroyed. These are two different things: if the VM's process is terminated, it's no longer meaningful to talk about garbage collection within the VM. Tom. True. However the fact that one has not seen objects finalised does not mean yet that it is a memory leak. -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: eclipse HELIOS (3.6) Code Assist very slow
ECLIPSE is a streaming pile of dung, imho. I use helios because it doesn't crash nearly a often as galileo. On Oct 19, 1:24 am, JonFHancock jonfhanc...@gmail.com wrote: Yeah. I find myself wondering why I am using it instead of Galileo. The *only* thing I like about it is the interface for installing new plugins. Maybe I'll just switch back... On Oct 18, 4:36 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Helios is a steaming pile of dunk, IMHO. On Oct 18, 2:30 pm, JonFHancock jonfhanc...@gmail.com wrote: Thank you an infinite number of times! I was going out of my way to not allow assists in cases where I knew it would be slow. On Oct 16, 12:06 pm, SChaser crotalistig...@gmail.com wrote: If you are using the JEE edition of HELIOS, the assists can be speeded up by turning off JAX-WS assist in the edit/advanced preference (Window-Preferences-Java-Editor-Content Assist-Advanced. It also appears that the assists cycle through a list of suggestion sources, starting with a different one each time, which would explain why the assists are not always slow. Seehttps://bugs.eclipse.org/bugs/show_bug.cgi?id=317979-Hidequoted 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] Cannot install on app on 1.6 device confusion
Hi all, I've published an app today mainly for my forum users to use, just a very simple app that displays wallpapers derived from the forum. Problem I'm having is one guy says it doesn't appear in the market, and I've even sent him the APK to install manually but it fails. My minimum SDK version is 4, I created it with the 1.6 SDK specified so not sure why he can't see it or install it. He has a 1.6 Magic handset. So just wondering if anyone has any ideas, the app is called bocn wallpaper, it uses internet and set-wallpaper permissions.. but I wouldn't have thought the permissions were the problem... 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: Internal Data Storage and WakeLock
Thanks for the heads-up, I've seen the pattern before. I don't think I'll need it. The service don't really care if it's stopped by the device falling asleep, as long as it's not during it's processing phase in onHandleIntent where data may be written. On Oct 19, 2:32 am, Mark Murphy mmur...@commonsware.com wrote: On Mon, Oct 18, 2010 at 8:28 PM, Stakka henrik.lindqv...@gmail.com wrote: Thanks. I'll use a WakeLock in my IntentService.onHandleIntent. You may wish to consider my WakefulIntentService pattern: http://github.com/commonsguy/cwac-wakeful It will help you avoid the case where the device falls asleep between the startService() call and onHandleIntent() being called. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Internal Data Storage and WakeLock
Thanks for reminding me. Write to new file, delete old file, rename. On Oct 19, 2:40 am, Dianne Hackborn hack...@android.com wrote: Also services *can* be killed. It is best to do your file writing so that you avoid issues if you are killed (or the battery pulled or whatever) while running. Using SQLite is one way. For flat files, what we typically do in the platform is the standard trick of writing a new file, syncing it, and then atomically replacing the old file with the new one. On Mon, Oct 18, 2010 at 5:32 PM, Mark Murphy mmur...@commonsware.comwrote: On Mon, Oct 18, 2010 at 8:28 PM, Stakka henrik.lindqv...@gmail.com wrote: Thanks. I'll use a WakeLock in my IntentService.onHandleIntent. You may wish to consider my WakefulIntentService pattern: http://github.com/commonsguy/cwac-wakeful It will help you avoid the case where the device falls asleep between the startService() call and onHandleIntent() being called. -- Mark Murphy (a Commons Guy) http://commonsware.com|http://github.com/commonsguy http://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Layout help for WebView
Hi all. No matter how my experience with Android grows, I still get perplexed by layouts! Sometimes they just won't do what I want. So over to you... The layout below is for a dialog, which contains a WebView and a Button, laid out vertically. When the text going into the WebView is long enough, it fills the whole dialog window, and the Button gets squashed into almost nothing. I've tried ScrollViews, I've tried a minimum height on the Button, a maximum height on the WebView, all to no avail. How can I keep the button area fixed in height, while the webview scrolls if the text is long enough? Many thanks for any help. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/help_frame android:orientation=vertical android:layout_height=wrap_content android:layout_width=wrap_content android:paddingLeft=10dip android:paddingRight=10dip android:gravity=center android:layout_gravity=center LinearLayout android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content android:maxHeight=150dip android:paddingTop=10dip android:paddingBottom=10dip android:gravity=center WebView android:id=@+id/help_text android:layout_width=fill_parent android:layout_height=wrap_content android:maxHeight=150dip android:scrollbars= / /LinearLayout LinearLayout android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content android:minHeight=50dip android:paddingTop=10dip android:gravity=center Button android:id=@+id/help_button android:layout_width=wrap_content android:layout_height=wrap_content android:textSize=18sp android:paddingLeft=30dp android:paddingRight=30dp android:text=ok/ /LinearLayout /LinearLayout -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: TextView visibility problem
The default orientation for LinearLayout is horizontal. It looks odd that the last TextView view has android:layout_width=fill_parent. On Oct 18, 2:43 pm, sisko adeod...@gmail.com wrote: Hi guys, the code I pasted below works great with the exception of the last view - the textView. The TextView does not display: LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:background=@drawable/bkgrnd android:layout_height=fill_parent android:layout_width=fill_parent RelativeLayout android:id=@+id/RelativeLayout01 android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentLeft=true android:layout_alignParentTop=true /ImageView TextView android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/help android:layout_alignParentTop=true android:layout_centerHorizontal=true android:textSize=@dimen/menuxmlTitleSize android:textColor=@color/menuxmlTitleColor /TextView ImageView android:id=@+id/ImageView02 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentRight=true android:layout_alignParentTop=true /ImageView /RelativeLayout TextView android:text=@+id/TextView02 android:id=@+id/TextView_HelpText android:layout_width=fill_parent android:layout_height=wrap_content /TextView /LinearLayout I had a similar problem which came down to an XML layout issue and I'm sure it's a similar issue here only I don't know how to resolve it. Can someone please help and tell me how I can get the TextView to display and perhaps more importantly, direct me to some good android xml layout material? 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] ListView inside ScrollView (re-hash/best practices)
Hi All, I know this has come up a few times in the past, and the best advice is to avoid having ListViews inside a ScrollView entirely (instead using addHeaderView()/addFooterView() or doing it manually with a LinearLayout, but I just wanted to see what best practices people might put forward for this... The design I have to implement has a top-level ScrollView, inside of which is a logo ImageView, a dynamically populated ListView of clickable items and a Button beneath this. The design excludes me from simply using addHeader/FooterView() for the logo and button because the background of the ScrollView needs to scroll (normally it remains fixed and the content scrolls). My solution has been to create a custom class which extends LinearLayout and has similar methods to ListView, such as setAdapter(). The problem is you have to re-implement so much by going with LinearLayout, such as selectors, dividers, trackball/kb input, long-click and so on. I'm keen to see if anyone has a better solution to this problem? Regards, Richard -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] startService an unusual way results in a a NullPointerException
On Thu, Oct 7, 2010 at 7:54 AM, vitamoe1.6 vitamo...@gmail.com wrote: Any ideas? New idea: don't do this? Calling startService from onStart to start that same service makes no sense - you're putting yourself in a loop (assuming this is how your code is actually structured). Plus I fail to see how this gains you platform independence. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problem in creating sound notifications
On Mon, Oct 18, 2010 at 10:20 PM, Suresh Chandra Pal sureshchandra...@gmail.com wrote: I have one more doubt, is it necessary to cancel my notification. If you don't want the user to have to do it, yes. Do you mean by 'automatically canceled yourself', that I need to call cancel method on it. Yes. http://developer.android.com/reference/android/app/NotificationManager.html#cancel%28int%29 If so what should be place to call it? That's up to you - when do you want to cancel it? If you're trying to hack the system to just play a sound, maybe right after notify. As par my understanding the cancel will cancel my notification. So what are side effects if I will not call cancel()? The notification stays in the user's notification area, until they close it themselves. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2
Keep in mind that there are also Java version dependencies and library dependencies. I don't know what Java versions may correspond to what Android versions, but you can't eg, compile with a Java 6 targeted javac and expect to run on a Java 5 JDK. And in some cases you can run into trouble if you compile against a later version of something like one of the org.apache interfaces and then try to run on earlier. (In fact, with a few of the org.apache interfaces the problem can go both ways.) On Oct 19, 7:52 am, Tom Gibara tomgib...@gmail.com wrote: Yes. Temporarily changing the Project Build Target in the project's android properties (assuming you're using eclipse) should highlight any unexpected Java source incompatibilities. 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] high density emulator use drawable-mdpi folder instead of drawable-hdpi
hello, I am running my application in the emulator using a high density skin (like WVGA800). However the ressources in my application are loaded from the drawable- mdpi folder instead of drawable-hdpi ... what else should I do so that android use the correct folder ? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] high density emulator use drawable-mdpi folder instead of drawable-hdpi
On Tue, Oct 19, 2010 at 4:46 PM, Christophe christophe.lebesner...@gmail.com wrote: hello, I am running my application in the emulator using a high density skin (like WVGA800). However the ressources in my application are loaded from the drawable- mdpi folder instead of drawable-hdpi ... what else should I do so that android use the correct folder ? Make sure you have the following in the manifest: uses-sdk android:minSdkVersion=4 / AND supports-screens android:smallScreens=true android:normalScreens=true android:largeScreens=true android:anyDensity=true / -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] high density emulator use drawable-mdpi folder instead of drawable-hdpi
Your emulator should report a large device. Only then, hdpi resource will be picked up. http://developer.android.com/guide/practices/screens_support.html#range On Tue, Oct 19, 2010 at 9:16 PM, Christophe christophe.lebesner...@gmail.com wrote: hello, I am running my application in the emulator using a high density skin (like WVGA800). However the ressources in my application are loaded from the drawable- mdpi folder instead of drawable-hdpi ... what else should I do so that android use the correct folder ? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Tab Icons
http://www.glyfx.com/products/free_android2.html this is the only icon pack I know with tab variation icon ... unfortunaly there is not a lot of free android style icon available on the internet :( On Oct 19, 1:44 pm, Pikoh pik...@gmail.com wrote: Hi all, just a simple question..anyone knows of any icon packs for android tabhost? Let's say I'm not good at drawing.. :) -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: PendingIntent.Cancel - FCs in 1.6, fine in 2.1??
It's obvious that the cancel() is working. However, the onClick is throwing an exception because of a residue invalid PendingIntent... so what the heck!?!? (= Would be a lot easier to just remove the setOnClickPendingIntent listener, but I dont see how to. On Oct 18, 11:07 pm, Eric keny...@gmail.com wrote: Actually, in LogCat with 2.1, I get the following - 10-19 03:05:39.194: ERROR/RemoteViews(101): Cannot send pending intent: On Oct 18, 10:55 pm, Eric keny...@gmail.com wrote: I'm trying to lock out my widgets from the onClick() pendingIntent. However, I get a FC once I've activated the lockWidgets then the lockout works OK. I only get the error in 1.6... 2.2 seems to be fine. Am I doing the pendingIntent.cancel() correctly?? Thanks -Eric 10-19 02:16:23.273: ERROR/AndroidRuntime(1269): android.widget.RemoteViews$ActionException: android.app.PendingIntent $CanceledException Intent intent = new Intent(context, BannerData.class); intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); intent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK| Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS| Intent.FLAG_ACTIVITY_NEW_TASK); PendingIntent pendingIntent = PendingIntent.getActivity(context, appWidgetId, intent, PendingIntent.FLAG_UPDATE_CURRENT); if(lockWidgets){ if(pendingIntent != null) pendingIntent.cancel();}else{ remoteView.setOnClickPendingIntent(R.id.widget, pendingIntent); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: high density emulator use drawable-mdpi folder instead of drawable-hdpi
it works now with uses-sdk android:minSdkVersion=4 / The value for the supports-screens tag are true by default (http:// developer.android.com/guide/practices/screens_support.html#attrs) so I guess it's not mandatory tu use it in the manifest. thx you ! On Oct 19, 5:50 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Tue, Oct 19, 2010 at 4:46 PM, Christophe christophe.lebesner...@gmail.com wrote: hello, I am running my application in the emulator using a high density skin (like WVGA800). However the ressources in my application are loaded from the drawable- mdpi folder instead of drawable-hdpi ... what else should I do so that android use the correct folder ? Make sure you have the following in the manifest: uses-sdk android:minSdkVersion=4 / AND supports-screens android:smallScreens=true android:normalScreens=true android:largeScreens=true android:anyDensity=true / -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Opinions wanted on ExpandableListView - debug or rewrite?
My current app development is stalled due to Issue 11967 (http:// code.google.com/p/android/issues/detail?id=11967) and I'm thinking about the best way forward. One approach is to download the ExpandableListView source and debug the problem. But there is evidence from the API that this implementation is messy and anyway I'm not sure how much of the framework I'll need to download in order to find the problem. On the other hand, fixing the bug would be a friendly thing to do for the Android community and would eventually mean the code was supported. So my first question is, has anyone had experience finding and fixing bugs in the Android framework? How hard is it to set up and how clean (and commented) is the code? Another approach is to re-implement ExpandableListView using more primitive elements in the framework. I did this for the nearly unusable GridView and I'm very pleased with the results. However, I'm on my own to support the code unless I want to lobby Google to create a new class in the Android framework. Otherwise, if my private UberGridView doesn't work on some device, I won't have the resources to fix it. So my second question is, if I go to the trouble to re-implement, how hard will it be to graft the new UberExpandableListView class into the main code stream so that it will get used and tested across lots of devices? Has anyone been close enough to a case of this happening that they can comment on the barriers to entry? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] ImageView scaling/layout problem
On Mon, Oct 18, 2010 at 10:05 AM, Tim S t...@schmidthole.com wrote: Is there any easy way to accomplish this? Maybe try this: http://developer.android.com/reference/android/widget/TextView.html#attr_android:drawableTop - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Tab Icons
I haven't found any either...that's why this was my last hope. Well, let's see if any artist read this and give us some good pack ;) On 19 oct, 17:52, Christophe christophe.lebesner...@gmail.com wrote: http://www.glyfx.com/products/free_android2.html this is the only icon pack I know with tab variation icon ... unfortunaly there is not a lot of free android style icon available on the internet :( On Oct 19, 1:44 pm, Pikoh pik...@gmail.com wrote: Hi all, just a simple question..anyone knows of any icon packs for android tabhost? Let's say I'm not good at drawing.. :) -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: ScrollView
At runtime, the scrollview would allow you to scroll the other widgets. Have you checked that? On Oct 19, 2:48 am, zeeshan mirza zeeshan.nabeel.mi...@gmail.com wrote: I am having problem with the loswet 2 editText fields. They are not clearly visible. They are broken. Here is my layout file. Please let me know if anybody finds out the problem. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_height=wrap_content android:layout_width=fill_parent ScrollView android:id=@+id/ScrollView android:layout_width=fill_parent android:layout_height=wrap_content android:layout_marginBottom=60dip RelativeLayout android:id=@+id/layoutR android:layout_width=fill_parent android:layout_height=wrap_content ImageView android:id=@+id/galleryPic android:layout_width=135dip android:layout_height=160dip android:background=#ff66 / TextView android:id=@+id/lblmail android:layout_width=wrap_content android:layout_height=21dip android:layout_alignParentTop=true android:layout_marginLeft=5dip android:text=E_mail: android:typeface=serif android:textStyle=bold android:layout_toRightOf=@+id/galleryPic/ EditText android:id=@+id/txt_email android:layout_width=170dip android:layout_height=32dip android:layout_marginLeft=5dip android:hint=e-mail android:maxLines=1 android:textSize=10sp android:typeface=serif android:textStyle=bold android:layout_toRightOf=@+id/galleryPic android:layout_below=@+id/lblmail/ TextView android:id=@+id/lblpass android:layout_width=wrap_content android:layout_height=21dip android:layout_marginLeft=5dip android:text=Password: android:typeface=serif android:textStyle=bold android:layout_toRightOf=@+id/galleryPic android:layout_below=@+id/txt_email/ EditText android:id=@+id/txt_pass android:layout_width=170dip android:layout_height=32dip android:password=true android:maxLines=1 android:layout_marginLeft=5dip android:hint=password android:textSize=10sp android:typeface=serif android:textStyle=bold android:layout_toRightOf=@+id/galleryPic android:layout_below=@+id/lblpass/ TextView android:id=@+id/lblrepass android:layout_width=wrap_content android:layout_height=21dip android:layout_marginLeft=5dip android:text=Re-Password: android:typeface=serif android:textStyle=bold android:layout_toRightOf=@+id/galleryPic android:layout_below=@+id/txt_pass/ EditText
Re: [android-developers] Android drag and drop outside parent
On Mon, Oct 18, 2010 at 3:43 PM, DragonFlyJones motl...@gmail.com wrote: I just need to know if the element being dragged is touching another element once it is dropped, though both are in different TableViews. Aren't your TableViews themselves within the same parent? I'm guessing you can use that knowledge to determine where your dragged View is. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Select behavior of a TextView
On Mon, Oct 18, 2010 at 8:38 PM, Bret Foreman bret.fore...@gmail.comwrote: This is almost certainly a bug in ExpandableListView. Just saw this post. I ran into the same issue, but with the Group view in ExpandableListView. I have a LinearLayout that can contain two TextViews on top of each other. When the group is selected, the bottom TextView (which has default settings) font color turns black. Wasn't a huge deal for me and I've just ignored it while focusing on bigger issues, but it would certainly be nice to understand the issue and determine a good workaround. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: ScrollView
yes I have checked it. But the layout is out of scrollView. So it should be at the bottom. Widgets inside the scrollview can be scrolled down or up. Try to run my Layout xml file. //Zeeshan -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Registering for proximity alert doesn't work for more than one Location.
On Tue, Oct 19, 2010 at 2:04 AM, Hatch tomislav.hecimo...@gmail.com wrote: So does anyone have a clue why it works for one and not for more locations? Probably because you're creating the same PendingIntent, as far as the system is concerned. Read this: http://developer.android.com/reference/android/content/Intent.html#filterEquals%28android.content.Intent%29 You should differentiate your Intents somehow - perhaps by using setData(). - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: prefetch database values
I think you can implement Push messaging from server like at veryfirst time, when your application starts it retrieves the data from the remote server. Then you have to write some server side script, like whenever any updates on the remote server database, it will push those changes to Device and this way your application will perform a sync automatically and it will also be battery friendly. You can search for C2DM for android. you will get more about about android PUSH. On Tue, Oct 19, 2010 at 10:41 AM, Bret Foreman bret.fore...@gmail.comwrote: Sounds like this is what you need: http://developer.android.com/resources/samples/SampleSyncAdapter/index.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] SMS Group Messaging - Speech to Text
On Tue, Oct 19, 2010 at 5:37 AM, acutter acut...@appsdev1.com wrote: the Apps do not show up as an update on the phone or AppBrain. If you already have the app installed on your phone (from developing) it's not going to update, it's already the latest version. And AppBrain take a while to get the latest information, I think. Can you please tell me how do I update the Android Market. Use the Developer Console. If it says it's updated, it should be. Refresh the page and see what it says. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Install an app.apk in an App
On Tue, Oct 19, 2010 at 6:17 AM, steven yuan steven.yuan...@gmail.comwrote: Is it possible to install it silently at runtime? Fortunately, no. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: PendingIntent.Cancel - FCs in 1.6, fine in 2.1??
Unless someone else has a better idea and I'm going at this alone =( Here is what I rigged to work.. if(lockWidgets){ intent = new Intent(context, DUMMY.class); pendingIntent = PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); } The DUMMY.class is completely empty. My pendingIntent is valid, but does nothing at all. On Oct 19, 11:57 am, Eric keny...@gmail.com wrote: It's obvious that the cancel() is working. However, the onClick is throwing an exception because of a residue invalid PendingIntent... so what the heck!?!? (= Would be a lot easier to just remove the setOnClickPendingIntent listener, but I dont see how to. On Oct 18, 11:07 pm, Eric keny...@gmail.com wrote: Actually, in LogCat with 2.1, I get the following - 10-19 03:05:39.194: ERROR/RemoteViews(101): Cannot send pending intent: On Oct 18, 10:55 pm, Eric keny...@gmail.com wrote: I'm trying to lock out my widgets from the onClick() pendingIntent. However, I get a FC once I've activated the lockWidgets then the lockout works OK. I only get the error in 1.6... 2.2 seems to be fine. Am I doing the pendingIntent.cancel() correctly?? Thanks -Eric 10-19 02:16:23.273: ERROR/AndroidRuntime(1269): android.widget.RemoteViews$ActionException: android.app.PendingIntent $CanceledException Intent intent = new Intent(context, BannerData.class); intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); intent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK| Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS| Intent.FLAG_ACTIVITY_NEW_TASK); PendingIntent pendingIntent = PendingIntent.getActivity(context, appWidgetId, intent, PendingIntent.FLAG_UPDATE_CURRENT); if(lockWidgets){ if(pendingIntent != null) pendingIntent.cancel();}else{ remoteView.setOnClickPendingIntent(R.id.widget, pendingIntent); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Market - installation never finishes
On Tue, Oct 19, 2010 at 6:11 AM, Kostya Vasilyev kmans...@gmail.com wrote: Did anyone here have similar reports recently? Not recently, but this is just another one of the awesome features of the Android Market that you have to deal with. People generally get stuck either downloadinghttp://www.google.com/support/androidmarket/bin/search.py?ctx=en%3Asearchboxforum=1query=downloading, authorizinghttp://www.google.com/support/androidmarket/bin/search.py?ctx=en%3Asearchboxforum=1query=authorizing, or installinghttp://www.google.com/support/androidmarket/bin/search.py?hl=enforum=1query=installing+more%3Aforumand I just point them to those links. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Select behavior of a TextView
One workaround might be to overrride the onDraw method of the TextView - set the paintbrush color and then call the super. But I'm not sure how all that might work. On Oct 19, 10:04 am, TreKing treking...@gmail.com wrote: On Mon, Oct 18, 2010 at 8:38 PM, Bret Foremanbegin_of_the_skype_highlighting end_of_the_skype_highlightingbret.fore...@gmail.comwrote: This is almost certainly a bug in ExpandableListView. Just saw this post. I ran into the same issue, but with the Group view in ExpandableListView. I have a LinearLayout that can contain two TextViews on top of each other. When the group is selected, the bottom TextView (which has default settings) font color turns black. Wasn't a huge deal for me and I've just ignored it while focusing on bigger issues, but it would certainly be nice to understand the issue and determine a good workaround. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Button organisation
On Tue, Oct 19, 2010 at 7:11 AM, Laurent Lugon Moulin laurent.lu...@gmail.com wrote: Anyone can help me ? Also look at the weight or layout_weight attribute, learn it, and love it. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en