[android-developers] Re: Typing English Text Results in Chinese Characters

2010-04-28 Thread SeriousCoder
Yes I am running this on the emulator version 2.1 , how do I switch off the japanese ime/keyboard settings? can you walk me through it? - thanks On Apr 27, 10:48 pm, Dan Sherman impact...@gmail.com wrote: If you're running on the emulator, make sure the Japanese IME/keyboard are off in the

[android-developers] Re: Announcement: DynaDroid - an open source micro-framework for Android

2010-04-28 Thread Hugo Visser
Thanks for sharing. I've looked briefly at your code and I'm a bit worried about how un-android like it is. For example: - Prompting the user when the app is exiting: normally a user familiar with Android app will know that the back button will take them back to the previous activity - Killing

[android-developers] Lighting effects in android

2010-04-28 Thread satish bhoyar
Hi all, I am developing one app where I need light effect. the exact is it should give a feel like light is traveling. I know one way i.e. by using GLSurfaceView, but is there any other way to achieve this ? because GLS might be costly i guess. Light is as a ray. please help or suggest on this

[android-developers] Re: Typing English Text Results in Chinese Characters

2010-04-28 Thread SeriousCoder
thanks I figured it out, it's really annoying (nothing against the japanese) On Apr 27, 10:48 pm, Dan Sherman impact...@gmail.com wrote: If you're running on the emulator, make sure the Japanese IME/keyboard are off in the phone settings :) - Dan On Wed, Apr 28, 2010 at 1:21 AM,

[android-developers] Hide Activity

2010-04-28 Thread Ajay
Hi, I want to show a progress dialog, while I check something in the background and display a message finally and exit the app. Can I hide the Activity in the background? I tried using android:theme=@android:style/Theme.NoDisplay in the manifest file, but the window shows up when I show the

[android-developers] Re: Typing English Text Results in Chinese Characters

2010-04-28 Thread SeriousCoder
I figured it out - thanks On Apr 27, 11:14 pm, SeriousCoder ambre...@gmail.com wrote: Yes I am running this on the emulator version 2.1 , how do I switch off the japanese ime/keyboard settings? can you walk me through it? - thanks On Apr 27, 10:48 pm, Dan Sherman impact...@gmail.com wrote:

[android-developers] SoftKeypad upon the Notification Bar

2010-04-28 Thread Sameer AM
When we pull down the notification bar, we see the current notifications. We've taken it a step further and we're able to get audio, video and buttons in notification bar, when it is pulled down. Now my issue is, I need the soft keypad to come up when I click on the edit text field inside the

[android-developers] [Help] How to get current UTC time?

2010-04-28 Thread Vincent Tsao
As you know, i can use System.currentTimeMillis() to fetch current local time, but how to convert local time to UTC time? the code below, i can get the timezone, utc_bias also can be got Time mSavedTime = new Time(); mSavedTime.set(System.currentTimeMillis()); TimeZone

[android-developers] problem to install .apk on phone

2010-04-28 Thread Er. syed imran ali
Hi all, i have to install third-party application on my android LG GW620, i have installed the USB driver, phone is showing usb connected, but when i am giving command adb devices then it is giving only emulator on command prompt, and when i am giving command adb install .apk-path then it is

Re: [android-developers] ListView with multiple layouts formats in it

2010-04-28 Thread Vincent Tsao
hi, noid, this article may help you, Separating Lists with Headers in Android 0.9: http://diigo.com/0anhm -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Re: code for capturing screenshot of android device

2010-04-28 Thread Sudheendra
Thanks Max , I will check out he app , also please let me know the code. Thanks a lot On Apr 28, 6:07 am, Max Gilead max.gil...@gmail.com wrote: You don't need to root your phone. While not obvious it's quite easy. I should have some code for that,I'll try to find it tomorrow if you still

[android-developers] Re: Adding static background to kube

2010-04-28 Thread CMF
is there anyone know? On Apr 26, 2:24 pm, CMF manf...@gmail.com wrote: Hi all, I would like to ask how to add a static background to the kube from the ApiDemo I have created a sqaure behind the Kube, but it will rotate as the kube does How to make the background static? -- You received

Re: [android-developers] Re: CPU pegged in AudioTrack triggers reboot

