[android-developers] Re: Conversion to Dalvik format failed with error

2009-04-09 Thread Mattaku Betsujin
Did you try on SDK/emulator, or on real HTC G1? As far as I have tried, I never got video to work on the emulator. On Thu, Apr 9, 2009 at 9:34 PM, Nithin Varamballi wrote: > > Thank you sir.. Can you know how live video streaming can be done... I > tried demo > sample But i give error like"Cannot

[android-developers] Re: When will google post official cupcake SDK

2009-04-09 Thread Al Sutton
When the fix is in the open source repo I'll roll some new SDKs. As for a date for a Google originated SDK, there's no solid commitment to a date as yet. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England & Wales wit

[android-developers] showing graph in Application

2009-04-09 Thread jj
Hello I want to display graph(time ver distance) in Activity , how should be this achieved in Android. is there any tut available? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group.

[android-developers] Re: Key dispatching timed out

2009-04-09 Thread Ramesh
hi Streets Of Boston, Thanks for your reply.. I am new to android develoment.. Here is my code.. Kindly tell me what change i should do in this. Im downloading the image in a separate thread. But im calling the thread inside onCreate(). Is this the problem? Thanks. import java.io.BufferedInputS

[android-developers] Re: Conversion to Dalvik format failed with error

2009-04-09 Thread Nithin Varamballi
Thank you sir.. Can you know how live video streaming can be done... I tried demo sample But i give error like"Cannot play the video". --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To pos

[android-developers] Re: Conversion to Dalvik format failed with error

2009-04-09 Thread Romain Guy
They don't use the JMF on Android, they use JMF on the dekstop to broadcast images to the emulator. On Thu, Apr 9, 2009 at 9:24 PM, Nithin Varamballi wrote: > > Thanks for reply > >  But i saw in site http://www.tomgibara.com/android/camera-source > In that they use the JMF > > > > -- Romain

[android-developers] Live Video streaming

2009-04-09 Thread Nithin
HI to all Can anyone knows how Live Video streaming can be done Thanks in advance Nithin N V --~--~-~--~~~---~--~~ 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: Conversion to Dalvik format failed with error

2009-04-09 Thread Nithin Varamballi
Thanks for reply But i saw in site http://www.tomgibara.com/android/camera-source In that they use the JMF --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send emai

[android-developers] Re: When will google post official cupcake SDK

2009-04-09 Thread Howie
When is Google planning on distributing an SDK that does not have such a bug? On Apr 9, 12:16 pm, Romain Guy wrote: > The SDK Al is distributing contains a bug that prevents the emulator > from using the network. > > On Thu, Apr 9, 2009 at 11:59 AM, Mattaku Betsujin > > > > wrote: > > Thanks Al

[android-developers] Re: Conversion to Dalvik format failed with error

2009-04-09 Thread Romain Guy
You cannot use Java MediaFramework with Android. On Thu, Apr 9, 2009 at 9:09 PM, Nithin wrote: > > Hi to all > >            I include JMF in my application. When i run my application > the following type of error > will occurring... > > [2009-04-09 16:20:03 - nithin] > trouble processing "ja

[android-developers] JavaMediaFramework

2009-04-09 Thread Nithin
HI to all. Is it possible to include JavaMediaFramework for android application --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

[android-developers] Conversion to Dalvik format failed with error

2009-04-09 Thread Nithin
Hi to all I include JMF in my application. When i run my application the following type of error will occurring... [2009-04-09 16:20:03 - nithin] trouble processing "javax/sound/midi/ControllerEventListener.class": [2009-04-09 16:20:03 - nithin] Attempt to include a core VM class

[android-developers] Re: Send Email Automatically

2009-04-09 Thread Eileen Novack
Thank you for the quick answer Dianne. It confirms that I'll just have to include another implementation of SMTP into my app. Though I still think it would be nice if could set up an Intent, loaded with the proper information in an attached bundle that would specify the email account, the acco

[android-developers] no root access.. how to put file...

2009-04-09 Thread BIRJODH
I am not able to understand one simple issue.. if there is no root access to file system even to the user who owns the phone then why on earth would the dev guide include commands like adb push sdcard when the sdcard of emulator is read only.. Is this some kind of mockery or sarcasm with t

[android-developers] Re: ListView not touchable in my Activity

