[android-developers] updateing images

2009-05-19 Thread N V
HI to all Can anyone tell me how can i update the images from the server in regular interval of time and make it as a background process... Thank You Nithin N V --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Slide Transitions between activities - Disable in application on 1.5?

2009-05-19 Thread chrispix
Is there anyway to disable the slide transition between activities? This has introduced some unwanted results in our application. We have had to build our own custom tabs because of the way the camera is operating in our portrait mode navigation. Regardless, we would like to be able to disable

[android-developers] Unable to play youtube videos on SDK 1.5 emulator, but playing well on SDK 1.0 emulator

2009-05-19 Thread manoj
Hi friends, I have written a small player app which plays youtube videos. Its working fine on SDK 1.0 supported devices. Now I tested the same app on SDK 1.5 emulator. The video just opened and hangs on. Here is the log I got: W/PlayerDriver( 542): Using generic video MIO D/AudioSink(

[android-developers] Re: Unable to play youtube videos on SDK 1.5 emulator, but playing well on SDK 1.0 emulator

2009-05-19 Thread Nithin Varamballi
Can you update the source Thank You Nihtin N V --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] how to create dynamic views

2009-05-19 Thread Makrand
Hello I am creating one quiz application, for question page i have created one view by using Linear layout in that i have added four TextAreas, first TextArea for question and reaming three are for answer cell. so now, when user select the answer cell i want to show next question screen for that

[android-developers] Unable to play youtube videos on SDK 1.5 emulator, but playing well on SDK 1.0 emulator

2009-05-19 Thread manoj
Hi friends, I have written a player app which plays youtube videos. It works fine on SDK 1.0 supported devices as well as on SDK 1.0 emulator. Today I tested the same app on SDK 1.5 emulator, the video just opened and hangs, nothing is playing. Here is the log I got: E/PlayerDriver( 542):

[android-developers] Re: Unable to play youtube videos on SDK 1.5 emulator, but playing well on SDK 1.0 emulator

2009-05-19 Thread manoj
I just opened the VideoView, set the path, and started the video. Nothing more than that. On May 19, 11:09 am, Nithin Varamballi nithi...@gmail.com wrote: Can you update the source Thank You Nihtin N V --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Unable to play youtube videos on SDK 1.5 emulator, but playing well on SDK 1.0 emulator

2009-05-19 Thread N N V
Hi manoj.. You are playing the video through sdcard or streaming.. Thank You Rock --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Unable to play youtube videos on SDK 1.5 emulator, but playing well on SDK 1.0 emulator

2009-05-19 Thread manoj
Hi NNV, I am playing through streaming. Thanks, Manoj. On May 19, 11:39 am, N N V nithinvaramba...@gmail.com wrote: Hi manoj..                You are playing the video through sdcard or streaming.. Thank You  Rock --~--~-~--~~~---~--~~ You received this

[android-developers] Re: How can I get current SDK version in my program code ?

2009-05-19 Thread 黃冠宇
Hi Dianne,Thanks for your response,but I still don't get it. I try to use System.getProperty(android.os.Build.VERSION.SDK)) and new a android.os.Build object, but those ways still can't get sdk version. Can you tell me how to get sdk version by using android.os.Build.VERSION.SDK? thank you very

[android-developers] Re: Unable to play youtube videos on SDK 1.5 emulator, but playing well on SDK 1.0 emulator

2009-05-19 Thread Nithin Varamballi
Hi manoj.. i tried in sdk 1.5 its give error... See the blog http://groups.google.com/group/android-developers/browse_thread/thread/aa8bcd63591efc37/311fc03f2269c3ee?lnk=gstq=nithin11#311fc03f2269c3ee and can you tell me how you did in sdk 1.1... I am developing video streaming

[android-developers] Re: How can I get current SDK version in my program code ?

