[android-developers] Re: how to use preferences widgets together.

2009-08-06 Thread ANKIT SOMANI
Or how can we use the preferences inside the Layout. ? Regards ~Ankit Somani 2009/8/6 ANKIT SOMANI ankitsomani...@gmail.com Hi, Can any body know how we can use the preference widgets together . I want to use preferences to show like a list want to show buttons at the bottom of

[android-developers] BitmapFactory decodeByteArray RGB565 format

2009-08-06 Thread newra...@gmail.com
In a byte[], I am having the image data of a RGB565 image(no header, only image content) I used the decodeByteArray with Bitmap.Options as RGB565 decoder. But the decoding process failed. Am I missing anything? --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: China to have there own Android Market?

2009-08-06 Thread Kaj Bjurman
I'm not a lawyer, but I can't see that it in any way restricts your rights on distributing it through other channels than the Android Market. The agreement does also say this: 2.1This Android Market Developer Distribution Agreement (“Agreement”) forms a legally binding contract between you

[android-developers] Re: Add menu item to Gallery's share BY CODE

2009-08-06 Thread Anthony Xu
Thank you, Dianne. Your reply is very helpful. On Aug 4, 11:48 am, Dianne Hackborn hack...@android.com wrote: Sorry, this can only be done by a manifest declaration.  You can, however, enable or disable the component declared in your manifest at runtime using the PackageManager class. On

[android-developers] Memory problem

2009-08-06 Thread Rahul
Hi all i have one big problem in android due to this my application crashesh every time My Problem are 1. Bitmap memory exceed error 2. Out of memory error somebody pls help me to solve this problem. thanks Ranjit --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Memory problem

2009-08-06 Thread Romain Guy
Either your application is leaking memory or you are just using too much memory. Use less memory. On Wed, Aug 5, 2009 at 11:41 PM, Rahulnakate.ra...@gmail.com wrote: Hi all i have one big problem in android due to this my application crashesh every time My Problem are 1. Bitmap memory

[android-developers] can execute my app automatilly when android is up?

2009-08-06 Thread tstanly
hi all, I want to change the start point of my machine, that is,when start on Android, it can run my app instead of home firstly, if it possiable? thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] UI Development in Android

2009-08-06 Thread swapnil
Hello all, I am working on UI Development in Android . Can any one please tell me how I can put multiple layouts on the screen at specific positions? Is it ok that i can use the code instead of xml file for creating the UI? If any one has any links for UI development please give those too..

[android-developers] Re: UI Development in Android

2009-08-06 Thread Michael Leung
yes. I used the code to do that. On Thu, Aug 6, 2009 at 4:48 PM, swapnil swapnil.da...@gmail.com wrote: Hello all, I am working on UI Development in Android . Can any one please tell me how I can put multiple layouts on the screen at specific positions? Is it ok that i can use the code

[android-developers] Re: Forcing an activity to reload completely?

2009-08-06 Thread Ronald Pompa
I figured a way to reload the activities. simply call this.onCreate (null); to reload the current activity. For example if you have a hierarchy like me: MainActivity - PreferenceActivity and make a change in preferences, i listen for a change and with onSharedPreferenceChanged and call

[android-developers] Re: record incoming and outgoing call

2009-08-06 Thread Michael Leung
I know that is possible track all incoming and outgoing call details. But for voice, that is I am not sure/ On Thu, Aug 6, 2009 at 3:46 PM, Honest honestsucc...@gmail.com wrote: Hello, I want to record the outgoing and incoming call. Can some one tell me. Is it feasible or not ? --

[android-developers] Re: Android data buffer pass by jni problem

2009-08-06 Thread frog
HI,fadden I am very sorry.I don't know very well about jni,and I still don't know the way to pass the data buffer (point of void *)from native code to the android application.Could you give me further explanation or give a example to do this.I have read some document about jni,but it seems

[android-developers] How to wake up the device by Code?

2009-08-06 Thread guishenl...@gmail.com
Hi all, I have an application with notification. I want my notification can wake the device up when it goes off but the device is asleep. Could anybody tell me how to do by some code? Thank you in advance! --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: can execute my app automatilly when android is up?