2009-04-09 Thread Chander Pechetty
I don't see any itemClickListener registered ? --~--~-~--~~~---~--~~ 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

[android-developers] Re: ERROR/MediaPlayer(1066): setDataSource called in state 128

2009-04-09 Thread ATrubka
I agree that it's most likely me doing something wrong. It looks like when the audio file is about to end the state of MediaPlayer gets changed in the native code. And maybe reset() doesn't take effect during this process while setDataSource(), invoked right after, finds player not to be ready. M

[android-developers] Re: Recording Audio

2009-04-09 Thread bw
Hi, the following code works for me. I was also getting the "Start failed." error at one point. Fixed it by changing my output file extension from ".3gpp" to ".audio" -Ben final String path = "/sdcard/recording" + System.currentTimeMillis() + "_" + (int)(Math.random() * 1000)+ ".audio"; fin

[android-developers] Re: android.permission.GET_ACCOUNTS

2009-04-09 Thread Dianne Hackborn
We unfortunately left most of the permission string constants in the SDK, even for ones protecting private APIs. So something being there doesn't mean there is an API for it. On Thu, Apr 9, 2009 at 7:28 PM, strazzere wrote: > > Are there any examples of how to use android.permission.GET_ACCOUNT

[android-developers] android.permission.GET_ACCOUNTS

2009-04-09 Thread strazzere
Are there any examples of how to use android.permission.GET_ACCOUNTS ? Or is this an unimplimented api? I found this site; http://joakim.erdfelt.com/wiki/index.php/AndroidGetAccount Though I haven't been able to get anything to work. I believe JBQ said it was a private api - but I'm not sure why

[android-developers] Re: CONTROL_LOCATION_UPDATES permission failure

2009-04-09 Thread alexdonnini
Hello Richard, Thanks very much. This is very helpful. I am using the same SDK version but in this case I was not using the SDK. I had been experimenting with LocationListener too. I had been using onLocationChanged. Again, Thanks. Alex Donnini On Apr 9, 7:32 pm, Richard Schilling wrote: > I

[android-developers] Re: Animation on a view doesn't 'stick' in reality

2009-04-09 Thread fg1921
Okay I've figured it out. I would personally consider this a bug but not sure if this is how it's meant to be. Basically in onAnimationEnd I had to loop over all children inside the viewgroup (and children of children) and set their visibility to GONE/ INVISIBLE and the buttons stopped getting to

[android-developers] Re: Animation on a view doesn't 'stick' in reality

2009-04-09 Thread fg1921
> > myView.startAnimation(myAnimation); > myView.setVisibility(View.INVISIBLE); // or GONE > > Android will hide the View and run the animation but still draw the > View as long as the animation is running. Thanks Romain - I did this (and the completion listener) neither of these work. Basically

[android-developers] Re: list of request codes - their names and values?

2009-04-09 Thread Mark Murphy
Rob Franz wrote: > What I am doing is getting the URI of the ringtone that the user selects > in the ringtone picker. Then I save it for later use. That should be in your preferences, though. After all, you're the one asking for the ringtone via the RingtonePreference, right? Just open up your

[android-developers] speech bubble like in Google Maps

2009-04-09 Thread puk
I'm coding an application wich uses the map. The map shows moving Objects. The direction in which objects are move should be(displayed as arrow) the object-image. so i startet with the implementation of the map view. How can i create objects on the map, which (after klicking on them) are able to

[android-developers] Re: Stopping all services..

2009-04-09 Thread Mark Murphy
greggnic wrote: > I see your point and definitely agree. I would really like to see a > sleep timer function for the music player though and don't think I > would be able to write a whole music player application that could > compete with the others out there... Well, the built-in music player is

[android-developers] Re: list of request codes - their names and values?

2009-04-09 Thread Rob Franz
What I am doing is getting the URI of the ringtone that the user selects in the ringtone picker. Then I save it for later use. It works, but I'm just trying to figure out what that request code is. Thanks Rob On Thu, Apr 9, 2009 at 7:15 PM, Mark Murphy wrote: > > Rob Franz wrote: > > But this

[android-developers] Re: problems with bitmaps

2009-04-09 Thread Mark Murphy
mark.ka...@gmail.com wrote: > There's been a number of threads on this issue, the BitmapFactory > tends to throw this out of memory errors when it really shouldn't, > looks like a bug or memory leak. I'm not sure if it's cataloged as an > official bug though. If you have a reproducible test ca