2009-05-19 Thread Al Sutton
Try; import android.os.Build.VERSION; . . . . if(VERSION.SDK.equals(3)){ // Do firmware 1.5/Cupcake stuff } else if(VERSION.SDK.equals(2)) { // Do firmware 1.1 stuff } else if(VERSION.SDK.equals(1)) { // Do firmware 1.0 stuff } else { // Do anything you think will

[android-developers] Re: How to determine a resource string is existing or not

2009-05-19 Thread 黃冠宇
Is there anyone know about this problem?thanks!! 2009/5/18 aby orz0...@gmail.com Hi, I want to determine a resource string is existing or not. Because other programs in my system will build this string, I need to check the string building is success or not. If fail, I would replace this

[android-developers] Preventing a contact from being added to system group

2009-05-19 Thread Thomas
Hi group. Cab I prevent a contact from being added to a system group upon sync? I tried to describe the problem here, but so far no solution was found: http://groups.google.com/group/android-developers/browse_thread/thread/365a33a46227d32c# What I do: 1) Programatically create a group 2)

[android-developers] Re: The GIMP cannot digest the standard widget frames

2009-05-19 Thread Alan Jones
Hi Joachim, On May 19, 2:49 pm, JP joachim.pfeif...@gmail.com wrote: *) BTW - where are these people? I'm a bit surprised that apparently I'm the first to stumble over this. Or perhaps I just post too much out here. I hit the same issue. I just grab the .pngs on the page and because I wanted

[android-developers] Re: Can not receive multicast packets