2009-08-06 Thread brian.schimmel
I think home is not the first application that is started, but it is the first visible one. So you have two options: 1. Your application can replace the home screen, but then it should do everything that a home screen does. You have to declare an IntentFilter with the Home category, see

[android-developers] /dev/mem open from opencore

2009-08-06 Thread scs
we are able to open the /dev but /dev/mem is failing. /dev/mem is created using mknod... Is there any probable with the perimission issues? How do we solve the issue? Please help us. Note: We are able to open /dev/mem from shell. We are able to open / dev/log,/dev/full,/dev/null from open

[android-developers] Will a notification still work if the device once shut down.

2009-08-06 Thread guishenl...@gmail.com
Hi all, I have an application with notification. I want to keep the notification working even if the device once shut down just like an alarm. Could anyone give me some sample code to help me? Thank you in advance! --~--~-~--~~~---~--~~ You received this

[android-developers] Re: can execute my app automatilly when android is up?

2009-08-06 Thread tstanly
thanks for your reply, for your first point, i try to do it by edit the AndroidManifesr.xml, edit the intent-filter/ tag for... intent-filter action android:name=andrroid.intent.action.MAIN / category android:name=android.intent.category.HOME / /intent-filter but not work? thanks! On

[android-developers] Re: Will a notification still work if the device once shut down.

2009-08-06 Thread peter
Set flag of Notification, there have sort of flag to let your notification show like this:Notification.flag = Notification.FLAG_AUTO_CANCEL On Aug 6, 4:42 pm, guishenl...@gmail.com guishenl...@gmail.com wrote: Hi all,     I have an application with notification. I want to keep the

[android-developers] Re: UI Development in Android

2009-08-06 Thread peter
you should reference User-Interface document in android developer website On Aug 6, 2:48 pm, swapnil swapnil.da...@gmail.com wrote: Hello all, I am working on UI Development in Android . Can any one please tell me how I can put multiple layouts on the screen at specific positions? Is it

[android-developers] 如何取得动态gi f图片每一帧有多少个数据块?