[android-developers] new NTP client tools on the Android Market

2009-04-09 Thread Richard Schilling
For those of you dealing with time data on the Android - or just want to see an NTP client work, check out the application I just published. It's free of course, and it's called "Navy Clock" It displays local time of the phone, the UTC time of the phone, and the time read from the US Naval Obser

[android-developers] Re: Stopping all services..

2009-04-09 Thread greggnic
I see your point and definitely agree. I would really like to see a sleep timer function for the music player though and don't think I would be able to write a whole music player application that could compete with the others out there... On Apr 9, 6:12 pm, Mark Murphy wrote: > greggnic wrote: >

[android-developers] Re: problems with bitmaps

2009-04-09 Thread Romain Guy
BitmapFactory does not leak. It throws an OutOfMemoryException when there's no more memory available. That's all. On Thu, Apr 9, 2009 at 4:36 PM, wrote: > > >  There's been a number of threads on this issue, the BitmapFactory > tends to throw this out of memory errors when it really shouldn't,

[android-developers] Re: Animation on a view doesn't 'stick' in reality

2009-04-09 Thread Romain Guy
> Any way to do this without setting up an animation completion handler > and then hide the view explicitly? Yes and no. No because you still need to hide the view yourself. Yes because you can just do this: myView.startAnimation(myAnimation); myView.setVisibility(View.INVISIBLE); // or GONE An

[android-developers] Animation on a view doesn't 'stick' in reality

2009-04-09 Thread fg1921
Hi I'm using a TranslateAnimation to slide a ViewGroup in and out of screen. However after the animation slides the view out, the transparent view is still 'clickable' in the same place. I used setFillAfter to TRUE thinking that the animation would 'stick' but I can't seem to get the view out of

[android-developers] Re: problems with bitmaps

2009-04-09 Thread mark . kahrl
There's been a number of threads on this issue, the BitmapFactory tends to throw this out of memory errors when it really shouldn't, looks like a bug or memory leak. I'm not sure if it's cataloged as an official bug though. Using bitmap.recycle(), and reducing the sample size will mitigate , bu

[android-developers] Re: ListView row not receiving highlight with ImageButton in row

2009-04-09 Thread fg1921
Ok I can see setting it to non-focusable 'solves' the problem but that's not really what I was hoping to do. Well, too bad, the user can't focus but only tap now. On Apr 9, 9:21 pm, fg1921 wrote: > Hi > > This must be something very simple but I've tried almost everything > and still can't get t

[android-developers] Re: CONTROL_LOCATION_UPDATES permission failure

2009-04-09 Thread Richard Schilling
I have the SDK version 1.1r1 on my machine, and Actually don't see this API call in the current version. What version of the SDK are you using? Anyway, I assume you want to cell tower location and such. Try creating a listener, and then registering your listener with the TelephonyManager. Star

[android-developers] Re: list of request codes - their names and values?

2009-04-09 Thread Mark Murphy
Rob Franz wrote: > But this is a RingtonePreference - I'm not starting the activity from > code. RingtonePreference is defined in preferences.xml (which defines > how the Preferences are laid out). > > All I know is that the request code - not the *result code* - that is > returned is 100. > >

[android-developers] Re: Permissions to install other apps...

2009-04-09 Thread Dianne Hackborn
That's why apps can't install other apps without the user being involved. I was addressing the first part of the original poster's request, being able to download and run Dalvik code in your own process. In that case the new API will let you do this, though of course you are running the other cod

[android-developers] Re: list of request codes - their names and values?

2009-04-09 Thread Rob Franz
But this is a RingtonePreference - I'm not starting the activity from code. RingtonePreference is defined in preferences.xml (which defines how the Preferences are laid out). All I know is that the request code - not the *result code* - that is returned is 100. I need to know the name associated

[android-developers] Re: OOM errors during inflation

2009-04-09 Thread Niek
Hi Romain, Thanks a lot for your answer: this should definitely help fix the issue! In fact, I wouldn't be surprised if a lot of posts regarding OutOfMemory issues are caused by the same problem. However, I think many hours of bug hunting could have been prevented if this 'recycler' point was me

[android-developers] Re: Permissions to install other apps...

