[android-developers] How to fetch Mobile Number

2009-11-20 Thread Nishant
Hi, Is it possible to fetch Owner Mobile number. I have got the operator name but not able to fetch the Mobile Number. Which intent will be used? Regards, Nishant Shah -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group

Re: [android-developers] Re: compiling phone app

2009-11-20 Thread Masoumeh Haghighi
thanks for your response but errors are still there, errors such as > BluetoothHandsfree cannot be resolved to a type PhoneApp.java Phone/src/com/android/phone line 416 Java Problem CallerInfoAsyncQuery cannot be resolved to a type InCallScreen.java Phone/src/com/android/phone line 79 Java Problem

[android-developers] Windows manager in Android frame work

2009-11-20 Thread android-newbie
I have read and learned that Windows manager creates surfaces for the application on Android, but not able to understand how this happens. Can someone please explain this to me? Also, how does Windows manager start up in any applicatioin, for example like Camera Preview Application? Thank you ver

[android-developers] surfaceCreated() and CreateSurface() in camera preview application

2009-11-20 Thread android-newbie
I have some questions regarding the code below for camera preview applicaiton. I am hoping someone can help me out. Thanks in advance. 1. How does surfaceCreated() and CreateSurface() relate? Is this surface created via createSurface() from SurfaceFlinger client to SurfaceFlinger server? If

Re: [android-developers] Re: How to Load PDF to Browser?

2009-11-20 Thread Moon Technolabs
Before installing the project http://code.google.com/p/apdfviewer/ I was unable to open PDF url like www.janeg.ca/JQREF.pdf n it was giving me File Type not supported error... After installing the same project now I can use that PDF url in my browser n file downloading is working.. But there is on

[android-developers] Re: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread eric
Yep, back when the bug originally surfaced, that was the only resolution I was aware of. On Nov 20, 11:18 pm, Greg Donald wrote: > On Fri, Nov 20, 2009 at 8:46 PM, eric wrote: > > Greg, you're aware of the copy-protection flipping bug right? > > >http://groups.google.com/group/android-developers

Re: [android-developers] Re: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread Greg Donald
On Fri, Nov 20, 2009 at 8:46 PM, eric wrote: > Greg, you're aware of the copy-protection flipping bug right? > > http://groups.google.com/group/android-developers/browse_thread/thread/3c26247d7a0540d1 > > It is reported to have been fixed in 1.5 but I haven't heard of anyone > confirm it via testi

Re: [android-developers] Re: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread Justin Giles
Flipped mine and they show up now too. Glad that they show up now for potentially all users, just not that happy with having to do it. When is someone going to take responsibility for this bug? On Fri, Nov 20, 2009 at 8:46 PM, eric wrote: > Greg, you're aware of the copy-protection flipping b

[android-developers] Re: android.R.drawable.ic_menu_home - can not use

2009-11-20 Thread Lance Nanek
The UI guidelines really need to be updated: http://developer.android.com/intl/zh-CN/guide/practices/ui_guidelines/index.html The "Standard menu icons" section in the Icon Design document makes no mention of the fact that using the icons the way it shows is not recommended. That document also say

[android-developers] Re: methods not working (force closing), is there something wrong?

2009-11-20 Thread Arron
It is a lot easier to use ddms and find the exact exception and get the stack trace to figure out what's wrong. On Nov 20, 6:43 pm, Breezy wrote: > I've a couple functions that basically parse XML but it's not XML it > is parsing something similar.  I use them in PHP to break apart large > string

[android-developers] Re: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread eric
Greg, you're aware of the copy-protection flipping bug right? http://groups.google.com/group/android-developers/browse_thread/thread/3c26247d7a0540d1 It is reported to have been fixed in 1.5 but I haven't heard of anyone confirm it via testing. If it is still a problem, you wouldn't notice a pro

[android-developers] methods not working (force closing), is there something wrong?

2009-11-20 Thread Breezy
I've a couple functions that basically parse XML but it's not XML it is parsing something similar. I use them in PHP to break apart large strings so I converted them to Java for this, but when I use them they force close. I use this code to call them String[] blah = dig_all ("

Re: [android-developers] Re: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread Greg Donald
On Fri, Nov 20, 2009 at 8:10 PM, eric wrote: > I don't know if this will make you feel better or worse but my app is > copy-protected and is *easily* findable on filesharing sites. > > I'm gonna flip off the copy-protection (after some testing). > > I want the app to be available to anyone who is

[android-developers] need some help with GUI

2009-11-20 Thread Breezy
What's the best way to handle this scenario? I've an app I'm working on that will have 3 different screens (layouts essentially). One will be a search box with a couple radio buttons and a search button. One will be a results list (I'm liking listview for this, sound good?). One will be the whi

