[android-developers] Re: i am new in Android and i don't know how to create media player project please help me

2010-10-15 Thread Vitaliy Tarasenko
What do you mean cant create? Object of MediaPlayer class?? Project for using media player is similiar for any android project - MediaPlayer is usual class which you can use. On 14 Жов, 21:27, ketan mehta mehtaketan...@gmail.com wrote: i am new in Android and i don't know how to create media

[android-developers] how to get focus color of button in theme

2010-10-15 Thread A N K ! T
Hi there, I want to extract the current theme's button focus colour (ie 'orange' in the dark theme) so I can use it draw the focused state of a custom control. Can anyone give me or point me to some code that will extract that particular colour from the current theme's StyledAttributes? There

R: Re: [android-developers] Suggestion for list search

2010-10-15 Thread sandma...@libero.it
Messaggio originale Da: coomar@gmail.com Data: 14/10/2010 21.28 A: android-developers@googlegroups.com Ogg: Re: [android-developers] Suggestion for list search Simple sql queries should get you going. Search by short, and display what you want So you suggest using SqlLite, or

Re: [android-developers] Re: i am new in Android and i don't know how to create media player project please help me

2010-10-15 Thread Miguel Morales
Help you with what? You'll have to be MUCH more specific. 2010/10/14 Vitaliy Tarasenko vitta...@gmail.com: What do you mean cant create? Object of MediaPlayer class?? Project for using media player is similiar for any android project - MediaPlayer is usual class which you can use. On 14

Re: [android-developers] WiFi Range and Ad-Hoc Networks

2010-10-15 Thread Kostya Vasilyev
Juan, 14.10.2010 19:59, Juan пишет: I am initiating the design of an application that would require an Android phone to connect to another Android phone via Ad-Hoc networking with or w/o security. I would like to know if Android supports ad-hoc networking. No. See this:

Re: [android-developers] Re: Alternative to GLWallpaperService, OpenGL Live Wallpaper

2010-10-15 Thread Dianne Hackborn
I can't help with how to use OpenGL, I was just pointing out something a number of apps are doing that is likely to break in the future. On Wed, Oct 13, 2010 at 7:05 AM, mr.winky mr0wi...@gmail.com wrote: Thats fine, but you didnt answer the original question which was. What is the right

[android-developers] Re: Internal Phone Storage Size

2010-10-15 Thread noriato
start an emulator on the command line like this: emulator -partition-size size -avd virtual device name emulator.exe can be found in the tools folder. -- 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: Using BroadcastReceiver in JUnit tests

2010-10-15 Thread viktor
Any proposition how to test async calls? On 14 Жов, 15:23, viktor victor.scherb...@gmail.com wrote: Hi everyone, Is it possible to receive notification from activities in a test case? I want to test async precesses with broadcast messages. If process done I  send broadcast and catch it in

[android-developers] Re: fiel download, java.net.URL, streams

2010-10-15 Thread viktor
Did you allow INTERNET permission? I don't know why do you did this: http.connect(); if you already connected: url.openConnection(); Please, test your connection for available bytes, maybe your stream is empty, if looking on that: URL url = new URL(http:// www.google.at/); On 14 Жов, 15:09,

[android-developers] Application for different screens

2010-10-15 Thread pramod.deore
Hi, I want to develope an application for a tablet of 480*800 screen pixels. I had develope an application for normal mobiles, but now this screen size is large than normal size. what precaution should I take while developing the application? Because device is not available right now so I must

[android-developers] Re: Memory leak using ListActivity in Android?

2010-10-15 Thread viktor
Hi Kebab, I propose you do not use this.getApplicationContext(), it will better if you use current Activity context, because application context live very long. It will destroyed when you uninstall your app. On 14 Жов, 18:58, Kebab daalmightyke...@googlemail.com wrote: I have an application

[android-developers] Re: Application for different screens

2010-10-15 Thread Kumar Bibek
You should take care of the same things that you did for the mobile. Like, orientations, and screen sizes etc. On Oct 15, 1:36 pm, pramod.deore deore.pramo...@gmail.com wrote: Hi, I want to develope an application for a tablet of 480*800 screen pixels. I had develope an application for normal

[android-developers] Re: Memory leak using ListActivity in Android?