2009-04-09 Thread BIRJODH
Would not it be somewhat dangerous to allow apps is /data/app folder to install other applications?? An app can just create an infinite loop in which downloads applications which do not require any permission and keep on installing them and fill out the memory space? Birjodh On Apr 9, 1:56 pm,

[android-developers] Re: Exception locking surface - lockCanvas() returns a null?

2009-04-09 Thread Dianne Hackborn
If you want to use the standard 2d APIs, don't use OpenGL. On Thu, Apr 9, 2009 at 1:45 PM, mcmc wrote: > > wow thanks so much for your help. I think you're right! :D > > however, now I run into another problem. Do you know how to convert > openGL to simply using the standard android/java 2D APIs

[android-developers] Re: More Than One Instance of Application

2009-04-09 Thread Dianne Hackborn
It brings the currently running instance to the foreground. On Thu, Apr 9, 2009 at 2:39 PM, Noam wrote: > > Hello, > Is there a way to prevent the user of opening more than one instance > of my application? > > For example: > User clicks on App and opens it. > The user clicks on the home button.

[android-developers] Re: Stopping all services..

2009-04-09 Thread Mark Murphy
greggnic wrote: > I just started writing an application for android and have run into a > wall. I would like my program to wait a certain amount of time and > then stop all currently running services. IMHO, that would be a rather significant security issue. -- Mark Murphy (a Commons Guy) http:

[android-developers] How to determine the amount of characters that will fit into a TextView

2009-04-09 Thread nwmotog...@gmail.com
I am trying to place only the exact amount of data into a TextView but I need to know how much it can hold. Is there a way to do this based on it's height, width and the textsize? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[android-developers] Re: API Demos APK not running.

2009-04-09 Thread Mark Murphy
tamal123 wrote: > Hi, > I am trying to run API-Demos.apk in the zoom board. But it seems, the > APK is not getting installed properly. I have compiled the CodeBase > using Eclipse, and source is been taken from Android SDK 1.0. > > Please let me know, how can i run the application on zoom board.

[android-developers] Re: sample source code for beginner

2009-04-09 Thread Mark Murphy
tonyc...@gmail.com wrote: > I'm trying to get my 1st android application (blackjack) going and am > so confused with layouts button etc etc. Are there any sample source > code for me to review? I have ran through the source that come with > the SDK and the android source tree. > > Still pretty co

[android-developers] Re: Read the SMS already stored

2009-04-09 Thread Birjodh Tiwana
I think you need READ_SMS permission for reading the SMS. On Wed, Apr 8, 2009 at 7:29 PM, sermojohn wrote: > > You could probably, call a Cursor's method that returned the field of > the specified content's datbase table. > I have actually faced the same problem today, while trying to build >

[android-developers] More Than One Instance of Application