[android-developers] Re: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread eric
I don't know if this will make you feel better or worse but my app is copy-protected and is *easily* findable on filesharing sites. I'm gonna flip off the copy-protection (after some testing). I want the app to be available to anyone who is willing to purchase it more than I want to prevent peopl

Re: [android-developers] Re: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread Justin Giles
That is an unacceptable solution. I don't understand why the Market would need to act like that. If the phone is on a network, it should be able to see ALL applications regardless of copyright protection or not. On Fri, Nov 20, 2009 at 7:46 PM, Greg Donald wrote: > On Fri, Nov 20, 2009 at 7:0

Re: [android-developers] Re: android.R.drawable.ic_menu_home - can not use

2009-11-20 Thread Dianne Hackborn
On Fri, Nov 20, 2009 at 5:26 PM, Mark Murphy wrote: > Now, in many ways, I agree with you. It would be nice if device > manufacturers wouldn't frak around with the icons. They can fuss with > the home screen to their hearts' content, for all I care, but it would > be nice to have consistent icons.

Re: [android-developers] Re: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread Greg Donald
On Fri, Nov 20, 2009 at 7:04 PM, eric wrote: > I confirmed last night that enabling copy-protection on my app hides > it from the market for sprint hero users. Great. So if I unprotect my apps so people can once again see them to buy them, they will get pirated and sales will plummet again. Wha

Re: [android-developers] Read status bar notifications programmatically?

2009-11-20 Thread Dianne Hackborn
The accessibility API may be sufficient for what you want. Certainly, if you turn on the TalkBack accessibility service, you will have notifications read to you as they appear (plus a lot of other stuff going on in the UI though). On Fri, Nov 20, 2009 at 5:00 PM, Marcin_GUmeR wrote: > Hello > >

Re: [android-developers] Re: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread SoftwareForMe.com SoftwareForMe.com
Great information. I believe the Eris's problem is in fact the copy protection. I also know the Hero had this problem when launched in the UK. Can anybody estimate the risk of dropping copy-protection? I know our app is pirated already, but is it so much easier to copy without the protection that

Re: [android-developers] Read status bar notifications programmatically?

2009-11-20 Thread Mark Murphy
Marcin_GUmeR wrote: > Is there any way to access notifications while they arrive on status > bar from my activity/service? No. > I want to access all possible notifications (including these from > other applications), parse their text and use TTS engine to read them > aloud. Instead, you may wis

[android-developers] Re: Android in China - What is going on?

2009-11-20 Thread shimsim
Hi westmeadboy, i just tried accessing the google sync page from the link you posted and it works fine on my G1 both on WiFi and using China Mobile APN, so maybe its a regional issue too. I'm located in GZ. Don't get me wrong, I am happy to use this topic for everyone to post their current experie

Re: [android-developers] Re: android.R.drawable.ic_menu_home - can not use

2009-11-20 Thread Mark Murphy
Max Binshtok wrote: > I don't get > why don't you *encourage* such use. And actually make it in a way hard > to do and explicitly discourage it. Ms. Hackborn already answered this, but I'll try to elaborate/restate the point below. > While people are trying to > "emulate" some of the icons or mak

[android-developers] mapview service interruption or my imagination?

2009-11-20 Thread ian
I really feel I experienced a Map View service interruption today. All my apps are running again after ten down hours with no real changes made by me. The only mod I made was to resend my lat/long coordinates from the DDMS perspective, but repeating this was never necessary before. > On Fri, Nov 2

[android-developers] Re: map view not responding today?

2009-11-20 Thread ian
I really feel I experienced a Map View service interruption today. All my apps are running again after ten down hours with no real changes made by me. The only mod I made was to resend my lat/long coordinates from the DDMS perspective, but repeating this was never necessary before. On Nov 20, 3:

[android-developers] Re: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread eric
On Nov 20, 7:02 pm, Greg Donald wrote: > On Fri, Nov 20, 2009 at 5:15 PM, Mark Murphy wrote: > >> One of my missing apps has no permissions at all, so that can't be the > >> issue. > > > Is it copy-protected? > > Yes.  Is that known to cause issues? > > -- > Greg Donaldhttp://destiney.com/ I co