2010-10-15 Thread Kumar Bibek
And, you don't have to do this. _Adapter=null; // this line doesn't help getListView().setAdapter(null); // neither does this line On Oct 15, 1:43 pm, viktor victor.scherb...@gmail.com wrote: Hi Kebab, I propose you do not use this.getApplicationContext(), it will better if you use

[android-developers] [Android Developers] google sync on android phone.

2010-10-15 Thread FleeCloo
i tried to get this source code for 3weeks download android os source code by git but i can't find google sync nexus one htc desire galaxy s all those android phone usese same google sync google provides 'google sync' only phone manufacturer? or all developers? i want get 'google sync'

[android-developers] Weird issue with SurfaceView

2010-10-15 Thread Ajay
Hi, I have a peculiar problem in my app which uses a SurfaceView. After I create the SurfaceView and launch another activity or switch to another activity and return to my SurfaceView, the Menu options or the AlertDialogs are NOT visible! But, it appears as though I am only not able to see the

[android-developers] Photo + info stored in database...Question bout linking the two together

2010-10-15 Thread Stephen Pengilley
Hi all, I am building an app which will let the user take a photo, then add some details which will be stored in a database. I want to be able to store some information (URI?) in the database so that when the user clicks the database entry from a listview it retrieves the photo. I hope it is

[android-developers] Re: Detect a received outgoing call

2010-10-15 Thread Nicolas Zerr
Hello, You should use a PhoneStateListener and watch for the CALL_STATE_OFFHOOK statement. public class MyPhoneStateListener extends PhoneStateListener { @Override public void onCallStateChanged(int state, String incomingNumber) { switch

Re: [android-developers] Re: Detect a received outgoing call

2010-10-15 Thread A N K ! T
and do add some static variable that will tell you that it is not an incoming call OFFHOOK state.. On Fri, Oct 15, 2010 at 3:29 PM, Nicolas Zerr nicolas.z...@gmail.comwrote: Hello, You should use a PhoneStateListener and watch for the CALL_STATE_OFFHOOK statement. public class

[android-developers] Re: DICOM Libraries

2010-10-15 Thread Nicolas Zerr
Hi, You should not search an Android specific library, but a Java library. I did not try it, but dcm4che seems to be a complete and robust DICOM library. http://www.dcm4che.org/ On 12 oct, 05:24, ARaja alagara...@gmail.com wrote: Hi All, I am pretty new to Andriod. I am into healthcare

[android-developers] User interaction and broadcast receiver

2010-10-15 Thread David Bidorff
Hello, I'm working on a small application and basically, want I want to do, is to ask for a user confirmation before he performs a given set of phone calls. So I'm trying to find a way to create a UI when the onReceive() function of my BroadcastReceiver is fired. It seems that I can show an

[android-developers] How can i take EditText box data when user clicks on the soft keyboard Enter key

2010-10-15 Thread rokson
Hi Friends, I want to get EditText data when user clicks on the soft keyboard Enter key. How can i do it. Please help me.. Thanks and Regards, Kiran. -- 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] Not able to install .apk in froyo

2010-10-15 Thread ashwani
Hi all, I am not able to install any .apk application in froyo. Please help me to solve this issue. regards Ashwani -- 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: Play VideoView in LandScape Mode

2010-10-15 Thread Ganapathy.C
When use click on some button Streaming video must play only in landscape mode. Even though user is in normal mode(portrait). Also some application disabled landscape mode. how to do that .. Plz..Give some tips for this two questions... Thank You. -- You received this message because you are

[android-developers] Re: OnStop and OnDestroy aren`t invoked after calling finish()

2010-10-15 Thread mariush
so after invoking finish() onDestroy and onStop must or should be invoked? Moreover, it not happens on all kind of devices, i can reproduce problem on HTC Legend with Android 2.1, but on Sony Ericsson Xperia X10 Android 1.6 everything is invoked as expected. My activity is running in

Re: [android-developers] OutOfBoundsException within replaceAll

2010-10-15 Thread Daniel Drozdzewski
On Thu, Oct 14, 2010 at 1:52 AM, Patrick codeansoftw...@gmail.com wrote: On Oct 13, 2010 12:45:20 PM my application got this exception report. java.lang.ArrayIndexOutOfBoundsException at java.util.regex.Matcher.group(Matcher.java:371) at

Re: [android-developers] Re: Play VideoView in LandScape Mode

2010-10-15 Thread Kumar Bibek
You can set the configuration of a specific Activity to landscape or portrait in the manifest file. http://developer.android.com/guide/topics/manifest/activity-element.html Look at the screen orientation tag On Fri, Oct 15, 2010 at 4:33 PM, Ganapathy.C cganapa...@gmail.com wrote: When use

Re: [android-developers] Re: OnStop and OnDestroy aren`t invoked after calling finish()

2010-10-15 Thread Kumar Bibek
Yep, in normal circumstances. Did you try using the Activity's context and see if it makes any difference? On Fri, Oct 15, 2010 at 4:33 PM, mariush mariusz...@gmail.com wrote: so after invoking finish() onDestroy and onStop must or should be invoked? Moreover, it not happens on all kind of

[android-developers] Re: Not able to install .apk in froyo

2010-10-15 Thread pramod.deore
what error you got? On Oct 15, 3:58 pm, ashwani ash1...@gmail.com wrote: Hi all, I am not able to install any .apk application in froyo. Please help me to solve this issue. regards Ashwani -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: OnStop and OnDestroy aren`t invoked after calling finish()

2010-10-15 Thread mariush
No, but how can i finish activity using Context, finish isn`t derived method and is available only in Activity class. On 15 Paź, 13:09, Kumar Bibek coomar@gmail.com wrote: Yep, in normal circumstances. Did you try using the Activity's context and see if it makes any difference? On

[android-developers] A recommendation from a friend

2010-10-15 Thread Press Ukraine
Hello, A friend has recommended the following site page to you: http://my.barackobama.com/page/community/post/kmosum/gGGV5S - A user has sent this message from BarackObama.com. The sender's name, email address, subject and message have not been verified. -- You received this

Re: [android-developers] Re: Play VideoView in LandScape Mode

2010-10-15 Thread Mark Murphy
On Fri, Oct 15, 2010 at 7:03 AM, Ganapathy.C cganapa...@gmail.com wrote: When use click on some button Streaming video must play only in landscape mode. Even though user  is in normal mode(portrait). AFAIK, this is not possible, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-developers] User interaction and broadcast receiver