2009-08-06 Thread xiaofeng
看了android SkMovie_gif.cpp 对gif图片的解码,发现在解每一帧时是这样判断这一帧有没有解完:前面解析时得到了当前帧图 像的宽width,高height,imageSize=width*height,将imageSize 传进解码函数DGifGetLine (GifFile, sp-RasterBits, ImageSize),当解码后的数剧量等于ImageSize时认为当前帧解码完成。这里用解 码后的数据量是否达到该帧解码为8位的RGB源数据总量来作为一帧解完的标志。我现在要把DGifGetLine(GifFile, sp- RasterBits,

[android-developers] Re: can execute my app automatilly when android is up?

2009-08-06 Thread peter
you should register a broadcast receiver in your AndroidManifesr.xml and set intent filter about mobile power on action your class extends from BroadcastReceiver should fire up your activity of application On Aug 6, 4:46 pm, tstanly tsai.sta...@gmail.com wrote: thanks for your reply, for

[android-developers] Re: How to wake up the device by Code?

2009-08-06 Thread peter
I guess AlarmManager could do it for your requirement On Aug 6, 3:29 pm, guishenl...@gmail.com guishenl...@gmail.com wrote: Hi all,     I have an application with notification. I want my notification can wake the device up when it goes off but the device is asleep. Could anybody tell me how

[android-developers] Re: Memory problem

2009-08-06 Thread peter
Create a Bitmap is very consume memory On Aug 6, 2:41 pm, Rahul nakate.ra...@gmail.com wrote: Hi all i have one big problem in android due to this my application crashesh every time My Problem are 1. Bitmap memory exceed error 2. Out of memory error somebody pls help me to solve this

[android-developers] Re: How to wake up the device by Code?

2009-08-06 Thread Anonymous Anonymous
http://developer.android.com/reference/android/os/PowerManager.html On Thu, Aug 6, 2009 at 2:24 PM, peter heywoodpres...@gmail.com wrote: I guess AlarmManager could do it for your requirement On Aug 6, 3:29 pm, guishenl...@gmail.com guishenl...@gmail.com wrote: Hi all, I have an

[android-developers] How to Access SharedPreferences created file?

2009-08-06 Thread Prajkti
Hi all, I am using SharedPreferences to save my ApplicationSettings. and through DDMS-FileExplorer i can see the Settings file created as data\data\packgename\shared_prefs\AppSettings.xml Now i want to copy this file and move it into Another location say SDCard. Is there any way to achieve

[android-developers] Re: record incoming and outgoing call

2009-08-06 Thread peter
I'm not sure how capture incoming voice, have any function to do it? but i think you could capture voice from people who talk to the phone with voice record On Aug 6, 1:46 pm, Honest honestsucc...@gmail.com wrote: Hello, I want to record the outgoing and incoming call. Can some one tell me.

[android-developers] Re: how to use preferences widgets together.

2009-08-06 Thread peter
Create a class extends View or SurfaceView. you should reference User Interface-Building Custom Componment on developer of android website On Aug 6, 1:34 pm, ANKIT SOMANI ankitsomani...@gmail.com wrote: Hi, Can any body know how we can use the preference widgets together . I want to use

[android-developers] Re: clear sms notifications

2009-08-06 Thread Falko Richter
So when we use SMS as a way of communication there is no way we keep the user from being notified. Deleting the Messages is no Problem apparently.. thx for the quick answer Falko On Wed, Aug 5, 2009 at 1:21 PM, Mark Murphy mmur...@commonsware.com wrote: Falko Richter wrote:

[android-developers] Re: Listing Console does not update applicaitons statistics

2009-08-06 Thread DKIT
Still no update. On Aug 4, 7:40 pm, DKIT dag.kristian...@gmail.com wrote: Anyone? On Aug 4, 4:18 pm, DKIT dag.kristian...@gmail.com wrote: My Android Market listing console (developer console) has not updatet applicaiton statistics for several days. Why? Does it hurt my popularity

[android-developers] Re: record incoming and outgoing call

2009-08-06 Thread Honest
Thanks peter for your reply. Can you tell me how can i capture voice from people who talk on phone with voice command ? . Can you give me any code snippt or API link to read it ? On Aug 6, 2:17 pm, peter heywoodpres...@gmail.com wrote: I'm not sure how capture incoming voice, have any function

[android-developers] how to access several xml views in my activity?

2009-08-06 Thread zeeshan
Hi Dear, i have created some xml layout: 1- toplayout.xml 2- botlayout.cml 3- middlelayout.xml now i can only set one view as in setContentView(R.layout.toplayout); please advise how can i show all three views in my activity? --~--~-~--~~~---~--~~ You received

[android-developers] Re: how to access several xml views in my activity?

2009-08-06 Thread Sujay Krishna Suresh
Make use of the layout that best suits ur app... Make use of findViewByID to get ur xml's as views n layout them.. Then setContentView(ur Layout); On Thu, Aug 6, 2009 at 4:18 PM, zeeshan genx...@gmail.com wrote: Hi Dear, i have created some xml layout: 1- toplayout.xml 2- botlayout.cml 3-

[android-developers] Re: Memory problem

2009-08-06 Thread for android
How is the FasterBitMapDrawable in the Shelves different from normal BitmapDrawable? On Thu, Aug 6, 2009 at 2:38 PM, peter heywoodpres...@gmail.com wrote: Create a Bitmap is very consume memory On Aug 6, 2:41 pm, Rahul nakate.ra...@gmail.com wrote: Hi all i have one big problem in

[android-developers] USB communication

2009-08-06 Thread Honest
Hello, I want to do USB communication in android. Can some one give me some links to starat with it,.Any code snippt will be much appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] ImageView setImageResource

2009-08-06 Thread Saurav Mukherjee
can anyone please tell me that does setImageResource() in ImageView also draws the image instantly on the screen or does it require any other function call? i need to display the image as soon as i set the resource. please help. thanks in advance.

[android-developers] Re: Crashing compasse

2009-08-06 Thread Declan
Thanks for the help, I got this from eclips, hope it's right. [2009-08-06 12:01:43 - North] Starting activity com.example.North.North on device [2009-08-06 12:01:47 - North] ActivityManager: DDM dispatch reg wait timeout [2009-08-06 12:01:47 - North] ActivityManager: Can't dispatch DDM chunk

[android-developers] Re: Crashing compasse

2009-08-06 Thread Mark Murphy
Declan wrote: Thanks for the help, I got this from eclips, hope it's right. [2009-08-06 12:01:43 - North] Starting activity com.example.North.North on device [2009-08-06 12:01:47 - North] ActivityManager: DDM dispatch reg wait timeout [2009-08-06 12:01:47 - North] ActivityManager: Can't

