[android-developers] Re: MediaPlayer PVMVErrTimeout error

2009-09-28 Thread Mark Skiba
After looking at related MediaPlayer discussions, I can discount a couple of possibilities:- my MediaPlayer is attached to the application object and is not affected Activity lifetimes (handles rotations ok) - the MediaPlayer creation and play are done in a separate thread than the activity thread

[android-developers] Re: rules for inflating layouts

2009-09-28 Thread Romain Guy
The code would help :) On Mon, Sep 28, 2009 at 1:56 PM, Jason Proctor jason.android.li...@gmail.com wrote: i'm running into some issues inflating layouts and i wonder whether i have something basic wrong. i have a ListView with a custom adapter etc, and of course the item View is custom

[android-developers] Problem with network location provider

2009-09-28 Thread David
Hi, there: I downloaded the cupcake branch and compiled to get a new system.img. I flashed the img to my G1 phone; then I checked the available location providers, but only gps is available. The networkprovider just is not there! Before the flashing, both gps and network providers are

[android-developers] Re: Content Provider VS SQLiteDatabase

2009-09-28 Thread GeezIHateCreatingNewNames
I've also struggled with the the distinction between a ContentProvider and just using a sqlite database. Clearly if the application is exporting data to other (potentially unknown) applications then a ContentProvider would make some sense. The more complicated case seems to be a single

[android-developers] Re: rules for inflating layouts

2009-09-28 Thread Mark Murphy
Jason Proctor wrote: in the ListView's getView(), i get my inflater and inflate the view by ID. the view itself has its own XML file. i can inflate the top view, but i can't find anything by ID, and when asked for its children, nothing comes back. when asked for its children -- when who

[android-developers] rules for inflating layouts

2009-09-28 Thread Jason Proctor
i thought by now you could read my mind :-) assuming that the XML enclosed in the post is in res/layout/contact_view.xml in the custom ListView... LayoutInflater inflater = LayoutInflater.from (this.context); // passing null here, as i'm assuming that the ListView will hook the view up with

[android-developers] Re: Content Provider VS SQLiteDatabase

2009-09-28 Thread Mark Murphy
GeezIHateCreatingNewNames wrote: The more complicated case seems to be a single application that has two processes in it (e.g, an application with a long running service). You do not need two processes for an application with a long running service. Not to mention that long-running services

[android-developers] Re: rules for inflating layouts

2009-09-28 Thread Mark Murphy
Jason Proctor wrote: i thought by now you could read my mind :-) assuming that the XML enclosed in the post is in res/layout/contact_view.xml in the custom ListView... LayoutInflaterinflater = LayoutInflater.from (this.context); // passing null here, as i'm assuming that the

[android-developers] Re: Application using service in different project

2009-09-28 Thread Evgeny V
Hi! I have some similar question. APK1 (not service) has public class A. How should I write class A or APK container to make it visble and importable from some other APK? In other words I need to use my first APK as library. Please advise. Thanks in advance, Evgeny On Tue, Sep 1, 2009 at 4:02

[android-developers] Re: rules for inflating layouts

2009-09-28 Thread Romain Guy
What Mark said. Also, the correct usage of inflate() in adapters is: inflate(layoutId, parent, false); Passing the parent (given to you as a parameter in getView()) allows the UI toolkit to create the appropriate LayoutParams object. Passing false tells the toolkit to NOT call

[android-developers] rules for inflating layouts

2009-09-28 Thread Jason Proctor
in the custom item View... LinearLayouttop = (LinearLayout) findViewById (R.id.contact_top_layout); Try contactView.findViewById(). thanks for the response. that's effectively what i'm doing, as the findViewById() call is done from inside the ContactView. sorry if the code

[android-developers] rules for inflating layouts

2009-09-28 Thread Jason Proctor
thanks for the response. i'm effectively calling contactView.findViewById(), as the call is from ContactView itself. i tried the suggested inflate() usage, no change on the behaviour though. ContactView still claims it has no children, and therefore findViewById (contact_top_layout) doesn't

