[android-developers] changing the shape of Button
Hi all, I want to change the shape of Button from rectangle to triangle in my Activity. Is it possible? Is there any API available for this? Thanks, Asif --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 draw 3D objects on a MapView
Hi, I have been able to draw a map using 'MapActivity' class. Am unable to render 3D graphics on the Map. Is there any way to draw something on the foreground with the Map as the background? Thank you, Anush --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 design issue about cts test case testThreadCpuTimeNanos?
Hi, I met a problem on this test case which finally get current thread cpu-run time. If you know details,please comment here. thanks --wang xingchao --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] a strange problem about large screen on android 1.6
hello,everyone,I am newbie,and I have a program. but now I want make it support multiple screens(small,normal and large).I am 100% sure the all of layouts are working perfectly now, but large screen,the problem is that all XML files of layouts in layout-large can't load,The platform always load default XML file(these are under layout folder) at large screen environment. Did anyone meet this trouble?Please 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: PVMFFailure when using MediaPlayer for radio streams
Hi, In 1.6,I also try to play stream through setDataSource(http:// xxx/.mp3), but also it return IOException: prepare failed, status=0x1. If set the url into windows media player, it can play correctly, I wanna know your problem whether be resolved? If yes, can u tell me the solution,thanks very much. On 10月7日, 上午5时41分, iwhoyt wallace...@hotmail.com wrote: In 1.5 I was able to stream an mp3 over http by passing the url to setDataSource(). However I started gettingPVMFFailures in 1.6. For me the issue was the Content-Type http header. If the header was set correctly (Content-Type: audio/mpeg), the stream played. Otherwise if failed during PLAYER_INIT. On Sep 2, 2:32 am, siliconeagle rrmu...@gmail.com wrote: Also the URl is a http (MP3) stream URL - as opposed tioo other opost where RTSP is being tried. It looks like it should just work. Has anyone else got streaming working via a streaming URL? On Sep 1, 1:24 pm, siliconeagle rrmu...@gmail.com wrote: I am trying to build streaming radio into my app, which works fines streaming files over the internet, but when i try to use a shoutcast url in get the error below, which from the soruce code looks liek the mediaPlayer is looking for the duration in the header. Does anyone know if shoutcast urls will work withthe default media player? Or do i have to download chunks into a ping-pong buffer sor something? The url has no porblems downloading via the browser. the error is:- 09-01 11:53:25.634 E/MediaPlayer(16972): stop called in state 1 09-01 11:53:27.324 D/BatteryWidget(15623): Updating Views 09-01 11:53:30.445 E/PlayerDriver( 35): Command PLAYER_INIT completed with an error or infoPVMFFailure 09-01 11:53:30.445 E/MediaPlayer(16972): error (1, -1) 09-01 11:53:30.504 I/NotificationService( 55): enqueueToast pkg=net.robmunro.mypod callback=android.app.ITransientNotification$Stub $pr...@4323b8f8 duration=1000 09-01 11:53:30.514 W/System.err(16972): java.io.IOException: Prepare failed.: status=0x1 09-01 11:53:30.644 W/System.err(16972): at android.media.MediaPlayer.prepare(Native Method) 09-01 11:53:30.644 W/System.err(16972): at net.robmunro.mypod.util.MediaPlayerWrapper.playMedia (MediaPlayerWrapper.java:111) the code i use is:- try { mPlayer.stop(); mPlayer.reset();} catch (Exception e) { e.printStackTrace();} this.source=source; if (source.equals(Globals.SOURCE_LOCAL)) { mPlayer.setDataSource(f.path); buffered = 0;} else if (source.equals(Globals.SOURCE_STREAM)) { mPlayer.setDataSource(f.remoteUrl); buffered = 100;} mPlayer.prepare(); mPlayer.start(); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Have View and ListView Scroll as one
It's surprising that the easiest way to accomplish this effect is creating your own custom adapter. It does what I want in concept but is there any way to add complex layouts (LinearLayoutwidgetsRelativeLayoutwidgets/RelativeLayout/ LinearLayout or predefined XML views? For example using your demo: private View buildButton() { //your demo code //Button result=new Button(this); //result.setText(Hello, world!); //this just crashes, why? Button result = (Button)findViewById(R.id.mybutton); return result; } Also, would your approach work for a ListActivity? On Oct 22, 9:50 pm, Mark Murphy mmur...@commonsware.com wrote: droid_does wrote: What I have now is a layout that includes a list view at the bottom. All of the items in the layout above the list view remain fixed as you scroll through the list view. I would like the entire page to scroll so for example when you reached the bottom of the list you would no longer see the items above the list view. What is the easiest way to accomplish this? Put everything in the ListView. I have a MergeAdapter targeting this very scenario: http://github.com/commonsguy/cwac-merge What you specifically *cannot* do is wrap the whole thing in a ScrollView. ScrollView and things that themselves scroll (e.g., ListView) don't get along very well. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010:http://bignerdranch.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: 1.6: GPS location provider stop unexpectedly (exceeded MIN_FIX_COUNT), bouncing back and forth
The docs do mention: If minTime is greater than 0, the LocationManager could potentially rest for minTime milliseconds between location updates to conserve power. http://developer.android.com/intl/fr/reference/android/location/LocationManager.html#requestLocationUpdates%28java.lang.String,%20long,%20float,%20android.location.LocationListener%29 So isn't it just stopping occasionally to save power like the docs say it can? Looking at the code where it stops, it sets an alarm to start sending updates again based on the requested time between updates. Doing a few tests on my G1, the time it stays stopped does seem a little off. If I request 30 seconds minimum time between updates then the time between updates when it turns off is usually around 37 seconds. If I request 5 then I get around 7. If I request 2 then I get 3. Maybe the stopped time should be tweaked down a few seconds. Could be I'm in a bad spot for GPS or something, though, and it is taking longer to start back up than it would otherwise. The docs do mention: the minimum time interval for notifications, in milliseconds. This field is only used as a hint to conserve power, and actual time between location updates may be greater or lesser than this value. So I can't really complain about it being a few seconds off, though, or about how the updates come much faster when the implementation decides not to stop to save power in between sending them. Is this behavior hurting an app you use/wrote in some way? It seems within spec. On Oct 22, 11:30 pm, JP joachim.pfeif...@gmail.com wrote: Root cause identified. Pretty obvious bug in Android 1.6, GpsLocationProvider.java. Source here:http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;... I've reported the bug here:http://code.google.com/p/android/issues/detail?id=4336 Symptoms: Described above. To reproduce problem: Register a GPS location provider and set the min time interval to greater than 1. A overrun as shown in the log trace above occurs after a few second. GPS location provider then hibernates (which resets the counter) just to overrun on the next cycle. *** This affects everyone who relies on LocationListener callbacks to onLocationChanged(), based on time intervals. *** Code review: When the GPS location provider reports a location update, the mFixCount counter is incremented, but never reset except when the location provider is hibernated as a result of the counter overrun. Look for mFixCount in the source file and it's pretty apparent. On Oct 21, 10:08 pm, JP joachim.pfeif...@gmail.com wrote: Looks like I've run into some breakage from 1.5 to 1.6 after all... I am registering location listeners with LocationManager.requestLocationUpdates() With GPS as location provider, I run into a problem with navigation stopping by itself after a few seconds, just to return, stop again, in an endless cycle. I haven't seen this prior to 1.6 Donut and I have no clue what might cause this problem. Here's the Logcat output: 10-21 21:53:09.147: DEBUG/libgps(74): PDSM_PD_EVENT_GPS_BEGIN 10-21 21:53:11.177: DEBUG/GpsLocationProvider(74): exceeded MIN_FIX_COUNT 10-21 21:53:11.177: DEBUG/GpsLocationProvider(74): stopNavigating 10-21 21:53:11.177: DEBUG/libgps(74): qct_gps_stop 10-21 21:53:11.187: DEBUG/libgps(74): PDSM_PD_EVENT_END 10-21 21:53:11.187: DEBUG/GpsLocationProvider(74): Releasing wakelock 10-21 21:53:13.097: DEBUG/dalvikvm(74): GC freed 2562 objects / 104912 bytes in 223ms 10-21 21:53:20.227: DEBUG/dalvikvm(74): GC freed 1345 objects / 51352 bytes in 236ms 10-21 21:53:21.180: DEBUG/GpsLocationProvider(74): ALARM_WAKEUP 10-21 21:53:21.187: DEBUG/GpsLocationProvider(74): startNavigating 10-21 21:53:21.187: DEBUG/libgps(74): qct_gps_set_position_mode = 1, fix_frequency = 10 10-21 21:53:21.187: DEBUG/libgps(74): qct_gps_start 10-21 21:53:21.207: DEBUG/GpsLocationProvider(74): Acquiring wakelock 10-21 21:53:22.147: DEBUG/libgps(74): PDSM_PD_EVENT_GPS_BEGIN 10-21 21:53:24.167: DEBUG/GpsLocationProvider(74): TTFF: 2978 10-21 21:53:27.287: DEBUG/dalvikvm(74): GC freed 1417 objects / 52512 bytes in 232ms 10-21 21:53:34.397: DEBUG/GpsLocationProvider(74): exceeded MIN_FIX_COUNT 10-21 21:53:34.397: DEBUG/GpsLocationProvider(74): stopNavigating (and so forth) A web research for these logs didn't turn up anything (which is unusual in my experience), so this leads me to post the question here wondering what the root of the problem might be... 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] duration and loopiness of sound
I want to get the duration of a ringtone, so I do this: MediaPlayer mp = MediaPlayer.create(context, sound); duration = mp.getDuration(); I have two questions: 1. Is there another way of getting the duration? Maybe I can get it from the library meta data so that I don't have to create a MediaPlayer for it when I don't want to actually play it. 2. How do I find out if the sound is a looping sound? Again, without playing it. Thanks in advance Neil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: call forwarding
Current SDK does not support call forwarding. APIs related to calls are very limited especially SS support. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 22, 7:54 am, jera g. jera...@gmail.com wrote: how do I forward incoming calls to another number? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: High Battery Usage, but no Use details listed
The battery usage shows usage from when the device was last unplugged. When it is plugged in the stats are stopped, because you are now on power so nothing you can do is going to use battery. (And when you then next unplug, the stats are reset and start collecting again.) On Thu, Oct 22, 2009 at 9:28 PM, CraigsRace craig...@gmail.com wrote: An hour after my G1 phone was fully charged, the Battery Usage showed me that my game had used 20% of the battery usage. Except, I never ran my game (I had run the game before starting the charge). I checked TasKiller, and it didn't list my game as running (my game also doesn't run any services). When I clicked on the details of the battery usage for my game, it didn't list anything under the Use details section. Is it possible to use battery, but not have anything listed under the Use details section? Another user of my game also noticed this problem. -- 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] Photo ACTION_PICK intent returning data not set in setType
Hey All, I'm using the setType to return me images mentioned only of the specific type. Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); photoPickerIntent.setType(image/gif); photoPickerIntent.setType(image/jpeg); photoPickerIntent.setType(image/tiff); photoPickerIntent.setType(image/png); photoPickerIntent.setType(image/bmp); startActivityForResult(photoPickerIntent, RESULT_IMAGE_RETURNED); But this piece of code returns me images of other types too... say .wbmp Is there any other way to exclude the unwanted results from the Intent. Thanks in advance !!! Gyan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 stabiliz my APP's the CPU's usage
HI All, I am writing a camera capture post-process APP. After image captured, I do some post-process to the data. I have stoped the preview during my processing. But I found my program's processing time is fluctuant very much, from 10s to 20s. I have ps in the shell and found there're so mang process at same time and I think my programs's cpu usage is fluctuant. How to stabiliz my APP's the CPU's usage ? Or how to advance my code's PRI to try to get more CPU's resource? Thanks so much, Ji --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Battery Usage, but no Use details listed
Hi Dianne, I did have the phone unplugged. However, I have now solved the problem (which turned out to be my fault *oops*). I wasn't unregistering the sensor service when the game quit. So, even though my game would be removed from memory, I'm guessing the sensor service was continuing to run. All fixed with the code: SensorManager sensorMgr = (SensorManager)this.parent.getSystemService (Context.SENSOR_SERVICE); sensorMgr.unregisterListener(...); Cheers. On Oct 23, 6:04 pm, Dianne Hackborn hack...@android.com wrote: The battery usage shows usage from when the device was last unplugged. When it is plugged in the stats are stopped, because you are now on power so nothing you can do is going to use battery. (And when you then next unplug, the stats are reset and start collecting again.) On Thu, Oct 22, 2009 at 9:28 PM, CraigsRace craig...@gmail.com wrote: An hour after my G1 phone was fully charged, the Battery Usage showed me that my game had used 20% of the battery usage. Except, I never ran my game (I had run the game before starting the charge). I checked TasKiller, and it didn't list my game as running (my game also doesn't run any services). When I clicked on the details of the battery usage for my game, it didn't list anything under the Use details section. Is it possible to use battery, but not have anything listed under the Use details section? Another user of my game also noticed this problem. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Photo ACTION_PICK intent returning data not set in setType
Hi, On Oct 23, 3:08 pm, Gyan gnanesh@gmail.com wrote: I'm using the setType to return me images mentioned only of the specific type. Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); photoPickerIntent.setType(image/gif); photoPickerIntent.setType(image/jpeg); photoPickerIntent.setType(image/tiff); photoPickerIntent.setType(image/png); photoPickerIntent.setType(image/bmp); only the last setType() is used, they don't add up. startActivityForResult(photoPickerIntent, RESULT_IMAGE_RETURNED); But this piece of code returns me images of other types too... say .wbmp Is there any other way to exclude the unwanted results from the Intent. The Camera app, which provides the Gallery, doesn't seem to support the type from the Intent. I think this behavior isn't guaranteed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] intercept an outgoing call
Hi, I am trying to disconnect an outgoing call programmatically by injecting END key.but it gives Security Exception.Even I've added INJECT_EVENT permission.Here is my code: Handler handler; Thread t = new Thread() { Object sync = new Object(); public void run() { Log.d( LOG_TAG,Creating handler ... ); Looper.prepare(); handler = new Handler(); Looper.loop(); Log.d( LOG_TAG, Looper thread ends ); } }; t.start(); handler.post( new Runnable() { // Log.d( Generate key,Generating keys w/inst... ); public void run() { Log.d( ,111 ); Log.d( Generate key,Generating keys w/ inst... ); Instrumentation inst = new Instrumentation(); inst.sendKeyDownUpSync ( KeyEvent.KEYCODE_ENDCALL ); } } ); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Photo ACTION_PICK intent returning data not set in setType
Thanks much that was very precise! On Fri, Oct 23, 2009 at 2:12 PM, Miguel Paraz mpa...@gmail.com wrote: Hi, On Oct 23, 3:08 pm, Gyan gnanesh@gmail.com wrote: I'm using the setType to return me images mentioned only of the specific type. Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); photoPickerIntent.setType(image/gif); photoPickerIntent.setType(image/jpeg); photoPickerIntent.setType(image/tiff); photoPickerIntent.setType(image/png); photoPickerIntent.setType(image/bmp); only the last setType() is used, they don't add up. startActivityForResult(photoPickerIntent, RESULT_IMAGE_RETURNED); But this piece of code returns me images of other types too... say .wbmp Is there any other way to exclude the unwanted results from the Intent. The Camera app, which provides the Gallery, doesn't seem to support the type from the Intent. I think this behavior isn't guaranteed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Context Menu
The Context Menu in my app (a ListActivity) is getting very annoying. On new phone you have to select and hold the list item for so long before the menu pops up, that it's really not very user friendly. I want my context menu to pop up immediately when the list item is selected. I can't find a way of triggering this. There is a method onListItemClick() which tells me when an item has been clicked, but I still can't use that info to trigger the context menu in any way. What are my options here? Surely there must be some way of achieving 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] Transfer Messages without Service Provider
How to transfer Messages from Android phone to another android phone without Service Provider... Is this Possible or Notif Yes Means pls let me know the Concept... Thanks in Advance.. with regards, Raghav.S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SQLite Blob ?
Nobody ? :o --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Context Menu
On Oct 23, 11:26 am, Neilz neilhorn...@googlemail.com wrote: The Context Menu in my app (a ListActivity) is getting very annoying. On new phone you have to select and hold the list item for so long before the menu pops up, that it's really not very user friendly. I want my context menu to pop up immediately when the list item is selected. I can't find a way of triggering this. There is a method onListItemClick() which tells me when an item has been clicked, but I still can't use that info to trigger the context menu in any way. What are my options here? Surely there must be some way of achieving this? Thanks. if you want your context menu to popup on single item selection then how would you scroll very long list? pskink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SQLite Blob ?
HI joareiss http://developer.android.com/reference/java/sql/Blob.html In this link there is a clear information about blob and it usage... An SQL blob type stores a large array of binary data (bytes) as the value in a column of a database. On Fri, Oct 23, 2009 at 3:09 PM, joare...@googlemail.com joare...@googlemail.com wrote: Nobody ? :o -- Regards --- Desu Vinod Kumar vinny.s...@gmail.com 09176147148 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Context Menu
Hmmm, good point :-) The list I'm playing with isn't very long yet, so I hadn't noticed it. The point is, I just changed phone from HTC Magic to HTC Hero, and the hold duration to activate the menu is painfully long. It's not user friendly - in fact I don't think a random user using this app would even know that holding an item was an option! I want to be able to set the duration of the hold required. On Oct 23, 10:45 am, skink psk...@gmail.com wrote: On Oct 23, 11:26 am, Neilz neilhorn...@googlemail.com wrote: The Context Menu in my app (a ListActivity) is getting very annoying. On new phone you have to select and hold the list item for so long before the menu pops up, that it's really not very user friendly. I want my context menu to pop up immediately when the list item is selected. I can't find a way of triggering this. There is a method onListItemClick() which tells me when an item has been clicked, but I still can't use that info to trigger the context menu in any way. What are my options here? Surely there must be some way of achieving this? Thanks. if you want your context menu to popup on single item selection then how would you scroll very long list? pskink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Transfer Messages without Service Provider
You can do it in the emulator though... U can link 2 emulators and implement a SMS reciever and achieve this. On Fri, Oct 23, 2009 at 3:03 PM, ragavendran s sraghav.ra...@gmail.comwrote: How to transfer Messages from Android phone to another android phone without Service Provider... Is this Possible or Notif Yes Means pls let me know the Concept... Thanks in Advance.. with regards, Raghav.S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Multipart file uploads using Apache Mime4J still not working
Hi, I raised this ticket a long while ago: http://code.google.com/p/android/issues/detail?id=2357 I am still running into this problem. In fact, since I upgraded to the latest http-mime and mim4j JARs, it has become worse. I always get this exception when trying to upload a file received using ContentResolver.openInputStream(): IOException: at java.io.FileInputStream.openCheck(FileInputStream.java:389) My code: photoData = context.getContentResolver().openInputStream( photoUri); MultipartEntity payload = new MultipartEntity (HttpMultipartMode.STRICT); payload.addPart(uploaded_data, new PhotoStreamBody (photoData, photoSize)); HttpPost request = new HttpPost(url); request.setEntity(payload); request.setHeader(HTTP_CONTENT_TYPE_HEADER, payload.getContentType().getValue()); response = httpClient.execute(request); PhotoStreamBody inherits from InputStreamBody. The only thing it does is overwriting the getContentLength() method, because Android has another bug which reports wrong content sizes... Does anyone know what is causing this? Thanks, Matthias --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can I get the real value of a webview ?
The value of webView.getContentWidth() is not what i want. I need the full size of the webview. If you do not zoom in/out, the full size of the webview is unchangeable. In fact, webview.computeHorizontalScrollRange() + webview.getWidth() is what i want, but computeHorizontalScrollRange() is protected! On 10月22日, 下午2时28分, zhen guo mguoz...@gmail.com wrote: not clear, webView.getContentWidth()? On Wed, Oct 21, 2009 at 9:15 AM, ph wang phwang...@gmail.com wrote: I can get the visual area value of a webview'size by using webview.getHeight() and webview.getWidth(). But how can I get the real value of a webview'size ? Am I said clear ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AppWidgetProvider.onUpdate() -- setOnClickPendingIntent
One option is to leverage setData() when building the PendingIntent to include something unique about the button being pressed. j On Wed, Sep 30, 2009 at 2:45 PM, sdphil phil.pellouch...@gmail.com wrote: i have an app widget that has a couple of buttons on it, and in my onUpdate() call, I am hooking up the buttons to do something when you press them -- RemoteViews remoteViews = new RemoteViews(context.getPackageName (), R.layout.appwidget); remoteViews.setOnClickPendingIntent(R.id.Button1, button1PendingIntent); remoteViews.setOnClickPendingIntent(R.id.Button2, button2PendingIntent); The problem is that when I click on button2, it sends the button1 pending intent. i think that's because it's reusing the pending intent. http://groups.google.com/group/android-developers/browse_thread/thread/5605471d73a250ba If the creating application later re-retrieves the same kind of PendingIntent (same operation, same Intent action, data, categories, and components, and same flags), it will receive a PendingIntent representing the same token if that is still valid, and can thus call cancel() to remove it. So then the question is, how do I communicate which button was pressed? tia. -- Jeff Sharkey jshar...@android.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: Hi
Nope, APPWIDGET_PICK is the only way to bind widgets. You can insert custom widgets into that list using CUSTOM_INFO and CUSTOM_EXTRAS, but you can't change the layout of that dialog. Also, making a visual list of widgets may not work for widgets with a configuration step, if their initialLayout isn't descriptive. j On Tue, Oct 6, 2009 at 1:20 AM, Jackie onceamo...@gmail.com wrote: I am trying to create a Home application that contains AppWidgets. Can I make a own AppWidgets list layout that includes AppWidgetHostView without APPWIDGET_PICK intent? I mean I wanna make a visual AppWidget list. Actualy I made it, but i couldn't start AppWidget some like Music widget. I think it does not contain a intent. How can I get the AppWidgets intent ? -- Jeff Sharkey jshar...@android.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: Transfer Messages without Service Provider
Hi Gyan thanks for ur reply But wat i need means...How to transfer messages in real Time without service provider using GPS Co-ordination and frequency Channel using CDMA... On Fri, Oct 23, 2009 at 3:35 PM, Gyan gnanesh@gmail.com wrote: You can do it in the emulator though... U can link 2 emulators and implement a SMS reciever and achieve this. On Fri, Oct 23, 2009 at 3:03 PM, ragavendran s sraghav.ra...@gmail.comwrote: How to transfer Messages from Android phone to another android phone without Service Provider... Is this Possible or Notif Yes Means pls let me know the Concept... Thanks in Advance.. with regards, Raghav.S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: updatePeriodMillis not working for widget on 1.6
What is the actual value of updatePeriodMillis in the XML file? It's worth noting that the updatePeriodMillis approach uses AlarmManager.setInexactRepeating(), which can cause variability in update frequencies if bins your update with other alarms. j On Thu, Oct 22, 2009 at 12:10 PM, String sterling.ud...@googlemail.com wrote: I'm aware that the minimum updatePeriodMillis was increased to 30 minutes for Donut, but in my testing, I'm not seeing the APPWIDGET_UPDATE intent come through at all, even after well over 30 minutes has passed. Has anyone else had an issue with this, or any light to shed on the matter? I should mention that all of my testing so far is on 1.6 emulator images; I don't yet have Donut hardware to test on, as my update here in the UK hasn't come through yet. So it's possible this is an emulator issue, but again, any information on that front would be helpful. For reference, my manifest code looks like this: receiver android:name=.MyWidgetProvider android:label=@string/widget_name android:enabled=true meta-data android:name=android.appwidget.provider android:resource=@xml/mywidget / intent-filter action android:name=android.appwidget.action.APPWIDGET_UPDATE / /intent-filter /receiver It's working fine on 1.5 (and has been for months), both on emulator and handset. Thanks, String -- Jeff Sharkey jshar...@android.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: updatePeriodMillis not working for widget on 1.6
Is it possible to set the width of a spinner dropdown list in code? I have a spinner populated with integers, and it does not look good with the list expanding to full width. Can I set the width to wrap the content somehow? I tried this.. Spinner hSpinner = (Spinner) timerView.findViewById(R.id.timer_hour_spinner); ArrayListInteger hList = new ArrayListInteger(21); for (int i = 0; i = 20; i++) { hList.add(i); } ArrayAdapter hAdapter = new ArrayAdapter(RemindMe.this, android.R.layout.simple_spinner_item, hList); hAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); hSpinner.setAdapter(hAdapter); But still showing the full width. What will be the solution?-- Regards, Nisha --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Data Retrieval in Android
I am a bit confused. As i am new to database development in android, i need to know the following: 1. Where i will keep the SQLite database file (what path)? 2. I know that i will use import android.database.sqlite.SQLiteDatabase and import android.database.sqlite.SQLiteOpenHelper ? 3. Do i need to create a Constatns.java class as an interface for accessing the database? Can someone please explain me from the very scratch? I need a simple but detailed overview of SQLite database access in android. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Returning to Previous Activity from a network camera activity
Shobhit Kasliwal wrote: I am getting back to previous activity with finish() but I am not able to do any event on it. What does this mean? When I check the logcat it is saying No window to dispatch at Pointer 1 and 0. I trust that LogCat is providing much more information than just that sentence. In your second activity, just before you call finish(), add a Log statement. If you then give us the contents of your log starting with that log statement, along with a more detailed description of the behavior you're seeing, we might be able to help better. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.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] [Android-developers]arrays to be accessed by both JAVA n C thru JNI in an Android app
Hii All, I am facing a problem in my Android app which is calling native functions through JNI. So thought somebody in this group can help me to resolve this. The current code : 1. Create an array in JNI layer ( by NewIntArray()) which can be used by both Java C. 2. we can name that array as type ‘jintArray arrayX’. 3. We call GetIntArrayElements() on this ‘arrayX’ to get its elements i.e, int * elementsX. 4. This ‘elementsX’ would be used by a native call which will set it to some value.(project specific* : may not need interest for this issue) 5. We now get the updated value of ‘elementsX’. And copy it back to ‘arrayX’ using ReleaseIntArrayElements() . 6. We use ‘arrayX’ in bitmap/canvas class of Java layer to display on screen. The whole procedure is followed for (480x640) times. And so there is a redundant creation of the array for every frame display. Is there any way to avoid this creation of array for each frame. Any better solution to achieve the above? I am not getting a way out of this the performance of my app has gotten very low too:( Any JNI code snippets to modify steps (1 to 3 5) would be of great help to me. Appreciate your suggestions on this. thanks, Latha. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Have View and ListView Scroll as one
droid_does wrote: It's surprising that the easiest way to accomplish this effect is creating your own custom adapter. It does what I want in concept but is there any way to add complex layouts (LinearLayoutwidgetsRelativeLayoutwidgets/RelativeLayout/ LinearLayout or predefined XML views? Yes. For example using your demo: private View buildButton() { //your demo code //Button result=new Button(this); //result.setText(Hello, world!); //this just crashes, why? Button result = (Button)findViewById(R.id.mybutton); return result; } That snippet in isolation means nothing. For starters, my code has nothing named mybutton in it (IIRC), so I would not expect that to work. Any child adapters you add to MergeAdapter can be custom adapters using custom rows, and the views you add to MergeAdapter can be views you manually inflate from XML via getLayoutInflater().inflate(). Also, would your approach work for a ListActivity? Yes. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.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: Data Retrieval in Android
Where is this path: /data/data/your.package.here/databases? None of the books talk about where to keep the db file? Please guide.Thanks Do i have to create a databases folder just like we create raw for video and audio files? On Oct 23, 4:06 am, Mark Murphy mmur...@commonsware.com wrote: Maxood wrote: 1. Where i will keep the SQLite database file (what path)? By default, they will go in /data/data/your.package.here/databases 2. I know that i will use import android.database.sqlite.SQLiteDatabase and import android.database.sqlite.SQLiteOpenHelper ? U...that's not a question. 3. Do i need to create a Constatns.java class as an interface for accessing the database? U...that vaguely resembles one of my book examples, but that is for implementing a content provider, not for simple database access. Can someone please explain me from the very scratch? I need a simple but detailed overview of SQLite database access in android. http://developer.android.com/guide/topics/data/data-storage.html#dbhttp://sqlite.org and probably every Android book out there In a nutshell, you can use a SQLiteOpenHelper subclass to help manage your database schema, then ask your subclass to getWriteableDatabase(). That gives you a SQLiteDatabase object, which has methods for doing common database operations, either via raw SQL (e.g., execSQL()) or via more structured APIs (e.g., insert()). Queries give you a Cursor back, which you can either wrap in a CursorAdapter for a list or can manually iterate over to get results. Be sure to close() your Cursors and SQLiteDatabases when you are done with them. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010:http://bignerdranch.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: Data Retrieval in Android
Maxood wrote: 1. Where i will keep the SQLite database file (what path)? By default, they will go in /data/data/your.package.here/databases 2. I know that i will use import android.database.sqlite.SQLiteDatabase and import android.database.sqlite.SQLiteOpenHelper ? U...that's not a question. 3. Do i need to create a Constatns.java class as an interface for accessing the database? U...that vaguely resembles one of my book examples, but that is for implementing a content provider, not for simple database access. Can someone please explain me from the very scratch? I need a simple but detailed overview of SQLite database access in android. http://developer.android.com/guide/topics/data/data-storage.html#db http://sqlite.org and probably every Android book out there In a nutshell, you can use a SQLiteOpenHelper subclass to help manage your database schema, then ask your subclass to getWriteableDatabase(). That gives you a SQLiteDatabase object, which has methods for doing common database operations, either via raw SQL (e.g., execSQL()) or via more structured APIs (e.g., insert()). Queries give you a Cursor back, which you can either wrap in a CursorAdapter for a list or can manually iterate over to get results. Be sure to close() your Cursors and SQLiteDatabases when you are done with them. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.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] Transfer Messages without Service Provider
Hi Gyan thanks for ur reply But wat i need means...How to transfer messages in real Time without service provider using GPS Co-ordination and frequency Channel using CDMA... On Fri, Oct 23, 2009 at 3:35 PM, Gyan gnanesh@gmail.com wrote: You can do it in the emulator though... U can link 2 emulators and implement a SMS reciever and achieve this. On Fri, Oct 23, 2009 at 3:03 PM, ragavendran s sraghav.ra...@gmail.comwrote: How to transfer Messages from Android phone to another android phone without Service Provider... Is this Possible or Notif Yes Means pls let me know the Concept... Thanks in Advance.. with regards, Raghav.S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] GestureLibrary question/suggestion
Hello, I had my first dabble with the gesture library today. Two issues reared their heads: 1) if I have a view that I'm not interested in scrolling, I still can't have simple straight line gestures in both directions (orientation has to be horizontal or vertical). Is there some way of getting round this ? 2) Every developer defines their own gestures hard-coded to the application functionality. One image program might use left-stroke for 'Previous Image' and another for 'Scroll Left'. It would be better IMO to organize things like this: - applications publish *named actions* (e.g. in manifest) that gestures can be hooked to (Next Image, Add Contact etc) - there is a device-wide gesture library that the user can add *named gestures* to with Gesture Builder ( Straight Up, Cup etc) and link the gesture to whatever actions are available - in onGesturePerformed, apps get passed only a string Next Image or whatever and run the appropriate code Advantages: - users can define gestures they like, to do what they like, in whichever app they like. - the published actions could be linked centrally with other input forms e.g. accelerometer gestures, voice command, hard button presses OK, bit late maybe :-) Lee --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Data Retrieval in Android
Maxood wrote: Where is this path: /data/data/your.package.here/databases? On your emulator or device, though you can only browse to it on the emulator. And, of course, your.package.here is replaced by your own app's package name. None of the books talk about where to keep the db file? The db file is on the device or emulator. Bear in mind that you never really have to care where the actual database is stored on the device, and that the above path I cite may change in future Android releases. Just provide the name of the database (e.g., constants.db), and Android handles the location for you. Do i have to create a databases folder just like we create raw for video and audio files? You are confusing resources and databases. Resources are packaged as part of an application and do not change. Databases are not (generally) packaged as part of an application and (frequently) change. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Gracefully destroying Dialog box
Hi. I have an activity which pops up a Dialog box, to get some text input from the user. The problem arises when you switch orientation. The Dialog disappears, so I have added code to set and check flags in the savedInstanceState, meaning that the Dialog is displayed again in these circumstances. However, the dialog isn't being closed gracefully when the orientation is switched. I get the following error: 10-23 12:53:54.385: ERROR/WindowManager(2852): Activity com.bla.bla.Bla has leaked window com.android.internal.policy.impl.phonewindow$decorv...@435ceda0 that was originally added here 10-23 12:53:54.385: ERROR/WindowManager(2852): android.view.WindowLeaked: Activity com.bla.bla.Bla has leaked window com.android.internal.policy.impl.phonewindow$decorv...@435ceda0 that was originally added here I know when the window is going to be closed, but can't find a way of closing it manually. I open it with alert.show(); ...but there doesn't seem to be any corresponding alert.destroy() method or similar. Any ideas how I can manually close the dialog box without user input? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: -http-proxy for emulator on Android 1.6?
Hi again, is there anyone out there who at least has the same problem? Regards Marc Reichelt || http://www.marcreichelt.de/ On 22 Okt., 20:54, Marc Reichelt mcreich...@googlemail.com wrote: Hi there! I am developing applications for Android in a company where the Internet is accessable via a proxy server only. I found out that the emulator of the 1.5 R3 SDK works well with the option -http-proxy, but the emulator of the 1.6 R1 SDK does not. Can anyone confirm this behaviour? Is this a bug in the 1.6 R1 SDK? And if so, is there a chance this gets fixed in - let's say - 1.6 R2? Or am I just doing something wrong, though providing the same options for the 2 different emulator versions? Many thanks in advance regards Marc Reichelt || http://www.marcreichelt.de/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Activity launch timeout even with wakelock
Hierarchy viewer shows the text view. Also the data contains the html page. Here is the screenshot of hierarchy viewer: http://i1011.photobucket.com/albums/af233/kiranjulapalli/textview.png?t=1256301091 On Oct 22, 5:21 pm, Mark Murphy mmur...@commonsware.com wrote: Kiran wrote: I did that.. every statement is properly executed and see that bodyText.setText(dataText); is called and the value of dataText is the full html of the google.com OK, try using hierarchyviewer to confirm that your TextView is actually on screen, visible, etc. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.1 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Activity launch timeout even with wakelock
Kiran wrote: Hierarchy viewer shows the text view. Also the data contains the html page. Here is the screenshot of hierarchy viewer: http://i1011.photobucket.com/albums/af233/kiranjulapalli/textview.png?t=1256301091 Great! That means your background processing is working just fine. Now all you need to do is figure out why the text is not showing up, such as: -- The TextView is off-screen -- The TextView is hidden behind something else -- The TextView has black text on a black background -- The TextView has zero height or width -- etc. hierarchyviewer should be able to help with much of that. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] updatePeriodMillis not working for widget on 1.6
Jeff, That's good to know, thanks. After running some much longer test sessions (like overnight), that does appear to be the situation, that it's behaving like setInexactRepeating and the first event might not happen for a while. I have to say, this is likely to cause some unhappy users for various widgets. Especially with the minimum time being bumped up in Donut, there are probably widgets which used to update every 10 or 15 minutes, and which now may not get their first update for nearly an hour. I understand your reasons, but as so often happens, it's app developers who will get the brunt of the complaints. 2009/10/23 nisha.devit nisha.de...@gmail.com Is it possible to set the width of a spinner dropdown list in code? Please don't hijack my thread. Thanks. String --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: updatePeriodMillis not working for widget on 1.6
Sterling Udell wrote: I have to say, this is likely to cause some unhappy users for various widgets. Especially with the minimum time being bumped up in Donut, there are probably widgets which used to update every 10 or 15 minutes, and which now may not get their first update for nearly an hour. I understand your reasons, but as so often happens, it's app developers who will get the brunt of the complaints. Set your own alarm using AlarmManager to supplement or replace updatePeriodMillis in the next edition of your app. You don't need to use it; it is there mostly as a convenience AFAICT. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Data Retrieval in Android
It is important to note that you can't just package the database in your apk and start using it. You'll have to create it first (which creates an empty database at the path specified by Mark) and then manually perform the steps necessary to re-populate it. Based on a suggestion by Mark, I exported my database as a Raw string resource and executed those command on the database the first time my app is run. On Oct 23, 6:48 am, Mark Murphy mmur...@commonsware.com wrote: Maxood wrote: Where is this path: /data/data/your.package.here/databases? On your emulator or device, though you can only browse to it on the emulator. And, of course, your.package.here is replaced by your own app's package name. None of the books talk about where to keep the db file? The db file is on the device or emulator. Bear in mind that you never really have to care where the actual database is stored on the device, and that the above path I cite may change in future Android releases. Just provide the name of the database (e.g., constants.db), and Android handles the location for you. Do i have to create a databases folder just like we create raw for video and audio files? You are confusing resources and databases. Resources are packaged as part of an application and do not change. Databases are not (generally) packaged as part of an application and (frequently) change. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android 1.5 Programming Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: updatePeriodMillis not working for widget on 1.6
whd? On Fri, Oct 23, 2009 at 6:19 PM, Sterling Udell sterling.ud...@googlemail.com wrote: Jeff, That's good to know, thanks. After running some much longer test sessions (like overnight), that does appear to be the situation, that it's behaving like setInexactRepeating and the first event might not happen for a while. I have to say, this is likely to cause some unhappy users for various widgets. Especially with the minimum time being bumped up in Donut, there are probably widgets which used to update every 10 or 15 minutes, and which now may not get their first update for nearly an hour. I understand your reasons, but as so often happens, it's app developers who will get the brunt of the complaints. 2009/10/23 nisha.devit nisha.de...@gmail.com Is it possible to set the width of a spinner dropdown list in code? Please don't hijack my thread. Thanks. String -- Regards, Nisha --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Battery Usage, but no Use details listed
Seems like that should be a bug - when an app exits completely, shouldn't all resources be cleaned up? (Whether it exits on purpose, due to ANR/FC or due to something like task killer or the system prefs kill app..) (I'm still trying to track down my battery usage in a case where it just says 'cell radio' and 'phone idle' totalling about 95-98% but it still only lasts 4 hours or so. If it can leak resources like this, that might lead to an explanation.) On Fri, Oct 23, 2009 at 4:10 AM, CraigsRace craig...@gmail.com wrote: Hi Dianne, I did have the phone unplugged. However, I have now solved the problem (which turned out to be my fault *oops*). I wasn't unregistering the sensor service when the game quit. So, even though my game would be removed from memory, I'm guessing the sensor service was continuing to run. All fixed with the code: SensorManager sensorMgr = (SensorManager)this.parent.getSystemService (Context.SENSOR_SERVICE); sensorMgr.unregisterListener(...); Cheers. On Oct 23, 6:04 pm, Dianne Hackborn hack...@android.com wrote: The battery usage shows usage from when the device was last unplugged. When it is plugged in the stats are stopped, because you are now on power so nothing you can do is going to use battery. (And when you then next unplug, the stats are reset and start collecting again.) On Thu, Oct 22, 2009 at 9:28 PM, CraigsRace craig...@gmail.com wrote: An hour after my G1 phone was fully charged, the Battery Usage showed me that my game had used 20% of the battery usage. Except, I never ran my game (I had run the game before starting the charge). I checked TasKiller, and it didn't list my game as running (my game also doesn't run any services). When I clicked on the details of the battery usage for my game, it didn't list anything under the Use details section. Is it possible to use battery, but not have anything listed under the Use details section? Another user of my game also noticed this problem. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: updatePeriodMillis not working for widget on 1.6
On Oct 23, 1:54 pm, Mark Murphy mmur...@commonsware.com wrote: Set your own alarm using AlarmManager to supplement or replace updatePeriodMillis in the next edition of your app. You don't need to use it; it is there mostly as a convenience AFAICT. I'm already using alarms to drive my widget updates. Problem is, alarms are unreliable, especially with the proliferation of task killer apps which abuse the API (see http://groups.google.com/group/android-developers/browse_thread/thread/3f87972d1f99ee81). People have these running in the background, then I get complaints that my clock has stopped. So I've been using updatePeriodMillis as a backup, checking that my widget update alarm is still running every so often. My concern is also for other widget developers; this was not a well publicized change in Donut, and there's probably some head-scratching about a feature that used to work fine in Cupcake but doesn't now. Hopefully less after threads like this, though. String --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: updatePeriodMillis not working for widget on 1.6
String wrote: I'm already using alarms to drive my widget updates. Problem is, alarms are unreliable, especially with the proliferation of task killer apps which abuse the API (see http://groups.google.com/group/android-developers/browse_thread/thread/3f87972d1f99ee81). People have these running in the background, then I get complaints that my clock has stopped. So I've been using updatePeriodMillis as a backup, checking that my widget update alarm is still running every so often. It would appear that the app widget framework uses AlarmManager for updatePeriodMillis, based upon my interpretation of the AppWidgetService.java code. My concern is also for other widget developers; this was not a well publicized change in Donut, and there's probably some head-scratching about a feature that used to work fine in Cupcake but doesn't now. Hopefully less after threads like this, though. Indubitably! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: updatePeriodMillis not working for widget on 1.6
But presumably the alarm for updatePeriodMillis will be owned by a system process and will therefore be immune to the task killers. 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: how to capture browser activity or callback
Sorry for the late response. You can actually just set the activity with a scheme myapp:// and that schmee is uses as a url to call your activity myapp:///?token=1234 And then you can use onResume to parse out the token; URI result = getIntent.getData(); The scheme must be set in the mabifest file for that app On Sep 15, 10:52 am, Carmen Delessio carmendeles...@gmail.com wrote: I think I understand the scenario, I have an answer that works when accessing a web URL that returns a token via a WebView. You have an initial URL like:http://www.givemeatoken.com that returnshttp://www.givemeatoken.com?yourToken=12345 I handle this by: 1. creating a WebView 2. loading the urlhttp://www.givemeatoken.cominto the WebView 3. Setting the webView client to my own webview.setWebViewClient(new MyWebViewClient()); 4. Overriding the onPageStarted method in MyWebViewClient So MyWebViewClient looks like: private class MyWebViewClient extends WebViewClient { �...@override public void onPageStarted (WebView view, String url, Bitmap favicon){ if (url.startsWith(http://www.givemeatoken.com?yourToken=;){ // parse the URL to get the token } This gives me a chance to filter the incoming URL. I am not sure if there are other ways to do this. Carmen -- Carmenhttp://www.twitter.com/CarmenDelessiohttp://www.talkingandroid.com On Tue, Sep 15, 2009 at 10:35 AM, Smelly Eddie ollit...@gmail.com wrote: I hate to bump, but this got covered yesterday by 20+ posts fromm the same user at 4:18. Anyone have experiencing using schemes and callback uris? Regards, Eddie On Sep 14, 3:52 pm, Smelly Eddie ollit...@gmail.com wrote: My activity calls a browser activity where the users submits their info to retrieve a PIN. That PIN is then sent as a parameter to a url specified in the request. I tried adding aschemeto my activity -- data android:scheme=myscheme android:pathPrefix=myscheme android:host=com.edwardawebb.myapp.class / -- And setting thecallbackurl to myscheme://?reponseParameter=868668687 I want the method below to recieve thecallback, but it gets nothing -- public class PinReceiver extends BroadcastReceiver{ // retrive PIN after user links withwebsite thorugh browser @Override public void onReceive(Context context, Intent intent){ // Send a text notification to the screen. NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); } } -- What Happens; -The browser launches (first page loads successfully) -User enters info -But the browser just says the webpage myscheme://?reponseParameter=868668687 is not available How do I get the browser to recognize myscheme:// as an internalscheme? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: updatePeriodMillis not working for widget on 1.6
2009/10/23 Tom Gibara m...@tomgibara.com wrote: But presumably the alarm for updatePeriodMillis will be owned by a system process and will therefore be immune to the task killers. In my experience, that's exactly right, hence its usefulness as a backup for my own alarm. String -- Sterling Udell Author: - Beginning Google Maps Mashups, http://apress.com/book/view/9781430216209 - Pro Web Gadgets, http://apress.com/book/view/1430225513 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: updatePeriodMillis not working for widget on 1.6
Sterling Udell wrote: 2009/10/23 Tom Gibara m...@tomgibara.com wrote: But presumably the alarm for updatePeriodMillis will be owned by a system process and will therefore be immune to the task killers. In my experience, that's exactly right, hence its usefulness as a backup for my own alarm. Ah. Good point. Clearly, therefore, we need to create an app widget that is a task killer killer... ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Does Android Support Video Rotation?
Is there any way we can rotate a video in Android (specially in Java layer) as it supports ino BREW or WM? Also, how does the orientation change (portrait/landscape) is different than the video rotation? Regards, -Arun --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to turn off the screen display?
Hi All, I have a requirement to turn the screen display on and off from a Android Service. I should have a function SwitchScreenDisplay (ON/OFF), to ON or OFF the display. I searched through the SDK and found a few APIs and settings. One method I found is boolean err = android.provider.Settings.Secure.putInt(myThis.getContentResolver(), Settings.System.SCREEN_OFF_TIMEOUT, 1); But it gave the following security permission exception [03-14 21:24:41.575: ERROR/DatabaseUtils(1066): java.lang.SecurityException: Permission denial: writing to secure settings requires android.permission.WRITE_SECURE_SETTINGS] even though I had added the following statement in AndroidMenifestFile.xml uses-permission android:name=android.permission.WRITE_SECURE_SETTINGS/uses-permission So my question is: - Was the above method is the right way to SWITCH OFF the screen - How does the LONG END KEY press, switches/powers off the display? Which API it calls? - How to SWITCH on? Is it using the PowerManager wakelock? I appreciate and thankful for your time. Regards, -Arun --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: 1.6: GPS location provider stop unexpectedly (exceeded MIN_FIX_COUNT), bouncing back and forth
(Refers to the logs) This occurs every 3s, although minTime is much higher, just as you've found. I will venture to say that this is harder on the battery than to just let GPS stand. BTW, resting a location provider this way is also mis-spec'ed. If an app registers multiple listeners for a location provider with different minTime intervals - which value should be used to control the location provider? It certainly isn't in line with 1.5 behavior, or with anything I've seen on any device. I suppose I can't be sold on this being a feature, not a bug. On Oct 22, 11:40 pm, Lance Nanek lna...@gmail.com wrote: Is this behavior hurting an app you use/wrote in some way? It seems within spec. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Returning to Previous Activity from a network camera activity
Thanks for your help. I got the solution for this problem. I was running 2 threads in Parallel one in the first activity and second in the second activity and when I was finishing the second activity the Threads causing a deadlock. Thanks Shobhit On Fri, Oct 23, 2009 at 5:52 AM, Mark Murphy mmur...@commonsware.comwrote: Shobhit Kasliwal wrote: I am getting back to previous activity with finish() but I am not able to do any event on it. What does this mean? When I check the logcat it is saying No window to dispatch at Pointer 1 and 0. I trust that LogCat is providing much more information than just that sentence. In your second activity, just before you call finish(), add a Log statement. If you then give us the contents of your log starting with that log statement, along with a more detailed description of the behavior you're seeing, we might be able to help better. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com -- Shobhit Kasliwal Application Developer Intern Liventus Designs 3400 Dundee Rd Northbrook IL 60062 skasli...@liventus.com office: 847-291-1395 ext. 192 Cell: (309) 826 4709 Pablo Picassohttp://www.brainyquote.com/quotes/authors/p/pablo_picasso.html - Computers are useless. They can only give you answers. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SimpleCursorAdapter.bindView() and Row Views
This has actually gotten worse. When I finish the app by pressing the back button, then re-launch the app, I am now also getting row views for position 0 from the previous run of the app. So now I have 3 row views floating around for position 0. Am I doing this all wrong, or what? The key part of this is that when a button is clicked I can easily access the correct row view that contains the button, but I have the problem when I then try to modify a different row view. In my particular case, the problem is only when that other row view is for position 0. On Oct 22, 7:56 pm, Nmix nepean...@gmail.com wrote: I have a problem withbindView() that has me puzzled. I am using it to customize each row, including setting icons, coloring the background and setting up listeners for buttons. It mostly works as expected, but not quite. When I fill the ListView with SimpleCursorAdapter, I get multiple calls tobindView() for position 0, but only 1 call for the other rows. The problem is that when all is said and done, I have 2 rows (LinearLayout) created for position 0. Here is a sample log extract: 10-22 23:25:02.834: DEBUG/PAproto(1042): LBV: pos:0 icon:1 view:android.widget.linearlay...@437e13c0 10-22 23:25:02.834: DEBUG/PAproto(1042): LBV: pos:0 icon:1 view:android.widget.linearlay...@437e13c0 10-22 23:25:02.844: DEBUG/PAproto(1042): LBV: pos:0 icon:1 view:android.widget.linearlay...@437e13c0 10-22 23:25:02.853: DEBUG/PAproto(1042): LBV: pos:0 icon:1 view:android.widget.linearlay...@437e13c0 10-22 23:25:02.864: DEBUG/PAproto(1042): LBV: pos:0 icon:1 view:android.widget.linearlay...@437e13c0 10-22 23:25:02.934: DEBUG/PAproto(1042): LBV: pos:0 icon:1 view:android.widget.linearlay...@437e13c0 10-22 23:25:02.997: DEBUG/PAproto(1042): LBV: pos:1 icon:2 view:android.widget.linearlay...@437e4810 10-22 23:25:03.024: DEBUG/PAproto(1042): LBV: pos:2 icon:3 view:android.widget.linearlay...@437e67a8 10-22 23:25:03.054: DEBUG/PAproto(1042): LBV: pos:3 icon:4 view:android.widget.linearlay...@437e8700 10-22 23:25:03.093: DEBUG/PAproto(1042): LBV: pos:4 icon:5 view:android.widget.linearlay...@437ea660 10-22 23:25:03.234: DEBUG/PAproto(1042): LBV: pos:0 icon:1 view:android.widget.linearlay...@437ecf40 10-22 23:25:03.243: DEBUG/PAproto(1042): LBV: pos:0 icon:1 view:android.widget.linearlay...@437ecf40 10-22 23:25:03.243: DEBUG/PAproto(1042): LBV: pos:0 icon:1 view:android.widget.linearlay...@437ecf40 10-22 23:25:03.254: DEBUG/PAproto(1042): LBV: pos:0 icon:1 view:android.widget.linearlay...@437ecf40 10-22 23:25:03.264: DEBUG/PAproto(1042): LBV: pos:0 icon:1 view:android.widget.linearlay...@437ecf40 I use a view holder class to hold the view, position and other data so that when a button is clicked, I can retrieve the holder with view.getParent.getTag(). This all works fine. The problem is that there are two views for position 0, but it's the first one in the above logcat that seems to be displayed. My code which acts on the rows when a button is clicked (especially setting background color) does not reliably hit the position 0 row that is actually displayed. I can see what's happening but I am at a loss about what to do about it. Why are two view created for position 0? Is it something that I can control? How? If not, how should I deal with it so that the results when I modify the views are predictable? 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] White screen in my OpenGL application
Hi I've just dusted off an application I did for Android half a year ago. I upgraded to the latest SDK and Eclipse ADT. After some struggeling I get the application to run again. When I debug it I can see that all the right code are executed the right way. The application shows a OpenGL surface and animates stuff on it. It used to work perfectly (I even have it running on my HTC Magic device), but in the new emulator the screen is just white?!? Any explanation?!? Regards, Per Steffensen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Is there a description of commands for the command line interface
I haven't been able to find a description of the commands available when I terminal to my android phone. Can anyone point me to it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: White screen in my OpenGL application
I am assuming your textures are not power of 2 and square. On Oct 23, 7:43 am, Steff st...@designware.dk wrote: Hi I've just dusted off an application I did for Android half a year ago. I upgraded to the latest SDK and Eclipse ADT. After some struggeling I get the application to run again. When I debug it I can see that all the right code are executed the right way. The application shows a OpenGL surface and animates stuff on it. It used to work perfectly (I even have it running on my HTC Magic device), but in the new emulator the screen is just white?!? Any explanation?!? Regards, Per Steffensen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 show a cursor when user tap a view
Hi, How can I show a cursor when user tap on a view. Cheers. Long --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 get a segmented bar just like iphone in android
Hello, Can anyone please help me to know how can we get the segmented bar in android just like we have in iphone? Thanks. Regards, Purvi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] htc hero developing
i'm thinking to start developing in HTC hero. I want to know if i will have any problem because this phone is using SENSE UI interface (an interface developed by HTC). Any suggestion? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Does Android Support Video Rotation?
Arun, Yes.. Hint its not android.graphics.camera and the Matrix classes. On Oct 23, 8:44 am, Arun Tripathy arun.tripa...@gmail.com wrote: Is there any way we can rotate a video in Android (specially in Java layer) as it supports ino BREW or WM? Also, how does the orientation change (portrait/landscape) is different than the video rotation? Regards, -Arun --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Ad test problem in app with AdMob
Erick, Feel free to come on over to the admob-publisher-discuss group at http://groups.google.com/group/admob-publisher-discuss for any AdMob related questions you may have. We monitor that group a little more closely and will be able to help you there. I see a couple of other things you could change in your layout file, all of the admob attributes for setting things such as text color or background color for the ad are preceded by an admob:. For example: com.admob.android.ads.AdView android:layout_width=320px android:layout_gravity=center_horizontal android:layout_height=wrap_content admob:backgroundColor=#FF admob:primaryTextColor=#000 admob:testing=true / Mike -- AdMob On Oct 22, 9:17 am, erick nicolas ericknico...@gmail.com wrote: I solve it! The problem wan in AndroidManifest.xml in line Code : meta-data android:value=a14adf472974adb android:name=Test / Test is my AdMob campain name and here is the attribute name from publisher id. Here is the correct line meta-data android:value=a14adf472974adb android:name=ADMOB_PUBLISHER_ID / Thnkx On Oct 22, 12:32 am, Wayne Wenthin wa...@fuligin.com wrote: The first two lines of the Logcat output pretty much sum it up:10-21 17:57:25.064: INFO/AdMob SDK(722): The user ID is null 10-21 17:57:25.124: DEBUG/AdMob SDK(722): Publisher ID read from AndroidManifest.xml is null The user ID is null. I'm assuming that it must be put in the AndroidManifest.xml based on the second line. On Wed, Oct 21, 2009 at 11:03 AM, erick nicolas ericknico...@gmail.comwrote: Hi, I've got a problem with my Android app. It doesn't show test ad and I don't understand why. Here is my java code: package org.ifies.android; import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.widget.TableLayout; import android.widget.TableRow; import android.widget.TextView; import com.admob.android.ads.AdManager; import com.admob.android.ads.AdView; public class AdmobExample extends Activity{ private TextView example_message; private AdView example_adview; �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setContentView(R.layout.main); example_adview = (AdView) findViewById(R.id.ad); example_adview.setVisibility(AdView.VISIBLE); example_message = (TextView) findViewById(R.id.example_message); example_message.setVisibility(TextView.VISIBLE); // example_message.setText(This is an example of AdMob for Android); } } Here my xml layout LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:app=http://schemas.android.com/apk/res/org.ifies.android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:layout_gravity=bottom TextView android:id=@+id/example_message android:layout_width=wrap_content android:layout_height=wrap_content android:text=TextView android:layout_weight=1 / com.admob.android.ads.AdView android:id=@+id/ad android:visibility=gone android:layout_width=fill_parent android:layout_height=wrap_content android:layout_alignParentBottom=true app:backgroundColor=#FF app:textColor=#00 app:keywords=Android game app:testing=true / /LinearLayout Here is the AndroidManifest.xml ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=org.ifies.android android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.AdmobExample android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity meta-data android:value=a14adf472974adb android:name=Test / /application uses-sdk android:minSdkVersion=2 / uses-permission android:name=android.permission.INTERNET / /manifest And here is the logcat when app starts 10-21 17:57:25.064: INFO/AdMob SDK(722): The user ID is null 10-21 17:57:25.124: DEBUG/AdMob SDK(722): Publisher ID read from AndroidManifest.xml is null 10-21 17:57:25.144: ERROR/AdMob SDK(722): Could not read ADMOB_PUBLISHER_ID meta-data from AndroidManifest.xml. 10-21 17:57:25.144: ERROR/AdMob SDK(722): java.lang.NullPointerException 10-21 17:57:25.144: ERROR/AdMob SDK(722): at com.admob.android.ads.AdManager.getPublisherId(AdManager.java:157) 10-21 17:57:25.144: ERROR/AdMob SDK(722):
[android-developers] Animating ViewStub
Hi, I am trying to animate a ViewStub -- without success. My code: stub.setVisibility(View.VISIBLE); // inflate the stub Animation anim = AnimationUtils.makeInAnimation(this, true); stub.startAnimation(anim); No animation is played, the ViewStub simply appears. How come? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Find MAC address
Anyone have a clue how to implement this? This looks like a good way to get a unique ID for any device that can talk to the net. On Thu, Oct 22, 2009 at 7:31 PM, String sterling.ud...@googlemail.comwrote: On Oct 22, 8:49 pm, Ronny mayanka...@gmail.com wrote: I am eager to know if it is possible to get the device MAC address. How about http://developer.android.com/reference/android/net/wifi/WifiInfo.html#getMacAddress() I haven't tried it, and it's not documented, but it sure looks promising. String -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.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] WidgetLayout inside PreferenceActivity displays new then old bitmap...
Hi, I have a PreferenceActivity designed with a .xml file Inside the .xml, I have: ... Preference android:key=picture android:title=Picture android:widgetLayout=@layout/picture / ... The widgetLayout xml file is a linearlayout with a ImageView inside. I have set a default drawable src attribute to the ImageView: android:src=@drawable/test When launching, the PreferenceActivity is displayed. The test drawable as well. Everything is ok. When I click on the Preference, I have specify to modify the bitmap inside this widgetLayout as following: ImageView img = (ImageView) findViewById(R.id.picture_img); img.setImageBitmap(null); System.gc(); img.setImageBitmap(newBitmap); The newBitmap is then well displayed inside the widgetLayout. I scroll the Preference list (and hide the line that own the widgetLayout) and then scrolling back to make the line reappear. Then, the old bitmap is displayed (@drawable/test) - KO, it should still display the new bitmap. I tried to add: getListView().destroyDrawingCache(); img.invalidate(); But nothing changed... Can someone help me please ? Thanks, Seb. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Question on NotificationManager, setLatestEventInfo() and custom view.
Hello, I am creating a notification that displayes the progress of downloading files. Because I use a custom layout to be displyed in the expanded view. This custom view has a progressbar. I first make a call to the notification manager that will show the progress bar as being indeterminate and display a text 2 / 10 for instance. Then when the downloading starts i only want to update the prgress bar. code private void showNotification(String tickertxt, String displayTxt , int total , int progress , Boolean indeterminate) { NotificationManager notifMgr = (NotificationManager) this.getSystemService(Service.NOTIFICATION_SERVICE); PendingIntent contentIntent = PendingIntent.getActivity(this, 0, new Intent(this, MainMenu.class), 0); // construct the Notification object. Notification notif = new Notification(); notif.flags = Notification.FLAG_ONGOING_EVENT | Notification.FLAG_ONLY_ALERT_ONCE; notif.tickerText = tickertxt; notif.icon = R.drawable.icon; RemoteViews nmView = new RemoteViews( getPackageName(), R.layout.custom_notification_layout); nmView.setProgressBar(R.id.progressbar, total, progress, indeterminate); nmView.setTextViewText(R.id.TextView01, displayTxt); notif.contentView = nmView; notif.contentIntent = contentIntent; notifMgr.notify(R.layout.custom_notification_layout, notif); } /code So the first call i make when downloads are being prepared is: showNotification(download... , n / n files , 1 , 1 , false) then when downloading starts: showNotification(download... , n / n files , class.getCurrent() , class.getTotal() , true) What is bothering me is that I call the second call quit a lot and thus in the showNotification() a lot of objects are instantiated. In the docs it talks about setLatestEventInfo() but this (afaik) cannot be applied when using a custom view. Is this the way it is or is there a better technique. Jiri --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Sqlite3 concurrency
Hi, I have implemented a slow search provider that queries my database. Now when at the same time I do another read access my applications stalls (ANR). It's both read and I don't see why there should be a lock. What are my options to get a little more concurrency here? Cheers, Mariano Here are the two threads that block each other. One: main prio=5 tid=3 WAIT | group=main sCount=1 dsCount=0 s=N obj=0x4001db08 self=0xbc48 | sysTid=2680 nice=0 sched=0/0 handle=-1343996920 at java.lang.Object.wait(Native Method) - waiting on 0x271f30 (a java.lang.VMThread) at java.lang.Thread.parkFor(Thread.java:1499) at java.lang.LangAccessImpl.parkFor(LangAccessImpl.java:48) at sun.misc.Unsafe.park(Unsafe.java:319) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:117) at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:680) at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:710) at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1040) at java.util.concurrent.locks.ReentrantLock$FairSync.lock(ReentrantLock.java:193) at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:252) at android.database.sqlite.SQLiteDatabase.lock(SQLiteDatabase.java:292) at android.database.sqlite.SQLiteDatabase.addSQLiteClosable(SQLiteDatabase.java:221) at android.database.sqlite.SQLiteProgram.i nit(SQLiteProgram.java:57) at android.database.sqlite.SQLiteQuery.init(SQLiteQuery.java:49) at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:49) at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1118) at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1092) at com.newsrob.DB.findCursorByQueryString(DB.java:419) at com.newsrob.EntryManager.getArticleAsCursor(EntryManager.java:1010) at com.newsrob.activities.ShowArticleActivity.onCreate(ShowArticleActivity.java:81) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417) at android.app.ActivityThread.access$2100(ActivityThread.java:116) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4203) 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:791) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) at dalvik.system.NativeStart.main(Native Method) Two: Binder Thread #4 prio=5 tid=17 NATIVE | group=main sCount=1 dsCount=0 s=N obj=0x432685c8 self=0x231ee8 | sysTid=2690 nice=10 sched=0/0 handle=2315224 at android.database.sqlite.SQLiteQuery.native_fill_window(Native Method) at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:75) at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:288) at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:269) at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:171) at android.database.AbstractCursor.moveToNext(AbstractCursor.java:256) at com.newsrob.search.SearchProvider.getSuggestions(SearchProvider.java:80) at com.newsrob.search.SearchProvider.query(SearchProvider.java:68) at android.content.ContentProvider$Transport.bulkQuery(ContentProvider.java:116) at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:97) at android.os.Binder.execTransact(Binder.java:287) at dalvik.system.NativeStart.run(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: Data Retrieval in Android
My requirement is simple , i just have to fetch or retrieve the data from a single column of SQLite database file. Can you please tell me what methods of android.database.sqlite.SQLiteDatabase, android.database.sqlite.SQLiteOpenHelper do i have to use. Can you provide me with a sample code for fetching data from table. Or if you can come on Skype, please let me know. Thank you. On Oct 23, 5:55 am, junker37 junke...@gmail.com wrote: It is important to note that you can't just package the database in your apk and start using it. You'll have to create it first (which creates an empty database at the path specified by Mark) and then manually perform the steps necessary to re-populate it. Based on a suggestion by Mark, I exported my database as a Raw string resource and executed those command on the database the first time my app is run. On Oct 23, 6:48 am, Mark Murphy mmur...@commonsware.com wrote: Maxood wrote: Where is this path: /data/data/your.package.here/databases? On your emulator or device, though you can only browse to it on the emulator. And, of course, your.package.here is replaced by your own app's package name. None of the books talk about where to keep the db file? The db file is on the device or emulator. Bear in mind that you never really have to care where the actual database is stored on the device, and that the above path I cite may change in future Android releases. Just provide the name of the database (e.g., constants.db), and Android handles the location for you. Do i have to create a databases folder just like we create raw for video and audio files? You are confusing resources and databases. Resources are packaged as part of an application and do not change. Databases are not (generally) packaged as part of an application and (frequently) change. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android 1.5 Programming Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: White screen in my OpenGL application
Did it used to work on the 1.5 emulator? Keep in mind that the emulator doesn't have the OpenGL hardware of an HTC handset, so it's not going to behave the same. Having said that, my OpenGL stuff runs better on the 1.6 emulator than it did on 1.5. String On Oct 23, 3:43 pm, Steff st...@designware.dk wrote: Hi I've just dusted off an application I did for Android half a year ago. I upgraded to the latest SDK and Eclipse ADT. After some struggeling I get the application to run again. When I debug it I can see that all the right code are executed the right way. The application shows a OpenGL surface and animates stuff on it. It used to work perfectly (I even have it running on my HTC Magic device), but in the new emulator the screen is just white?!? Any explanation?!? Regards, Per Steffensen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 a segmented bar just like iphone in android
On Oct 23, 4:16 pm, purvi purvi.n...@gmail.com wrote: Can anyone please help me to know how can we get the segmented bar in android just like we have in iphone? My suggestion: if you want that, get an iPhone. Android is a completely different OS, with a completely different UI. Don't try to make it into something it's not. String --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Data Retrieval in Android
Also do i have to use the android.database.sqlite.SQLiteQueryBuilder for building and running the SELECT query? And also what do i have to do with the database file? On Oct 23, 9:16 am, Maxood maqs...@salsoft.net wrote: My requirement is simple , i just have to fetch or retrieve the data from a single column of SQLite database file. Can you please tell me what methods of android.database.sqlite.SQLiteDatabase, android.database.sqlite.SQLiteOpenHelper do i have to use. Can you provide me with a sample code for fetching data from table. Or if you can come on Skype, please let me know. Thank you. On Oct 23, 5:55 am, junker37 junke...@gmail.com wrote: It is important to note that you can't just package the database in your apk and start using it. You'll have to create it first (which creates an empty database at the path specified by Mark) and then manually perform the steps necessary to re-populate it. Based on a suggestion by Mark, I exported my database as a Raw string resource and executed those command on the database the first time my app is run. On Oct 23, 6:48 am, Mark Murphy mmur...@commonsware.com wrote: Maxood wrote: Where is this path: /data/data/your.package.here/databases? On your emulator or device, though you can only browse to it on the emulator. And, of course, your.package.here is replaced by your own app's package name. None of the books talk about where to keep the db file? The db file is on the device or emulator. Bear in mind that you never really have to care where the actual database is stored on the device, and that the above path I cite may change in future Android releases. Just provide the name of the database (e.g., constants.db), and Android handles the location for you. Do i have to create a databases folder just like we create raw for video and audio files? You are confusing resources and databases. Resources are packaged as part of an application and do not change. Databases are not (generally) packaged as part of an application and (frequently) change. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android 1.5 Programming Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: White screen in my OpenGL application
My app used to work in the emulation of the SDK I used to use. It was downloaded almost a year ago. I believe it was 1.2 or something. So the app works in 1.2 emulator AND on my 1.5 firmware HTC magic. But it does not work on the 1.5 emulator of the 1.6 SDK downloaded today. I dont know if my textures are a power of 2 and square?!? I danish we have two different words for four-gons. One when all four sides have the same length, and another when they have have the same length two and two. I am not totally sure what square means in english? Does it mean a four-gon where all four sides have the same length? If yes, I dont think my textures are square, but I will find out. If no, then how can textures not be square? If you by are power of 2 mean that the sides must have length equal to a power of 2, I am pretty sure that they do not. But why should that be a problem? It wasn't before! Regards, Per Steffensen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Animating ViewStub
On Oct 23, 5:55 pm, Matthias m.kaepp...@googlemail.com wrote: Hi, I am trying to animate a ViewStub -- without success. My code: stub.setVisibility(View.VISIBLE); // inflate the stub Animation anim = AnimationUtils.makeInAnimation(this, true); just a guess: what is duration of such Animation? maybe it set by default to 0? if so: anim.setDuration(1000) but as i said, i cannot see AnimationUtils.makeInAnimation() sources right now so its just a guess stub.startAnimation(anim); No animation is played, the ViewStub simply appears. How come? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: database question
Can someone help me? On Oct 20, 5:36 pm, Wouter wouterg...@gmail.com wrote: Hey, I am working on a project for a belgium Tv Guide. Now I download a database (.db) file from a server to the sdcard to work with. In this database are 2 tabels, tvchannels and tvprograms. Now I can do several updates to the tvchannels table and i want to make a backup of this table to a lokal database file. How can i do that? I want to do this because I have to download a new database file every daye from the server and the channels that are choses are saved in the tvchannels database. I want to backup this database table and when the new database file (tvgids.db) is downloaded I want to replace the tvchannels database (from downloaded database file) with the backup from tvchannels.. Anyone has an idea? Thank you, Wouter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Data Retrieval in Android
Maxood wrote: Also do i have to use the android.database.sqlite.SQLiteQueryBuilder for building and running the SELECT query? No. It is there as a convenience. I only use it for creating SQLite-backed content providers. Can you provide me with a sample code for fetching data from table. Unfortunately, the ApiDemos only have SQLite as used by a content provider. If you want sample uses of SQLiteOpenHelper or SQLiteDatabase, you can find 100+ up on Google Code Search: http://www.google.com/codesearch Add package:android to your list of search terms, and you'll restrict your search to only Android-related code. There is also an example of non-ContentProvider SQLite usage in the source code to _Android Programming Tutorials_: http://commonsware.com/AndTutorials (see Tutorial 12) If those examples are insufficient, I recommend you pick up a book that covers this topic. Here are four: _The Busy Coder's Guide to Android Development_, Version 2.1, pages 271-282 _Android Programming Tutorials_, Version 1.0, pages 93-108 _Professional Android Application Development_, pages 175-188 _Android Wireless Application Development_, pages 257-275 There probably are other books that cover this as well, but these were the ones that either I wrote or had their tables of contents up on Amazon for easy searching. If you want to get deeper into SQLite beyond Android, I recommend _The Definitive Guide to SQLite_. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: White screen in my OpenGL application
Hi I tried to remove all usage of texture in the app. That did not help. Now I have narrowed it down: My application contains this line mGLSurfaceView.getHolder().setFormat (PixelFormat.RGBA_);. If I comment out that line, then the OpenGL rendering works again. But I need that line, because else something else does not work. Why will the emulator not work with PixelFormat.RGBA_? Regards, Per Steffensen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: database question
Wouter wrote: Now I can do several updates to the tvchannels table and i want to make a backup of this table to a lokal database file. How can i do that? Copy the database file to a backup file. Either you already know your path to your database, or you can use getDatabasePath() to find that path. To be safe, I recommend you have all SQLite* objects and Cursors on that database closed before making the file copy. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.6 Programming 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] Upgrade issue with SD card write permission
If you have an app that targets 1.6 ( using targetSdkVersion=4 ) and that is still backward compatible with 1.5 (using minSdkVersion=3) , and it has the new WRITE_EXTERNAL_STORAGE permission because it writes to the SD card, there is a problem when the OS is upgraded to 1.6. If a user has Android 1.5 with the app installed, and then gets Android 1.6, the permission is not granted and writing fails. The issue can be solved if the user re-installs the app. I have not experienced the issue myself, but a few users have reported it. Can anybody else confirm this. There is not much that can be done about it, but it would need to be adressed if there is another OS upgrade. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem to show unicode strings in TextView
The Html.from(utfStringInDecimalForm).toString() works! Thank you so much Ludovic Perrier!! I have sent an email to Struts' mailing list, hoping they could correct this in the first place. QM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Sqlite3 concurrency
Hi Mariano, I had the same problems with my app. After reading a little bit on the SQLite Website my understanding was that locking is done with process (thread) locks. So there are many reader treads possible, but only one writer thread. For this reason your SQLiteDatabase object needs to be a singleton. I think otherwise the database file will be opened several times. In my app I get the singleton with: mDatabase = dbOpenerHelper.getWritableDatabase(); This is only called once and every call to the Database uses the same mDatabase object, Every time I read in the database I do not open a transaction, only a cursor, like this: public static PlaylistItem queryCurrentTrackInDB(SQLiteDatabase db, String playlistID) { PlaylistItem ret = null; String whereClause = PlaylistItem.COL_PLAYLIST_ID + =?; String[] whereValues = new String[] { playlistID }; String orderClause = PlaylistItem.COL_CURRENT_TRACK + DESC, + PlaylistItem.COL_NUMBER; Cursor cur = db.query(IConstants.PLAYLIST_TABLE, null, whereClause, whereValues, null, null, orderClause, 2); if (cur.moveToFirst()) { ret = new PlaylistItem(cur); } cur.close(); return ret; } Every time I write to the database I use a transaction: public static boolean deletePlaylistByID(SQLiteDatabase db, String playlistID) { db.beginTransaction(); int r = 0; try { String whereClause = PlaylistItem.COL_PLAYLIST_ID + =?; String[] whereValues = new String[] { playlistID}; r = db.delete(IConstants.PLAYLIST_TABLE, whereClause, whereValues); db.setTransactionSuccessful(); } finally { db.endTransaction(); } return r 0; } I have a lot of concurrency in my app and after changing it the described way it works quite well. Mirko On 23 Okt., 18:14, Mariano Kamp mariano.k...@gmail.com wrote: Hi, I have implemented a slow search provider that queries my database. Now when at the same time I do another read access my applications stalls (ANR). It's both read and I don't see why there should be a lock. What are my options to get a little more concurrency here? Cheers, Mariano Here are the two threads that block each other. One: main prio=5 tid=3 WAIT | group=main sCount=1 dsCount=0 s=N obj=0x4001db08 self=0xbc48 | sysTid=2680 nice=0 sched=0/0 handle=-1343996920 at java.lang.Object.wait(Native Method) - waiting on 0x271f30 (a java.lang.VMThread) at java.lang.Thread.parkFor(Thread.java:1499) at java.lang.LangAccessImpl.parkFor(LangAccessImpl.java:48) at sun.misc.Unsafe.park(Unsafe.java:319) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:117) at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:680) at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:710) at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1040) at java.util.concurrent.locks.ReentrantLock$FairSync.lock(ReentrantLock.java:193) at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:252) at android.database.sqlite.SQLiteDatabase.lock(SQLiteDatabase.java:292) at android.database.sqlite.SQLiteDatabase.addSQLiteClosable(SQLiteDatabase.java:221) at android.database.sqlite.SQLiteProgram.i nit(SQLiteProgram.java:57) at android.database.sqlite.SQLiteQuery.init(SQLiteQuery.java:49) at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:49) at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1118) at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1092) at com.newsrob.DB.findCursorByQueryString(DB.java:419) at com.newsrob.EntryManager.getArticleAsCursor(EntryManager.java:1010) at com.newsrob.activities.ShowArticleActivity.onCreate(ShowArticleActivity.java:81) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417) at android.app.ActivityThread.access$2100(ActivityThread.java:116) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4203) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at
[android-developers] Re: database question
Hey Mark, Thanks for the answer. So how can i backup that database file? I now have a file tvgids.db on my sdcard (so path is /sdcard/tvgids.db) How can I make a copy of that? Wouter On 23 okt, 19:05, Mark Murphy mmur...@commonsware.com wrote: Wouter wrote: Now I can do several updates to the tvchannels table and i want to make a backup of this table to a lokal database file. How can i do that? Copy the database file to a backup file. Either you already know your path to your database, or you can use getDatabasePath() to find that path. To be safe, I recommend you have all SQLite* objects and Cursors on that database closed before making the file copy. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android 1.6 Programming 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] Android Market Down? - Unable to see my Published Apps
When i log onto the publisher section of Android I get error; http://market.android.com/publish/Home Failed to load application list. Try again later. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: WebView + Cookie Problem
i use this mechanism and it works for me. do you log out what's going on in this section and see if anything untoward is happening? I have a server that sends my android app a session cookie used for authenticated communication. I am trying to load a WebView with a URL pointing to that same server and I'm trying to pass in the session cookie for authentication. I am observing that it works intermittently but I have no idea why. Below is the code that I'm using to do this. Any help will be greatly appreciated. String myUrl = http://mydomain.com/;; CookieSyncManager.createInstance(this); CookieManager cookieManager = CookieManager.getInstance(); Cookie sessionCookie = getCookie(); if(sessionCookie != null){ String cookieString = sessionCookie.getName() +=+sessionCookie.getValue()+; domain=+sessionCookie.getDomain(); cookieManager.setCookie(myUrl, cookieString); CookieSyncManager.getInstance().sync(); } WebView webView = (WebView) findViewById(R.id.webview); webView.getSettings().setBuiltInZoomControls(true); webView.getSettings().setJavaScriptEnabled(true); webView.setWebViewClient(new MyWebViewClient()); webView.loadUrl(myUrl); -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Geo Fix Still Not Working in 1.6
geo fix works for me with both DDMS and the emulator console. Using console this works - telenet localhost 5554 geo fix -117.24 32.883 This locates you in the University of California San Diego campus. I tried this with DDMS manual geo fix and it works there also. My test is using Google Maps My Location menu selection. What is not working with geo fix for you? Incidently I am now noticing that DDMS gives me the correct location. But the geo fix command in the console exhibits the rounding problem Auguste Lunang pointed to that is a couple of hundred feet off (which is a problem for testing that depends on more accuracy). Do you know if there is a bug filed for the rounding problem? On Oct 22, 5:06 pm, Brian Conrad brianjto...@gmail.com wrote: There is a bug filed for geo fix (not by me but by people who found it earlier). I haven't filed one for DDMS until I'm sure I grok how it works as information still is very sketchy about this stuff and docs rather terse. My app calls getLastKnownLocation when it runs once. It will call it again if the user selects Recalc. Now under 1.1 when first run the emulator it would return what was set with geo fix or a default which I believe was Google's coordinates. The DDMS method seems is something one would use to emulate location updates. With 1.5 and 1.6 when my app runs it gets a null back from getLastKnownLocation on the emulator. So then I have DDMS send the coordinates to the emulator (as instructed via the Dev Guide) then select Recalc I would think it would have the new coordinates but it doesn't and just uses some fixed coordinates for demo purposes. Apparently this app is working normally on phones I would just like to have it working on the emulator so I could add and test similar functionality in other apps. jotobjects wrote: Has there been a bug filed? On Oct 22, 2:11 pm, Brian Conrad brianjto...@gmail.com wrote: Thanks. Yes, I know it's been a known issue because I've inquired a number of times after each update if it's been fixed. The link you posted goes back to 2008 but it was working fine in 1.1 last spring. It's not working with DDMS either. I'll play around with it some more to try to figure out why it is not working. Brian Auguste Lunang wrote: Hi,This is a know issue. One of the discussions you can find here: http://groups.google.com/group/android-beginners/browse_thread/thread... . Try to use DDMS to fix your GPS coordinates. Hope it helps.. Auguste 2009/10/22 Brian Conrad brianjto...@gmail.com I've tried the geo fix command to set coordinates for a program I wrote that provides the GPS coordinates. This program worked fine in 1.1. But the geo fix command got broken in 1.5 and appears to still have not been fixed in 1.6? When will it be fixed? Brian Conrad JyotishTools.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] Not able to connect device using adb -d shell command from vista
Hello, I am trying to use adb -d shell command to start a shell on device (android dev 1 phone ) from my vista command line. But whenever I try giving such command it does not open any shell or interaction on the phone device. But instead it goes to the next line in the cmd as '$'. any help would really appreciable. I have installed adb_usb_windows. Previously I used work well with the emulator. Using adb command never troubled me. But now with new device, I am not able to open a shell using adb -d shell command on the phone. Thanks in Advance, adag --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 connect device using adb -d shell command from vista
that means it's working :-) Hello, I am trying to use adb -d shell command to start a shell on device (android dev 1 phone ) from my vista command line. But whenever I try giving such command it does not open any shell or interaction on the phone device. But instead it goes to the next line in the cmd as '$'. any help would really appreciable. I have installed adb_usb_windows. Previously I used work well with the emulator. Using adb command never troubled me. But now with new device, I am not able to open a shell using adb -d shell command on the phone. Thanks in Advance, adag -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Activity launch timeout even with wakelock
Thanks Mark, Hierachy viewer did help me. The issue is in the xml file. I am not sure why I had the listview in first place and removing it solved the problem. But the process exposed to a good toolset that will help me in future debugging. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=wrap_content android:layout_height=wrap_content ListView android:id=@+id/android:fetchlist android:layout_width=wrap_content android:layout_height=wrap_content/ TextView android:id=@+id/android:fetchtext android:layout_width=wrap_content android:layout_height=wrap_content/ /LinearLayout On Oct 23, 7:47 am, Mark Murphy mmur...@commonsware.com wrote: Kiran wrote: Hierarchy viewer shows the text view. Also the data contains the html page. Here is the screenshot of hierarchy viewer: http://i1011.photobucket.com/albums/af233/kiranjulapalli/textview.png... Great! That means your background processing is working just fine. Now all you need to do is figure out why the text is not showing up, such as: -- The TextView is off-screen -- The TextView is hidden behind something else -- The TextView has black text on a black background -- The TextView has zero height or width -- etc. hierarchyviewer should be able to help with much of that. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: database question
Wouter wrote: Hey Mark, Thanks for the answer. So how can i backup that database file? I now have a file tvgids.db on my sdcard (so path is /sdcard/tvgids.db) How can I make a copy of that? Java file I/O. http://exampledepot.com/egs/java.io/CopyFile.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.6 Programming 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] No luck with italic text
Without specifying a custom font, does the default Android font simply not support italic? It seems to support all other settings provided by the Typeface class: serif, bold, monospace, etc., but italic and italic-bold don't work. The former appears normal and the latter appears bold. I'm surprised that it supports things like serif and monospace, but not something as obvious at italic, which is in some sense a simpler concept. I'm sure I'm missing something obvious here. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 connect device using adb -d shell command from vista
Hello Jason, adb -d shell supposed to be opening a shell on phone deivce. But in my case it is not happening. Re, adag On Oct 23, 6:52 pm, Jason Proctor jason.android.li...@gmail.com wrote: that means it's working :-) Hello, I am trying to use adb -d shell command to start a shell on device (android dev 1 phone ) from my vista command line. But whenever I try giving such command it does not open any shell or interaction on the phone device. But instead it goes to the next line in the cmd as '$'. any help would really appreciable. I have installed adb_usb_windows. Previously I used work well with the emulator. Using adb command never troubled me. But now with new device, I am not able to open a shell using adb -d shell command on the phone. Thanks in Advance, adag -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: database question
Nice thank you so much Mark! On Oct 23, 7:56 pm, Mark Murphy mmur...@commonsware.com wrote: Wouter wrote: Hey Mark, Thanks for the answer. So how can i backup that database file? I now have a file tvgids.db on my sdcard (so path is /sdcard/tvgids.db) How can I make a copy of that? Java file I/O. http://exampledepot.com/egs/java.io/CopyFile.html -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android 1.6 Programming 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] Re: No luck with italic text
Keith Wiley wrote: Without specifying a custom font, does the default Android font simply not support italic? It seems to support all other settings provided by the Typeface class: serif, bold, monospace, etc., but italic and italic-bold don't work. The former appears normal and the latter appears bold. I'm surprised that it supports things like serif and monospace, but not something as obvious at italic, which is in some sense a simpler concept. I'm sure I'm missing something obvious here. Got a snippet of XML that isn't working for you? -- Mark Murphy (a Commons Guy) http://commonsware.com | 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] Re: arrays to be accessed by both JAVA n C thru JNI in an Android app
On Oct 23, 3:51 am, Latha Shivanna latha...@gmail.com wrote: The whole procedure is followed for (480x640) times. And so there is a redundant creation of the array for every frame display. Why do you have to create a new array each time? Why can't you re-use an existing one? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 connect device using adb -d shell command from vista
adb doesn't tell you what's going on nor does it open a new window or anything like that. the $ prompt is the shell *on the phone*. what happens if you type ls at the $ prompt? Hello Jason, adb -d shell supposed to be opening a shell on phone deivce. But in my case it is not happening. Re, adag On Oct 23, 6:52 pm, Jason Proctor jason.android.li...@gmail.com wrote: that means it's working :-) Hello, I am trying to use adb -d shell command to start a shell on device (android dev 1 phone ) from my vista command line. But whenever I try giving such command it does not open any shell or interaction on the phone device. But instead it goes to the next line in the cmd as '$'. any help would really appreciable. I have installed adb_usb_windows. Previously I used work well with the emulator. Using adb command never troubled me. But now with new device, I am not able to open a shell using adb -d shell command on the phone. Thanks in Advance, adag -- jason.vp.engineering.particle -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Activity launch timeout even with wakelock
If you give your TextView a weight it will probably show up under the list. android:layout_weight=1 On Oct 23, 10:53 am, Kiran kiran.julapa...@gmail.com wrote: Thanks Mark, Hierachy viewer did help me. The issue is in the xml file. I am not sure why I had the listview in first place and removing it solved the problem. But the process exposed to a good toolset that will help me in future debugging. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=wrap_content android:layout_height=wrap_content ListView android:id=@+id/android:fetchlist android:layout_width=wrap_content android:layout_height=wrap_content/ TextView android:id=@+id/android:fetchtext android:layout_width=wrap_content android:layout_height=wrap_content/ /LinearLayout On Oct 23, 7:47 am, Mark Murphy mmur...@commonsware.com wrote: Kiran wrote: Hierarchy viewer shows the text view. Also the data contains the html page. Here is the screenshot of hierarchy viewer: http://i1011.photobucket.com/albums/af233/kiranjulapalli/textview.png... Great! That means your background processing is working just fine. Now all you need to do is figure out why the text is not showing up, such as: -- The TextView is off-screen -- The TextView is hidden behind something else -- The TextView has black text on a black background -- The TextView has zero height or width -- etc. hierarchyviewer should be able to help with much of that. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---