2010-04-28 Thread Jonas Petersson
ani wrote: obtainBuffer timed out (is the CPU pegged?) This happens because the audioflinger thread has not read the data from the driver and did not signal the lock causing this logs to come. This happens because your driver is having some bug not because of android framework. Well, the app

[android-developers] URL.openStream() throwing FileNotFoundException for valid url

2010-04-28 Thread westmeadboy
I've noticed this exception for quite a few of my users. Examples of exception msgs: http://m.web2go.com/dsb/upgraderequired/?msisdn=1234567890 https://123.456.7.890/login.pl?action=paint;source=234.567.89.012;destination=my url What is it and what is a good message to show the user when this

[android-developers] Re: How to warn user when back button is pressed to navigate out of my application?

2010-04-28 Thread Michael A.
Hi Xiongzh, Do something like the following where appropriate: @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(Quit Y/N?)

Re: [android-developers] Re: Starting default calendar and contacts application

2010-04-28 Thread Anurag Singh
these are the permissions for contact. READ_CONTACTS, WRITE_CONTACTS - Anurag Singh On Mon, Apr 26, 2010 at 7:43 PM, AJ ajeet.invinci...@gmail.com wrote: @Anurag I didn't need any permission, as my requirement is to launch the Contact App. Thanks, AJ On Apr 26, 4:53 pm, Anurag Singh

[android-developers] Re: How to warn user when back button is pressed to navigate out of my application?

2010-04-28 Thread westmeadboy
My strategy is to only show a Toast (and maybe Vibration) (warning the user that the next Back will exit the app) if the user has already very recently (2 secs ago) hit Back to return to the main activity from a secondary activity. This doesn't help the situation of accidentally hitting the back

[android-developers] Re: Adding static background to kube

2010-04-28 Thread String
On Apr 26, 7:24 am, CMF manf...@gmail.com wrote: Hi all, I would like to ask how to add a static background to the kube from the ApiDemo There are two ways that immediately occur to me. First, make it translucent and put it on top of a view containing your background image. See

[android-developers] Re: AsyncTask and progressUpdate()

2010-04-28 Thread MobDev
hhmm ok... So I guess it should be possible for example to make my own class extending AsyncTask and implementing callaback interfaces to it from the aforementioned modules, does that sound feasable/logical at all ? I was wondering though, because its somewhat asynchronous operations how should

[android-developers] moving sms to private location, not noticing to phone user

2010-04-28 Thread soclose
I could test sending and receiving sms among the emulators on the help of this link - SMS Messaging in Android : http://mobiforge.com/developing/story/sms-messaging-android 1. In my application, I want to move some sms to private folder or location. Is it better to store them in SQLite database?

[android-developers] Re: [Help] How to get current UTC time?

2010-04-28 Thread String
On Apr 28, 7:31 am, Vincent Tsao caojunvinc...@gmail.com wrote: As you know, i can use System.currentTimeMillis() to fetch current local time, but how to convert local time to UTC time? Are you sure that currentTimeMillis() gives you local time? It's documented as the current system time in

[android-developers] Re: Lighting effects in android

2010-04-28 Thread String
On Apr 28, 7:17 am, satish bhoyar getsatonl...@gmail.com wrote: I am developing one app where I need light effect. the exact is it should give a feel like light is traveling. I know one way i.e. by using GLSurfaceView, but  is there any other way to achieve this ? No, there's no other way,

Re: [android-developers] problem to install .apk on phone

2010-04-28 Thread Nandan .
hi imran when you run a command adb devices it display only connected device and emulator. if u r using eclipse then just install the correct usb driver from help menu and updete software. most probaly ur usb driver is not correct driver for LG GW620. thank you bhavesh On Wed, Apr 28, 2010 at

[android-developers] Re: Using same sqlite database from multiple Activities and Services

2010-04-28 Thread Federico Paolinelli
An sqllitedb (helper) object for each activity (but the open one is only in the active activity). Every time an activity closes or pauses, I call the close() method. However, I am interested in any more elegant and standard solution of this problem. Federico On 27 Apr, 21:49, goosedroid

[android-developers] Re: problem to install .apk on phone

2010-04-28 Thread AJ
@ Imran When the installation gets failed it shows the error code. Can you check that error code ? Thanks, AJ On Apr 28, 11:11 am, Nandan . bhavesh2...@gmail.com wrote: hi imran when you run a command adb devices it display only connected device and emulator. if u r using eclipse then just