[android-developers] Re: android 1.5 and 1.6 versions of SDK sitting side by side...

2009-09-28 Thread sdphil
okay, so I have 1.5 and 1.6 co-existing on my dev boxes / build machine. I change my manifest to still say: uses-sdk android:minSdkVersion=3 / I'm not sure what happens when I need to use a 1.6 feature. The build script still uses android --target 2 So that it can support

[android-developers] Re: Application using service in different project

2009-09-28 Thread Mark Murphy
Evgeny V wrote: Hi! I have some similar question. APK1 (not service) has public class A. How should I write class A or APK container to make it visble and importable from some other APK? In other words I need to use my first APK as library. Please advise. The closest thing to

[android-developers] Re: MyLocationOverlay causing crash in 1.6 (Donut)

2009-09-28 Thread CaptainSpam
Well, I suppose you do have a point. I just thought that 1.6's proper release was a bit more imminent. I'll check back once Donut's fully ready for prime time, then. Thanks! On Sep 26, 8:48 am, MrChaz mrchazmob...@googlemail.com wrote: Well if they will install a non-released version of the

[android-developers] Re: android 1.5 and 1.6 versions of SDK sitting side by side...

2009-09-28 Thread Xavier Ducrohet
You have most of it. the --target value that you project to 'android create project' or 'android update project' will define what APIs you compile against. If you want to use APIs from 1.6 you need to update your project with the 1.6 target. (The new SDK, starting with 1.5, can contains

[android-developers] rules for inflating layouts

2009-09-28 Thread Jason Proctor
sorted it out. can't call findViewById() in the ContactView constructor, as its tree hasn't been inflated under it yet. at least i think that's what's going on. the ListView can see ContactView children just fine. thanks for the responses, chaps. What Mark said. Also, the correct usage of

[android-developers] Re: rules for inflating layouts

2009-09-28 Thread Mark Murphy
Jason Proctor wrote: sorted it out. can't call findViewById() in the ContactView constructor, as its tree hasn't been inflated under it yet. at least i think that's what's going on. Ah, yes -- sorry, but the custom View was causing a mental block. There is an onFinishInflate() method you

[android-developers] Re: Start the CallLog Activity via Intent

2009-09-28 Thread Matt
So it obviously cannot find an activity that can handle the Intent. Does somebody know why? Wrong URI? Wrong action? On 28 Sep., 02:04, Matt reisc...@googlemail.com wrote: unfortunately that did not work either. On 28 Sep., 00:29, iPaul Pro mr.paulbu...@gmail.com wrote: Intent i = new

[android-developers] Re: bindService, unbindService, ServiceConnection

2009-09-28 Thread Took
I have exactly the same problem, is there any solution? On Sep 17, 1:32 am, sdphil phil.pellouch...@gmail.com wrote: i have a service and an activity that will connect to that service. from what i can tell -- bindService() generates a call to ServiceConnection.onServiceConnected ()

[android-developers] rules for inflating layouts

2009-09-28 Thread Jason Proctor
Ah, yes -- sorry, but the custom View was causing a mental block. There is an onFinishInflate() method you can override that gets control, well, when the inflate is finished. There, your children are ready and you can have them do what you want. onFinishInflate() is perfect, thanks. all my

[android-developers] Android XML Schema Location

2009-09-28 Thread Mihai Fonoage
Hi, The Android XML Schema is declared in the xml files as being at http://schemas.android.com/apk/res/android;. Since this URL is not found, how does Android validate the xml attributes that are in the Android namespace? I am guessing the schema file comes bundled with the SDK, in which case

[android-developers] Re: Android XML Schema Location

2009-09-28 Thread Romain Guy
There is no schema, this is just an identifier for the namespace. On Mon, Sep 28, 2009 at 4:04 PM, Mihai Fonoage fonoag...@gmail.com wrote: Hi, The Android XML Schema is declared in the xml files as being at http://schemas.android.com/apk/res/android;. Since this URL is not found, how does

[android-developers] Re: Content Provider VS SQLiteDatabase

2009-09-28 Thread GeezIHateCreatingNewNames
On Sep 28, 2:09 pm, Mark Murphy mmur...@commonsware.com wrote: GeezIHateCreatingNewNames wrote: The more complicated case seems to be a single application that has two processes in it (e.g, an application with a long running service). You do not need two processes for an application

[android-developers] Re: Android XML Schema Location

2009-09-28 Thread Mihai Fonoage
But if I change the identifier to something else, it does not work, hence the http://schemas.android.com/apk/res/android; value of the namespace has to have some kind of (internal) meaning. I get though that the validity of the attributes is based on the parent element (as per my understanding),

[android-developers] REGRESSION - trap in android 1.6 SDK inflating DialogPreference from XML

2009-09-28 Thread Lee
Code that was working fine on 1.5 is now trapping on 1.6 while inflating a DialogPreference. I've got a tab host and one of the tabs is hosting a PreferenceActivity. In the onCreate of the preference activity the preferences are loaded from XML using the following call: public void

[android-developers] surfaceflinger compiz

2009-09-28 Thread Westermann Fu
Hi, All: I don't know whether this is the right place to post my question, maybe my question is more related with android framework design. I think android is designed with composited desktop in heart, here I mean each window doesnot render itself directly on screen, rather they are rendered to

[android-developers] Re: Android XML Schema Location

2009-09-28 Thread Dianne Hackborn
It's the namespace that the android framework resources live in. It's just a namespace, but if you change the namespace, you totally change the meaning of the XML file because by definition all attributes that were in the old namespace have changed their identity to something unrelated in a

[android-developers] Re: REGRESSION - trap in android 1.6 SDK inflating DialogPreference from XML

2009-09-28 Thread Romain Guy
DialogPreference is an abstract class and cannot be instantiated. There was a bug in the VM in 1.5 that would allow abstract classes to be instantiated through reflection. Sorry it broke your app but the 1.6 behavior is the correct one. Having an instance of an abstract class is very wrong and

[android-developers] How to rotate a drawable programmatically?

2009-09-28 Thread Micah
In my application I want to be able to rotate a view programmatically rather than via XML. I can easily create a rotate/ drawable that references my Drawable, but I can not figure out how to do the same thing in Java. The problem is that many drawables in my scene can be displayed either

[android-developers] Re: How to rotate a drawable programmatically?

2009-09-28 Thread Romain Guy
Yes you can, you need to call setLevel(). On Mon, Sep 28, 2009 at 5:47 PM, Micah mi...@zoltu.net wrote: In my application I want to be able to rotate a view programmatically rather than via XML.  I can easily create a rotate/ drawable that references my Drawable, but I can not figure out how

[android-developers] Re: How to rotate a drawable programmatically?

2009-09-28 Thread Romain Guy
Oh wait, sorry, you can't. File a bug, I'll try to fix that asap. On Mon, Sep 28, 2009 at 5:47 PM, Micah mi...@zoltu.net wrote: In my application I want to be able to rotate a view programmatically rather than via XML.  I can easily create a rotate/ drawable that references my Drawable, but

[android-developers] Re: How to rotate a drawable programmatically?

2009-09-28 Thread Micah
A bug stating that you can't instantiate a RotateDrawable in Java and set it's fromDegrees and toDegrees? Or are you referring to something else that is a bug? On Sep 28, 5:51 pm, Romain Guy romain...@google.com wrote: Oh wait, sorry, you can't. File a bug, I'll try to fix that asap. On

[android-developers] Re: How to rotate a drawable programmatically?

2009-09-28 Thread Romain Guy
The fact that you cannot set from and toDegrees from code. On Mon, Sep 28, 2009 at 5:56 PM, Micah mi...@zoltu.net wrote: A bug stating that you can't instantiate a RotateDrawable in Java and set it's fromDegrees and toDegrees?  Or are you referring to something else that is a bug? On Sep

[android-developers] Build APK file from command line...

2009-09-28 Thread HandsomeboyIT
Hi everyone, I want to build the .apk file from java binary file (.class) or .dex file. I have copied the bin+res folder and Manifest.xml file to a specified folder. and run the command : [apkbuilder.bat %FILE_NAME% -rf ./src_folderr] this command build the new .APK file with default

[android-developers] is there a way to simulate a dropped connection in the emulator?

2009-09-28 Thread sdphil
maybe more importantly going out of range. specifically going out of data range (not voice). i.e. i'm browsing for something and I go out of range. or to control the speed of the connection? tia. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Android XML Schema Location

2009-09-28 Thread Mihai Fonoage
Thanks both for your explanations! Mihai Fonoage On Sep 28, 8:19 pm, Dianne Hackborn hack...@android.com wrote: It's the namespace that the android framework resources live in.  It's just a namespace, but if you change the namespace, you totally change the meaning of the XML file because by

[android-developers] Re: Can't i call a service function in activity's onStart/onCreate?

2009-09-28 Thread bear tung
Thanks. I want to know when the the service connection is connected. It seems like won't connected before the ui show up. The thing i what to do is show the UI based on the servie's some function's return value. There is something like callback function when the connection done? On Tue, Sep 29,

[android-developers] Re: REGRESSION - trap in android 1.6 SDK inflating DialogPreference from XML

2009-09-28 Thread Lee
Ok thanks that's great information I'll look into it. Lee On Sep 29, 10:38 am, Romain Guy romain...@google.com wrote: DialogPreference is an abstract class and cannot be instantiated. There was a bug in the VM in 1.5 that would allow abstract classes to be instantiated through reflection.

[android-developers] Re: Build APK file from command line...

2009-09-28 Thread Xavier Ducrohet
Use the -u option to create an unsigned package and then call jarsigner to sign the generated apk. On Mon, Sep 28, 2009 at 6:52 PM, HandsomeboyIT handsomebo...@gmail.com wrote: Hi everyone, I want to build the .apk file from java binary file (.class) or .dex file. I have copied the bin+res

[android-developers] Dose opencore support multi-streams selection

2009-09-28 Thread nearfuture
Hi,all Do anyone knows Opencore player engine support multi-stream selection. For example, for the avi file, it may contain several audio streams, so can the player support to switch among them? Until now, I didn't find any code to support it

[android-developers] Re: Build APK file from command line...

2009-09-28 Thread HandsomeboyIT
Thanks Xavier, I use these command apkbuilder.bat %FILE_NAME% -u -rf ./project_folder then keytool -genkey -v -keystore path_to_my_keystore.keystore -alias my_alias -keyalg RSA -validity 1 then input some information... The result is like this : Generating 1,024 bit RSA key pair and

[android-developers] Re: Build APK file from command line...

2009-09-28 Thread HandsomeboyIT
And ... I don't know why I didn't find the zipalign tool in Andriod SDK's tools follder or Java-bin folder... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: Running camera android Emulator

2009-09-28 Thread Chi Kit Leung
http://www.tomgibara.com/android/camera-source Would this one be helpful? On Tue, Sep 29, 2009 at 12:53 AM, Shobhit Kasliwal shobhit.kasli...@gmail.com wrote: Hi Can anyone tell me how can I use my computers webcam as camera in android emulator. Tutorial would be a great help for me.

[android-developers] Re: Question about INSTALL_LOCATION_PROVIDER

2009-09-28 Thread itog
Hi, I found there was @hide keyword in the comment of installLocationProvider that meant it's not visible. I couldn't find any information about INSTALL_LOCATION_PROVIDER expect SDK 1.6 release note. Could anyone help me finding any information to use INSTALL_LOCATION_PROVIDER? Br/ itog

[android-developers] Re: Running camera android Emulator

2009-09-28 Thread shobhit kasliwal
I tried these wrapper classes...but no luck...can you tell me how can I do that..can you help me on this Thanks Shobhit On Mon, Sep 28, 2009 at 10:22 PM, Chi Kit Leung michaelchi...@gmail.comwrote: http://www.tomgibara.com/android/camera-source Would this one be helpful? On Tue,

[android-developers] Correct use of Task Affinities and LaunchModes

2009-09-28 Thread Gavin Bong
My android app contains a suite of mini apps. In short, every screen contains a navbar with several clickable icons, one each for the mini apps (and one for the Main screen). When an icon is clicked, the mini app is launched. In total I have 4 mini apps. So you could imagine that my main screen

[android-developers] Re: Disabling spelling suggestions in EditText

2009-09-28 Thread Brady
Scratch that, use textEmailAddress instead. Cheers, Brady --~--~-~--~~~---~--~~ You received this message 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] How do I resize my application to a smaller one placing it on top left?

