[android-developers] changing the shape of Button

2009-10-23 Thread Asif k
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] How to draw 3D objects on a MapView

2009-10-23 Thread Anush Deekonda
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

[android-developers] Android design issue about cts test case testThreadCpuTimeNanos?

2009-10-23 Thread XingChao Wang
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

[android-developers] a strange problem about large screen on android 1.6

2009-10-23 Thread 乾宇 王
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

[android-developers] Re: PVMFFailure when using MediaPlayer for radio streams

2009-10-23 Thread dede
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

[android-developers] Re: Have View and ListView Scroll as one

2009-10-23 Thread droid_does
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

[android-developers] Re: 1.6: GPS location provider stop unexpectedly (exceeded MIN_FIX_COUNT), bouncing back and forth

2009-10-23 Thread Lance Nanek
The docs do mention: If minTime is greater than 0, the LocationManager could potentially rest for minTime milliseconds between location updates to conserve power.

[android-developers] duration and loopiness of sound

2009-10-23 Thread Neil
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

[android-developers] Re: call forwarding

2009-10-23 Thread Roman ( T-Mobile USA)
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

[android-developers] Re: High Battery Usage, but no Use details listed

2009-10-23 Thread Dianne Hackborn
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

[android-developers] Photo ACTION_PICK intent returning data not set in setType

2009-10-23 Thread Gyan
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);

[android-developers] How to stabiliz my APP's the CPU's usage

2009-10-23 Thread chen ji
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

[android-developers] Re: High Battery Usage, but no Use details listed

2009-10-23 Thread CraigsRace
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

[android-developers] Re: Photo ACTION_PICK intent returning data not set in setType

2009-10-23 Thread Miguel Paraz
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);        

[android-developers] intercept an outgoing call

2009-10-23 Thread Nemat
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() {

[android-developers] Re: Photo ACTION_PICK intent returning data not set in setType

2009-10-23 Thread Gyan
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

[android-developers] Context Menu

2009-10-23 Thread Neilz
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

[android-developers] Transfer Messages without Service Provider

2009-10-23 Thread ragavendran s
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

[android-developers] Re: SQLite Blob ?

2009-10-23 Thread joare...@googlemail.com
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] Re: Context Menu

2009-10-23 Thread skink
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

[android-developers] Re: SQLite Blob ?

2009-10-23 Thread Desu Vinod Kumar
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,

[android-developers] Re: Context Menu

2009-10-23 Thread Neilz
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

[android-developers] Re: Transfer Messages without Service Provider

2009-10-23 Thread Gyan
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

[android-developers] Multipart file uploads using Apache Mime4J still not working

2009-10-23 Thread Matthias
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

[android-developers] Re: How can I get the real value of a webview ?

2009-10-23 Thread ph wang
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

[android-developers] Re: AppWidgetProvider.onUpdate() -- setOnClickPendingIntent

2009-10-23 Thread Jeff Sharkey
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

[android-developers] Re: Hi

2009-10-23 Thread Jeff Sharkey
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

[android-developers] Re: Transfer Messages without Service Provider

2009-10-23 Thread ragavendran s
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

[android-developers] Re: updatePeriodMillis not working for widget on 1.6

2009-10-23 Thread Jeff Sharkey
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

[android-developers] Re: updatePeriodMillis not working for widget on 1.6

2009-10-23 Thread nisha.devit
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)

[android-developers] Data Retrieval in Android

2009-10-23 Thread Maxood
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

[android-developers] Re: Returning to Previous Activity from a network camera activity

2009-10-23 Thread Mark Murphy
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

[android-developers] [Android-developers]arrays to be accessed by both JAVA n C thru JNI in an Android app

2009-10-23 Thread Latha Shivanna
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

[android-developers] Re: Have View and ListView Scroll as one

2009-10-23 Thread Mark Murphy
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?

[android-developers] Re: Data Retrieval in Android

2009-10-23 Thread Maxood
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:

[android-developers] Re: Data Retrieval in Android

2009-10-23 Thread Mark Murphy
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

[android-developers] Transfer Messages without Service Provider

2009-10-23 Thread ragavendran s
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

[android-developers] GestureLibrary question/suggestion

2009-10-23 Thread Lee
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

[android-developers] Re: Data Retrieval in Android

2009-10-23 Thread Mark Murphy
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

[android-developers] Gracefully destroying Dialog box

2009-10-23 Thread Neilz
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.

[android-developers] Re: -http-proxy for emulator on Android 1.6?

2009-10-23 Thread Marc Reichelt
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

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-23 Thread Kiran
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..

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-23 Thread Mark Murphy
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

[android-developers] updatePeriodMillis not working for widget on 1.6

2009-10-23 Thread Sterling Udell
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

[android-developers] Re: updatePeriodMillis not working for widget on 1.6

2009-10-23 Thread Mark Murphy
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

[android-developers] Re: Data Retrieval in Android

2009-10-23 Thread junker37
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

[android-developers] Re: updatePeriodMillis not working for widget on 1.6

2009-10-23 Thread nisha.devit
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

[android-developers] Re: High Battery Usage, but no Use details listed

2009-10-23 Thread Disconnect
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