2010-10-15 Thread Mark Murphy
On Fri, Oct 15, 2010 at 6:40 AM, David Bidorff david.bido...@gmail.com wrote: So I'm trying to find a way to create a UI when the onReceive() function of my BroadcastReceiver is fired. It seems that I can show an Activity thanks to Context.startActivity(), however, I need to wait for the user

Re: [android-developers] AIDL tool did not download

2010-10-15 Thread Mark Murphy
On Thu, Oct 14, 2010 at 10:45 PM, peter petero...@gmail.com wrote: I'm unable to find the AIDL tool in my OSX install.  My tools directory does not have AIDL, but it has everything else (Adb, android, ddms, etc). The aidl tool is not in that directory. Any idea on how I can get a hold of the

Re: [android-developers] Googlenav package

2010-10-15 Thread Mark Murphy
On Thu, Oct 14, 2010 at 12:36 PM, Steve fon...@gmail.com wrote: I can't import com.google.googlenav package in my class (SDK 1.0) so I looked up (SDK 0.9) an android.jar file I could see this package. I been told that that googlenav package is no longer supported? Any one have alternative to

Re: [android-developers] Re: OnStop and OnDestroy aren`t invoked after calling finish()

2010-10-15 Thread Kumar Bibek
While starting an Activity, use the Activity's context. I am not sure though what your problem is. On Fri, Oct 15, 2010 at 4:49 PM, mariush mariusz...@gmail.com wrote: No, but how can i finish activity using Context, finish isn`t derived method and is available only in Activity class. On 15

[android-developers] Re: sms uri

2010-10-15 Thread Abava
that was my question exactly. Do you know something about their plans? 2.2? Though the SMS app has a content provider which you can use. even from the web page? On 14 окт, 13:28, Kumar Bibek coomar@gmail.com wrote: It's not supported officially yet. Though the SMS app has a content

Re: [android-developers] Re: sms uri

2010-10-15 Thread Kumar Bibek
I don't know about their plans. :) On Fri, Oct 15, 2010 at 5:26 PM, Abava dnam...@gmail.com wrote: that was my question exactly. Do you know something about their plans? 2.2? Though the SMS app has a content provider which you can use. even from the web page? On 14 окт, 13:28, Kumar

