[android-developers] Re: Unable to simulate network delay/speed

2009-10-20 Thread zhen guo
You can disable or delay your network conection of your pc for simulating. On Wed, Oct 21, 2009 at 1:35 PM, Roman ( T-Mobile USA) < roman.baumgaert...@t-mobile.com> wrote: > > I noticed that enabling/disabling data connectivity (airplane mode) > does not disable data communication on the emulato

[android-developers] My appwidget broken Donut when keyboard slide out/in

2009-10-20 Thread NewPa
I developed an appwidget and published on market, it works very well on Cupcake. but after I upgrade my OS to Donut.Everytime when I slide out/in keyboard, I will got an error: The process android.process.acore has stopped unexpected.Please try again. I have to click "force close", and wait abo

[android-developers] Re: Devices information using Wifi API

2009-10-20 Thread Roman ( T-Mobile USA)
If you want to get valid IP address you can try to enumerate over your LAN addresses. If your LAN network has an IP address like 192.168.1.0 you can try to ping192.168.1.1, 192.168.1.2, ... If you get a response back, you know that there is another system which has the IP address assigned.

[android-developers] Re: problem in playing mp4 video file

2009-10-20 Thread loril...@gmail.com
>From the following link I get to know that we get the error 'PVMFErrNoResources' when the resource is not available: http://www.netmite.com/android/mydroid/external/opencore/pvmi/pvmf/include/pvmf_return_codes.h But I am getting this error only on device. When playing the mp4 on emulator, the v

[android-developers] Re: Unable to simulate network delay/speed

2009-10-20 Thread Roman ( T-Mobile USA)
I noticed that enabling/disabling data connectivity (airplane mode) does not disable data communication on the emulator. There is a bug filed related to this issue. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those

[android-developers] Re: MediaPlayer.Create returns null on some Android handsets?