[android-developers] Re: ImageView setImageResource

2009-08-06 Thread Mark Murphy
Saurav Mukherjee wrote: can anyone please tell me that does setImageResource() in ImageView also draws the image instantly on the screen or does it require any other function call? i need to display the image as soon as i set the resource. The change will take effect as soon as you give

[android-developers] Re: VerifyError while trying to run Unit tests

2009-08-06 Thread Alex G
Just in case anyone else wanders across this post, I found some info on project setup her: http://stackoverflow.com/questions/468220/how-do-you-run-android-instrumentation-tests-from-eclipse On Aug 5, 11:33 pm, Alex G quixop...@googlemail.com wrote: okay that makes sense, thankyou. I've been

[android-developers] AppWigets into Applications

2009-08-06 Thread mtd
Hi, I am trying to create an application that contains AppWidgets, but only get to show the original layout of the same, unable to interact with them. The main steps that I followed are: AppWidgetManager mAppWidgetManager = AppWidgetManager.getInstance (this);

[android-developers] Re: ImageView setImageResource

2009-08-06 Thread Saurav Mukherjee
i got a hint of that while i was trying hard to get it. Thank you Mark for the early reply. Just one more query, will it be the same if i set the Background of the view or will it just depend on the invalidate() call? On Thu, Aug 6, 2009 at 4:55 PM, Mark Murphy mmur...@commonsware.com wrote:

[android-developers] webview don't scroll up

2009-08-06 Thread Sikus
Hi, I have application which show information on WebView. I use javascript and link too etc. a href=\#\ onclick=\prompt(' something '); \ My problem: when I click on link page scroll up. I don't wont it. I can that page stay on the same place. Can you help me, please?

[android-developers] Several instance of AsynkTask

2009-08-06 Thread ioRek
Hi there, At the moment I have an AsyncTask downloading bitmaps and display on a grid. The fact is I need an other instance of the Task with a different paramater to download different bitmap. When I look the list of thread it appears that only one thread is launched and I dont have 2 async task

[android-developers] how to stop service?