Re: [android-developers] Need help for scrolling interface

2010-10-15 Thread Mark Murphy
Use a ListView. Each row would contain a LinearLayout consisting of your image and your text. Here is a sample project demonstrating this: http://github.com/commonsguy/cw-android/tree/master/FancyLists/Dynamic/ On Thu, Oct 14, 2010 at 8:21 AM, pranay pranaydal...@gmail.com wrote: I wish to make

Re: [android-developers] Wakeup alarm logging

2010-10-15 Thread Mark Murphy
Questions regarding modifying the firmware are best asked on a list pertaining to modifying the firmware, such as these: http://source.android.com/community/index.html On Wed, Oct 13, 2010 at 4:26 PM, Arun arun.g...@gmail.com wrote: Hello All, I am trying to identify the applications and

Re: [android-developers] Re: Using BroadcastReceiver in JUnit tests

2010-10-15 Thread Kostya Vasilyev
For broadcast messages to work, I think you need to run an event loop. Take a look at Looper. -- Kostya 15.10.2010 12:10, viktor пишет: Any proposition how to test async calls? On 14 Жов, 15:23, viktorvictor.scherb...@gmail.com wrote: Hi everyone, Is it possible to receive notification

Re: [android-developers] Xperia X10 Mini Pro

2010-10-15 Thread Daniel Drozdzewski
On Thu, Oct 14, 2010 at 2:08 PM, Adam Goodchild mimminito...@gmail.com wrote: For some reason, on the X10 Mini Pro Toast Notifications are not showing up correctly. It only displays a single line of the Toast, and cuts off the rest so you cannot see the text. After testing on the X10 Mini, it

[android-developers] Re: Alternative to GLWallpaperService, OpenGL Live Wallpaper

2010-10-15 Thread Lance Nanek
Did you lookup the usual refresh rate, which is indeed 60FPS, or did you check the specific number for your phone? I know from my own testing that the HTC Evo 4G cannot go above 30FPS in OpenGL, for example. Chris Pruett mentioned one of the XPeria devices doing similar, running at 30FPS, even

[android-developers] Re: SQLite Database Issues

2010-10-15 Thread Albert
Well it should be very obvious but the table exits, im sure of that. It just from time to time the database fails to recognise that is there... Cheers, Alberto On Oct 15, 3:34 am, Kumar Bibek coomar@gmail.com wrote: Well, the error is pretty obvious. There is no table with that name. If you

Re: [android-developers] Re: SQLite Database Issues

2010-10-15 Thread Prakash Iyer
I think what Kumar means is that does this ever work for this user in question? One interpretation of your email is that it works for most users but fails for some. On Oct 15, 2010 10:07 AM, Albert albert8...@googlemail.com wrote: Well it should be very obvious but the table exits, im sure of

[android-developers] Re: SQLite Database Issues

2010-10-15 Thread Albert
Sorry if it was not clear. It does work most of the time for those users (meaning the table is there), it just fails from time to time... I'm also shipping the database with the app and it gets copied to the internal memory. On Oct 15, 3:14 pm, Prakash Iyer thei...@gmail.com wrote: I think what

Re: [android-developers] Re: SQLite Database Issues

2010-10-15 Thread Mark Murphy
On Fri, Oct 15, 2010 at 10:23 AM, Albert albert8...@googlemail.com wrote: Sorry if it was not clear. It does work most of the time for those users (meaning the table is there), it just fails from time to time... I'm also shipping the database with the app and it gets copied to the internal

[android-developers] Re: SQLite Database Issues

2010-10-15 Thread Albert
Umm that's unlikely as I launch a spinner that blocks any user action (it only takes a second or two to complete), and I certainly don't touch it while its doing that. Also this only happens at the start and were a new database version is available. On Oct 15, 3:26 pm, Mark Murphy

[android-developers] Re: SQLite Database Issues

2010-10-15 Thread Bret Foreman
I have an app that does something similar and the way I ensure that the copy is finished is that I have a special end-of-load (EOL) record that goes into the table as the last item. My app does a select for that EOL record each time it's launched. If the table isn't created yet or the EOL is

[android-developers] How does Android handles PCM data from voice call?

2010-10-15 Thread mshklyarman
Dear experts, I am trying to understand whether or not Android handles the phone conversation's audio stream or it is done outside Android's framework. Specifically, if, for example, Android controls a cellular processor that provides PCM interface for voice conversation and there is a need to