[android-developers] Read status bar notifications programmatically?

2009-11-20 Thread Marcin_GUmeR
Hello Is there any way to access notifications while they arrive on status bar from my activity/service? If not maybe pool status bar periodically? I want to access all possible notifications (including these from other applications), parse their text and use TTS engine to read them aloud. I woul

[android-developers] Re: ListActivity addHeader???

2009-11-20 Thread JasonMP
Mark...I'm offically you're biggest fan haha, j/k. But thanks, seriously. On Nov 20, 7:27 pm, "Mark Murphy" wrote: > > I can add a header to my listview within another activity with: > > > list = (ListView) findViewById(R.layout.list_view); > > > View v = View.inflate(this, R.layout.skill_list_h

[android-developers] Re: android.R.drawable.ic_menu_home - can not use

2009-11-20 Thread Max Binshtok
Actually searching for "built in icons" only got me another thread where people share the ways of how to use the built in icons. IMHO it is much better for user experience to have unified icons. I don't get why don't you *encourage* such use. And actually make it in a way hard to do and explicitly

Re: [android-developers] ListActivity addHeader???

2009-11-20 Thread Mark Murphy
> I can add a header to my listview within another activity with: > > list = (ListView) findViewById(R.layout.list_view); > > View v = View.inflate(this, R.layout.skill_list_header, null); > TextView t = (TextView) v.findViewById(R.id.skillHeader); > list.addHeaderView(v); > > this

[android-developers] ListActivity addHeader???

2009-11-20 Thread JasonMP
Hi, I can add a header to my listview within another activity with: list = (ListView) findViewById(R.layout.list_view); View v = View.inflate(this, R.layout.skill_list_header, null); TextView t = (TextView) v.findViewById(R.id.skillHeader); list.addHeaderView(v); this doesnt wor

[android-developers] why isn't there a easy way to let users take screenshots

2009-11-20 Thread Kai
Users report problems. I need them to take some screenshots and email to me. But most users don't know or have the needs to install the dev. env to just take screenshots. It's just too hard for them. Why can't Android make it as easy as on iPhone(pushing two buttons together)? -- You received

Re: [android-developers] Re: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread Greg Donald
On Fri, Nov 20, 2009 at 5:15 PM, Mark Murphy wrote: >> One of my missing apps has no permissions at all, so that can't be the issue. > > Is it copy-protected? Yes. Is that known to cause issues? -- Greg Donald http://destiney.com/ -- You received this message because you are subscribed to t

[android-developers] OOM loading images in Gallery

2009-11-20 Thread todd
Hi, We're working on a application that loads photos using the gallery. Most of the images in full size will be in the ~200 K range. We've been profiling the application for memory usage and have made several optimizations to try and make sure the application is not holding unnecessary reference

[android-developers] Re: java.io.IOException: Unable to open sync connection!

2009-11-20 Thread gnugu
My bad. I had it connected to the monitor USB. Connected to the computer USB and works fine. Underpowered? On Nov 20, 3:44 pm, gnugu wrote: > Hello, > running Eclipse on Ubuntu 9.10, connected real HTC Dream which works > just fine on another (Windows) machine. > > [2009-11-20 15:24:18 - Shoppi

[android-developers] Re: Unable to determine signal strength on Droid / Android 2.0 (onSignalStrengthsChanged deprecated)

2009-11-20 Thread Matt Hall
Just a note to say that I've opened a bug for this issue: http://code.google.com/p/android/issues/detail?id=4968 On Nov 17, 6:12 pm, Protuhj wrote: > In the future -- please search the forum first before posting a new > topic... I asked the same question last > week:http://groups.google.com/grou

[android-developers] Re: Copy protection bug statuses

2009-11-20 Thread Matt Hall
Just a note to say that the two bugs mentioned in this thread were marked by an Android engineer as fixed in 1.5, so we've turned off copy protection and so far so good. We'll be issuing an update to the game and so we'll see how things go through that update process. I'll update here when we find

[android-developers] java.io.IOException: Unable to open sync connection!

2009-11-20 Thread gnugu
Hello, running Eclipse on Ubuntu 9.10, connected real HTC Dream which works just fine on another (Windows) machine. [2009-11-20 15:24:18 - ShoppingList]-- [2009-11-20 15:24:18 - ShoppingList]Android Launch! [2009-11-20 15:24:18 - ShoppingList]adb is running normally. [2

Re: [android-developers] Re: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread Mark Murphy
Greg Donald wrote: > On Fri, Nov 20, 2009 at 1:14 PM, Justin Giles wrote: >> No, that isn't the case. My apps just use the network permissions and >> nothing else. Also, why could I see the apps before my upgrade and now >> after I cannot? Again, I don't know who to point the finger to at this

[android-developers] drawText sub-pixel positioning

2009-11-20 Thread Matt Hall
Hi, I see that the x and y coords are floats in one of the drawText calls, but when I try to specify a non-integer position it just seems to round to the nearest integer pixel position. Does the drawText system support rendering to sub-pixel precision, or is it just rounding as it seems? Thanks,

Re: [android-developers] Re: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread Greg Donald
On Fri, Nov 20, 2009 at 4:51 PM, Greg Donald wrote: > One of my missing apps has no permissions at all, so that can't be the issue. > > I think it's most likely HTC breaking stuff. My app sales are really down since yesterday too, so I'm pretty sure this is affecting others besides myself. Does

Re: [android-developers] Re: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread Greg Donald
On Fri, Nov 20, 2009 at 1:14 PM, Justin Giles wrote: > No, that isn't the case.  My apps just use the network permissions and > nothing else.  Also, why could I see the apps before my upgrade and now > after I cannot?  Again, I don't know who to point the finger to at this > point. One of my miss

[android-developers] Re: Choosing Dev Phone

2009-11-20 Thread Nathan
Thanks. I was able to get competent help at the TMobile store. They were apologetic that they didn't have a prepaid data plan for the G1. The nice man at the counter put his own sim card in the phone for long enough to get past the first sign in. I since got it going with my own SIM card and wifi

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-20 Thread Robert Green
I'd solve this by writing a preprocessor that breaks that big file down into manageable chunks. Think of having 10x10 array of 800x800 images. I would also mipmap a 4000x4000, 2000x2000, 1000x1000 and 500x500 of the file. Then, start the user on the correct zoom level, using only the tiles you n

[android-developers] Re: com.google Authenticator for the new android.accounts.AccountManager API.

2009-11-20 Thread dadical
It would be really cool to have an optional and very simple reflective layer over the top of this, that would allow use in pre-2.0 scenarios. Unless of course it's possible to extract the AccountManager out of 2.0 and back-port to 1.5/1.6 On Nov 12, 7:11 am, Micah wrote: > I am working on wr

[android-developers] Re: AccountManager and Google App Engine

2009-11-20 Thread dadical
I am also interested in this. If it is indeed possible to access the authentication token for the Google accounts associated with the phone itself, and to subsequently pass those to GAE so that backend functionality can proceed to use the various GAE and other Google services without requiring aut

Re: [android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-20 Thread Klaus Kartou
To summarize...Our app does not show up on the market on HTC Tattoo devices. The manifest includes the following: What can we do? On Fri, Nov 20, 2009 at 1:38 AM, KKK wrote: > Hi, Google, Your mother let you answer our questions. > > On Nov 19, 5:29 pm, Klaus Kartou wrote: > > Agreed

Re: [android-developers] For Google about BaseAdapter class

2009-11-20 Thread Romain Guy
As soon as you change the count you must notifyDatasetChanged(). On Fri, Nov 20, 2009 at 10:59 PM, Robert Woodruff wrote: > Hi Romain, > > > > Thanks for the info. I think you are saying that the small example below, > all of which runs on the UI thread, will cause the exception to be thrown? > R

[android-developers] Re: ScrollView scroll timeout ?

2009-11-20 Thread Mark Wyszomierski
Will do - can you think of any way to get around this in the meantime though? ScrollView has that onInterceptTouch method - anything I could do with that to trick ScrollView into thinking the touchDown location is actually where the user's finger was when the touchDown first was registered? Scroll

Re: [android-developers] Re: ScrollView scroll timeout ?

2009-11-20 Thread Romain Guy
That would be a bug, please file :) On Fri, Nov 20, 2009 at 10:42 PM, Mark Wyszomierski wrote: > Actually another observation - the slop value seems a lot better in > the ListView class, because it looks like once the slop value is > passed, scrolling begins "in place". > > With ScrollView, when

Re: [android-developers] For Google about BaseAdapter class

2009-11-20 Thread Robert Woodruff
Hi Romain, Thanks for the info. I think you are saying that the small example below, all of which runs on the UI thread, will cause the exception to be thrown? Right? > 1. Change the count in the base adapter > 2. notifyDataSetChanged() // Which captures a count and will react some time in t

[android-developers] Re: I Didn't come here to cause no trouble, I just came to do the Android Market Shuffle!

2009-11-20 Thread PJ
The Market statistics were screwed up for a while. People were even getting negative numbers in some cases. But I think it's fixed now. -- PJ On Nov 20, 5:42 am, MikaSue wrote: > What happened to the market?  I am uninformed? > > On Nov 19, 7:29 am, niko20 wrote: > > > > > *grin* > > > Altho

[android-developers] Re: RESET SQLite AUTOINCREMENT

2009-11-20 Thread PJ
Well, even if you assumed that insert transactions never failed, you'd still have gaps when a user deletes a row in the middle. So, you're not going to be able to avoid having gaps in your indexes. (And don't even think about trying to re-assign indexes every time you delete a row, because this w

[android-developers] Re: ScrollView scroll timeout ?

2009-11-20 Thread Mark Wyszomierski
Actually another observation - the slop value seems a lot better in the ListView class, because it looks like once the slop value is passed, scrolling begins "in place". With ScrollView, when the slop value is passed, the view jumps to where the user's finger is currently located. So for ScrollVie

Re: [android-developers] Re: Service runnning while PowerManager decides to sleep ?

2009-11-20 Thread Dianne Hackborn
You should hold a wake lock only when you need to make sure the CPU will continue running. If it is during the entire time your service runs until it schedules an alarm, then that is it, but please keep this as short as possible since this is one of the things that can have a significant impact on

[android-developers] Re: Where is "dump HPROF file" button in DDMS

2009-11-20 Thread fadden
On Nov 19, 6:32 pm, James Wang wrote: > I have confirmed that these two buttons(dump HPROF file and start > method profiling) only appears since 2.0. > So what the document(http://android.git.kernel.org/?p=platform/) says > is wrong. Yes, you're correct. Somehow I thought it went into 1.6. I'll

[android-developers] Re: Unexpected Resumes Running Under 2.0

2009-11-20 Thread Bo
Stock Launcher has the very same problem as well... On Oct 29, 5:06 pm, Nmix wrote: > I just installed SDK 2.0 and tested a stable app on a 2.0 AVD to make > sure it's still ok. It isn't. I'm trying to debug this, but the > problem, whatever it is, looks to be happening in Android, not in my > ap

[android-developers] Re: ScrollView scroll timeout ?

2009-11-20 Thread Mark Wyszomierski
Hey Romain, Yeah I think it's good, just in the case where I want to scroll slowly if I'm reading a large chunk of small text, it gets a little tough (like the google news page etc). I think other devices have a much smaller threshold for guessing a drag, so I'm probably used to that. It seems lik

Re: [android-developers] Re: TabActivity Lifecycle

2009-11-20 Thread Mark Murphy
Jason Mallet-Prevost wrote: > I'll have to read up on context menus a little more when I get the > chance. Right now I have 2 Views with contextMenus called as > registerForContextMenu(View1); and registerForContextMenu(View2); and > theyre both pulling up the same menu. onCreateContextMenu() is

Re: [android-developers] For Google about BaseAdapter class

2009-11-20 Thread Romain Guy
> 1. Change the count in the base adapter > 2. notifyDataSetChanged() // Which will react some time in the future > 3. immediately change the count in the base adapter, again > Or another way: when does the ListView grab the BaseAdapter count? Does it > grab it on the call to notifyDataSetChanged(

Re: [android-developers] Re: ScrollView scroll timeout ?

2009-11-20 Thread Romain Guy
That touch slop is used by all scrollable views (like ListView). It is definitely not too high for use with a finger on a touch screen. On Fri, Nov 20, 2009 at 3:53 PM, Mark Wyszomierski wrote: > Well I got a clone of ScrollView to compile, turns out it's the > constant: > >   private static fina

Re: [android-developers] Re: TabActivity Lifecycle

2009-11-20 Thread Jason Mallet-Prevost
Yeah, I had a separate menu in each of my Tabs, and so far they worked flawlessly. I'll have to read up on context menus a little more when I get the chance. Right now I have 2 Views with contextMenus called as registerForContextMenu(View1); and registerForContextMenu(View2); and theyre both pul

[android-developers] Re: How to Load PDF to Browser?

2009-11-20 Thread PJ
Like Mark said, Android doesn't come with PDF functionality built-in. So, your best bet is to find some Java library that provides PDF reading capabilities and include it with your application. Maybe something like: http://www.jpedal.org/ -- PJ On Nov 20, 12:58 am, Moon Technolabs wrote: > Th

Re: [android-developers] question regarding dialog dismiss/cancel handling

2009-11-20 Thread Jason Proctor
well i already did the wrapper so :-) thanks for your help on this one... >Yeah, just ran a quick test and setting cancelable to false stills >lets the dialog be dismissed by a button press. Weird. This >definitely feels ass-backwards. > >Well, the last thing I can think of is adding your own

Re: [android-developers] Re: TabActivity Lifecycle

2009-11-20 Thread Mark Murphy
JasonMP wrote: > Heres another concern. I previously had 2 separate contextmenus and 2 > separate options menus for my first tab and my second tab. Now that > they are in the same activity do they have to share the same menus? Option menu, yes; context menu, no. Option menus are per activity. Co

[android-developers] Re: RESET SQLite AUTOINCREMENT

2009-11-20 Thread jotobjects
On Nov 20, 11:00 am, JasonMP wrote: > The issue came up b/c when i do delete rows i get gaps.  gaps were bad > for my code :).  I'm not sure I understand what a general transaction > abort is.  Is this something that happens often? There is no such thing as a "general transaction abort". Sorry

[android-developers] Re: TabActivity Lifecycle

2009-11-20 Thread JasonMP
Heres another concern. I previously had 2 separate contextmenus and 2 separate options menus for my first tab and my second tab. Now that they are in the same activity do they have to share the same menus? I'm guessing I can always run a switch statement or something when I open the menu based of

Re: [android-developers] question regarding dialog dismiss/cancel handling

2009-11-20 Thread TreKing
Yeah, just ran a quick test and setting cancelable to false stills lets the dialog be dismissed by a button press. Weird. This definitely feels ass-backwards. Well, the last thing I can think of is adding your own layout with an OK and cancel button with Dialog.setView() and handle the clicking on

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-20 Thread PJ
We might be able to come up with more creative solutions if you give us more information about where the 8000x8000 jpeg file is coming from, and whether you just want to display it in a WxH view or to do something else with it. Also, since you expressed interest in Google's server-side solution fo

Re: [android-developers] Re: TabActivity Lifecycle

2009-11-20 Thread Jason Mallet-Prevost
Yeah, I think I got a little carried away there. I slowed down and got it figured out. Thanks again Mark. On Fri, Nov 20, 2009 at 3:32 PM, Jason Proctor < jason.android.li...@gmail.com> wrote: > >Please, the order of these steps is important -- we don't want any > >accidents related to CUI (Cod

Re: [android-developers] Re: TabActivity Lifecycle

2009-11-20 Thread Jason Proctor
>Please, the order of these steps is important -- we don't want any >accidents related to CUI (Coding Under the Influence). not necessarily -- http://xkcd.com/323/ :-) -- jason.vp.engineering.particle -- You received this message because you are subscribed to the Google Groups "Android Devel

Re: [android-developers] Re: TabActivity Lifecycle

2009-11-20 Thread Mark Murphy
Jason Mallet-Prevost wrote: > Ok, I'm running into a hitch. Using setListAdapter() inside my > TabActivity is making Android upset. Is there some other way to > populate a tab with a ListView? Step #1: Get the ListView via findViewById(), like any other widget Step #2: Call setAdapter() on the

Re: [android-developers] Re: TabActivity Lifecycle

2009-11-20 Thread Jason Mallet-Prevost
Ok, I'm running into a hitch. Using setListAdapter() inside my TabActivity is making Android upset. Is there some other way to populate a tab with a ListView? On Fri, Nov 20, 2009 at 3:18 PM, Mark Murphy wrote: > Jason Mallet-Prevost wrote: > > Hi Mark, I owe you one after today haha. So in or

Re: [android-developers] question regarding dialog dismiss/cancel handling

2009-11-20 Thread Jason Proctor
according to the docs, setCancelable() determines whether the "back" key cancels the dialog. it's not so much the cancel behaviour as the ok behaviour. if the dialog didn't auto-dismiss on an OK click, then things would work a lot easier. well, i'm just going to write a wrapper class that does

[android-developers] Re: Service runnning while PowerManager decides to sleep ?

2009-11-20 Thread Derek
Thanks for the answer Dianne. So, is it a good idea to acquire a WakeLock at the beginning of the service and release it at the end just after setting the PendingIntent through AlarmManager ? Also, is it possible to simulate CPU to go off with Emulator ? or forcing CPU to go off with real device

Re: [android-developers] Re: TabActivity Lifecycle

2009-11-20 Thread Mark Murphy
Jason Mallet-Prevost wrote: > Hi Mark, I owe you one after today haha. So in order to keep it all > together in the same activity I would just create a separate Layout in > my XML file and give it an ID I can pass to the TabHost? And then since > its all in the same activity I can use onTabChange

Re: [android-developers] question regarding dialog dismiss/cancel handling

2009-11-20 Thread Brad Gies
You can definitely post a message to a handler in the OnClick and then show the dialog again when your Handler gets the message... Jason Proctor wrote: > can't re-show the dialog in onClick(), because it's already shown. at > least that was true with 1.1, i should check it with a later SDK.

Re: [android-developers] question regarding dialog dismiss/cancel handling

2009-11-20 Thread TreKing
What if you call setCancelable(false) on the dialog? Will it still auto-dismiss? I would assume not and then you could do what you're trying to do and call cancel() manually when you're done validating. --

Re: [android-developers] Service runnning while PowerManager decides to sleep ?

2009-11-20 Thread Dianne Hackborn
If you don't hold a wake lock, you can't count on the CPU running. On Fri, Nov 20, 2009 at 12:01 PM, Derek wrote: > Hi all, > > Our application is running a service periodically through AlarmManager > and PendingIntent. Each time the service runs, it sets a new > PendingItent for next run. I wor

Re: [android-developers] Re: TabActivity Lifecycle

2009-11-20 Thread Jason Mallet-Prevost
Hi Mark, I owe you one after today haha. So in order to keep it all together in the same activity I would just create a separate Layout in my XML file and give it an ID I can pass to the TabHost? And then since its all in the same activity I can use onTabChanged() to run any updates to my databas

[android-developers] Re: How to get my name account ie: sa...@gmail.com

2009-11-20 Thread kike
nobody knows how to get the user id string? On Wed, Nov 18, 2009 at 1:17 PM, kike wrote: > Its simple, how can i obtain by code the user google id?? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

[android-developers] Service runnning while PowerManager decides to sleep ?

2009-11-20 Thread Derek
Hi all, Our application is running a service periodically through AlarmManager and PendingIntent. Each time the service runs, it sets a new PendingItent for next run. I works fine but sometimes the service stops for no reason. - Could it come from PowerManager? - Could the CPU goes off before the

Re: [android-developers] Re: TabActivity Lifecycle

2009-11-20 Thread Mark Murphy
JasonMP wrote: > Reason for confusion: > > I start my app and it loads to default TAB1. > > I select TAB2 at the top and it switches to TAB2...in my onResume() > for TAB2 I display a Toast "Hello" and it is displayed. I take it that TAB2 is using an Intent to load an activity in the contents of

[android-developers] Re: TabActivity Lifecycle

2009-11-20 Thread JasonMP
Reason for confusion: I start my app and it loads to default TAB1. I select TAB2 at the top and it switches to TAB2...in my onResume() for TAB2 I display a Toast "Hello" and it is displayed. I go back to TAB1everything ok here. i go back to TAB2no Toast displayed from the onResume(). W

[android-developers] Re: locator app

2009-11-20 Thread Abhi
Hi Tom, I am not sure if I understood your previous post right... Abhi On Nov 20, 2:44 pm, Loki117 wrote: > Yeah epic fail on my behalf that does not work! > > On Nov 20, 1:49 pm, Loki117 wrote: > > > > > Try this. > > > Concat the lat and long values to be one number. Get your current > > loc

Re: [android-developers] question regarding dialog dismiss/cancel handling

2009-11-20 Thread Jason Proctor
can't re-show the dialog in onClick(), because it's already shown. at least that was true with 1.1, i should check it with a later SDK. so either i do my validation in onDismiss(), or i get all fancy. >Just ran a quick test on my code and you're right! Sorry for the >wrong info. I've been manu

Re: [android-developers] question regarding dialog dismiss/cancel handling

2009-11-20 Thread TreKing
Just ran a quick test on my code and you're right! Sorry for the wrong info. I've been manually calling dismiss() and cancel() on the dialogs I use. It's been a while since I looked at that code and figured I was doing that because I had to ... now this makes me wonder why I did it that way to begi

[android-developers] Re: locator app

2009-11-20 Thread Loki117
Yeah epic fail on my behalf that does not work! On Nov 20, 1:49 pm, Loki117 wrote: > Try this. > > Concat the lat and long values to be one number. Get your current > location from GPS query the DB for the five numbers closest too your > current position (again concat the lat and long) using a li

[android-developers] Re: map view not responding today?

2009-11-20 Thread ian
Wayne thanks for the feedback. I keep thinking over what I might have done to break them. On Nov 20, 3:28 pm, Wayne Wenthin wrote: > Mine seems to be working. > > > > On Fri, Nov 20, 2009 at 11:10 AM, ian wrote: > > So strange. None of my mapview pages work today even though I haven't > > edited

Re: [android-developers] map view not responding today?

2009-11-20 Thread Wayne Wenthin
Mine seems to be working. On Fri, Nov 20, 2009 at 11:10 AM, ian wrote: > So strange. None of my mapview pages work today even though I haven't > edited them for days, Everything compiles and the other pages in the > apps work fine, but when I try to open a map page I get "..app stopped > unexpe

[android-developers] Repository Grief

2009-11-20 Thread Guy Cole
I have only recently tried to build Android from the repository. "repo sync" keeps failing (example below), does anybody know of a workaround? Thank you. g...@cornfed:209>repo sync Fetching projects: 90% (128/142) warning: no common commits remote: Counting objects: 2279, done. remote: Compres

Re: [android-developers] question regarding dialog dismiss/cancel handling

2009-11-20 Thread Jason Proctor
thanks for the response, most helpful. i don't actively dismiss the dialog at any point, therefore something behind the button click must be doing it. i took a look in android.internal.app.AlertController.java, and found that its click listener calls the appropriate button handler, then sends a

Re: [android-developers] Re: How to get all contact's name phone number, email for 2.0

2009-11-20 Thread Rachel Blackman
On Nov 20, 2009, at 6:55 AM, Henry wrote: > Now, it always return just one row. I tried several ways, like > ContactsContract.CommonDataKinds.Email.CONTACT_ID + " in ('1', '2', > '3'); > It always one row. If I just contact id "3", it will return contact > 3. > Do you know a way to get all th

[android-developers] Re: Refreshing a ListActivity within a TabView

2009-11-20 Thread JasonMP
Does that go in he onCreate? onResume? On Nov 20, 12:15 pm, Mark Murphy wrote: > JasonMP wrote: > > Hi, > > > I'm running into some issues here with my app.  I have 4 tabs run > > through a tabActivity.  One tab sends an intent and run my > > ListActivity that populates the screen from a simpleCu

Re: [android-developers] Re: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread Justin Giles
No, that isn't the case. My apps just use the network permissions and nothing else. Also, why could I see the apps before my upgrade and now after I cannot? Again, I don't know who to point the finger to at this point. On Fri, Nov 20, 2009 at 10:50 AM, blindfold wrote: > Just a (wild) guess.

[android-developers] map view not responding today?

2009-11-20 Thread ian
So strange. None of my mapview pages work today even though I haven't edited them for days, Everything compiles and the other pages in the apps work fine, but when I try to open a map page I get "..app stopped unexpectedly box" Any one else having trouble??? I rechecked my API key and that was OK

[android-developers] ListView clickListener() firing twice

2009-11-20 Thread stanlick
Has anyone experienced a listener being called twice? I am seeing this consistently and cannot quite figure out why? Peace, Scott -- 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@goog

[android-developers] Re: How to configure your application to ensure proper display on Motorola Droid?

2009-11-20 Thread Matt Kanninen
You should be able to compile against 1.6 right? That seemed to give us all tools necessary to support Long displays. My plan is to compile against 1.6, but only use 1.5 APIs. Put the droid layouts in res/layout-long, and test on 1.6 and 2.0 devices, and a 1.5 emulator. It seems the browser pla

[android-developers] TabActivity Lifecycle

2009-11-20 Thread JasonMP
Hi, Can someone explain to me, or point me to a reference document describing a TabActivities Lifecycle? I have a tab that runs an activity. When does that activities onCreate, onResume, onPause take place? -- You received this message because you are subscribed to the Google Groups "Android D

[android-developers] Re: RESET SQLite AUTOINCREMENT

2009-11-20 Thread JasonMP
Yes, I realize that. Not to mention it would take longer. I'll just query the rows current ROW_ID and pass it along. The issue came up b/c when i do delete rows i get gaps. gaps were bad for my code :). I'm not sure I understand what a general transaction abort is. Is this something that happ

  1   2   3   >