[android-developers] BundleException - not able to load this type of class, while porting Felix application to Android

2009-04-09 Thread Padma shankar
I am trying to port the Sip communicator application to android. This is done by launching felix from the android activity. The other bundles are installed by reading the bundles a Inputstream from the res/raw. The bundles are getting installed. The bundle.start() function is successful for

[android-developers] Getting Preferences from Settings.java

2009-04-09 Thread Travis James
I have a settings.java file that has the following code: import android.os.Bundle; import android.preference.PreferenceActivity; public class Settings extends PreferenceActivity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

[android-developers] Getting Preferences from Settings.java

2009-04-09 Thread Travis James
I have a settings.java file that has the following code: import android.os.Bundle; import android.preference.PreferenceActivity; public class Settings extends PreferenceActivity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

[android-developers] Remote debugging ddms

2009-04-09 Thread Androidphan
Is it possible to use ddms over a remote connection? I can run adb over a remote connection with setting ADBHOST=[ipaddr]. But when run ddms and try to connect with Eclipse ddms says: 35:40 W/ddms: Connection on 'debug selected' port, but none selected Does ddms use the ADBHOST setting?

[android-developers] Re: How to become root in emulator?

2009-04-09 Thread tibigiur...@gmail.com
Hi Meryl You are always root in the emulator. That link is about how to gain root access on a real G1 device. I think the problem is you are trying to (re)mount a wrong partition. On my emulator /dev/block/mtdblock0 is mounted on /system, and remounting it with rw works fine. To make sure what

[android-developers] dtmf detection

2009-04-09 Thread PI9
did someone find a way to detect dtmf tones on the phone which is called send by the one who's calling ?? I tried to record the tones with MediaRecorder but when they are recorded as files i can't compare them to the dtmf tones played by the funtion ToneGenerator... Can I have some help please ?

[android-developers] Get An image then do something with it

2009-04-09 Thread iPhoneDev101
Hi, Coming from an iphone background porting an application to android i am looking at how i can get an image from the phone's library and then do something with that image can anyone help? thanks --~--~-~--~~~---~--~~ You received this message because you are

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

2009-04-09 Thread yeons...@gmail.com
hello, I'd like to launch one of settings app screen when I received a certain event in idle state. For that, I added my new intent to PhoneAppBroadcastReceiver() in PhoneApp.java (because it seems this receiver handles the misc intents) But if I called startActivity(), seems phone goes to

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

2009-04-09 Thread Hwayoung
Hi. deer android developers :) I am developing an image applications. One activity decoding image file (jpg, bmp, and so on) to byte buffer RGB 565 or 888 type. then want to pass image buffer to another activity for change image data. i have 3 activity the main decoding activity[A] and

[android-developers] Re: Problem Starting New Activity

2009-04-09 Thread Marc Poppleton
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 when an incoming call occurs, I don't like the default view and want my own instead (I wish to display extra data

[android-developers] Re: Send Email Automatically

2009-04-09 Thread Eileen Novack
Hi All, 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 that I can send an SMS message without user

[android-developers] Cannot retrive all phone numbers from Contacts

2009-04-09 Thread Newbie
Can some body help me in retrieving all the Phones numbers (I mean if a contact has a home and cell phone) my code (below) does not get the Home number. String[] s = new String [] {People._ID,People.NAME,People.NUMBER}; int[] names1 = new int[] {R.id.Name,R.id.Number};

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

2009-04-09 Thread Devin Yu
Dears, I've a problem and would like somebody help me. When MountService received event from HAL and start a notification, it would display an AlertActivity after user's click. However, I found the AlertActivity is created and can't be displayed. I got some log as below, 06-01 19:17:56.178:

[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,

[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

[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

[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

[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

[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] 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 execute:

[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

[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

[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] 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] 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] 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

[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

[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

[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 ebori...@yahoo.com wrote: Hi, We are a team of Android developers and we are facing a serious problem for quite

[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 main

[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 sachin.atta...@gmail.com 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

[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

[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 marc.popple...@gmail.comwrote: 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

[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] CONTROL_LOCATION_UPDATES permission failure

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

[android-developers] Re: Send Email Automatically

2009-04-09 Thread Dianne Hackborn
On Wed, Apr 8, 2009 at 5:58 AM, Eileen Novack enova...@verizon.net 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,

[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 min.hsiung.hu...@gmail.com wrote: Hi all Currently I could find tab widget which located at the upper side

[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

[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 compatible

[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

[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: 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 hack...@android.com wrote: It's not supported.  You'd need to write your own tab widget (which is certainly

[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

[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 larrywan...@gmail.com wrote: Hi

[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

[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 mattaku.betsu...@gmail.com wrote: Thanks Al. I downloaded it. Works great. However, I couldn't connect to the network. E.g., launching browser will

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

2009-04-09 Thread Nick Pelly
On Thu, Apr 9, 2009 at 6:08 AM, Dilli dilliraomca...@gmail.com 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;

[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

[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 droozenr...@gmail.com wrote: I want to expose a portion of my app with an intent that will only display a simple dialog

[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 dangerch...@gmail.com 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

[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 yeons...@gmail.com wrote: hello, I'd like to launch one of settings app screen when I received a certain

[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

[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 hack...@android.com 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 droozenr...@gmail.com wrote: I

[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

[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

[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...

[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

[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 esks...@gmail.com 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] 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 sermoj...@gmail.com 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

[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

[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. You

[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

[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)

[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 noam.ha...@gmail.com 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

[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 manni...@gmail.com 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-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: 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

[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: 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

[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. I need

[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.

[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 guidedw...@googlemail.com wrote: Hi This must be something very simple but I've tried almost everything

[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 ,

[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: 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

[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, 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

[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 mmur...@commonsware.com

[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

[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 case,

[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 mmur...@commonsware.com wrote: Rob

[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] 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: 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] 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 the

[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

[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

[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: 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.

[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 str...@gmail.com wrote: Are there any examples of how to use

[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; final

[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] 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 local sdcard when the sdcard of emulator is read only.. Is this some kind of mockery or sarcasm

[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

[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] 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

[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 nithi...@gmail.com 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

[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 romain...@google.com 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

[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 email

[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

<    1   2   3   >