[android-developers] Re: WiFi Range and Ad-Hoc Networks

2010-10-15 Thread Bret Foreman
This kind of sounds like the Bump app on iPhones. I'm sure it's possible to get two Android phones to communicate peer-to-peer via WiFi if you're willing to go far enough down the driver stack. But you might also break the phone's ability to be a conventional WiFi client. This smells like a big

[android-developers] error code 5: database is locked

2010-10-15 Thread gcstang
Has anyone encountered this and is there a solution to work around it? I'm creating a Thread and in that thread I open a database connection using the DBHelper, perform an update on a field in my database and close it. I create a separate one in the Thread because if the View is closed the global

[android-developers] Re: SQLite Database Issues

2010-10-15 Thread Albert
I have an app that does something similar and the way I ensure that the copy is finished is that I have a special end-of-load (EOL) record that goes into the table as the last item. My app does a select for that EOL record each time it's launched. If the table isn't created yet or the EOL is

[android-developers] Why am I getting NullPointerException although I catch it?

2010-10-15 Thread Saied
Hello, This is baffling me. It must be something that I am doing wrong fundamentally, but for the life of me I can't see it Can a good soul help me please? I am (supposedly) catching NullPointerException and returning 0 if that happens. But occasionally I get NullPointerException failure anyway.

[android-developers] Why am I getting NullPointerException although I catch it?

2010-10-15 Thread Saied
Hello, This is baffling me. It must be something that I am doing wrong fundamentally, but for the life of me I can't see it Can a good soul help me please? I am (supposedly) catching NullPointerException and returning 0 if that happens. But occasionally I get NullPointerException failure anyway.

[android-developers] Re: Play VideoView in LandScape Mode

2010-10-15 Thread Ganapathy.C
Thank youKumar Bibek -- 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

Re: [android-developers] Why am I getting NullPointerException although I catch it?