Re: [android-developers] Re: Lighting effects in android

2010-04-28 Thread satish bhoyar
yes i want light ray to travel from one position to another. thanks, satish On Wed, Apr 28, 2010 at 1:31 PM, String sterling.ud...@googlemail.comwrote: On Apr 28, 7:17 am, satish bhoyar getsatonl...@gmail.com wrote: I am developing one app where I need light effect. the exact is it should

[android-developers] Re: onCreate and orientation change

2010-04-28 Thread Andreas
Hi, You could consider moving part of the logic of your application to a service. That would mean that the logic is separated from the UI, and thus will not be affected by UI changes. Best regards Bex On Apr 28, 2:39 pm, NicoToc nicolas.mayn...@gmail.com wrote: Hi, I have an activity that

[android-developers] Re: Android Debugging Issues

2010-04-28 Thread Bob Kerns
BTW, when you edit in the text of a message you're replying to this way, the group software's link to email fails to include your response. I had to go to the web to retrieve it. Extracting out the relevant bit: * That the debugger supports breakpoints, and single stepping? - i added a ttoggle

[android-developers] Re: Lighting effects in android

2010-04-28 Thread AJ
@satish If your light travel is same evry time then you can show it 4-5 images as animation. Otherwise you have to write your own code. Thanks, AJ On Apr 28, 11:37 am, satish bhoyar getsatonl...@gmail.com wrote:  yes i want light ray to travel from one position to another. thanks, satish

[android-developers] Re: Android Debugging Issues

2010-04-28 Thread Andreas
Hi, What IDE are you using? If you are using eclipse, please be aware that you have to start iin debug rather than run mode for the IDE to stop at you breakpoints. Also please have a look at the logcat. That should give you a stack trace of the exception, and generally be very helpful.

[android-developers] Re: MultiPart Post File not working on Android 2.1 SDK

2010-04-28 Thread Bob Kerns
What do you mean by does not execute and stays stale? And how are you doing your upload? On Apr 27, 6:20 am, itsmohan itsmoha...@gmail.com wrote: Hi, I'm working on a sample application that does FileUpload using Multipart post, with Andorid 1.6 SDK the application works as expected but

[android-developers] Re: Lighting effects in android

2010-04-28 Thread AJ
There is a ApiDemo GLSurfaceView - a spinning triangle I hope this would help you. You want something like this. Thanks, AJ On Apr 28, 11:48 am, AJ ajeet.invinci...@gmail.com wrote: @satish If your light travel is same evry time then you can show it 4-5 images as animation. Otherwise you

Re: [android-developers] Re: Lighting effects in android

2010-04-28 Thread satish bhoyar
thanks AJ will chk it.. On Wed, Apr 28, 2010 at 2:26 PM, AJ ajeet.invinci...@gmail.com wrote: There is a ApiDemo GLSurfaceView - a spinning triangle I hope this would help you. You want something like this. Thanks, AJ On Apr 28, 11:48 am, AJ ajeet.invinci...@gmail.com wrote: @satish

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-28 Thread Thomas Riley
Fair point, but, since the devices we get are likely american spec (with US chagers) it has nothing todo with vodafone. At the end of the day, Brightpoint will have messed up like you say... just a matter of playing the waiting game. On Apr 28, 6:16 am, dgoemans dgoem...@gmail.com wrote: i'd

[android-developers] Re: Lighting effects in android

2010-04-28 Thread Robert Green
If it's 2D you can sort of simulate some light with gray/light colored alpha. It really depends on what kind of effect you're talking about and what is to be lit. Could you make a mockup and post it? On Apr 28, 1:17 am, satish bhoyar getsatonl...@gmail.com wrote: Hi all, I am developing one

[android-developers] Re: Adding static background to kube

2010-04-28 Thread Robert Green
String is correct on using the matrix stack. Follow those instructions and also consider just creating a textured quad and rendering it in an orthographic projection. That's a common practice for a nice, fast, easy background on a 3D scene. If you want it to look far away just blur and darken

[android-developers] How to retrieve outgoing number

2010-04-28 Thread mike
i want to capture Outgoing call numner. i'm using the BroadCastReceiver. but every time it returns a blank String for the number. it works fine for the incoming number. this is my code public class CallListener extends BroadcastReceiver { private Context context; Intent inten = null;

[android-developers] Re: ListView/Adapter IllegalStateException