2009-09-28 Thread Karthik P
Is there any way for me to resize an app to make it smaller and placing it top left? I understand that there is a theme - Dialog its possible to make the window size smaller but is it possible for me to dictate the x, y, dx, and dy where the dialog has to be placed? Karthik

[android-developers] zipalign and Eclipse: Does Eclipse do this automatically?

2009-09-28 Thread Streets Of Boston
Question: Does Eclipse automatically zipalign? In other words: If you use the Android 1.6 SDK, having it installed in Eclipse, and use Eclipse to sign your apk (right-click: Android Tools -- Export Signed Application Package), will your apk be zipaligned?

[android-developers] change key width runtime

2009-09-28 Thread Long
Hi, I want to change the key width in keyboard at runtime. The constructor of class Keyboard only accepts the layout resource ID. I tried setHeight method, but it didn't work obviously when I checked the code of Keyboard. Any solution? Do I have to implement my own Keyboard Thanks a lot

[android-developers] Re: zipalign and Eclipse: Does Eclipse do this automatically?

2009-09-28 Thread Xavier Ducrohet
Yes, in ADT 0.9.3. it's all explained here: http://android-developers.blogspot.com/2009/09/zipalign-easy-optimization.html Xav On Mon, Sep 28, 2009 at 9:42 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Question: Does Eclipse automatically zipalign? In other words: If you use the