2009-08-06 Thread Archana
Hi , How can we stop Service.I tried put it in both onstop and ondestroy() method.While exiting It is calling this method but service still running background.Whether i am doing anything wrong? private static Intent serviceIntent ; protected void onCreate() { serviceIntent = new Intent(this,

[android-developers] Re: how to stop service?

2009-08-06 Thread Desu Vinod Kumar
HI @Override protected void onDestroy() { super.onDestroy(); _shutdownService(); if (MAIN_ACTIVITY != null) AppUtils.showToastShort(MAIN_ACTIVITY, MyService stopped); } U can check here .for starting and stopping the service tutorial is there with good example

[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?

2009-08-06 Thread TaoK
Hi Johan, I was able to make the device show in fastboot mode in windows, doing the same as above, adding extra device IDs into the usb driver INF file - it's just that fastboot mode has YET ANOTHER device ID, so when the device is in fastboot mode windows shows you the new hardware wizard, you

[android-developers] Re: OpenGL leaking garbage

2009-08-06 Thread Jack Palevich
Woops -- I left out a very important detail: Direct Buffers are only required for OpenGL ES APIs that hold onto the pointer that you pass into the API. APIs that operate on buffers immediately can take either direct or indirect buffers. So, for example glVertexPointer requires a Direct buffer

[android-developers] Re: OpenGL leaking garbage

2009-08-06 Thread Jack Palevich
We considered doing that, but were worried about possible DalvikVM problems with leaving large amounts of memory pinned for long time periods. We decided it was better not to do that. On Aug 5, 8:17 pm, Dmitry.Skiba dmitry.sk...@gmail.com wrote: By the way, to guarantee that non-direct buffer

[android-developers] Re: OpenGL leaking garbage

2009-08-06 Thread Jack Palevich
You don't need to use a direct buffer with VBOs, because VBO APIs like glSetBufferData don't hold onto their own pointers to the buffer data. They make a copy of the data when you call them. The problem you're seeing with glDrawArrays count argument sounds like a bug. If you get a chance, please

[android-developers] Re: View Android Marketplace

2009-08-06 Thread Touch-Market
New Feature: Now rate your favorite Apps on www.touch-market.com --- Visit us at www.touch-market.com THE website dedicated to YOU developers THE sweet place for YOU Android users --~--~-~--~~~---~--~~ You received

[android-developers] Capture EndCall key

2009-08-06 Thread Michelle Cristina de Melo Silva
Hi, i want to capture when user press the EndCall key in simulator, but i think i'm doing something wrong cause nothing happens! My code is: public class MakeACall extends Activity { /** Called when the activity is first created. */ @Override public void

[android-developers] Re: Dialog windowBackground makes parent window go black

2009-08-06 Thread CraigsRace
The parent window had a 120Kb jpeg picture on it. I used more compression on the jpeg and got it down to 32Kb, and bingo, the parent window stopped disappearing! Yay me! On Aug 6, 10:39 am, CraigsRace craig...@gmail.com wrote: Hi, I wanted to change the frame around my Dialog.  So I set up

[android-developers] Location ,coordinates Problem

2009-08-06 Thread Lorenz
Hi, I'm working with android.Location with a simulator of coordinates that sends them to the emulator: import java.io.IOException; import java.io.PrintWriter; import java.net.Socket; import java.net.UnknownHostException; import java.util.Random; import java.io.*; import java.util.*; public

[android-developers] Re: how to initialize MediaRecorder in the background?

2009-08-06 Thread Robert
I tried various things to overcome the limitation of setPreviewDisplay (): - preserved the surface (sf), so mSurfaceHolder.getSurface() was not called again. Worked fine while the surface was visible, but once it was destroyed, sf.isValid() returned false, and prepare() failed again - tried to

[android-developers] How to get program to not relaunch when opened from programs list??

2009-08-06 Thread Rick
I have a question about the activity cycle when you use the Home button to exit an application. I have noticed that when you use the Home button to exit an application, you can hold the Home button to move back to that application, but selecting that application from the list of programs or the

[android-developers] GestureDetector in Textarea

2009-08-06 Thread Anonymous Anonymous
Hi All, How can i use GestureDetector in textarea? now when i do some flick cursor is moving and its getting handled in input area. Is there any way i can intercept the or movement ,so that it will come to my application? *for me it works with imageview and other controls , only problem with

[android-developers] Re: how to stop service?

2009-08-06 Thread Marco Nelissen
What do you mean by the service is still running in the background? What is the return value of your call to stopService() ? How are you determining that it is still running afterwards? On Thu, Aug 6, 2009 at 5:30 AM, Archana archana.14n...@gmail.com wrote: Hi , How can we stop Service.I

[android-developers] Re: /dev/mem open from opencore

2009-08-06 Thread Marco Nelissen
Sounds like a permissions problem. Also, android-developers is the wrong group for questions like this. On Thu, Aug 6, 2009 at 1:33 AM, scs scs...@gmail.com wrote: we are able to open the /dev but /dev/mem is failing. /dev/mem is created using mknod... Is there any probable with the

[android-developers] Re: Why is it Giving Out Put Twice

2009-08-06 Thread Marco Nelissen
If you replace your use of Toast.makeText() with Log.i(), what is printed to the log? On Wed, Aug 5, 2009 at 1:41 PM, saptarshi chatterjee saptarshichatterj...@gmail.com wrote: no no Nelissen , you missed the first field of the out put . It's the same id number that's repeated. *1 12c/2,Dum

[android-developers] InstrumentationTestCase and startActivityForResult

2009-08-06 Thread dev
Hi, Can a InstrumenatationTestCase class call startActivityForResult ? and have onActivityResult for getting its result. I tried the same in an Activity , that works. But from an Instrumentation class I can call only startActivity I need to get some result from Activity to instrumentation.

[android-developers] Re: How to get program to not relaunch when opened from programs list??

2009-08-06 Thread Rick
After doing some further testing, it turns out this wasn't the problem. It seems the problem was happening because the instance of the app launched on the emulator when hitting run is different from the one run when selecting the program on the phone. So it was opening two separate instances

[android-developers] Re: Memory problem

2009-08-06 Thread Romain Guy
It doesn't do anything but draw the bitmap. A standard BitmapDrawable has other features (gravity, alpha, etc.) On Thu, Aug 6, 2009 at 4:05 AM, for androidforandr...@gmail.com wrote: How is the FasterBitMapDrawable in the Shelves different from normal BitmapDrawable? On Thu, Aug 6, 2009 at

[android-developers] Debug

2009-08-06 Thread Declan
Hi, My app is crashing, How do I debug it? I'm using a HTC Magic and eclips. I looked in the documentation, but it doesn't say how to go about doing it. Thanks, -Declan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] An App contains a BroadcastReceiver and an Activity

2009-08-06 Thread Peacemoon
I want to start a project which contains a BroadcastReceiver and an Activity. The BroadcastReceiver doesn't communicate with the activity. But they share a same resource. Can i do it in only one Project (that means, i use only 1 apk to install both BroadcastReceiver and the Activity on my phone),

[android-developers] Re: How to get program to not relaunch when opened from programs list??

2009-08-06 Thread TaoK
Thanks for that! I had resigned myself to dealing with that android quirk / bug, and never re-tested on my actual device in use - I never noticed that the issue didn't actually happen on my phone in normal use :) Thanks again, Tao On Aug 6, 11:27 am, Rick rmanc...@mit.edu wrote: After doing

[android-developers] MIDI Support in Android 1.5 SDK

2009-08-06 Thread Jason Scharf
Hello, I'm trying to write a music-orientated Android app that makes use of multiple notes played concurrently but I'm finding it frustrating trying to make sense of the audio situation in the SDK. My intent is to play tracks of user-sequenced notes, allowing for multiple notes (within

[android-developers] sending email using java mail

2009-08-06 Thread amy0205
hi! i was able to compile and successfully send an email that looks like these: http://davanum.wordpress.com/2007/12/22/android-send-email-via-gmail-actually-via-smtp/ using a java project. but when i tried to use it with android using the emulator, the application crashed. when i traced the

[android-developers] How to register receiver the way the android manifest do.

2009-08-06 Thread karan
hi, i want to register a receiver without placing it in the android manifest, also, the receiver will be of a separate application, the reason for this is the action on which it will be registered will be generated dynamically from different application. All i have is the package name and the

[android-developers] OutofMemory Excpetion in built in ZoomControls of mapView

2009-08-06 Thread smilingm
Hello, I wonder why I sometimes get an OutOfMemory Exception in mapView when scrolling around on map and zooming in to the max Zoomlevel? Is this a bug in the Zoomcontrols or MapView Lib?? Thanks for your help! Here the stacktrace: uncaught handler: thread main exiting due to uncaught

[android-developers] rtsp protocol

2009-08-06 Thread Swisti
Hello, I have some questions about rtsp protocol. 1. Is it possible to save rtsp video stream on the sd card, instead of redisplay on the screen? 2. Is it possible to capture displayed screen of the movie? Code (in VideoView.java) shownbelow make only black screenshot of the videoview/surface

[android-developers] Re: AppWigets into Applications

2009-08-06 Thread karan
hi, You need to bind your widgets id first, and for doing that you need to do two things 1) you will need a permission for binding 2) you will need to share your process id. Let me know if you still face the problem, On Aug 6, 4:35 pm, mtd martit...@hotmail.com wrote: Hi,   I am trying to

[android-developers] Problem while calling the web services in android.

2009-08-06 Thread Karthic
Problem while calling the web services in android. To call web services in android I have done the following steps 1. Wrote the web service class in java and stored in apache axis. (in .jws format) public class ADD2No { public int add(int a,int b) { return

[android-developers] Method to detect a widget is visible - or otherwise in the foreground or background?

2009-08-06 Thread Craig
It would appear on a G1 (with the latest software update) that onUpdate () runs even when the widget is not visible. Is there a way of sensing that the widget is or is not visible or is otherwise in foreground? That is, running the code below shows a logcat message at whatever interval the Widget

[android-developers] mediaPlayer.setDataSource(fd) cause IOException: Prepare failed.: status=0x1

2009-08-06 Thread JAG
What is the preferred way of reusing a MediaPlayer when using resources? My try looks a bit ... too complicated... so maybe I should be happy to see that it didn't work. (I run the Android 1.5 SDK and emulator.) According to this thread my problem may be a permission problem.

[android-developers] [MediaPlayer] Error during preparation

2009-08-06 Thread matthieu nicolazo
Hello guys, I try to read some radio streaming with android media player but some errors occurs during the prepare() method. Here is my source code : Log.w([Player], + setDataSource); mp.setDataSource(http://streaming.radio.rtl.fr/rtl-1-44-96;);

[android-developers] Broadcasting reboot intent

2009-08-06 Thread markwhitney
I am trying to reboot Android by broadcasting Intent.ACTION_REBOOT from my activity. I believe that I have given it all the proper permissions to send such a signal but when I launch the activity, nothing happens. I saw a similar post about this back in May, but no responses. Logcat:

[android-developers] Re: ANN: Vancouver Android Developers Meetup.com Group

2009-08-06 Thread j pimmel
Erm oops http://www.meetup.com/van-android-developers/ Thanks On Wed, Aug 5, 2009 at 1:51 PM, j pimmel frankly.wat...@googlemail.comwrote: All, For those who are in the Greater Vancouver area, I have set up a Meetup group which aims to convene face-to-face meets for discussion on Android

[android-developers] why camera is rotated

2009-08-06 Thread engin
Hi, I am trying to use Camera to take picture and to video recording but it always runs in portrait mode. Even if I tried to sreenOrientatiton=landscape it solved screen appearance but when I take photo and capture video they are still saved rotated 90 degrees. I searched it but ı could not find

[android-developers] Screen rotation

2009-08-06 Thread engin
Hi, Can we check whether or not user rotated phone while he is capturing video or taking photo? I mean that can we realize that user rotated phone from verticak to horizantal or vice versa? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Notification and NotificationManager

2009-08-06 Thread bizack
Is it possible, without modifying the Android source, to query the system for all current and pending notifications (system wide)? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Problem with TranslateAnimation

2009-08-06 Thread Fräntz Miccoli
Hello people, I'm back to Android developpement with a great pleasure but i'm experimenting a great problem... Here is my code explained : //This function move an element View to a new position described by xTargeted and yTargeted private void animateMove(final View v, final int xTargeted,

[android-developers] getting android to work with gsm modem in ubuntu

2009-08-06 Thread iqnatius
Hi all, I am trying to integrate my gsm modem to android, basically the at command available in reference-ril should work. Below is a snippet of what i have changed, my goal is just to hard code the device connection and get it to send the data to my com port 0, but before i do anything the open

[android-developers] How to get android to show my IME in the input method pop-up menu?

2009-08-06 Thread Harsha
Hi, I have written my input method on lines of LatinIME. My IME MyIME has a service and an activity similar to LatinIME. Installing it to emulator via eclipse does not seem to work and hence I have tried the following approaches. MY GOAL: All I need as the first step to know that I

[android-developers] Re: How can I open a AlertDialog in SurfaceView

2009-08-06 Thread NataliaPC
I've the same question... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

[android-developers] ANN: Vancouver Android Developers Meetup.com Group

2009-08-06 Thread j pimmel
All, For those who are in the Greater Vancouver area, I have set up a Meetup group which aims to convene face-to-face meets for discussion on Android development. Please feel free to join and enter topics of interest in the 'Message Board' to give a focus to the inaugural meetup, hopefully this

[android-developers] Developing on a regular consumer HTC Magic device

2009-08-06 Thread Dollars 5
Hello All, We just bought a regular consumer HTC Magic/G2 phone in India and it is unlocked. We would like to root + upgrade to Android 1.5 OS to proceed with development, what is the process? are there any proper knowledgebase or documentation on the process of rooting and upgrade? Any help is

[android-developers] How to get android to show my IME in the input method pop-up menu?

2009-08-06 Thread Harsha
Hi, I have written my input method on lines of LatinIME. My IME MyIME has a service and an activity similar to LatinIME. Installing it to emulator via eclipse does not seem to work and hence I have tried the following approaches. MY GOAL: All I need as the first step to know that I

[android-developers] Re: Developing on a regular consumer HTC Magic device

2009-08-06 Thread Dollars Admin
I searched this group and at the dev guide at http://developer.android.com/guide/developing/device.html - but no specific info on HTC Magic. As I found here: http://groups.google.com/group/android-developers/browse_thread/thread/a2d5b1ad718b3277/can I proceed with getting and upgrading the

[android-developers] Re: Displaying virtual keyboard in a custom View

2009-08-06 Thread Harsha
Hi Martin, You seem to have achieved what I have been trying to do. I am working on a sample input method MyIME and I have not been able to get the input method pop-up menu to display my My IME as one of the available options. Can you please shed some light on how got this working? I have

[android-developers] Re: Developing on a regular consumer HTC Magic device

2009-08-06 Thread Dollars Admin
No worries - I figured it out myself. HTC Magic already runs Android OS 1.5 and from the IDE - I was able to enable debugging. On Wed, Aug 5, 2009 at 11:20 PM, Dollars Admin dollars5ad...@gmail.comwrote: I searched this group and at the dev guide at

[android-developers] Re: Using AsyncTask as Serializable or Parcelable -- To void activity destruction(orientation or during incoming phone call)

2009-08-06 Thread Maher Ali
Vikas, Maybe you can create a mediator for every activity type. If an activity wants something from the server, it adds a job to this mediator passing its *this* as the key. The mediator will then contact a server proxy that does the server interaction async by default. The mediator can ask the

[android-developers] Re: OutofMemory Excpetion in built in ZoomControls of mapView

2009-08-06 Thread Romain Guy
This is not a bug in the zoom controls, your application is just using too much memory. On Thu, Aug 6, 2009 at 1:06 AM, smilingmmarcus.masekow...@googlemail.com wrote: Hello, I wonder why I sometimes get an OutOfMemory Exception in mapView when scrolling around on map and zooming in to the

[android-developers] Service lifecycle and persistent objects

2009-08-06 Thread droidin.net
I need to retain a complex object in my service, so I can reliably come back to it (it holds updates). Initially I coded it just as a class filed in my Service implementation but I'm observing that the updates object is periodically reset to null which tells me that server class itself is

[android-developers] TrackBall 'flinging'

2009-08-06 Thread n179911
Hi, In android address book, I can 'fling' with a TrackBall. i.e. the ListView page up/down if I 'fling' with TrackBall (not fling on touch screen). However, when I look at the AddressBook Code or ListView Code, I don't see it implements 'dispatchTrackBall' method. Can you please tell me how is

[android-developers] Re: Problem with TranslateAnimation

2009-08-06 Thread Deren
Hm, exactly what is your question? :) An animation doesnt actually move the object permanently, it just translates the Canvas during the Animation. I assume you want your View to stay where the animation left it? Why do you put the v.setLayoutParams from a separate Thread? Is that really needed?

[android-developers] Re: Why is it Giving Out Put Twice

2009-08-06 Thread saptarshi chatterjee
Sorry Nelissen. U wr right .Actually I made a grave mistake . So I deleted this post from the community as well. Thank you fr ur help none the less. On Thu, Aug 6, 2009 at 2:05 AM, Marco Nelissen marc...@android.com wrote: Looks to me like every time you run your app, you insert two more rows

[android-developers] Re: TrackBall 'flinging'

2009-08-06 Thread Dianne Hackborn
The system automatically converts trackball events into DPAD events if they aren't handled by the app. On Thu, Aug 6, 2009 at 9:11 AM, n179911 n179...@gmail.com wrote: Hi, In android address book, I can 'fling' with a TrackBall. i.e. the ListView page up/down if I 'fling' with TrackBall

[android-developers] Re: Displaying virtual keyboard in a custom View

2009-08-06 Thread Dianne Hackborn
Have you looked at the documentation? http://developer.android.com/reference/android/view/View.html#onCreateInputConnection(android.view.inputmethod.EditorInfo) http://developer.android.com/reference/android/view/inputmethod/InputConnection.html

[android-developers] Directory naming convention for application data in SDCARD ?

2009-08-06 Thread elpix1
Hi, I have seen some apps store data in: /sdcard/package-name and others in: /sdcard/data/package-name Is there a recommended standard for this ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: TrackBall 'flinging'

2009-08-06 Thread n179911
On Thu, Aug 6, 2009 at 9:35 AM, Dianne Hackbornhack...@android.com wrote: The system automatically converts trackball events into DPAD events if they aren't handled by the app. Thank you. But i only see these DPAD defines in KeyEvent, They don't relate to 'fling' action, right, they just move

  1   2   >