2009-10-20 Thread Chister Nordvik
No, I only use MediaPlayer. Seems like I have to have a fallback to a built-in sound then, or at least check if the MediaPlayer returns null. This brings back memories from my J2ME development days :-( -Christer On 21 Okt, 07:24, Nikolay Ananiev wrote: > I'm seeing the same problem on the ARCHO

[android-developers] SMS/MMS confirmation message

2009-10-20 Thread hap 497
All, Is there anyway for my application to get notify when the SMS /MMS message have been received by the destination phone number? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" grou

[android-developers] Re: MediaPlayer.Create returns null on some Android handsets?

2009-10-20 Thread Nikolay Ananiev
I'm seeing the same problem on the ARCHOS 5 tablet. The app works everywhere else. Do you use SoundPool in parallel to MediaPlayer? On Tue, Oct 20, 2009 at 10:49 PM, Marco Nelissen wrote: > > There seems to be a problem with some Hero builds (but not all of > them) that causes playback from resou

[android-developers] how to set a shortcut key to launch an activity ?

2009-10-20 Thread swapnil kamble
Hello, how to set a shortcut key to launch an activity ? Lets say I have an app "TestApp". I want to set a shortcut key (e.g alt + T ) to launch activity of TestApp. Is there any way to set such shortcuts to android apps ? Thanks in advance. -- ...Swapnil || Hare Krishna Hare Krishna Krishna

[android-developers] Re: KSoap - How to pass a dataset to a dotNet webservice?

2009-10-20 Thread gjs
Hi, Or modify the webservice to accept something more sensible... Regards On Oct 20, 7:45 pm, Dave Gracie wrote: > Thats actually the first thing I tried. I passed in the ms soap version of > the dataset but still didnt work. > > I think I only have one option and that is to build up the soap

[android-developers] Re: HTC Hero, DDMS, and screen captures?

2009-10-20 Thread James W
I have been exclusively developing on the Hero since it came out, on the original stock ROM, and the recent offical ROM update. DDMS and screen captures worked from the start and continue to work now. The only caveat is that mine is the stock HTC Hero that has been available since August in Euro

[android-developers] Re: How can i bring an activity to foreground from background manually?

2009-10-20 Thread pink 444
First of all thanks for your wonderful cooperation. On android mobile if at all we get an incoming call while interacting with another application, incoming call indication is being displayed on the screen with an activity instead of notifying user with notification. I think it i

[android-developers] Re: How to get unique handset device id?

2009-10-20 Thread String
On Oct 21, 4:46 am, zhen guo wrote: > why not imsi? 1. IMSI is tied to subscriber, not handset. There's definitely a difference for SIM-card based phones, and likely to be one for non-SIM phones also. 2. Like IMEI, it's not clear if non-phone devices (like the Archos 5) will have an IMSI. Str

[android-developers] Re: the if_nameindex is missing

2009-10-20 Thread Marco Nelissen
Since you're asking about native code development, you might want to ask your question on the Android NDK group. On Tue, Oct 20, 2009 at 12:01 PM, Debbie wrote: > > Hi, > > I'm porting a linux (FC9) user space application to Android. The > original code uses if_nameindex() which lists out all th

[android-developers] Re: app gives layout errors only on Sprint HTC Hero devices

2009-10-20 Thread Jayesh Salvi
Thanks Shane and Amir for confirming the doubts. It's frustrating that all I can say to users is to wait until Sprint/HTC issues firmware update, then hopefully the problem will be fixed. The users are willing to test if I have any fix, but I can't find root cause even after looking inside the andr

[android-developers] Re: MediaPlayer and 1.5 vs 1.6

2009-10-20 Thread Marco Nelissen
You could rig something up with your local http server that runs on the phone and processes the incoming data before passing it on the player, but why bother? The vast majority of devices runs 1.6 now. On Tue, Oct 20, 2009 at 6:16 PM, sirdan wrote: > > Marco, thanks for the info. > > By level

[android-developers] Re: How to get unique handset device id?

2009-10-20 Thread zhen guo
why not imsi? On Wed, Oct 21, 2009 at 4:55 AM, Wayne Wenthin wrote: > wow replying to myself... So as I was reading other posts here I came > across an idea. We (well I am) are talking about the ANDROID_ID as if it > were a MAC. I haven't looked but if the phone supports Wi-Fi wouldn't it

[android-developers] Re: Can WindowManagerService be replaced?

2009-10-20 Thread Westermann Fu
Thanks for reply. Now I have a requirement that seems need breaking the normal workflow of "drawing-->compose" strategy. As I know, each window(ViewRoot) itself draw its whole view hierarchy to the surface(unlockCanvasAndPost()) actually allocated by WindowManagerService. Then the WindowManagerSer

[android-developers] Re: Very urgent

2009-10-20 Thread Disconnect
Something generally called "homework" I suspect. On Tue, Oct 20, 2009 at 10:15 PM, kevin.hooke wrote: > > If you tell us a bit more about what you're trying to do then someone > might be able to help you? > > On Oct 20, 2:50 pm, IPEG Student wrote: >> Hello >> >>      can any body tell me how c

[android-developers] youtube API

2009-10-20 Thread tstanly
hi all, is there have youtube API or lib (like jar file) in the Android? I hope that can write a app like youtube on the htc mobile phone, such that I can search video, and return the video information (snapshot,video length,shard author..etc) can somebody give me some suggestion? thanks! --~--

[android-developers] Photostream app: BitmapFactory decodeByteArray() vs decodeStream()

2009-10-20 Thread kevin.hooke
I've been trying to use BitmapFactory decodeStream() to load jpegs from Flickr. This code works in the emulator but returns null when run on my MyTouch3g: URL url = new URL(sourceUrl); URLConnection conn = url.openConnection(); conn.connect(); InputStream is = conn.getInputStream(); BufferedInput

[android-developers] Re: Very urgent

2009-10-20 Thread kevin.hooke
If you tell us a bit more about what you're trying to do then someone might be able to help you? On Oct 20, 2:50 pm, IPEG Student wrote: > Hello > >      can any body tell me how can i delete this string. I have used this > coding. > > temp = temp1.replace(temp1.substring(temp1.indexOf("Address2

[android-developers] Android search in pictures (Informational post)

2009-10-20 Thread Satya Komatineni
As I have been looking into the android quick search box, here is a series of pictures that digs into the nature of the new Android Search. http://www.satyakomatineni.com/akc/display?url=DisplayNoteIMPURL&reportId=3325&ownerUserId=satya These pictures should be helpful as you read through the An

[android-developers] MapView.postInvalidate() triggers redundant call to onDraw()?

2009-10-20 Thread JP
While optimizing code I found that, somehow inherently, a single call to com.google.android.maps.MapView.postInvalidate() triggers two calls to com.google.android.maps.onDraw(), within a single event cycle. This of course noticeable slows down Overlays that display a lot of elements on a MapView,

[android-developers] Re: MediaPlayer and 1.5 vs 1.6

2009-10-20 Thread sirdan
Marco, thanks for the info. By level 3, I meant API Level 3. If android doesn't support it natively in 1.5, does anyone know if there is code available to do it? On Oct 20, 6:58 pm, Marco Nelissen wrote: > On Tue, Oct 20, 2009 at 12:08 PM, sirdan wrote: > > > In 1.6 I do the following to stre

[android-developers] Floating Point Support -- Determine at runtime?

2009-10-20 Thread joelt
Is there a way to determine if the system supports floating point? That way, I could choose between two algorithms to use. Joel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

[android-developers] Re: Market style buttons

2009-10-20 Thread Mark Murphy
DavidG wrote: > Is there any documentation that explains how to create buttons in the > style of the new market app on the top of the screen? Step #1: Create GradientDrawables with the gradients you want for the various states (normal, pressed, etc.), perhaps through XML drawable files. Step #

[android-developers] Re: How to add external static libraries to Android.mk?

2009-10-20 Thread Dimitris
I have the exact same problem and error message. Can someone describe the difference between STATIC and SHARED library? Please help! On Sep 24, 11:00 pm, mmj wrote: > Anyone who knows the reason please help.It is very urgent. > Please be kind enough to share your insights!!! > > On Sep 24, 8:14 

[android-developers] Market style buttons

2009-10-20 Thread DavidG
Is there any documentation that explains how to create buttons in the style of the new market app on the top of the screen? I'm not sure if they're actually buttons or tabs, but I want to recreate that button style in my app (flat gradient buttons that dynamically fill the entire height/width depe

[android-developers] Re: MediaPlayer and 1.5 vs 1.6

2009-10-20 Thread Moto
lol well I guess the first person that posted maid me believe such was possible.. grgrgr! lol.. Well I'll stick to my old methods... Chears! On Oct 20, 7:43 pm, Marco Nelissen wrote: > I'm not sure how you jumped to that conclusion. "progressive > streaming" has worked since 1.0, for some spec

[android-developers] Re: MediaPlayer and 1.5 vs 1.6

2009-10-20 Thread Marco Nelissen
I'm not sure how you jumped to that conclusion. "progressive streaming" has worked since 1.0, for some specific media formats. "progressive streaming" is not the same as shoutcast streaming though. On Tue, Oct 20, 2009 at 4:13 PM, Moto wrote: > > Wait with android 1.6 now you can stream progres

[android-developers] Re: ListViews in tabs

2009-10-20 Thread Mark Murphy
Jason Proctor wrote: > i take it back. the real fix was adding paddingTop="62px" to the > FrameLayout. is this what makes the room for the TabWidget? > > feels a little odd... It is what I got working way back when, though I think 65px may be a better height, and I have not yet tested the theor

[android-developers] Mutex issues.. :(

2009-10-20 Thread Moto
Could someone point me to the right place? Here is the pseudo code: Mutex mx = new Mutex(); public void TurnLightsOff() { if (mx.aquire(ID_1) == false) { // run some code mx.release(); } } public void TurnLightsOn() { if (mx.aquire(ID_2) == false) { // run some code m

[android-developers] ListViews in tabs

2009-10-20 Thread Jason Proctor
i take it back. the real fix was adding paddingTop="62px" to the FrameLayout. is this what makes the room for the TabWidget? feels a little odd... -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

[android-developers] ListViews in tabs

2009-10-20 Thread Jason Proctor
well the solution was to leave the TabHost to its own devices. in a somewhat weird departure from usual Android layout habits, i made everything inside the TabHost fill_parent, then just balanced the weight of the TabHost against other top-level elements in the layout. does layout_weight not m

[android-developers] Re: MediaPlayer and 1.5 vs 1.6

2009-10-20 Thread Moto
Wait with android 1.6 now you can stream progressively? If yes than can we also stream AAC+ content? On Oct 20, 6:58 pm, Marco Nelissen wrote: > On Tue, Oct 20, 2009 at 12:08 PM, sirdan wrote: > > > In 1.6 I do the following to stream an mp3 shoutcast stream: > > >        MediaPlayer mp = new

[android-developers] ProximityAlert "problem"

2009-10-20 Thread Stefan
hello, i am developing a navigation software. I read some gps points out of a gpx file. Now i want to know, if i am near a gps point (for example 50m). So i use the addProximityAlert function. My problem is the order. I start with the first gps point, so i only want to know, if i am near the fir

[android-developers] Re: MediaPlayer and 1.5 vs 1.6

2009-10-20 Thread Marco Nelissen
On Tue, Oct 20, 2009 at 12:08 PM, sirdan wrote: > > In 1.6 I do the following to stream an mp3 shoutcast stream: > >        MediaPlayer mp = new MediaPlayer(); >        try { >                mp.setDataSource("http://xxx.net/my.mp3";); >                mp.prepare(); >        } >        catch(Exce

[android-developers] Re: Just beginning

2009-10-20 Thread kevin.hooke
you need an Android phone, like the G1 or myTouch3g, or one of the other upcoming Android phones coming later this year. On Oct 20, 11:37 am, Kate wrote: > Currently I have a tmobile behold, and I am replused by the operating > touch wiz system.  What do i need to do to get the android operating

[android-developers] Re: HTC Hero, DDMS, and screen captures?

2009-10-20 Thread Mark Murphy
Xavier Ducrohet wrote: > The current DDMS only expect screenshorts coming from 16bit (565) > framebuffers. It's possible some of those devices use a different format > and either disabled the feature in adbd (device-side) or didn't but > don't send the format in a way that DDMS doesn't understand.

[android-developers] Re: HTC Hero, DDMS, and screen captures?

2009-10-20 Thread Xavier Ducrohet
The current DDMS only expect screenshorts coming from 16bit (565) framebuffers. It's possible some of those devices use a different format and either disabled the feature in adbd (device-side) or didn't but don't send the format in a way that DDMS doesn't understand. Xav On Tue, Oct 20, 2009 at 3

[android-developers] Very urgent

2009-10-20 Thread IPEG Student
Hello can any body tell me how can i delete this string. I have used this coding. temp = temp1.replace(temp1.substring(temp1.indexOf("Address2=" ),temp1.indexOf("Address2=") + temp1.indexOf("; ")), ""); //*temp* = temp1. //*temp* = temp1.replace(temp1.substring(temp1.indexOf("Address2=")

[android-developers] MediaPlayer and 1.5 vs 1.6

2009-10-20 Thread sirdan
In 1.6 I do the following to stream an mp3 shoutcast stream: MediaPlayer mp = new MediaPlayer(); try { mp.setDataSource("http://xxx.net/my.mp3";); mp.prepare(); } catch(Exception ex) { alert(ex.getMessage());

[android-developers] the if_nameindex is missing

2009-10-20 Thread Debbie
Hi, I'm porting a linux (FC9) user space application to Android. The original code uses if_nameindex() which lists out all the network interfaces and their indices. the data structure "struct if_nameindex" and function prototype if_nameindex() are defined in /usr/include/net/ if.h. However, these

[android-developers] ListViews in tabs

2009-10-20 Thread Jason Proctor
>Nope. I have an application that has four ListViews in four tabs on its >main activity. *something* seems different. i can swap out the ListViews for other kinds of view, and everything looks fine. switch back to a ListView, and boom. >Your ListViews then are not children of your FrameLayout,

[android-developers] HTC Hero, DDMS, and screen captures?

2009-10-20 Thread Mark Murphy
Anyone out there have a Hero and a copy of DDMS handy? Can you get screen captures to work? I can't seem to get my Hero to serve up screenshots to DDMS from Android 1.6. My G1 (Android 1.6) and Ion (Android 1.5) work fine, but the Hero just gives me a "Screen not available" error message. It othe

[android-developers] Re: Memory leak or feature

2009-10-20 Thread Lance Nanek
If you just need the activity cleaned up immediately for testing purposes then there is an app on the emulator called "Dev Tools" that might help. Run the app, choose the "Development Settings" option, then check the "Immediately destroy activities" option. On Oct 20, 4:23 pm, jotobjects wrote:

[android-developers] Re: adding and reading new attributes from/to a declare-styleable

2009-10-20 Thread Spektor Yaron
answering my own question again here: the problem below was because the parse was no longer on the Keyboard tag but was on one of the key tags it could not look "back" a the values defined by the keyboard. once i got that and moved the code to a place where the keyboard is parsed it started working

[android-developers] How do I know when my view will be displayed?

2009-10-20 Thread junker37
I have a HorizontalScrollView, with a horizontal LinearLayout that contains my different Views. I want to know when the particular view is coming onto the screen so I can download an image for the view. So, when my HorizontalScrollView first loads, the first view is viewable, if the user scrolls

[android-developers] Re: Layout with all cells the same size

2009-10-20 Thread Tom Gibara
It's interesting how intuitions vary :) It seems immediate to me, it's a consequence of the fact that views don't exceed their fixed dimensions and weightings mop-up free space. Tom. 2009/10/20 David Given > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Tom Gibara wrote: > > Try settin

[android-developers] Re: Memory leak or feature

2009-10-20 Thread Dianne Hackborn
I am pretty sure the standard music app doesn't leak, so I wonder if you are somehow measuring things incorrectly. On Fri, Oct 16, 2009 at 2:11 AM, Mika wrote: > > Hi Dianne, > > This is what I assumed also. Do you have any ideas where the leak > could be in the sample app that I posted? I also

[android-developers] Re: Preference screen for IME

2009-10-20 Thread Spektor Yaron
to answer my own question from Aug 28th: if you put this code in the method.xml you should have the settings screen up and running in no time, you should of course define the Prefs Activity in the Manifest.xml http://schemas.android.com/apk/res/android"; android:settingsActivity="Prefs" and

[android-developers] Re: Unable to simulate network delay/speed

2009-10-20 Thread kllrnohj
I forgot to mention this is on Windows Vista On Oct 20, 3:07 pm, David Turner wrote: > Sounds like a bug. Which exact version of the SDK are you using, and on > which platform? > > On Tue, Oct 20, 2009 at 1:17 PM, kllrnohj wrote: > > > That's the thing, I'm not getting *any* delay whatsoever. I

[android-developers] Re: Unable to simulate network delay/speed

2009-10-20 Thread kllrnohj
I'm developing against Android 1.5 (SDK 3), but it happens on both a 1.5 and 1.6 AVD in the emulator. I'm using the latest 1.6 r1 SDK. emulator -version reports version 1.11 (build_id DRC65-12945) On Oct 20, 3:07 pm, David Turner wrote: > Sounds like a bug. Which exact version of the SDK are yo

[android-developers] Re: uninstall an application

2009-10-20 Thread Roman ( T-Mobile USA)
For being able to uninstall an application you need a permission DELETE_PACKAGES which can only be used by the system or by the application having the same signature. This means you won't be able to uninstall third party application if you don't have the corresponding signature. If it is possible

[android-developers] Re: ListViews in tabs

2009-10-20 Thread Mark Murphy
Jason Proctor wrote: > well, i'm sorry to bang on about this all the time. > > are there caveats to putting ListViews in tabs? Nope. I have an application that has four ListViews in four tabs on its main activity. > the symptom i'm seeing is that a ListView will draw over the tabs in > the Tab

[android-developers] ListViews in tabs

2009-10-20 Thread Jason Proctor
well, i'm sorry to bang on about this all the time. are there caveats to putting ListViews in tabs? something to do with a ListView's infinite height (kinda) etc? scrolling views in tabs? the symptom i'm seeing is that a ListView will draw over the tabs in the TabHost. i've tried making them i

[android-developers] Re: Unable to simulate network delay/speed

2009-10-20 Thread David Turner
Sounds like a bug. Which exact version of the SDK are you using, and on which platform? On Tue, Oct 20, 2009 at 1:17 PM, kllrnohj wrote: > > That's the thing, I'm not getting *any* delay whatsoever. I set it to > the highest it would go (15 seconds) and I connected, sent, and > received all in u

[android-developers] InputMethodManager: how to detect when soft input is gone?

2009-10-20 Thread extrapedestrian
When I press back button, soft input keyboard is gone. How can I detect this event in my activity? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

[android-developers] Re: Layout with all cells the same size

2009-10-20 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom Gibara wrote: > Try setting the width of every child in your LinearLayout to 0, and their > weights to 1. Yup, that works. Thanks! (But good grief, it's hardly intuitive. I'd have never have thought of that on my own.) - -- ┌─── dg@cowlark.com

[android-developers] Re: DB Cursor not working

2009-10-20 Thread Yayo
The query not workin' is this one: "select word._id, word.word from word where length(word.word) between ? and ? " the first one (the count) responds with the correct number of rows. but the select to fetch the words does not. :/ On 19 oct, 18:27, Marco Nelissen wrote: > On Mon, Oct 19, 2009 at

[android-developers] Re: How to get unique handset device id?

2009-10-20 Thread Wayne Wenthin
wow replying to myself... So as I was reading other posts here I came across an idea. We (well I am) are talking about the ANDROID_ID as if it were a MAC. I haven't looked but if the phone supports Wi-Fi wouldn't it need an MAC? Going to look at the SDK docs now. On Tue, Oct 20, 2009 at 12:

[android-developers] Re: Memory leak or feature

2009-10-20 Thread jotobjects
Hi Mika - One more question - why do you expect the system to close the Activity and free the memory? Even though the Activity is not visible the system can keep it alive unless it needs to free memory. I think you would need to finish() the Activity yourself or fill up memory in the Service to

[android-developers] Re: Unable to simulate network delay/speed

2009-10-20 Thread kllrnohj
That's the thing, I'm not getting *any* delay whatsoever. I set it to the highest it would go (15 seconds) and I connected, sent, and received all in under ~300ms - there was no noticeable delay whatsoever. Setting the speed has no apparent affect either, and turning on and off the data connection

[android-developers] Re: Do maps always need GPS?

2009-10-20 Thread Ken H
That is a good idea, thank you! I'm just having the usual "Easy things are hard, hard things are easy" problem. :) On Oct 20, 1:07 pm, Wayne Wenthin wrote: > You can use coarselocation too.   That way you don't have to wait so long > for an update. > > On Tue, Oct 20, 2009 at 1:02 PM, Ken H wr

[android-developers] Re: How to save my custom view's state

2009-10-20 Thread fhucho
Probably the best way to do this is to call those methods from the Activity's methods onSavedStateInstance() and onRestoreInstanceState (). On Oct 20, 10:06 pm, fhucho wrote: > I tested it and the methods aren't called automatically. I was talking > about View.onSaveStateInstatnce, not Activity.

[android-developers] Re: Do maps always need GPS?

2009-10-20 Thread Wayne Wenthin
You can use coarselocation too. That way you don't have to wait so long for an update. On Tue, Oct 20, 2009 at 1:02 PM, Ken H wrote: > > Just want to make sure I'm not missing something because I'm having > trouble making this work for some reason. If I use a map, do I need to > setup the Loca

[android-developers] Re: How to save my custom view's state

2009-10-20 Thread fhucho
I tested it and the methods aren't called automatically. I was talking about View.onSaveStateInstatnce, not Activity.onSaveStateInstatnce(). On Oct 20, 8:53 pm, RichardC wrote: > The framework calls your application when it wants you to save or > restore your state, so you do not call these meth

[android-developers] Re: Do maps always need GPS?

2009-10-20 Thread Mark Murphy
Ken H wrote: > If I use a map, do I need to > setup the LocationManager and GPS criteria and all? No. Android might start up the location manager system (e.g., you add MyLocationOverlay to the project), but you do not have to use it yourself directly. > I just need a map to paint on. I'm buildin

[android-developers] Do maps always need GPS?

2009-10-20 Thread Ken H
Just want to make sure I'm not missing something because I'm having trouble making this work for some reason. If I use a map, do I need to setup the LocationManager and GPS criteria and all? I just need a map to paint on. I'm building an activity that displays location data collected and stored i

[android-developers] Re: MediaPlayer.Create returns null on some Android handsets?

2009-10-20 Thread Marco Nelissen
There seems to be a problem with some Hero builds (but not all of them) that causes playback from resources to not work quite right. On Tue, Oct 20, 2009 at 12:29 PM, Chister Nordvik wrote: > > Hi! > > I have a background service that plays a sound when an event has > happened with the followin

[android-developers] Re: neighbor cell information yields odd results with 3G

2009-10-20 Thread Jimmy
The MNC and MCC can be parsed from the serving cell information (it works in 2G and seems to work in 3G as well) from the telManager.getNetworkOperator() and the neighbor LACs can be parsed from NeighboringCellInfo string. So most of the info is there. It's just the 3G neighbor info that is miss

[android-developers] Re: Unable to simulate network delay/speed

2009-10-20 Thread Dan Sherman
Unfortunately I haven't found a solution. The delay looks to only affect initializing connections (if you have a 10sec delay on the emulator, you'll see it take 10 seconds to connect the socket). We built a workaround in-app that delayed outgoing/incoming packets by a constant amount. I haven't

[android-developers] MediaPlayer.Create returns null on some Android handsets?

2009-10-20 Thread Chister Nordvik
Hi! I have a background service that plays a sound when an event has happened with the following code: 1. MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.theEnd); 2. mp.start(); But sometimes I see from my errorlogs that people are getting a nullpointer on line nr 2 here. My music f

[android-developers] TabHost crash (was: hardcoded borders)

2009-10-20 Thread Jason Proctor
>No, that should still be supported, AFAIK. But, since it doesn't buy you >much, you may as well stick with what's working for you and be done with >the matter. i wish it worked! now i'm seeing the other problems - TabHost complaining it can't find views that are clearly there, ListViews inside

[android-developers] Re: TabHost crash (was: hardcoded borders)

2009-10-20 Thread Mark Murphy
Jason Proctor wrote: > ok now i see the problem. i'm extending TabActivity, and your > examples extend the regular Activity and set up the TabHost manually. > when i do it your way, things start to behave. Now that's curious. > is TabActivity deprecated then? i thought that was the preferred w

[android-developers] Re: How to get unique handset device id?

2009-10-20 Thread Wayne Wenthin
Sorry Mark I misread your earlier post. I don't know where I got a number from ;-) On Tue, Oct 20, 2009 at 12:00 PM, Mark Murphy wrote: > > RichardC wrote: > > Given that people are rooting phones and producing their own custom > > platform builds I cannot see how any field can be relied o

[android-developers] TabHost crash (was: hardcoded borders)

2009-10-20 Thread Jason Proctor
>I can state positively that the layout shown there works on 1.5 and 1.6. >You can grab full projects with that layout from: > >http://commonsware.com/Android/ > >(scroll down and click on the Source Code link in the Details section, >on the right side of the page) > >Look at Fancy/Tab, Fancy/Dyna

[android-developers] Re: How to get unique handset device id?

2009-10-20 Thread Mark Murphy
RichardC wrote: > Given that people are rooting phones and producing their own custom > platform builds I cannot see how any field can be relied on to be > unique across all devices. Good point. ANDROID_ID is stored in a SQLite database IIRC, so you do not even need to replace the firmware to hac

[android-developers] Re: TabHost crash (was: hardcoded borders)

2009-10-20 Thread Mark Murphy
Jason Proctor wrote: > can't shake that crash in TabHost.dispatchWindowFocusChanged(), > however. seems very convinced that mCurrentView is null. mCurrentView > comes from the tab spec's content strategy, i have two TextViews with > tab1 and tab2 IDs, nothing special, copied direct from your Ta

[android-developers] Re: Basic game structuring with two threads?

2009-10-20 Thread RichardC
Have you looked at the LunarLander sample in the SDK: android-sdk-windows-1.6_r1\platforms\android-1.6\samples\LunarLander -- RichardC On Oct 20, 7:39 pm, Mika wrote: > Hello people. > > I've gone through several Android examples, tutorials and generally > just played around with the system. No

[android-developers] Re: How to save my custom view's state

2009-10-20 Thread RichardC
The framework calls your application when it wants you to save or restore your state, so you do not call these methods. See step 7 in the Notepad tutorial: http://developer.android.com/guide/tutorials/notepad/notepad-ex3.html -- RichardC On Oct 20, 4:27 pm, fhucho wrote: > Hi, > I have a cust

[android-developers] Re: Multiple Screen Support, 1.5 and 1.6

2009-10-20 Thread Dianne Hackborn
On Tue, Oct 20, 2009 at 7:25 AM, polyclefsoftware wrote: > When I first started Android development, I was a bit worried about > how things would progress as new hardware configurations came out. I > hope it doesn't get any more complicated than this. My guess is that > most indie developers just

[android-developers] Inputs group id 1004

2009-10-20 Thread Ashish Srivastava
hi i wanna know if BIND_INPUT_METHOD would give my app the group id 1004 (Inputs) this is written on the android developers website -- Must be required by input method services, to ensure that only the system can bind to them. or should i use READ_INPUT_STATE Allows an application to retrieve

[android-developers] Re: Devices information using Wifi API

2009-10-20 Thread kllrnohj
What you want to do isn't possible using any standard mechanism. You could open an HTTP connection to the admin console of the access point (eg, 192.168.0.1) and pull the information out of there, but you would need to know the username/password of the admin console as well as what page the inform

[android-developers] Unable to simulate network delay/speed

2009-10-20 Thread kllrnohj
An app I'm developing opens a TCP socket connection to a server. That works great, no problems. What I want to do is simulate network delay and slow speeds, but the changes don't do anything. I telnet in to the emulator console just fine and can set the delay and speed changes, but they don't affe

[android-developers] Just beginning

2009-10-20 Thread Kate
Currently I have a tmobile behold, and I am replused by the operating touch wiz system. What do i need to do to get the android operating system on my phone. I am new to this, but find it very intresting. I have read alot but am unsure of the "how- to " process. Please help. --~--~-~-

[android-developers] Basic game structuring with two threads?

2009-10-20 Thread Mika
Hello people. I've gone through several Android examples, tutorials and generally just played around with the system. Now I'm in a need of help concerning a making of a game for Android, more specifically structuring the design. I'm going to use OpenGL to render everything. Generally when I have

[android-developers] How to make a listview with selectable children stop scrolling on touch event?

2009-10-20 Thread Alexander Lucas
As a work around to the issue where a list item isn't focusable if it has a focusable child item (a comment by Romain Guy was that this was intended behavior, for accessibility reasons) I simply filled the listItem with two children, each of which is focusable - There's nowhere to directly touch

[android-developers] tes

2009-10-20 Thread abdul gafur
tes ... this is first.thx --~--~-~--~~~---~--~~ 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] enableMyLocation() return false

2009-10-20 Thread lei
When I called enableMyLocation() on onResume() method, it returns false. Does anyone know why? I've added permission of LOCATION and GPS, the map Api Key is correct. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "An

[android-developers] Re: Place an icon in status bar (not notification)

2009-10-20 Thread Dianne Hackborn
Applications can't put icons on the right side. There are lots of examples in ApiDemos for the ways you can post notifications/icons. On Tue, Oct 20, 2009 at 2:38 AM, Adrián wrote: > > Hi all, > > I want to place an icon in the status bar when my service is started. > I know how to send notific

[android-developers] TabHost crash (was: hardcoded borders)

2009-10-20 Thread Jason Proctor
>Jason Proctor wrote: >> anyone any ideas about this? did the XML layout rules for TabHost >> change in 1.5? i now don't have anything at all in my onCreate() >> beyond the super() call, and i still get the same TabHost crash. >> thanks in advance. > >Your FrameLayout needs to be a child of Ta

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-20 Thread Dianne Hackborn
On Tue, Oct 20, 2009 at 11:28 AM, Kiran Julapalli wrote: > I am acquiring a wakelock as the error points to giving up a wake > lock. That message is about the activity manager releasing its internal wake lock because it has given up on hearing back from the application in a timely manner. --

[android-developers] Re: How to get unique handset device id?

2009-10-20 Thread RichardC
Given that people are rooting phones and producing their own custom platform builds I cannot see how any field can be relied on to be unique across all devices. -- RichardC On Oct 20, 6:26 pm, Mark Murphy wrote: > Wayne Wenthin wrote: > > It doesn't appear to be.    The Archos 5 is only returni

[android-developers] Re: Memory leak or feature

2009-10-20 Thread jotobjects
What happens if you override finish() to see if it gets called? What does Dianne mean by "let the system finish the activity", i.e., what causes finish() to be called? On Oct 20, 1:48 am, Mika wrote: > So has anybody been able to test the sample app and found the leak. To > me this seems a quit

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-20 Thread RichardC
Maybe it's trying to access an external website during the processing of onCreate. Try pulling this on a worker thread. -- RichardC On Oct 20, 7:28 pm, Kiran Julapalli wrote: > Thanks Mark, > I am acquiring a wakelock as the error points to giving up a wake > lock. No other specific reason. I

[android-developers] Re: onTrackballEvent hogging CPU time.

2009-10-20 Thread TonyDoc
Thanks James, I've been struggling with this for a few days. This helps a lot. Ta, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develop

[android-developers] Re: Activity launch timeout even with wakelock

2009-10-20 Thread Kiran Julapalli
Thanks Mark, I am acquiring a wakelock as the error points to giving up a wake lock. No other specific reason. I am not sure how to use Async task. Can you give me any pointer? -Kiran On Tue, Oct 20, 2009 at 1:16 PM, Mark Murphy wrote: > > Kiran wrote: >> Experts, Any help here? > >>>    static

[android-developers] Re: TabHost crash (was: hardcoded borders)

2009-10-20 Thread Mark Murphy
Jason Proctor wrote: > anyone any ideas about this? did the XML layout rules for TabHost > change in 1.5? i now don't have anything at all in my onCreate() > beyond the super() call, and i still get the same TabHost crash. > thanks in advance. Your FrameLayout needs to be a child of TabHost, n

  1   2   3   >