2009-05-19 Thread Whino
The following is the listen function I used to receive multicast packets. socket.receive can not receive packets from remote peer, but it can receive packets sent from local. public static void listen() throws IOException { Runnable r = new Runnable() { public void run()

[android-developers] Looking for tutorials about java.util.Date class

2009-05-19 Thread daehoon
Hi. Is there anybody knows tutorial about Date class? or about using DateFormat.parse() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Geocoder not returning result

2009-05-19 Thread Android Users
I have tried with both the Targets but still not working. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Re: Removing/adding activities from/to an ActivityGroup

2009-05-19 Thread Android Users
Yes you can do that. You can get a LocalActivityManager from the ActivityGroup, and from that reference you can destroy the respective activities. actitivitygroup.getLocalActivityManager().destroyActivity(id of the activity to be deleted,true); And Accordingly you can start the other activity

[android-developers] Re: Can not receive multicast packets

2009-05-19 Thread Daniel Janev
Hi, You use the SDK and the emulator or you are trying this code on real device? As far as I know there is DLNA application for Android, which works on the phone using the WiFi connection. Whino wrote: The following is the listen function I used to receive multicast packets.

[android-developers] a Dialog Problem..

2009-05-19 Thread 김병주
I made a Dialog Class with it's view classI want to pop up the dialog when I got some packets from network. so I made a Thread which parses packets and then I made if clause in Run() method There is no problem with parsing packet but when I enter if clause and call showDialog() I got Error

[android-developers] Database - error code 5

2009-05-19 Thread jayabal
Getting error code 5 and unable to insert the data in the database, when more than one thread are trying to populate the data in database. I am using the following versions - android sdk1.1 and sqlite 3.0. How to resolve this problem. Thanks, Jayabal.

[android-developers] I can't get into developer.android.com site.

2009-05-19 Thread daehoon
When we Run as android application with nothing, Eclipse launch an Emulator. And we can see Alarm Clock in Home Sample, there are several alarms in Alarm Clock. I want to know source code about that(Alarm Clock), but I can't get into android website. Is there anyone who can send me the source

[android-developers] webview to show large picture zoomed out

2009-05-19 Thread rukiman
How can I get the WebView to make any content it loads for example a large picture to fit to page when it is loaded? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Using glColor4x

2009-05-19 Thread Alistair.
That works! Wonderful, thanks. I was doing something dumb right enough. Al On May 18, 10:48 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I think the color values are values between 0 (rgb = 0) and 1 (rgb = 255). And, if i'm reading your code correctly, the 'red', 'green' and 'blue'

[android-developers] Facebook application

2009-05-19 Thread jayabal
I am creating a facebook application. In that I am able to create the token and session. When I try to post the text using the method Feed.publishUserAction, getting an error as incorrect signature, but the method which I am using to create the signature(MD5) is correct and that is perfectly

[android-developers] ContentProvider returns always null

2009-05-19 Thread arnouf
Hi, I'm developing my own ContentProvider my query method is following *** SQLiteQueryBuilder sqlBuilder = new SQLiteQueryBuilder(); sqlBuilder.setTables(DATABASE_TABLE_USER); if (uriMatcher.match(uri) == USERID){ sqlBuilder.appendWhere(

[android-developers] How to get the resource ID from android.content.res.Resources.Theme

2009-05-19 Thread Johnny Lee
Hi, I'm wondering whether there is a way to get the resource ID of an Theme object? I tried the following: mContextWrapper.setTheme(com.android.internal.R.style.Theme); Theme theme = mContextWrapper.getTheme(); Log.d(ContextWrapperTest, Resource ID: +

[android-developers] Re: Can not receive multicast packets

2009-05-19 Thread Whino
I'm using this code on real device. I know there is someone wants to port UPnP stack to Android. But I don't know any DLNA application on Android from official or other open source project. Could you tell me the application name or its info? Thank you very much. On May 19, 3:54 pm, Daniel Janev

[android-developers] App often crash with virtual keyboard.

2009-05-19 Thread Guillaume Perrot
Since cupcake we have a crash with one of our EditText widget when using a virtual keyboard in landscape, it's random but happens often: 05-19 11:01:54.819: ERROR/AndroidRuntime(21788): Uncaught handler: thread main exiting due to uncaught exception 05-19 11:01:55.019:

[android-developers] Best Links

2009-05-19 Thread DonyChandra
Galactic mentor http://free-belajaronline.blogspot.com/2009/05/galactic-mentor.html How To Use Ubuntu portable in Windows without installation http://free-belajaronline.blogspot.com/2009/05/how-to-use-ubuntu-portable-in-windows.html Download Free junk file cleaner for Mac OSX

[android-developers] Re: why XmlPullParser.getName(); return null (urgent)

2009-05-19 Thread zeeshan
thanks On May 16, 2:28 am, Dianne Hackborn hack...@android.com wrote: You haven't stepped the parse at all.  A google search will return this as the first result: http://www.xmlpull.org/v1/doc/api/org/xmlpull/v1/XmlPullParser.html On Fri, May 15, 2009 at 5:06 PM, zeeshan

[android-developers] Re: Slide Transitions between activities - Disable in application on 1.5?

2009-05-19 Thread Faber Fedor
You mean the window animations? The ones that are off by default? You go into Settings - Sound Display - Animation and check it off. On Tue, May 19, 2009 at 2:06 AM, chrispix chris...@gmail.com wrote: Is there anyway to disable the slide transition between activities? This has introduced

[android-developers] Re: Removing/adding activities from/to an ActivityGroup

2009-05-19 Thread Taísa Cristina
Thanks Android :) But I have a problem. I've tested destroying A and starting it again, but when I do startActivity(id) I get a null window. Do I need to use a different id whenever I start an activity (with the same intent), even if I pass false when I destroying (or rather, pausing) such

[android-developers] Re: Slide Transitions between activities - Disable in application on 1.5?

2009-05-19 Thread admin.androidsl...@googlemail.com
True but in fairness to the OP, even though they are disabled by default, a user can easily turn it on and transitions don't seem to fit well with all apps. Surely apps should have the option of disabling this, e.g. if app requires its own more complex transitions or in the case the OP

[android-developers] How to add more words onto Binary Dictionary(main.dict)??

2009-05-19 Thread Atish
Hi All, Is there any way that i can add many words into main.dict currently used as Main Dictionary in Inputmethods package?? Please reply it's bit urgent. Thanks And Regards, Atish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] XML+XPath on Android using dom4j and Jaxen

2009-05-19 Thread Matthias
Hey guys, in case you're looking for easy and powerful XML parsing on Android, you may be interested in this: http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpath-on-android-using-dom4j-and-jaxen/ Cheers, Matthias --~--~-~--~~~---~--~~ You

[android-developers] imageView.setImageURI(Uri.parse(file:///android_asset/cover.png)); not working

2009-05-19 Thread zeeshan
Hi Experts, i need to load an image on imageview by a variable string like String imagepath=file:///android_asset/cover.png; imageView.setImageURI(Uri.parse(imagepath)); but this doesn't work i put cover.png in assets any help? --~--~-~--~~~---~--~~ You

[android-developers] Re: What is Context for?

2009-05-19 Thread Matt Williams
Thank you all for your advice. I had intended to utilize an abstract class for storable objects which would access the database through a singleton adapter. The database handler would only be initialized if there was a method call that would require usage of the database. What I will do instead

[android-developers] Re: Problem launching an Activity (other than built-in with classes loaded) from widget click

2009-05-19 Thread JP
That explains it. I use maps. I tried to force loading the maps library using ClassLoader this morning - to no avail, as I figured anyway. Is there a (known) workaround? My perspective... 1.5 OTA update (T-Mobile) hasn't even hit my G1 yet and hopefully I don't have to bank on a future OTA

[android-developers] Re: The GIMP cannot digest the standard widget frames

2009-05-19 Thread JP
Alan, I believe this approach runs counter the original idea to work off of the PS (or other format) files... It's a bit like false money... But thanks for posting. Joachim On May 19, 12:13 am, Alan Jones skyp...@gmail.com wrote: Hi Joachim, On May 19, 2:49 pm, JP joachim.pfeif...@gmail.com

[android-developers] Re: The GIMP cannot digest the standard widget frames

2009-05-19 Thread rollbak
I think the best solution wold be that google support a standard like SVG. On May 19, 10:29 am, JP joachim.pfeif...@gmail.com wrote: Alan, I believe this approach runs counter the original idea to work off of the PS (or other format) files... It's a bit like false money... But thanks for

[android-developers] Re: NullPointerException : String imageFileName = myFile.imageFileName.toString(); when imageFileName is null

2009-05-19 Thread chrispix
I was defining it as String imageFileName = null I guess I should have been donig imageFileName= was not thinking. Chris. On May 17, 3:15 am, Mariano Kamp mariano.k...@gmail.com wrote: You need to paste a bigger code sample then. The question would be then how comes that imageFileName is

[android-developers] Re: Slide Transitions between activities - Disable in application on 1.5?

2009-05-19 Thread chrispix
Thank you, Even though they are off by default, I would like to keep a portion of our application w/out the slide effect, I am guessing this is another off limit api call. :/ Chris. On May 19, 6:55 am, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: True but in

[android-developers] Why can't I enter android-developers:reference:android.R.style able? Is it available?

2009-05-19 Thread quill
Hi guys, Why can't I enter android-developers:reference:android.R.styleable? But can enter others like android-developers:reference:android.R.color. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: How to determine a resource string is existing or not

2009-05-19 Thread Marco Nelissen
getString() will throw NotFoundException if the resource does not exist. On Mon, May 18, 2009 at 4:55 AM, aby orz0...@gmail.com wrote: Hi, I want to determine a resource string is existing or not. Because other programs in my system will build this string, I need to check the string

[android-developers] Re: Leaked window in PreferenceActivity

2009-05-19 Thread Sikus
I don't understand point 1. I don't know how can I do it. But I try add activity android:name=.Name android:configChanges=keyboardHidden|orientation and everything works good. Is it clear this solution? On 13 kvě, 15:28, scuellar scuellar...@gmail.com wrote: This is the solution for you

[android-developers] Re: I can't get into developer.android.com site.

2009-05-19 Thread Marco Nelissen
On Tue, May 19, 2009 at 1:04 AM, daehoon jeondaeh...@gmail.com wrote: When we Run as android application with nothing, Eclipse launch an Emulator. And we can see Alarm Clock in Home Sample,  there are several alarms in Alarm Clock. I want to know source code about that(Alarm Clock), but I

[android-developers] Re: Database - error code 5

2009-05-19 Thread Marco Nelissen
It would help if you posted your code. On Tue, May 19, 2009 at 1:00 AM, jayabal padmavathy.jayaba...@gmail.com wrote: Getting error code 5 and unable to insert the data in the database, when more than one thread are trying to populate the data in database. I am using the following versions

[android-developers] Buttons/ImageViews overlaid on a GLSurfaceView

2009-05-19 Thread Mooncat
Can it be done? If it can, is it much of a performance hit, and is there an example anywhere? Thanks for any information. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: I can't get into developer.android.com site.

2009-05-19 Thread Al Sutton
It's working OK for me. I've just been into GitWeb (http://android.git.kernel.org/) without any problems. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered

[android-developers] Re: SDK 1.5 breaks our build

2009-05-19 Thread Peter Jeffe
Thanks Xavier, sorry I missed that previous discussion. However, we need our lib project to be an Android project: it contains an Android service that is used by the other project. So I need to be able to compile the aidl files etc. I don't have any resources, so there's no risk of collision

[android-developers] Re: How to detect if sound is currently playing on the speaker?

2009-05-19 Thread Dave Sparks
No, there is no API for this. On May 18, 12:56 pm, Flying Coder av8r.st...@gmail.com wrote: Hi,     Is there any way to tell if an app is currently using the speaker (playing music or generating other sounds)?  Specifically, I'd like to detect if an alarm clock is going off (not only the one

[android-developers] Re: setBuiltInZoomControls and debugging problems

2009-05-19 Thread Tim
Hi Jason, Using a try catch I've found that it was just a simple nullpointer exception on the mapView. Which brings me to the next problem. How come my mapView is null? I'm simply doing as the hello map tutorial says.. :( On May 19, 6:07 am, Jason Parekh jasonpar...@gmail.com wrote: Hey Tim,

[android-developers] Re: XML+XPath on Android using dom4j and Jaxen

2009-05-19 Thread Zero
as much as i love dom4j (and i do!), how is performance on the hardware ? dom4j tends to suck in a lot of memory, so..uh..dunno. On May 19, 2:17 pm, Matthias m.kaepp...@googlemail.com wrote: Hey guys, in case you're looking for easy and powerful XML parsing on Android, you may be

[android-developers] Re: floating point support on G1 phone

2009-05-19 Thread jeanguy
Since you're targeting the G1, I will dispute this. In my tests fixed point was negligibly faster than softfp. This is because there is no JIT nor JNI support, and hence no support for hardware int math. Softint is not all that faster than softfp. See the last post in this thread:

[android-developers] Re: XML+XPath on Android using dom4j and Jaxen

2009-05-19 Thread matthias
I found that it works well for us... I didn't profile the memory consumption but I also didn't experience any noticeable system or app slow downs, so I didn't feel it was necessary. At the end of the day, it's pretty clear that you're trading in some performance for stability and ease of use

[android-developers] Maintaining two Eclipse installs with two Android SDKs

2009-05-19 Thread Keith Wiley
I need to keep the old Android 1.1_r1 SDK around because I have an app that won't build with the 1.1 SDK included with the 1.5 SDK (Actually, it builds, but the newer Dalvik converter won't convert it, error 2, no other feedback as to the problem in Eclipse's console). So I have two completely

[android-developers] Re: Facebook application

2009-05-19 Thread Mike Hearn
Nobody can help unless you post your signing code. Pay close attention to the exact format of the thing to hash, it's not intuitive. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: UNLOCK Screen lock programatically

2009-05-19 Thread andrew
Thanks for Dianne Hackborn's answer! I found that there is a topic about disable home button in this forum. the address is: http://groups.google.co.in/group/android-developers/browse_thread/thread/c0dee70687ef9ccf/73d71e83c1f938d7?lnk=gstq=android+unlock+screen#73d71e83c1f938d7 That is to

[android-developers] Re: UNLOCK Screen lock programatically

2009-05-19 Thread Dianne Hackborn
That's not an API, it's an abuse of the system, and you should certainly not expect the system to allow itself to be abused like this in the future. On Tue, May 19, 2009 at 9:26 AM, andrew andrewhun...@126.com wrote: Thanks for Dianne Hackborn's answer! I found that there is a topic about

[android-developers] Re: UNLOCK Screen lock programatically

2009-05-19 Thread andrew
Is that true? calling reenableKeyguard() on the the locked phone may put it in the wrong state Now ,I am dealing with a problem about my activtiy's when the screen is locked,so I called reenableKeyguard() and disableKeygurd, but met some trouble.I will do some futher test for my app! On

[android-developers] no package identifier when getting value for resource

2009-05-19 Thread guruk
When I start my program I get this for 3 from 35 entries in the R.Java no package identifier when getting value for resource xxx I checked what could be wrong but the enries looks fine like similar where it does not come to a message like that? What could that be? greets chris

[android-developers] Re: Slide Transitions between activities - Disable in application on 1.5?

2009-05-19 Thread Dianne Hackborn
You can set whatever animations you want in WindowManager.LayoutParams. On Tue, May 19, 2009 at 7:04 AM, chrispix chris...@gmail.com wrote: Thank you, Even though they are off by default, I would like to keep a portion of our application w/out the slide effect, I am guessing this is

[android-developers] Re: Problem launching an Activity (other than built-in with classes loaded) from widget click

2009-05-19 Thread Dianne Hackborn
There won't be a fix for this in 1.5. You may be able to work around it by having your widget run in its own process (and making sure you don't touch any of the maps APIs there). On Tue, May 19, 2009 at 6:23 AM, JP joachim.pfeif...@gmail.com wrote: That explains it. I use maps. I tried to

[android-developers] Re: Why can't I en ter android-developers:reference:android.R.s tyleable? Is it available?

2009-05-19 Thread Dianne Hackborn
styleable are not public symbols. On Tue, May 19, 2009 at 7:10 AM, quill quill...@163.com wrote: Hi guys, Why can't I enter android-developers:reference:android.R.styleable? But can enter others like android-developers:reference:android.R.color. -- Dianne Hackborn Android framework

[android-developers] Re: How to add more words onto Binary Dictionary(main.dict)??

2009-05-19 Thread Dianne Hackborn
http://developer.android.com/reference/android/provider/UserDictionary.Words.html On Tue, May 19, 2009 at 5:09 AM, Atish atish...@gmail.com wrote: Hi All, Is there any way that i can add many words into main.dict currently used as Main Dictionary in Inputmethods package?? Please reply it's

[android-developers] Re: Bug in WebView highlight (and workaround)

2009-05-19 Thread Sikus
Hello, maybe, I have same problem. I use WebView to display my information like HTML. I need show address on map therefore I use javascript like this: a href=\#\ onclick=\confirm('text');\link/a and @Override public boolean onJsConfirm(WebView view, String url,

[android-developers] Re: Buttons/ImageViews overlaid on a GLSurfaceView

2009-05-19 Thread Sundog
It looks like I need to use addTouchables, but I can find no examples anywhere. I simply want to overlay buttons and/or images on top of a GLSurfaceView. I can do it the old fashioned way but I hoped there was some built in support. On May 19, 8:56 am, Mooncat sunns...@gmail.com wrote: Can it

[android-developers] Re: Are you localizing an app? Do you want to be?

2009-05-19 Thread AlexK
Hi, Today I release a new version of Android Localization utility. It helps to translate android applications in few simple steps and even can translate application automatically. I hope everyone will find it useful. Thanks. Application is FREE and open source:

[android-developers] Re: floating point support on G1 phone

2009-05-19 Thread Dianne Hackborn
If you have performance critical code like this, you may want to consider using the NDK as discussed in android-ndk. On Tue, May 19, 2009 at 8:44 AM, jeanguy jean...@gmail.com wrote: Since you're targeting the G1, I will dispute this. In my tests fixed point was negligibly faster than

[android-developers] Animating Drawables from within SurfaceView

2009-05-19 Thread steve_macleod
Hi, I am using a SurfaceView, and wish to animate Drawables. All the animation tutorials I have seen concern using an ImageView, which as I understand is not a sensible approach from within a SurfaceView. Does anyone have any suggestions for doing frame-by-frame animation within a SurfaceView?

[android-developers] Re: Leaked window in PreferenceActivity

2009-05-19 Thread Jason Parekh
Hi all, This is a bug in the preference framework where its created windows aren't being disposed properly (something the framework should be doing). You can safely ignore the error message (this will be fixed in the future). jason 2009/5/19 Sikus sikusra...@gmail.com: I don't understand

[android-developers] error (or out-of-date info) in docs

2009-05-19 Thread Keith Wiley
http://developer.android.com/guide/topics/media/index.html shows sample code for recording audio, including the following line: values.put(MediaStore.MediaColumns.TIMESTAMP, System.currentTimeMillis ()); Currently, MediaStore.MediaColumns has no TIMESTAMP field. What is the best way to notify

[android-developers] Re: error (or out-of-date info) in docs

2009-05-19 Thread Keith Wiley
Followup. The same example has many other errors: values.put(MediaStore.MediaColumns.MIME_TYPE, recorder.getMimeContentType()); MediaRecorder has no getMimeContentType() method. ...plus a few other problems as well. Is this the wrong sample code to use to record audio? On May 19, 10:26 am,

[android-developers] How to overlay an image on a view

2009-05-19 Thread Meryl Silverburgh
Hi, I need to create a function which input is a reference is a view, and the function basically creates a new View which overlay an image on top of the input view? What is the best way to achieve that? I am thinking of create a new ViewGroup (as my output), add the input view as a child to

[android-developers] Re: Using the AudioRecord API

2009-05-19 Thread benmccann
Thanks for the response. I'm still foggy on the API usage though. I basically want to listen to the mic and continually process the incoming audio. Should I be using the OnRecordPositionUpdateListener at all? Or should it look something like: recorder.startRecording()

[android-developers] Re: Animating Drawables from within SurfaceView

2009-05-19 Thread Dianne Hackborn
Do it yourself. If you are using SurfaceView, you should be able to write your own code to render bitmaps to animate them or whatever. If you need to be relying on Drawable for this kind of stuff, you shouldn't be using SurfaceView. On Tue, May 19, 2009 at 10:07 AM, steve_macleod

[android-developers] Re: Buttons/ImageViews overlaid on a GLSurfaceView

2009-05-19 Thread Dianne Hackborn
You don't need to do anything special. Look at the Api Demo Graphics / SurfaceView Overlay for an example. On Tue, May 19, 2009 at 9:57 AM, Sundog sunns...@gmail.com wrote: It looks like I need to use addTouchables, but I can find no examples anywhere. I simply want to overlay buttons

[android-developers] Positioning a view below another one inside a RelativeLayout via code

2009-05-19 Thread Taísa Cristina
Hi all, I need to populate a RelativeLayout (mainLayout) via code. I need view A to be aligned to its parent top edge, and B to be below A. I can correctly position A by using RelativeLayout.ALIGN_PARENT_TOP rule. Then I set an id to view A, and try positioning B below it by using

[android-developers] android.R.drawable -- safe to use?

2009-05-19 Thread Howie
Are the images in android.R.drawable considered safe for third-party developers to use? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] When to use android:attr and android:style ?

2009-05-19 Thread twan
Hello, I got a little question on when to use style and android:theme in a layout xml file. For example: style=?android:attr/textAppearanceSmall does the same thing as: android:theme=@android:style/TextAppearance.Small Which one should i use? Please note: i will reply a little late, cause

[android-developers] Re: android.R.drawable -- safe to use?

2009-05-19 Thread twan
I think they are, otherwise they shouldn't be public available ;) On May 19, 9:41 pm, Howie howie.silb...@gmail.com wrote: Are the images in android.R.drawable considered safe for third-party developers to use? --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: When to use android:attr and android:style ?

2009-05-19 Thread twan
Hmm, i can now see my own message immediately ;) On May 19, 9:42 pm, twan twa...@gmail.com wrote: Hello, I got a little question on when to use style and android:theme in a layout xml file. For example: style=?android:attr/textAppearanceSmall does the same thing as:

[android-developers] Service works on 1.1, not on 1.5

2009-05-19 Thread Ward Willats
Our remote service is working great on 1.1. It is a pretty rich API too. BUT, running the same code on cupcake, it hangs after the service returns the concrete interface stub it has new'd in onBind(). (onConnect() in the client's ServiceConnection is never executed.) Any thoughts? Thanks --

[android-developers] Re: Service works on 1.1, not on 1.5

2009-05-19 Thread Dianne Hackborn
Look at the log, post code, etc. On Tue, May 19, 2009 at 12:52 PM, Ward Willats goo...@wardco.com wrote: Our remote service is working great on 1.1. It is a pretty rich API too. BUT, running the same code on cupcake, it hangs after the service returns the concrete interface stub it has

[android-developers] Re: android.R.drawable -- safe to use?

2009-05-19 Thread Romain Guy
Yes, they are considered public API. On Tue, May 19, 2009 at 12:43 PM, twan twa...@gmail.com wrote: I think they are, otherwise they shouldn't be public available ;) On May 19, 9:41 pm, Howie howie.silb...@gmail.com wrote: Are the images in android.R.drawable considered safe for third-party

[android-developers] Re: Custom transitions for Activity in 1.5

2009-05-19 Thread android_dev
Anyone successful in setting a custom transition for an app or activity (different from the default slide left/right)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Animating Drawables from within SurfaceView

2009-05-19 Thread steve_macleod
Ok, just wanted to be sure there wasn't an easy api based way that I may have missed! I WILL do it by myself! cheers :) On 19 May, 20:15, Dianne Hackborn hack...@android.com wrote: Do it yourself.  If you are using SurfaceView, you should be able to write your own code to render bitmaps to

[android-developers] Could Android play RGB 24-bit color depth format video?

2009-05-19 Thread Edware
Dear Sir, As I know, Android only supports RGB 16-bit color depth format. Could Android play 24-bit color RGB format video and REALLY see 24-bit color now? If it is not, will it be supported by Android Donut in the future? --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Activity can't be displayed from a notification

2009-05-19 Thread bcavagnolo
I'm having this exact same problem with android 1.5. Specifically, when I plug in the USB, press the MENU button, and select Notifications, the USB connected option appears. But when I click it, nothing happens. I've concluded [as Devin Yu did] that the UsbStorageActivity is getting launched

[android-developers] PNG Color Issue

2009-05-19 Thread Tony Wu
Once I want to put the pictures in my application, I meet this problem. The color presented by Android device or emulator was different from the original png files. I made a simple application to present the two pictures in one page and I fetch the picture as the following link:

[android-developers] hit region of Button fails on device but works in emulator

2009-05-19 Thread Brady
Hi there, I've created a button with a custom background which points to a selector. The selector xml points to a drawable defined in xml which is a rectangle with a linear gradient fill. My problem is that the hit region doesn't seem to fill the entire button on device only. When I click the

[android-developers] How to make this prompt menu after capture picture?

2009-05-19 Thread Vincent Tsao
hi, there is native app in G1 named Camera , after i take a photo, there is a prompt menu pop-up. Would somebody tell me how to implement this prompt ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] How to use dexopt independently?