2009-04-09 Thread Noam
Hello, Is there a way to prevent the user of opening more than one instance of my application? For example: User clicks on App and opens it. The user clicks on the home button. (the app is still running in the background) The user clicks on (not the menu button, but the button above it in the hom

[android-developers] Re: Drawable or Uri for Notification icon

2009-04-09 Thread android_dev
Looking for comments on this On Mar 24, 11:20 pm, android_dev wrote: --~--~-~--~~~---~--~~ 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@googlegrou

[android-developers] Re: Visibility of ImageButton

2009-04-09 Thread intbt
Thanks for the information. Not sure how I could get out of the onclicklistener so I fixed the problem but changing the image source (image with arrow, image no arrow) within the listener (based on list position value). So it works as I wanted. On Apr 8, 12:47 pm, Mark Murphy wrote: > intbt wro

[android-developers] problems with bitmaps

2009-04-09 Thread petunio
Hi everybody I am having a problem with the BitmapFactory: this is my function, that reads a stream, and returns a bitmap: static Bitmap getBitmap(InputStream is) throws IOException { Bitmap bmp=null; //do some stuff... bmp=BitmapFactory.decodeS

[android-developers] Re: sample source code for beginner

2009-04-09 Thread Yusuf T. Mobile
Hi Tony. No, you are not stupid, although you would be if you didn't listen to my as-usual perfectly awesome advice. I recommend you look at the Android tutorial at http://developer.android.com/guide/index.html, and for UI layouts, see http://developer.android.com/guide/topics/ui/declaring-layout

[android-developers] Re: Exception locking surface - lockCanvas() returns a null?

2009-04-09 Thread mcmc
wow thanks so much for your help. I think you're right! :D however, now I run into another problem. Do you know how to convert openGL to simply using the standard android/java 2D APIs? On Apr 9, 2:31 am, "ellipsoidmob...@googlemail.com" wrote: > I hadn't realised you are doing openGL stuff. I'v

[android-developers] Re: How to login to the root of Android Dev Phone 1?

2009-04-09 Thread tibigiur...@gmail.com
Hi Gavin, Giving full rights to everything in /data is not a very good idea. I don't think chmod supports -R on android so it might not be possible at all. The easiest way to remove everything related to your application would be to uninstall it from "manage applications". Then when you'll run it

[android-developers] Re: ERROR/MediaPlayer(1066): setDataSource called in state 128

2009-04-09 Thread Marco Nelissen
I am one, and the error you posted indicates you called setDataSource while the MediaPlayer was in the 'playback completed' state. It could be a race condition in the framework, but since I have never seen this problem occur with the Android music app, I'm inclined to think it's a problem with you

[android-developers] Re: Intent to Trigger a Dialog Only

2009-04-09 Thread droozen
Works perfectly. Thanks! On Apr 9, 2:53 pm, Dianne Hackborn wrote: > Use Theme.Dialog for your activity's theme, and just put your dialog > contents inside of it instead of in a separate Dialog window. > > On Thu, Apr 9, 2009 at 12:41 PM, droozen wrote: > > > I want to expose a portion of my ap

[android-developers] ListView row not receiving highlight with ImageButton in row

2009-04-09 Thread fg1921
Hi This must be something very simple but I've tried almost everything and still can't get this to work. Basically I've made a custom LinearLayout view with a TextView and an ImageButton to be used as a row for a ListView. The moment I use an ImageButton tapping on the row does not highlight the

[android-developers] Re: How I call startActivity() in BradocastReceiver

2009-04-09 Thread Marco Nelissen
You already asked this exact same question from a different email address. Please don't start multiple threads for the same question. On Tue, Apr 7, 2009 at 11:26 AM, yeons...@gmail.com wrote: > > hello, > > I'd like to launch one of settings app screen when I received a > certain event in idle

[android-developers] Re: Playback of dynamic MIDI?

2009-04-09 Thread Marco Nelissen
This is not possible right now. On Wed, Apr 8, 2009 at 8:26 PM, meantime wrote: > > For one of my apps I generate MIDI data on the fly.  Is there any way > to play MIDI data from a java.io.InputStream or directly from a byte > []?  So far I've only seen ways to do MIDI playback from files.  Giv

[android-developers] Re: Intent to Trigger a Dialog Only

2009-04-09 Thread Dianne Hackborn
Use Theme.Dialog for your activity's theme, and just put your dialog contents inside of it instead of in a separate Dialog window. On Thu, Apr 9, 2009 at 12:41 PM, droozen wrote: > > I want to expose a portion of my app with an intent that will only > display a simple dialog box for system setti

[android-developers] Re: weird accelerometer readings?

2009-04-09 Thread Todd Sjolander
That looks pretty normal to me. On a perfectly level desk, you'd get numbers that sit around 0, 0, and -9.8. I don't know what causes the fluctuations, but that's just how it works. It's not an error. On Apr 8, 9:29 pm, Yuan wrote: > I implemented a simple program to record the accelerometer

[android-developers] Intent to Trigger a Dialog Only

2009-04-09 Thread droozen
I want to expose a portion of my app with an intent that will only display a simple dialog box for system setting. The only way I currently know how to do this is to have an activity that accepts an intent. In the activity I don't use setContentView. I only create and show the dialog. The activity

[android-developers] Re: Audio record from Bluetooth headset

2009-04-09 Thread Nick Pelly
On Thu, Apr 9, 2009 at 6:08 AM, Dilli wrote: > > > > Hi all > > I am developing a recorder application > It works fine with Microphone. > > I want to record from Blue tooth headset > > i set it like > > my_Aud_Mgr.setMicrophoneMute(true); //AudioManager my_Aud_Mgr; > my_Aud_Mgr.setBluetoothS

[android-developers] Re: When will google post official cupcake SDK

2009-04-09 Thread Romain Guy
The SDK Al is distributing contains a bug that prevents the emulator from using the network. On Thu, Apr 9, 2009 at 11:59 AM, Mattaku Betsujin wrote: > Thanks Al. I downloaded it. Works great. > > However, I couldn't connect to the network. E.g., launching browser will > show an error page. logc

[android-developers] Re: When will google post official cupcake SDK

2009-04-09 Thread Mattaku Betsujin
Thanks Al. I downloaded it. Works great. However, I couldn't connect to the network. E.g., launching browser will show an error page. logcat reports "Unknown host www.google.com, throwing UnknownHostException". I have a 1.0 emulator working on the same PC and it can access network just fine. I t

[android-developers] Re: Incorrect clip rect in onDraw()?

2009-04-09 Thread Romain Guy
setText() invalidates the TextView entirely and when two invalidates happen in the same UI event (as it is the case in your code), the invalidate region becomes the union of the two original invalidate regions. On Wed, Apr 8, 2009 at 6:40 PM, Leisuresuit Larry wrote: > > Hi all, > > We came acro

[android-developers] Re: OOM errors during inflation

2009-04-09 Thread Romain Guy
There is no memory leak in LayoutInflater. While this is never a proof, it's something we never encountered in any of the apps we wrote. Also, the Android team works very hard to plug all the memory leaks we can find and when we tell developers to use less memory it's when we're pretty sure that t

[android-developers] Re: layout_weight is inconsistent for horizontal and vertical orientation.

2009-04-09 Thread Romain Guy
I already explained this to you :) The weight is meant to distribute the remaining empty space amongst the views. In your case, there is NO remaining empty space since all your views are "fill_parent" (i.e., they are as wide and as tall as their parent.) In this case, LinearLayout *subtracts* the

[android-developers] Re: How could I put tab widget at the right or left side ?

2009-04-09 Thread nEx.Software
Something I am in the process of doing right now. It's wonderful being able to look at the source of the TabWidget in GIT. makes it a lot easier. On Apr 9, 11:19 am, Dianne Hackborn wrote: > It's not supported.  You'd need to write your own tab widget (which is > certainly possible, there is not

[android-developers] Re: When will google post official cupcake SDK

2009-04-09 Thread Al Sutton
http://andappstore.com/AndroidPhoneApplications/sdk/ --- * 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 head office is Kemp House, 152-160 City Road, London, EC1V 2

[android-developers] When will google post official cupcake SDK

2009-04-09 Thread Mattaku Betsujin
Even a "beta" SDK would be helpful. There are lots of app developers who don't necessarily know how to build cupcake from the GIT. Given that HTC Magic (based on cupcake, I heard) is rolling out real soon now, wouldn't it be nice to give the app developers a chance to test if their app is compatibl

[android-developers] Subclassed ImageView does not draw in Gallery View

2009-04-09 Thread George
I am subclassing the ImageView class and adding to the Gallery View. But, nothing seems to get drawn in the expected location; though I can fling through the Gallery list. I added an image from a resource, and it shows up correctly in the Gallery. Any idea on why this may be happening? Here is t

[android-developers] Re: How could I put tab widget at the right or left side ?

2009-04-09 Thread Dianne Hackborn
It's not supported. You'd need to write your own tab widget (which is certainly possible, there is nothing especially magical about tab widget). On Wed, Apr 8, 2009 at 6:54 PM, milton wrote: > > Hi all > > Currently I could find tab widget which located at the upper side of > the screen. (ex. D

[android-developers] Re: Send Email Automatically

2009-04-09 Thread Dianne Hackborn
On Wed, Apr 8, 2009 at 5:58 AM, Eileen Novack wrote: > I have been following this thread with some interest. Since I also want to > be able to send an email without any user intervention. Now before anyone > says that should not be possible since it would be a security problem, let > me point out

[android-developers] CONTROL_LOCATION_UPDATES permission failure

2009-04-09 Thread alexdonnini
Hello, Although the manifest file in my application contains the operation, mTelephonyManager.enableLocationUpdates(); fails with 04-09 14:01:01.754: WARN/System.err(5495): java.lang.SecurityException: Neither user 10026 nor current process has android.permission.CONTROL_LOCATION_UPDATES.

[android-developers] Re: How I call startActivity() in BradocastReceiver

2009-04-09 Thread Dianne Hackborn
1. This is the wrong group, you should be posting in android-porting. 2. You should post enough information for people to actually help you. What does "phone goes in panic" mean? Is there a stack crawl? Log output? What? 3. There is lots of documentation in the SDK about these things. Please be

[android-developers] Re: is there best way to passing array buffer between Activity in same application

2009-04-09 Thread Dianne Hackborn
Really really do not pass large amounts of data (such as bitmaps) through an Intent. This data must be marshalled over to the system process, held there the entire time the target activity can be in use, and marshalled back over to the application process when the activity is being launched. You

[android-developers] Re: Problem Starting New Activity

2009-04-09 Thread Dianne Hackborn
You can't currently replace the in-call experience. On Thu, Apr 9, 2009 at 6:58 AM, Marc Poppleton wrote: > > Hi, > > Where is the PHONE_STATE_CHANGED Intent defined? I can't find it > anywhere in the documentation and am in a situation similar to Bnet's. > I'm trying to get my Activity to pop-up

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

2009-04-09 Thread Dianne Hackborn
Have you tried just launching the activity from elsewhere to see if it actually works at all? (For example you can use the am command to launch an activity.) Fwiw, you don't want to use the Theme.Activity.Alert style. Actually that shouldn't even be part of the SDK, so I'm not sure how you are u

[android-developers] Re: WebView - issues with back button

2009-04-09 Thread Ravi Chittari
I tried this approach and it worked out fine. I followed step 3 and I used WebViewClient implemented my own shouldOverrideUrlLoading() >From within this method public boolean shouldOverrideUrlLoading(WebView view, String url) { Intent i = new Intent( Intent.ACTION_VIEW, Uri.parse(url)

[android-developers] Re: Positioning a Dialog at a required location (x,y)

2009-04-09 Thread Dianne Hackborn
You need to get the Window from the dialog, and update the window layout params as desired. On Wed, Apr 8, 2009 at 10:19 AM, sacchu wrote: > > Hi, > I'm displaying some content in a Dialog. By default the Dialog is > displayed at the center of the window. I would like to position it at > a l

[android-developers] Re: MVC model state change requires creating an Intent?

2009-04-09 Thread Dianne Hackborn
They are all running in the same process, and in fact there is a method on Activity to get the containing activity. Just wire these together however you want. On Thu, Apr 9, 2009 at 7:07 AM, nick.titatingmembr...@googlemail.com < nick.titatingmembr...@googlemail.com> wrote: > > Hi, > > I have a

[android-developers] Re: Permissions to install other apps...

2009-04-09 Thread Dianne Hackborn
There is an API in cupcake to allow you to perform the dexopt into your own directory. That will be available when cupcake is available. On Thu, Apr 9, 2009 at 2:05 AM, Eborix13 wrote: > > Hi, > > We are a team of Android developers and we are facing a serious > problem for quite some time. Our

[android-developers] Updating a built-in application - data preserved?

2009-04-09 Thread Ashutosh Sharma
Hi, There was a discussion on this earlier (http://groups.google.com/group/ android-developers/msg/59f5c1ad46e6b94c) - could someone confirm whether the functionality of updating a built-in/system application with a app published on the Android Market will be available in cupcake? If I have an a

[android-developers] Permissions to install other apps...

2009-04-09 Thread Eborix13
Hi, We are a team of Android developers and we are facing a serious problem for quite some time. Our app (a game client) is designed in such a way, that once it's installed it can be used to download games from a game server. In order for the downloaded games to work, they have to be installed an

[android-developers] Modular resources under eclipse

2009-04-09 Thread Pieter
I'm developing a family of applications that have a lot of functionality in common. In eclipse, I have a "core" project with all the base functionality. Each individual application project has this core project on its build path, so it can use the functionality offered by the core project. This w

[android-developers] Re: How to get the original string data?

2009-04-09 Thread Yusuf T. Mobile
XML handles some characters differently, for example quotes, and the Android XML parser is no different. I recommend you read up on it here: http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML What this means for your example is that you should

[android-developers] layout_weight is inconsistent for horizontal and vertical orientation.

2009-04-09 Thread Lars Dunemark
Hi everybody! I have played around a bit with the xml files for creating layouts and can't explain the behaviour of layout_weight when using it in a LinearLayout that has orientation="vertical" When creating a layout that is horizontal everything follows the documentation, that a child would get

[android-developers] How compile the apk file?

2009-04-09 Thread kimura...@gmail.com
How can i building my application alone, generate the apk file?? My source path look like this: /packages/inputmethod/pinyinIME/src/***.java /packages/inputmethod/pinyinIME/res/ /packages/inputmethod/pinyinIME/lib/ /packages/inputmethod/pinyinIME/jni/ --~--~-~--~~

[android-developers] problem while opening the Connection

2009-04-09 Thread Anitha
hi this is anitha. I am new to andriod. While i was trying to open the connection through coding it raises an error like the below one. [2009-04-09 15:16:53 - DeviceMonitor]Error reading jdwp list: EOF [2009-04-09 15:16:53 - DeviceMonitor]Connection Failure when starting to monitor device 'emula

[android-developers] How to pass object in Parcel???

2009-04-09 Thread jpopop
I have two class, class A and B, B includ class A, like this: class A { int a; int b; } class B { A a; //this is Class A int b; } class B should implement like this class B extends parcelable { //how to implement WriteToParcel and ReadFromParcel functions in class B in order

[android-developers] ADP1 device not listing by adb devices command in Ubuntu.

2009-04-09 Thread Lumit
Hi, I am trying to flash images to ADP1 G1 Android device. For this, I have tried to Setting up a Device for Development as follows: 1. Login as root and create this file: /etc/udev/rules.d/50- android.rules. SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" 2. Now execut

[android-developers] setOnKeyListener does not works with MapView

2009-04-09 Thread William Hua
Hi all, I am trying to write a map application based on the MapView, and I need to handle the UP/DOWN/LEFT/RIGHT keys. At first, I tried to implement with setOnKeyListener, please take a look at he following code. mapView = (MapView) findViewById(R.id.mapview); // set on key listener mapView.s

[android-developers] ADP1 device is not listing by adb devices command in Ubuntu.

2009-04-09 Thread Lumit
Hi, I am trying to flash images to ADP1 G1 Android device. For this, I have tried to Setting up a Device for Development as follows: 1. Login as root and create this file: /etc/udev/rules.d/50- android.rules. SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" 2. Now execute:

[android-developers] API Demos APK not running.

2009-04-09 Thread tamal123
Hi, I am trying to run API-Demos.apk in the zoom board. But it seems, the APK is not getting installed properly. I have compiled the CodeBase using Eclipse, and source is been taken from Android SDK 1.0. Please let me know, how can i run the application on zoom board. Thanks, Tamal Tanu Biswas

[android-developers] MVC model state change requires creating an Intent?

2009-04-09 Thread nick.titatingmembr...@googlemail.com
Hi, I have a main activity class that launches a couple of my subordinate activities from a tabHost. Periodically (actually when I receive an incoming message on a socket), I want to inform the subordinate activities that application state has changed so that they can refresh their views. In Sw

[android-developers] Re: How could add a new src folder into android src for compiling?

2009-04-09 Thread Vincent Chan
You could do this very easily in eclipse. Just go to the project properties and choose java build path view.In the source tab add a folder that you want to set as souce folder. Is zte developing android phones? I come from china ,too. Vincent Chan On Thu, Apr 9, 2009 at 4:17 PM, chengli wrote:

[android-developers] WebView - issues with back button

2009-04-09 Thread rch
Step 1: I am subclassing WebView and rendering html content properly. The intial content is very small with a div and image /link This is displayed in a LInear Layout along with a TextView and ListView. That is my first screen/activity of the application. Step 2: When I click on a link on this we

[android-developers] Re: OOM errors during inflation

2009-04-09 Thread Niek
Hi guys, I've read several posts from developers having OutOfMemory issues, and a lot of them seem to be related to lists. I'm having a similar issue, and the root of the problem seems to be a memory leak in the inflation process. The problem is particularly tricky to track down, because as of y

[android-developers] Positioning a Dialog at a required location (x,y)

2009-04-09 Thread sacchu
Hi, I'm displaying some content in a Dialog. By default the Dialog is displayed at the center of the window. I would like to position it at a location (x,y). I'm not able to achieve this using Gravity. Probably I'm not doing it in the right way.. Has any one faced a similar issue? Regards, S

  1   2   3   >