[android-developers] Re: Build APK file from command line...

2009-09-28 Thread Xavier Ducrohet
zipalign is only in the tools folder of SDK 1.6 I don't know why your apk doesn't work. can you give us the content of your apk? Xav On Mon, Sep 28, 2009 at 8:01 PM, HandsomeboyIT handsomebo...@gmail.com wrote: And ... I don't know why I didn't find the zipalign tool in Andriod SDK's tools

[android-developers] Re: Cannot write SharedPreferences after update!! Help!

2009-09-28 Thread Sheado
Hello again.. I have more details about this problem.. perhaps somebody can help clarify things now =) So if I test by installing and upgrading via the browser only instead of the browser/market combination then things work out ok - I don't get the mismatched uid error:

[android-developers] Re: Take an action when soft keyboard is launched

2009-09-28 Thread Gulfam
Hi All, I also want to take some actions on soft keyboard appear and disappear. any one can help us how we can get appear and disappear events. Gulfam On Sep 29, 12:32 am, Thomas perd...@gmail.com wrote: Hi All, Does Nobody know that? thanks again Tomás On Fri, Sep 25, 2009 at

[android-developers] Re: How to sign up for ADC judge?

2009-09-28 Thread bellapariah
Search for Android Developer Challenge in the Market. Shelby On Sep 27, 11:22 pm, parchira tech pachira.t...@gmail.com wrote: where can I download theADCjudge application? Thanks! April --~--~-~--~~~---~--~~ You received this message because you are

<    1   2