[android-developers] Re: updatePeriodMillis not working for widget on 1.6

2009-10-23 Thread String
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

[android-developers] Re: updatePeriodMillis not working for widget on 1.6

2009-10-23 Thread Mark Murphy
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

[android-developers] Re: updatePeriodMillis not working for widget on 1.6

2009-10-23 Thread Tom Gibara
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

[android-developers] Re: how to capture browser activity or callback

2009-10-23 Thread Smelly Eddie
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

[android-developers] Re: updatePeriodMillis not working for widget on 1.6

2009-10-23 Thread Sterling Udell
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

[android-developers] Re: updatePeriodMillis not working for widget on 1.6

2009-10-23 Thread Mark Murphy
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

[android-developers] Does Android Support Video Rotation?

2009-10-23 Thread Arun Tripathy
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

[android-developers] How to turn off the screen display?

2009-10-23 Thread Arun Tripathy
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-developers] Re: 1.6: GPS location provider stop unexpectedly (exceeded MIN_FIX_COUNT), bouncing back and forth

2009-10-23 Thread JP
(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

[android-developers] Re: Returning to Previous Activity from a network camera activity

2009-10-23 Thread shobhit kasliwal
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

[android-developers] Re: SimpleCursorAdapter.bindView() and Row Views

2009-10-23 Thread Nmix
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

[android-developers] White screen in my OpenGL application

2009-10-23 Thread Steff
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

[android-developers] Is there a description of commands for the command line interface

2009-10-23 Thread Ryck
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

[android-developers] Re: White screen in my OpenGL application

2009-10-23 Thread nEx.Software
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.

[android-developers] How to show a cursor when user tap a view

2009-10-23 Thread Long
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

[android-developers] How to get a segmented bar just like iphone in android

2009-10-23 Thread purvi
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

[android-developers] htc hero developing

2009-10-23 Thread aaa...@gmail.com
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

[android-developers] Re: Does Android Support Video Rotation?

2009-10-23 Thread Fred Grott(Android Expert)
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

[android-developers] Re: Ad test problem in app with AdMob

2009-10-23 Thread Mike
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

[android-developers] Animating ViewStub

2009-10-23 Thread Matthias
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?

[android-developers] Re: Find MAC address

2009-10-23 Thread Wayne Wenthin
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

[android-developers] WidgetLayout inside PreferenceActivity displays new then old bitmap...

2009-10-23 Thread Seb
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

[android-developers] Question on NotificationManager, setLatestEventInfo() and custom view.

2009-10-23 Thread Jiri
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

[android-developers] Sqlite3 concurrency

2009-10-23 Thread Mariano Kamp
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

[android-developers] Re: Data Retrieval in Android

2009-10-23 Thread Maxood
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

[android-developers] Re: White screen in my OpenGL application

2009-10-23 Thread String
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

[android-developers] Re: How to get a segmented bar just like iphone in android

2009-10-23 Thread String
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

[android-developers] Re: Data Retrieval in Android

2009-10-23 Thread Maxood
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

[android-developers] Re: White screen in my OpenGL application

2009-10-23 Thread Steff
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

[android-developers] Re: Animating ViewStub

2009-10-23 Thread skink
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

[android-developers] Re: database question

2009-10-23 Thread Wouter
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

[android-developers] Re: Data Retrieval in Android

2009-10-23 Thread Mark Murphy
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.

[android-developers] Re: White screen in my OpenGL application

2009-10-23 Thread Steff
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

[android-developers] Re: database question

2009-10-23 Thread Mark Murphy
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

[android-developers] Upgrade issue with SD card write permission

2009-10-23 Thread webmonkey
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-developers] Re: Problem to show unicode strings in TextView

2009-10-23 Thread qmwestview
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

[android-developers] Re: Sqlite3 concurrency

2009-10-23 Thread mirko
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

[android-developers] Re: database question

2009-10-23 Thread Wouter
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

[android-developers] Android Market Down? - Unable to see my Published Apps

2009-10-23 Thread Smelly Eddie
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

[android-developers] Re: WebView + Cookie Problem

2009-10-23 Thread Jason Proctor
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

[android-developers] Re: Geo Fix Still Not Working in 1.6

2009-10-23 Thread jotobjects
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

[android-developers] Not able to connect device using adb -d shell command from vista

2009-10-23 Thread adag
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

[android-developers] Re: Not able to connect device using adb -d shell command from vista

2009-10-23 Thread Jason Proctor
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

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-23 Thread Kiran
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

[android-developers] Re: database question

2009-10-23 Thread Mark Murphy
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)

[android-developers] No luck with italic text

2009-10-23 Thread Keith Wiley
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

[android-developers] Re: Not able to connect device using adb -d shell command from vista

2009-10-23 Thread adag
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

[android-developers] Re: database question

2009-10-23 Thread Wouter
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?

[android-developers] Re: No luck with italic text

2009-10-23 Thread Mark Murphy
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

[android-developers] Re: arrays to be accessed by both JAVA n C thru JNI in an Android app

2009-10-23 Thread fadden
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?

[android-developers] Not able to connect device using adb -d shell command from vista

2009-10-23 Thread Jason Proctor
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,

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-23 Thread jotobjects
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

  1   2   >