2010-10-15 Thread Prakash Iyer
Your catching a NullPointerException in your inputConnection.getTextBeforeCursor call is unnecessary. You are already checking to see if inputConnection is null. It From the documentation of InputConnection, and I quote This method may fail either if the input connection has become invalid (such

[android-developers] Re: Alternative to GLWallpaperService, OpenGL Live Wallpaper

2010-10-15 Thread mr.winky
Yes, I have verified with an opengl app under GLSurfaceView that I can get 60 fps. I havent been able to successfully adapt, beyond what Robert Green has posted, the GLSurfaceView to work for live wallpaper without the 30fps barrier. Is there someone out there that has solved this? On Oct 15,

[android-developers] .apk installation problem with froyo fs

2010-10-15 Thread ashwani
Hi all, I am not able to install any .apk file from adb shell in froyo fs. after given the ./adb xyz.apk command, system restart and adb shell get hangs. regards Ashwani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Rotate bitmap in opengl

2010-10-15 Thread Jason
You want to call glLoadIdentity before anything else, and remember that the commands are on a stack, so are processed in reverse order. The glLoadIdentity will reset everything, so your matrix will be at 0,0. This means you draw, rotate, then translate; but you push the commands to do this onto

[android-developers] Re: Android : Can we have Packages inside Layout

2010-10-15 Thread DanH
Nope -- with the exception of the raw subdirectory, everything in the res directory must be flat. On Oct 14, 10:54 am, Jatin D Patel depo.ja...@gmail.com wrote: I have multiple view. But for systematic distribution of views (.xml files inside layout folder). I would like to have different

[android-developers] Re: OutOfMemoryError

2010-10-15 Thread DanH
but if I not put super.onPause (); show the following error: 10-15 02:16:10.778: ERROR/AndroidRuntime(193): android.app.SuperNotCalledException: Activity {cai.eigojozu/ cai.eigojozu.episode.EpisodeActivity} did not call through to super.onPause() Can I do? (・_・?) I think you have a deeper

[android-developers] Re: WiFi Range and Ad-Hoc Networks

2010-10-15 Thread Juan
There is currently no deadline, I am trying to find out if an Android device can provide the connectivity that I need to make it work, with or without external hardware. If I can do that the rest is just software. It may be that to get the range and connectivity I need I will have to rely on some

[android-developers] Re: WiFi Range and Ad-Hoc Networks

2010-10-15 Thread Juan
Thanks, this is useful. Not promising, but useful. On Oct 15, 3:14 am, Kostya Vasilyev kmans...@gmail.com wrote:   Juan, 14.10.2010 19:59, Juan пишет: I am initiating the design of an application that would require an Android phone to connect to another Android phone via Ad-Hoc

Re: [android-developers] Re: OutOfMemoryError

2010-10-15 Thread Prakash Iyer
I don't think you need to recycle the image in onPause. May be in onStop? If you want to do it onPause, then you might want to let the Canvas know that it's underlying image is no longer available in some fashion. You should call super.X() when you override X as a general rule, so I think DanH is

[android-developers] Connectivity Manager NetworkInfo getState

2010-10-15 Thread Hank
So when I use ConnectivityManager and get a list of Networkinfo using getAllNetworkInfo(), for the mobile NetworkInfo it is Connected on the emulator but Unknown when it is on a real phone. Does anyone know why? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: WiFi Range and Ad-Hoc Networks

2010-10-15 Thread Bret Foreman
You should look into mesh networking, especially the meshes designed to work on top of the 802.11 stack: http://en.wikipedia.org/wiki/Mesh_networking -- 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] Beta Testers needed for fast-paced retro game

2010-10-15 Thread Nacho Pintos
Hi! I'm bedroom developer and I'm finishing my first android game, Flee, which (hopefully) will be released in the coming weeks. I'm a bit scared to release it into the wild, cause I have only tested it in two different phone models (Samsung Spica, Motorola Milestone), and wouldn't like to

[android-developers] USB adb connection to Samsung Galaxy

2010-10-15 Thread john brown
Hello, This month, I am not able to get a ATT Samsung Galaxy Captivate to be recognized by my Win xp when I connect them with a USB cable. This is the same phone I had trouble connecting a few months back. With much help from this list, I was able to get them connected. (Win device mngr, red

[android-developers] Re: WiFi Range and Ad-Hoc Networks

2010-10-15 Thread Bret Foreman
You might also be able to find a Zigbee USB dongle with a Linux/ Android driver for if you want to use add-on hardware. -- 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: OutOfMemoryError

2010-10-15 Thread DanH
And calling super.onPause in your onPause. On Oct 15, 10:54 am, Prakash Iyer thei...@gmail.com wrote: I don't think you need to recycle the image in onPause. May be in onStop? If you want to do it onPause, then you might want to let the Canvas know that it's underlying image is no longer

[android-developers] Re: Android : Can we have Packages inside Layout

2010-10-15 Thread Bret Foreman
And don't use capital letters in the name of anything in res. -- 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] Re: Googlenav package

2010-10-15 Thread Mathias Lin
Hi Steve, if you don't provide real-time turn-by-turn directions (which is not allowed for gps powered devices due to license issues as Mark already mentioned) but just want to provide the route and directions which you calculate in advance, you can fetch the kml dataset from the google maps web

[android-developers] Re: Why am I getting NullPointerException although I catch it?

2010-10-15 Thread Saied
Thanks Iyer! On Oct 15, 8:04 am, Prakash Iyer thei...@gmail.com wrote: Your catching a NullPointerException in your inputConnection.getTextBeforeCursor call is unnecessary. You are already checking to see if inputConnection is null. It From the documentation of InputConnection, and I quote

[android-developers] Can startActivityForResult be called from within InputMethodService?

2010-10-15 Thread Saied
Hi, i am trying to add voice recognition to my input service keyboard. So I have: public class mekb extends InputMethodService But then to call voice recognition, after the example in the sample, I need to do: private void startVoiceRecognitionActivity() { Intent intent = new

Re: [android-developers] How can i take EditText box data when user clicks on the soft keyboard Enter key

2010-10-15 Thread Agus
read the android sdk On Fri, Oct 15, 2010 at 3:48 AM, rokson kiranrepa...@gmail.com wrote: Hi Friends, I want to get EditText data when user clicks on the soft keyboard Enter key. How can i do it. Please help me.. Thanks and Regards, Kiran. -- You received this message because you

[android-developers] Re: error code 5: database is locked

2010-10-15 Thread DanH
Where is the error being thrown from? (You might include the exception traceback.) On Oct 15, 9:44 am, gcstang gcst...@gmail.com wrote: Has anyone encountered this and is there a solution to work around it? I'm creating a Thread and in that thread I open a database connection using the

[android-developers] Recover Lost Administrator Password

2010-10-15 Thread Sami
http://softsami.blogspot.com/2010/10/how-to-recover-lost-administrator.html -- 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

Re: [android-developers] Can startActivityForResult be called from within InputMethodService?

2010-10-15 Thread Mark Murphy
On Fri, Oct 15, 2010 at 12:49 PM, Saied saie...@gmail.com wrote: So is it the case that I cannot get startActivityForResult from InputMethodService? Correct. Then what's the work around? You can try using SpeechRecognizer. -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-developers] Controlling a TextView's select behavior

2010-10-15 Thread Mark Murphy
Change the TextView's color using a ColorStateList, perhaps defined in XML: http://developer.android.com/reference/android/content/res/ColorStateList.html On Fri, Oct 15, 2010 at 1:15 PM, Bret Foreman bret.fore...@gmail.com wrote: I have a LinearLayout with two views in it, an ImageView and a

[android-developers] Controlling a TextView's select behavior

2010-10-15 Thread Bret Foreman
I have a LinearLayout with two views in it, an ImageView and a TextView. The ImageView resource is actually pulled from an xml selector in res/drawable so that it shows one of two drawables, call them selected.png and unselected.png. When I call LinearLayout.setSelect(false) the unselected.png

[android-developers] Re: WiFi Range and Ad-Hoc Networks

2010-10-15 Thread Juan
This is a very good idea. The key is going to be the range. For this I need one mile range in an environment with zero obstructions around the device. The bare minimum is 1/2 mile. Juan On Oct 15, 12:00 pm, Bret Foreman bret.fore...@gmail.com wrote: You should look into mesh networking,

[android-developers] Re: Beta Testers needed for fast-paced retro game

2010-10-15 Thread James Elsey
I would be willing to help Drop me a mail : james dot elsey at gmail dot com -- Kind Regards http://JamesElsey.co.uk On Oct 15, 5:19 pm, Nacho Pintos nacho.pin...@gmail.com wrote: Hi! I'm  bedroom developer and I'm finishing my first android game, Flee, which (hopefully) will

[android-developers] Re: WiFi Range and Ad-Hoc Networks

2010-10-15 Thread Juan
Interesting, but it only gives you a 30m range. I need minimum 1/2 mile, a full mile is the optimum. On Oct 15, 12:27 pm, Bret Foreman bret.fore...@gmail.com wrote: You might also be able to find a Zigbee USB dongle with a Linux/ Android driver for if you want to use add-on hardware. -- You

[android-developers] How to email uncaught exceptions?

2010-10-15 Thread JimmyHoffa
I love the feature where we can inspect any exceptions for app's published on the market through the developer site but curious as to whether we can tap into this feature for app's we don't publish to the market so we can email any exception details to a specific email address for example. Does

Re: [android-developers] How to email uncaught exceptions?

2010-10-15 Thread Mark Murphy
There are many existing frameworks for this. Some are tied into analytics frameworks (e.g., Flurry). Some are standalone error reporters (e.g., DroidDrop). And you can always roll your own. On Fri, Oct 15, 2010 at 1:28 PM, JimmyHoffa photos.d...@gmail.com wrote: I love the feature where we can

[android-developers] Re: Controlling a TextView's select behavior

2010-10-15 Thread Bret Foreman
I created the following color state list in res/color/ textcolorstatelist.xml: selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_selected=true android:color=#/ item android:state_selected=false android:color=#/ /selector And set the text

[android-developers] Re: Photo + info stored in database...Question bout linking the two together

2010-10-15 Thread Kumar Bibek
You can get both the Uri and the filepath. You can use both to keep a local DB for your app. But I would suggest to keep the Uri in your DB and query the MediaStore whenever you want to display the picture. This is a way is better than saving the path only. On Oct 15, 2:53 pm, Stephen Pengilley

Re: [android-developers] Re: Controlling a TextView's select behavior

2010-10-15 Thread Kumar Bibek
The first two places are for alpha. FF means full-transparent. Change it to 00 and it should work. On Fri, Oct 15, 2010 at 11:13 PM, Bret Foreman bret.fore...@gmail.comwrote: I created the following color state list in res/color/ textcolorstatelist.xml: selector

[android-developers] Re: send events from Android device to PC

2010-10-15 Thread Kumar Bibek
You can have a simple Java program that keeps listening to a socket to which your app would send messages to. On Oct 14, 7:40 pm, Miguel Pellón miguelpel...@gmail.com wrote: Hi all, I am trying to automate some tasks using adb commands in java, but in order to confirm tasks are completed, I

Re: [android-developers] send events from Android device to PC

2010-10-15 Thread Lee Fisher
[...] Does anyone know about a (easy) way of messaging between android device and PC? This tool might do what you need. http://code.google.com/p/android-notifier/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] Re: WiFi Range and Ad-Hoc Networks

2010-10-15 Thread Kostya Vasilyev
Ad-hoc wifi support actually #is# implemented in the lower levels of Android, wpa_supplicant. What is missing is the framework and system services support. Changing this would require building your own firmware. Another option worth looking into is leveraging wifi tethering in 2.2. You would

[android-developers] I'm so confused with this problem~~~about urlConnection

2010-10-15 Thread 小贼
THIS IS ConnectNet .java== package com.zhang7nan; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLEncoder;

[android-developers] Re: Alternative to GLWallpaperService, OpenGL Live Wallpaper

2010-10-15 Thread Robert Green
The code I posted is mostly just a refactored GLSurfaceView from 2.1 Master. It shouldn't perform differently unless something deeper down is limiting. On Oct 15, 10:15 am, mr.winky mr0wi...@gmail.com wrote: Yes, I have verified with an opengl app under GLSurfaceView that I can get 60 fps. I

[android-developers] Re: What is the best approach to store audio files for use in android application?

2010-10-15 Thread dipti
Thanks for reply. Does this mean that I should store the files in the res directory as well as on the server? Also do you know if ogg is more memory efficient as compared to mp3? Dipti On Oct 14, 9:14 pm, Dalvinder Singh singh.dal...@gmail.com wrote: If you want to scale your application and

[android-developers] on button click not working for calendar

2010-10-15 Thread Varun Khanduja
Hi, I am not sure why my on button click is not working for the calender icon I have, does any one knows what I may be doing wrong? Here is my java code, thanks in advance. package com.varun.HelloListView; import java.util.Calendar; import android.app.Activity; import

Re: [android-developers] on button click not working for calendar

2010-10-15 Thread Kumar Bibek
Which button click is not working? You have to be more specific in describing your problem. On Sat, Oct 16, 2010 at 12:11 AM, Varun Khanduja varunkhand...@gmail.comwrote: Hi, I am not sure why my on button click is not working for the calender icon I have, does any one knows what I may be

[android-developers] Re: on button click not working for calendar

2010-10-15 Thread Varun Khanduja
Sorry about that. R.id.btnCalendar is not working. Thanks On Oct 15, 11:44 am, Kumar Bibek coomar@gmail.com wrote: Which button click is not working? You have to be more specific in describing your problem. On Sat, Oct 16, 2010 at 12:11 AM, Varun Khanduja varunkhand...@gmail.comwrote:

Re: [android-developers] Re: on button click not working for calendar

2010-10-15 Thread Kumar Bibek
Any errors in the logcat? Try showing a toast in the event. I think you are missing a show call to the dialog On Sat, Oct 16, 2010 at 12:21 AM, Varun Khanduja varunkhand...@gmail.comwrote: Sorry about that. R.id.btnCalendar is not working. Thanks On Oct 15, 11:44 am, Kumar Bibek

[android-developers] Re: on button click not working for calendar

2010-10-15 Thread Varun Khanduja
Log cat is not showing any errors as such. Isn't showDialog(DATE_DIALOG_ID); the show call to the dialog? On Oct 15, 11:54 am, Kumar Bibek coomar@gmail.com wrote: Any errors in the logcat? Try showing a toast in the event. I  think you are missing a show call to the dialog On Sat, Oct

Re: [android-developers] .apk installation problem with froyo fs

2010-10-15 Thread David Castillo Fuentes
adb install package.apk On Fri, Oct 15, 2010 at 10:24 AM, ashwani ash1...@gmail.com wrote: Hi all, I am not able to install any .apk file from adb shell in froyo fs. after given the ./adb xyz.apk command, system restart and adb shell get hangs. regards Ashwani -- You received this

  1   2   >