2009-05-19 Thread profect
Hi all, I am wondering how to use dexopt independently? I noticed that many arguments have to be provided. Is there any better way than observing the arguments construction process in function dvmOptimizeDexFile? Many thanks. --~--~-~--~~~---~--~~ You received

[android-developers] can't access http://developer.android.com/

2009-05-19 Thread summer119
hi, why i can't access http://developer.android.com/ recently?? 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] How to resolve Fail to find an AVD compatible with target 'Android 1.5' ?

2009-05-19 Thread rogerhood
hi, all: My Eclipse is equiped with Cupcake SDK and I created an AVD in / tools/ folder. I run my program, then the console appear Fail to find an AVD compatible with target 'Android 1.5' . How to resolve it? Thanks!! Roger

[android-developers] I can't get into developer.android.com site

2009-05-19 Thread show summer
as title --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Listening to services

2009-05-19 Thread Rob Pridham
Hi. In my ideal little dream world, I'd like to have a custom service running that handles network comms. Activities (e.g. UIs) then add listeners to it and it provides callbacks when anything interesting happens. As it stands, I can't see how to do this in an appropriate way. OK, you can call

[android-developers] Is there anybody using lookandfeel on android?

2009-05-19 Thread stonestrange
excuse me, i am trying to use lookandfeel in my android project. and i found almost nothing in the internet about how to use lookandfeel in android project. is there anybody using it on android? and if you used it,would you mind tell me how to use it ok? thank you.

  1   2   >