2010-04-28 Thread ionel
This isn't a solution for me, but thanks. On Apr 7, 4:55 pm, Jerry Fan jerryfan1...@gmail.com wrote: I have a fix for this. Just set the visibility of ur ListView to Gone during update and back to visible after update. By doing so, u can avoid the inconsistency of ur adapter and listView item

Re: [android-developers] How to retrieve outgoing number

2010-04-28 Thread Galbayar D
Hi Mike Try use below method private String getLastCallLogEntry( Context context ) { String[] projection = new String[] { BaseColumns._ID, CallLog.Calls.NUMBER, CallLog.Calls.TYPE }; ContentResolver resolver =

Re: [android-developers] Re: [Help] How to get current UTC time?

2010-04-28 Thread Vincent Tsao
On Wed, Apr 28, 2010 at 3:57 PM, String sterling.ud...@googlemail.comwrote: On Apr 28, 7:31 am, Vincent Tsao caojunvinc...@gmail.com wrote: As you know, i can use System.currentTimeMillis() to fetch current local time, but how to convert local time to UTC time? Are you sure that

Re: [android-developers] Need Help--- Regarding Creating Database and Tables

2010-04-28 Thread amsale zelalem
thank you so  much for the posted solution. it is of great help for me. I want to ask you though some more questions. 1.  I would like to populate my tables statically(before even the app is launched) may be reading from a file onto the db. How can I do it? 2. I would like to add texts written in

[android-developers] JUnit Test error

2010-04-28 Thread alan
When defining a junit test using the static suite method android assumes that the name of each test is also the name of a method. If this is not the case then the test runner fails to run. The following test class works correctly using the standard eclipse junit runner: public class CustomTest

[android-developers] Re: native AudioTrack resources never freed..

2010-04-28 Thread szabolcs
I am posting the link to the relevant AOSP thread for reference. https://review.source.android.com/#change,14085 -szabolcs -- 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: change margin of a view after it has been rendered

2010-04-28 Thread nou
step, as it's been ages since I've needed to make changes like this Isn't this a good way of making changes? On Apr 27, 6:02 pm, Mark Murphy mmur...@commonsware.com wrote: nou wrote: It doesn't work. That's to change the margin at instantiation time. I already have an element on the page

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-28 Thread mscwd01
I'm just speculating here however, it may have been the case that Brightpoint (or whoever distributes the N1 to European providers) needed to stock places like Vodafone before issuing out free handsets. A report today says they are already experiencing N1 shortages and need to await more stock

[android-developers] Re: JUnit Test error

2010-04-28 Thread alan
A really nasty workaround is to override the getName method on the test class: @Override public String getName() { for (StackTraceElement stackElement : Thread.currentThread().getStackTrace()) { if

[android-developers] How to custom option menu to arrange three menu items where 2 menu items are displayed at the top and the third below it.

2010-04-28 Thread D.Y
Dear All, I want custom option menu to arrange three menu items where 2 menu items are displayed at the top and the third below it. Just as the following layout. Any suggestion will be grateful. Thanks in advance. !

[android-developers] Re: Bluetooth stack becomes dead

2010-04-28 Thread Rafał Grzybowski
Almost everything is ok, I cannot get any notification when I loose the connection to the remote device, OutputStream simple does nothing, I can see error in the log, but from the client point of view everything is fine. On 25 Kwi, 09:42, Rafał Grzybowski aguyngue...@gmail.com wrote: I've just

[android-developers] Re: How to retrieve outgoing number

2010-04-28 Thread mike
hi Galbayar D, thanks for your help.it works fine and it has solve my issue. appreciate what you have done. have another issue when a call is receiving how to delete the call log entry. i have tried it but it always delete the other entries not the current call entry. this is my method

[android-developers] Re: Hide Activity

2010-04-28 Thread Ajay
I could accomplish this using this android:theme=@android:style/Theme.Translucent Just wondering, is it possible to use more than 1 theme for an activity? For example we could have an activity with these themes NoTitleBar and Translucent. Thank you, AJ On Apr 28, 11:19 am, Ajay

[android-developers] The emulator running terrible slow in win2008r2 64bit with 4G RAM

2010-04-28 Thread Billy Cui
This is my laptop T400 2.53G duo with 4G RAM. Before this system, I use win2003 32big with 2G RAM 1.8G cpu, and running Andorid emulator was not so slow, it can run on 200 - 300Mhz cpu when use cat /proc/cpuinfo to check. But now, it runs on less than 60Mhz with same command, and almost all apps

[android-developers] Re: How to retrieve outgoing number

2010-04-28 Thread mike
hi Galbayar D, thanks for your help.it works fine and it has solve my issue. appreciate what you have done. have another issue when a call is receiving how to delete the call log entry. i have tried it but it always delete the other entries not the current call entry. this is my method

Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-28 Thread Teo
@TreKing Well, some countries aren't exactly 'the promised land' where you can just announce you're selling something and someone will jump at the opportunity. But what i'm doing isn't the matter here.. What is the matter here is you telling people we should just let this thread die, which,

[android-developers] Re: Bluetooth stack becomes dead

2010-04-28 Thread Rafał Grzybowski
I must be blind...BluetoothDevice.ACTION_ACL_DISCONNECTED On 28 Kwi, 12:28, Rafał Grzybowski aguyngue...@gmail.com wrote: Almost everything is ok, I cannot get any notification when I loose the connection to the remote device, OutputStream simple does nothing, I can see error in the log, but

[android-developers] Re: How to retrieve outgoing number

2010-04-28 Thread mike
hi Galbayar D, thanks for your help.it works fine and it has solve my issue. appreciate what you have done. have another issue when a call is receiving how to delete the call log entry. i have tried it but it always delete the other entries not the current call entry. this is my method

Re: [android-developers] Re: Different screen sizes x different layouts

2010-04-28 Thread Mark Murphy
Gabriel Simões wrote: In resume, should I have all those layouts to support all the devices? /res/layout-normal-mdpi /res/layout-normal-hdpi /res/layout-normal-ldpi /res/layout-large-mdpi /res/layout-small-ldpi That is impossible to answer in the abstract. For example, I have written

[android-developers] Re: Lots of lost sales due to Credit Card authorization.

2010-04-28 Thread Flying Coder
Have the customers who contact you about it check their spam folder -- chances are they'll find Google's email there (at least that's been my experience). Cheers, Steve On Apr 26, 9:54 am, Streets Of Boston flyingdutc...@gmail.com wrote: You may experiencing a bug, since e-mails should be

Re: [android-developers] Re: AsyncTask and progressUpdate()

2010-04-28 Thread Mark Murphy
MobDev wrote: hhmm ok... So I guess it should be possible for example to make my own class extending AsyncTask and implementing callaback interfaces to it from the aforementioned modules, does that sound feasable/logical at all ? You shouldn't need that. The point of AsyncTask is to do things

[android-developers] Cannot Play Audio Files In The RAW Folder

2010-04-28 Thread arberb
At the moment im working on an application which uses audio files and the issue is when ever my audio file gets called it gives me this error: 20:51:12.061916 ERROR AndroidRuntime Uncaught handler: thread main exiting due to uncaught exception 20:51:12.092916 ERROR

[android-developers] Re: Cannot Play Audio Files In The RAW Folder

2010-04-28 Thread AJ
Paste some sample code so the people can actually see what is missing from your code. Thanks, AJ On Apr 28, 2:16 pm, arberb beqi...@gmail.com wrote: At the moment im working on an application which uses audio files and the issue is when ever my audio file gets called it gives me this error:

[android-developers] Re: How can save an online image in my res folder in android?

2010-04-28 Thread Maxood
Can you provide the sample code to save images either to the sdcard or the data/data/package folder. Thank you On Apr 26, 4:24 am, Kumar Bibek coomar@gmail.com wrote: Not possible. You will have to save those either to the sdcard or the data/data/package folder. Thanks and Regards,

[android-developers] How to query the user list of my application?

2010-04-28 Thread Alger, Lin
I find a web site (http://www.appbrain.com/), it can tell me which users download my application, and their device type. However it list 10 users at most. I wanna know which devices type that my application was running. Does anybody could tell me, how to get the user list? and how to get their

[android-developers] I cannot find a complete list of locales.

2010-04-28 Thread Hunter Peress
Hello. I want to translate my app into all available markets. Now, from the market, we have: English (en_US) | 日本語 (ja_JP) | français (fr_FR) | čeština (cs_CZ) | Español (es_ES) | русский (ru_RU) | Deutsch (de_DE) | 한국어 (ko_KR) | italiano (it_IT) | português (pt_PT) | polski (pl_PL) | Nederlands

[android-developers] ImageView that is a OnClickListener can't handle other gestures

2010-04-28 Thread _rogerio_
Hi, I have several ImageViews inside a Gallery, every ImageView can handle a user tapping by listen click events like below: posterView.setOnClickListener(new View.OnClickListener() { public void onClick(View view) {

[android-developers] Re: generating keypress

2010-04-28 Thread Mihai Fonoage
You have to use start() to execute instrumentation in its own thread. This new thread will call onStart() where you can call your sendKeyDownUpSync(int) method. If you are using this for testing purposes only, you can create a separate test class that extends

Re: [android-developers] How to query the user list of my application?

2010-04-28 Thread Mark Murphy
Alger, Lin wrote: I find a web site (http://www.appbrain.com/), it can tell me which users download my application, and their device type. However it list 10 users at most. I wanna know which devices type that my application was running. Does anybody could tell me, how to get the user list?

[android-developers] Re: I cannot find a complete list of locales.

2010-04-28 Thread AJ
I am also interested to know this. Thanks, AJ On Apr 28, 2:32 pm, Hunter Peress hunt...@gmail.com wrote: Hello. I want to translate my app into all available markets. Now, from the market, we have: English (en_US) | 日本語 (ja_JP) | français (fr_FR) | čeština (cs_CZ) | Español (es_ES) |

[android-developers] Re: Cannot Play Audio Files In The RAW Folder

2010-04-28 Thread Nithin
The error is, Resources $NotFoundException: File res/raw/a.ogg from drawable resource ID #0x7f04 check whether you properly place your a.ogg file in raw folder Nithin On Apr 28, 4:22 pm, AJ ajeet.invinci...@gmail.com wrote: Paste some sample code so the people can actually see what is

[android-developers] Camera Error 100 on Nexus One, not on G1.

2010-04-28 Thread Pavol Ban
Hi, I'm recieving a Camera Error 100 when calling camera.takePicture(...);, along with Media Server and AudioFlinger crashing. My code is : previewLayer.mCamera.autoFocus(new AutoFocusCallback() { @Override public void onAutoFocus(boolean success, Camera camera) { if (success)

[android-developers] Re: Issue with MediaPLayer

2010-04-28 Thread Mihai Fonoage
What error do you get? On Apr 26, 7:26 pm, arberb beqi...@gmail.com wrote: This is my script: public class MainActivity extends Activity {     @Override     public void onCreate(Bundle icicle) {         super.onCreate(icicle);         this.setContentView(R.layout.main);         Button

[android-developers] Re: Camera Error 100 on Nexus One, not on G1.

2010-04-28 Thread Pavol Ban
Actually, here's more from the log.. this is the output right after autofocus is called, and before the output that i posted in the previous message. DEBUG/skia(824): purging 197K from font cache [28 entries] DEBUG/AUTOFOCUSING(824): hhh DEBUG/CameraService(798): autoFocus (pid 824)

[android-developers] Re: Issue with MediaPLayer

2010-04-28 Thread AJ
Before starting the media you need to do following things:- FileDescriptor fd = getResources().openRawResourceFd(R.raw.xxx).getFileDescriptor(); mp.setDataSource(fd); mp.setAudioStreamType(AudioManager.STREAM_RING); mp.prepareAsync(); For more info check this

Re: [android-developers] Re: Issue with MediaPLayer

2010-04-28 Thread Mihai Fonoage
It should have worked the way he did it ( http://developer.android.com/guide/topics/media/index.html#playraw). The exception raised should be of more help. On Wed, Apr 28, 2010 at 8:23 AM, AJ ajeet.invinci...@gmail.com wrote: Before starting the media you need to do following things:-

[android-developers] Re: How to custom option menu to arrange three menu items where 2 menu items are displayed at the top and the third below it.

2010-04-28 Thread String
On Apr 28, 11:22 am, D.Y android.and...@gmail.com wrote:          I want custom option menu to arrange three menu items where 2 menu items are displayed at the top and the third below it. Can't do it. The OS arranges menu items as it pleases. For 3 items, the arrangement is all on one line.

[android-developers] ViewFlipper problem

2010-04-28 Thread angushir...@googlemail.com
Dear all, I'm using a viewflipper in an application. At start up I load 50 views into the viewflipper but the viewflipper child count stays at 3. This is obviously not what I want. Any suggestions as to how I get the viewflipper to hold more than 3 views? Regards Angus -- You

[android-developers] Re: The emulator running terrible slow in win2008r2 64bit with 4G RAM

2010-04-28 Thread Nicholas Albion
Every time I start the emulator, I open Windows Task Manager, right- click the emulator process and set the affinity to all processors. -- 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: Camera Error 100 on Nexus One, not on G1.

2010-04-28 Thread wurp
Before takePicture, you must have called startPreview (without then calling startPreview). My picture taking code goes something like this: cam.startPreview(); cam.takePicture(); cam.stopPreview(); According to the android docs, takePicture itself stops the preview, but my experience is that I

[android-developers] TelephonyManager.getLine1Number() returning null?

2010-04-28 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying to fetch the telephone number of the device. I'm calling TelephonyManager.getLine1Number(), and it's returning null. A trawl of the intertubes shows that there's a potential problem with some SIMs not containing this information; however,

Re: [android-developers] The emulator running terrible slow in win2008r2 64bit with 4G RAM

2010-04-28 Thread David Turner
Weird, are you using a roaming profile or something else that involves the network? On Wed, Apr 28, 2010 at 3:53 AM, Billy Cui billy...@gmail.com wrote: This is my laptop T400 2.53G duo with 4G RAM. Before this system, I use win2003 32big with 2G RAM 1.8G cpu, and running Andorid emulator

[android-developers] AV sync mismatch after seek in Real media files.

2010-04-28 Thread kiran
I have integrated Real Media (RM) to Eclair. In real media files, the audio codec can be one of the 2 formats, AAC or G2COOK (also called as Real Media 8 Low Bit rate, this is a constant bit rate codec, while AAC is a VBR codec). During Normal playback, there is AV sync in all real media files

Re: [android-developers] using a random string.

2010-04-28 Thread TreKing
On Mon, Apr 26, 2010 at 5:43 PM, Zaid zaid.a...@gmail.com wrote: the error eclipse gives is The method q0(int) is undefined for the type R.string In this context, q0 is an int, not a function, so you can't use it like one. when i use the quick fix to create a method in R.java, it generates

[android-developers] getMaxSatellites returns 255

2010-04-28 Thread Vinay S
Hi All, When I try to get the number of satellites used for getting the fix. I get the response as 255. Is this value correct? My code is below: public void onGpsStatusChanged(int event) { switch (event ) { case GpsStatus.GPS_EVENT_SATELLITE_STATUS : { GpsStatus status =

[android-developers] How to unregister listener after application get closed

2010-04-28 Thread zohar lerman
Hi, I am writing an application that listens to phone calls and perform some tasks when phone call arrives. The Application contains one activity which includes 2 buttons ‘Start’ and ‘Stop’ (where starts register the listener and stops unregister it – see code below). The problem starts when the

Re: [android-developers] How to unregister listener after application get closed

2010-04-28 Thread Anurag Singh
Why dont you put your code in OnDestry. like OnDestroy() { telephonyManager.listen(phoneListener, PhoneStateListener.LISTEN_NONE); } - Anurag Singh On Wed, Apr 28, 2010 at 7:07 PM, zohar lerman lirazo...@gmail.com wrote: Hi, I am writing an application that listens to phone

[android-developers] Re: Camera Error 100 on Nexus One, not on G1.

2010-04-28 Thread Pavol Ban
That's the order i have my code in.. startPreview is called in the onCreate method so I didn't post it here. I'll take a look at the tutorial code, thanks :) On Apr 28, 3:19 pm, wurp bobbymart...@gmail.com wrote: Before takePicture, you must have called startPreview (without then calling

[android-developers] Re: How to unregister listener after application get closed

2010-04-28 Thread zohar lerman
This is my temporary solution but i want to be able to listen the phone event even when the application is closed ( until the user will ask to stop the this service) On Apr 28, 4:44 pm, Anurag Singh anusingh...@gmail.com wrote: Why dont you put your code in OnDestry. like OnDestroy() {    

Re: [android-developers] Re: How to unregister listener after application get closed

2010-04-28 Thread Mark Murphy
zohar lerman wrote: This is my temporary solution but i want to be able to listen the phone event even when the application is closed ( until the user will ask to stop the this service) From your original post, you do not have a service. If you have a service, unregister the listener in

[android-developers] How to get Gmail address registered on the phone ?

2010-04-28 Thread djdamage06
Hello everybody, I want to know if it's possible (and if YES how) to get through my application the specified mail address by the user when he/she goes on the Android Market I don't need his/her password, only the address mail registered in GoogleApps ! I know it's possible to get that with

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-28 Thread peter
Still patiently waiting. Still using the good old Dev Phone 1. Come on Google!! On Apr 28, 6:57 pm, Teo teomina...@gmail.com wrote: @TreKing Well, some countries aren't exactly 'the promised land' where you can just announce you're selling something and someone will jump at the opportunity.

[android-developers] Drawing a differnt lines in OpenGL ES

2010-04-28 Thread satish bhoyar
Hi all guys, how to draw different types of lines like thick line, dashed line etc using opengl android? thanks satish -- 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

[android-developers] Re: How to unregister listener after application get closed

2010-04-28 Thread zohar lerman
Sorry for the misunderstanding but i am not using service. As i said in the initial post The Application contains one activity which includes 2 buttons ‘Start’ and ‘Stop’ On Apr 28, 5:02 pm, Mark Murphy mmur...@commonsware.com wrote: zohar lerman wrote: This is my temporary solution but i

[android-developers] Re: Adding static background to kube

2010-04-28 Thread CMF
Thank String and Robert,I can create the quad but I would like to know how to make the quad with texture(a 320x480 bitmap) best fits with the screen? On Apr 28, 5:17 pm, Robert Green rbgrn@gmail.com wrote: String is correct on using the matrix stack.  Follow those instructions and also

Re: [android-developers] Re: How to unregister listener after application get closed

2010-04-28 Thread Mark Murphy
zohar lerman wrote: Sorry for the misunderstanding but i am not using service. As i said in the initial post The Application contains one activity which includes 2 buttons ‘Start’ and ‘Stop’ Right. You cannot, should not, and must not leave a listener attached after an activity ends. You

Re: [android-developers] Frustrated with CheckBox/CheckedListView in listview

2010-04-28 Thread TreKing
On Tue, Apr 27, 2010 at 6:58 PM, Jeruliu jeru@gmail.com wrote: but there is way to detect the position of the item clicked??? Going off of what you have already, you could put the incoming position in the checkbox's tag, then retrieve it when it's clicked.

Re: [android-developers] Spinner-SimpleCursorAdapter

2010-04-28 Thread TreKing
On Tue, Apr 27, 2010 at 1:10 PM, ivopus ivo...@gmail.com wrote: I'm having problems with spinner. I'm using spinner that is bound to a SimpleCursorAdapter. I want to retrieve the text value of the selected item. android.database.sqlite.sqlitecur...@435a72c0 I haven't used this myself, but

[android-developers] Re: How to unregister listener after application get closed

2010-04-28 Thread zohar lerman
First thanks for your quick responses. Second I have few more questions 1. in your second suggestion is it possible ( and if yes how) to end the service later ( by user request) 2. in your third suggestion is it possible to start the broadcast receiver by demand and the same question as in bullet

Re: [android-developers] Drawing a differnt lines in OpenGL ES

2010-04-28 Thread Max Gilead
Quad + texture or a mesh, depends on your needs. On 28 April 2010 15:14, satish bhoyar getsatonl...@gmail.com wrote: Hi all guys, how to draw different types of lines like thick line, dashed line etc using opengl android? thanks satish -- You received this message because you are

Re: [android-developers] Re: How to unregister listener after application get closed

2010-04-28 Thread Mark Murphy
zohar lerman wrote: First thanks for your quick responses. Second I have few more questions 1. in your second suggestion is it possible ( and if yes how) to end the service later ( by user request) Call stopService(). 2. in your third suggestion is it possible to start the broadcast

Re: [android-developers] hello android app doesn't run properly

2010-04-28 Thread TreKing
On Tue, Apr 27, 2010 at 12:39 PM, serj serj.andr...@gmail.com wrote: I was following the Hello World(Android) tutorial located in the Dev Section of Android website OK. and everything went smoothly OK except when I ran the app as Android Application from Eclipse( for Java) a window

[android-developers] Re: How to overlay a GLSurfaceview on a surfaceview?

2010-04-28 Thread Paolo
can nobody help me? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For

  1   2   3   >