[android-developers] Re: I want to know to get browse history on android ?

2009-09-11 Thread Miguel Paraz
I continued with my trial code. This one does not retrieve anything, using the DevPhone on Cupcake. Then, I read the source for the Browser's BrowserProvider which suggests that you need to give something to query. (the commented code below). However, that causes an Exception inside the BrowserPr

[android-developers] DrawMyLocation causes Uncaught BitmapDrawable Handler (Cupcake)

2009-09-11 Thread chrispix
Not sure if this is related to the custom build of Cupcake from CyanogenMod 4.1.7, or DrawMyLocation has been depreciated or something else.. But hopefully someone can help.. This only happens on 4.1.7, but we have customers who are asking why this is not working. I did post bug report @ CyanogenM

[android-developers] Trouble with GLSurfaceView

2009-09-11 Thread SChaser
I've been messing around with GLSurfaceView, first with just my own code, and then with the demo framework from Pro Android. In both cases, the view stops working after the application has been paused (say, by bringing up the home screen, and then selecting the application and running it again).

[android-developers] Re: Lesson from ADC2 - Polish Your App!

2009-09-11 Thread ernestw
I agree with you 100% Craig. I've been focusing primarily on games and have spent a lot of time going through older games; reading comments and ratings. I'm quite amazed at the number of games where "force close" is a complaint and that menus are difficult to navigate. I spent some extra time ma

[android-developers] Re: I want to know to get browse history on android ?

2009-09-11 Thread Miguel Paraz
On Sep 3, 11:35 am, ni wrote: > Hi All, > > I mean, I want to pull out web histroy from contentprovider for my > application. > > I have some coding. But I got exception so, no running. > > So, how can I do ?please help me. > Here are my coding I tried your code. Are you referring to: 09-12 1

[android-developers] Re: locked up my Android device...

2009-09-11 Thread Dianne Hackborn
10 threads is still a lot. All of the devices you will run on the foreseeable future are only going to have one cpu, so one thread, maybe two (you might get some parallelism out of decoding while another thread is reading through problem not much) should be more than enough. Going up to ten has a

[android-developers] Re: Checking the user's country

2009-09-11 Thread Lance Nanek
Wow, I thought the getDisplayCountry() and getCountry() methods on the Locale instance returned by java.util.Locale.getDefault() might be helpful, but on my G1 they return the empty String when the phone's "Settings->Locale & text->Select locale" setting is set to "Spanish". Returns the US when se

[android-developers] Re: how many activities bound to my service

2009-09-11 Thread sdphil
ack - nevermind. rtfm. boolean onUnbind(Intent intent) Called when all clients have disconnected from a particular interface published by the service. On Sep 11, 8:01 pm, sdphil wrote: > i have a service that's running in the background, is there any way > (short of keeping a count o

[android-developers] how many activities bound to my service

2009-09-11 Thread sdphil
i have a service that's running in the background, is there any way (short of keeping a count of onBind() and onUnbind()) to know the number of activities that are bound to it? I am trying to provide a "quit" function. all my activities derive from the same base class. I am keeping a global sta

[android-developers] Re: Custom controls

2009-09-11 Thread pro
It's been a long while when I saw custom controls, so I don't remember this. But you could be write. What I am looking for is as I mentioned irregularly shaped controls, so that the handler to the control will be invoked when the user action is on the irregularly shaped part of the control. For ex

[android-developers] Re: routing audio to speaker

2009-09-11 Thread Roman ( T-Mobile USA)
For the headset you have to find out whether a headset is connected over USB (if you use a G1 or myTouch) that's why you can find the HeadsetObserver class in the framework. In case of the speaker an Observer is not required because it is an internal hardware component which you cannot enable/dis

[android-developers] Re: Execute chown command

2009-09-11 Thread Roman ( T-Mobile USA)
3rd party apk's can be found in /data/app Change the permission to the folders and then owner of your APK. Is this what you were looking for? -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely

[android-developers] Re: Checking the user's country

2009-09-11 Thread Roman ( T-Mobile USA)
What do you mean with "user's country"? Static methods: - You could use the phone number which is assigned to you. The phone number starts with the country code. - Also the IMEI has information about in which country your phone was approved/registered. Dynamic method based on your cellular conne

[android-developers] Re: Lesson from ADC2 - Polish Your App!

2009-09-11 Thread CraigsRace
My first game, I got bombarded with e-mails from people asking me to add features. As a result, the game became cluttered with features and options. My ADC2 entry, I kept very simple and spent a lot of time creating themed dialogs etc. IMO, the end result is much better. A library of views and

[android-developers] Re: Checking the user's country

2009-09-11 Thread Roman ( T-Mobile USA)
What do you mean with "user's country"? Static methods: - You could use the phone number which is assigned to you. The phone number starts with the country code. - Also the IMEI has information about in which country your phone was approved card was approved. Dynamic method based on your cellula

[android-developers] Re: Uploading Screen Shots of App to Android Market

2009-09-11 Thread CraigsRace
I think when they say "no borders", they are just saying don't decorate the edges of your images as they will look weird when they are shown in the market, presumably because the market app will put its own border around the images. I had no problem uploading images. I created/edited my images u

[android-developers] Re: locked up my Android device...

2009-09-11 Thread Mark Murphy
michael m wrote: > What I am doing, which I question, is loading each image via a thread > as it is retrieved from the ImageCache...I pass back a default image > if the bitmap is null, then update the default image in the ImageViews > with the Bitmap is loaded from the sdcard; I'm doing this by po

[android-developers] locked up my Android device...

2009-09-11 Thread michael m
warning, long rambling description follows, I'm very confused about this bug and am not totally sure I'm doing stuff correctly... I've been able to lock the screen twice with the current implementation of the app I'm writing (MediaDroid). It's very inconsistently (2 out of about 100 runs) a

[android-developers] Re: Updated apps not showing at the top of the list

2009-09-11 Thread iPaul Pro
Its seems to me that there needs to be a significant amount of time between updates for the app to show back at the top of the "By Date" list. In my experience, 2 weeks is enough time. It may actually be less. Paul On Sep 11, 6:11 pm, "ro...@rogerlemmon.com" wrote: > I am new to posting on the

[android-developers] Re: Uploading Screen Shots of App to Android Market

2009-09-11 Thread Maps.Huge.Info (Maps API Guru)
I had no trouble uploading my screen shots. Make sure you have no alpha, which may mean in your case using 8 bit PNG's instead of 24. You also may have selected to use transparency in your PNG's which would cause trouble. Make sure you have the exact size asked for as well. -John Coryat "What Zi

[android-developers] KXML and Android

2009-09-11 Thread JavaNut
There's something I'm not understanding. I definitely was able to use Android's built-in KXML libraries in earlier releases. However, they are not visible now in the API documentation. I don't really understand it, because looking at the Android source, I definitely see dalvik/libcore/xml/src/m

[android-developers] Re: pointer location app under emulator

2009-09-11 Thread pro
Thanks a lot Hack... Just tested it out, perfect! -pro On Sep 11, 1:49 pm, Dianne Hackborn wrote: > http://android.git.kernel.org/?p=platform/development.git;a=blob;f=ap... > > On Fri, Sep 11, 2009 at 1:12 PM, pro wrote: > > > On my emulator under 'dev tools' there is an app called pointer >

[android-developers] Re: Is the limit of memory heap only 6M?

2009-09-11 Thread fadden
On Sep 11, 3:59 pm, Peter Jeffe wrote: > It seems to me that the issue is a question of time lag more than > anything else.  Is it possible that trackExternalFree() isn't being > called soon enough after every de-allocation of external memory? It works something like this: - Bitmap objects liv

[android-developers] Re: Broadcast Receivers help

2009-09-11 Thread Dianne Hackborn
I don't believe there is an official way to do it. As far as your other post, why would you expect your app to go at the top of the list for every little update? I wouldn't be surprised if the date list is only based on -new- applications, to avoid developers spamming updates to appear at the top

[android-developers] Uploading Screen Shots of App to Android Market

2009-09-11 Thread Vassilios Kirellous
Hello Droiddudes and Droidettes, I'm having some trouble uploading screenshots via the market.android.com/publish/home dashboard. Although i've followed the rules about 320 x 480 size for screen shots, + I've used 24 bit PNG, it still is not accepting any of my screenshots. I've tried everything.

[android-developers] Re: Is the limit of memory heap only 6M?

2009-09-11 Thread Peter Jeffe
Below is some output when I was zooming in maps, not sure if this sheds light on anything. Since this is unrelated to anything in my app it's obviously something that anyone can exercise. It seems to me that the issue is a question of time lag more than anything else. Is it possible that trackE

[android-developers] Re: Lesson from ADC2 - Polish Your App!

2009-09-11 Thread Robert Green
I'm in the same camp. I was just happy to get a 3D multiplayer game working correctly by the deadline. I spent the next week polishing it up and man have I found a ton of things that I wish I had gotten done in time for the contest. Obvious stuff like VBOs, mipmaps, better orientation handling,

[android-developers] Re: Broadcast Receivers help

2009-09-11 Thread ro...@rogerlemmon.com
I wouldn't want frowning so Can you tell me a better way? And by the way, can you answer this... http://groups.google.com/group/android-developers/browse_thread/thread/28e026ba8da56225 thanks... On Sep 11, 3:41 pm, Dianne Hackborn wrote: > I am officially frowning. ;) > > Just be prepared

[android-developers] Re: Why does app not get onDestroy when exited but then receives an onCreate when relaunched?

2009-09-11 Thread Dianne Hackborn
Its process is just outright killed. In your second launch, the process had been killed, so it needed to be restarted and thus a fresh instance of the activity created inside of it. On Fri, Sep 11, 2009 at 3:04 PM, WoodManEXP wrote: > > Why does app not get onDestroy when exited but then receiv

[android-developers] Re: Broadcast Receivers help

2009-09-11 Thread Dianne Hackborn
I am officially frowning. ;) Just be prepared for this to not work in the future, for who knows what reason. On Fri, Sep 11, 2009 at 2:49 PM, Jason Proctor < jason.android.li...@gmail.com> wrote: > > "officially", you can't replace the stock call UI. however, i've > discovered that if your recei

[android-developers] Re: drop call after some time duration

2009-09-11 Thread Roman ( T-Mobile USA)
I am not aware of that this is supported. If yes it is a very dangerous API/event ... -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily repre

[android-developers] Re: Getting longer stack traces from DDMS?

2009-09-11 Thread fadden
On Sep 11, 1:58 pm, Walles wrote: > I read this blog about how to use DDMS to track memory > allocations.http://android-developers.blogspot.com/2009/02/track-memory-allocatio... [...] > How can I raise the limit from 8 to something higher? The allocation tracker parameters are currently hard-co

[android-developers] Re: Broadcast Receivers help

2009-09-11 Thread ro...@rogerlemmon.com
Just what I needed, it works every time now! thanks! Thread.sleep(500L) . don't even notice it! good hack ;) By the waysearch for "not call log" in the market. It is free, and handy! On Sep 11, 3:02 pm, "ro...@rogerlemmon.com" wrote: > that's what i meant , testing now > thanks > > On

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread Mike Collins
Pulled down just the add-on for the MB200 (Cliq) emulator, I did not pull down or install MOTODEV as I have my Eclipse setup just s. Came up fine, worked as documented. My app seems to function properly, although there may be some minor issues. mike --~--~-~--~~~--

[android-developers] Updated apps not showing at the top of the list

2009-09-11 Thread ro...@rogerlemmon.com
I am new to posting on the market, and cant figure this out! I have run through updating my app a couple of times in the past day for bug fixes and such that people have found for me, but my app doesn't seem to be showing up at the top of the "By Date" sort! I know that I see other peoples apps j

[android-developers] Why does app not get onDestroy when exited but then receives an onCreate when relaunched?

2009-09-11 Thread WoodManEXP
Why does app not get onDestroy when exited but then receives an onCreate when relaunched? Here is the trace Launched app It received onCreate and the other expected on calls for a launch. Now, leave application with the home button and it receives onSaveInstanceState onPause onStop And retur

[android-developers] Re: Broadcast Receivers help

2009-09-11 Thread ro...@rogerlemmon.com
that's what i meant , testing now thanks On Sep 11, 3:00 pm, Jason Proctor wrote: > well you could Thread.currentThread().sleep(period) > > #hack :-) > > > > >So, your saying use something like a wait(); statement? > >Since I really don't do much before running the activity, all is done > >i

[android-developers] Broadcast Receivers help

2009-09-11 Thread Jason Proctor
well you could Thread.currentThread().sleep(period) #hack :-) >So, your saying use something like a wait(); statement? >Since I really don't do much before running the activity, all is done >in services before hand > > >On Sep 11, 2:49 pm, Jason Proctor >wrote: >> "officially", you can't

[android-developers] Re: Broadcast Receivers help

2009-09-11 Thread ro...@rogerlemmon.com
So, your saying use something like a wait(); statement? Since I really don't do much before running the activity, all is done in services before hand On Sep 11, 2:49 pm, Jason Proctor wrote: > "officially", you can't replace the stock call UI. however, i've > discovered that if your receive

[android-developers] Re: Broadcast Receivers help

2009-09-11 Thread Jason Proctor
"officially", you can't replace the stock call UI. however, i've discovered that if your receiver hangs out for a bit before starting your UI activity, then you can displace the stock UI. it's quite funny, you see the system obligingly slide the stock one out of the way and bring in the new on

[android-developers] Re: how to use commons-net-2.0 lib in the emulator

2009-09-11 Thread manu
i've the INTERNET permission, i can to list directories using ssh protocol but i can open a ftp connection, but i cannot list nothing i ever get a empty array --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android De

[android-developers] Broadcast Receivers help

2009-09-11 Thread ro...@rogerlemmon.com
My broadcast receiver for Call_State_Changed works fine and I successfully start a different activity than the standard CallLog after a call, but every once in a while, the original Activity gets displayed after mine, in effect not showing mine! This is annoying. Is there a call that I can make to

[android-developers] Re: Lesson from ADC2 - Polish Your App!

2009-09-11 Thread Tom Gibara
I think lack of polish is a significant shortcoming in a large number of the applications that are now available in the Android Market. There are lots of great apps, and great apps that have very little polish (and perhaps don't need it), but in general I think it's a quality that's in deficit. Int

[android-developers] Activity Vs View

2009-09-11 Thread Jason Proctor
for me the activity granularity is where functionality can be broken down to discrete tasks. is this piece of the program standalone? does it have defined inputs and outputs that could be used by other activities? etc. >Generally speaking, it's better to design for simplicity and >maintaina

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread Carl Whalley
Ok, sorry for posting before I read the link - the DPAD does adjust as you'd expect and it is explained further at the page Anna pointed to.. On Sep 11, 10:21 pm, Carl Whalley wrote: > Small point raised in my original post: if you do as you suggest and > keep the app in portrait mode when the k

[android-developers] Re: Android License compatibility with LGPLd code

2009-09-11 Thread Yusuf Saib (T-Mobile USA)
Just to be clear, I'm not speaking in an official capacity for anyone, nor am I a lawyer. But AFAIK, one of Android's design parameters was to free developers from worrying if their code's licenses would conflict with Android. So to answer your question, I am not aware of any problems with develop

[android-developers] Re: Activity Vs View

2009-09-11 Thread Yusuf Saib (T-Mobile USA)
Generally speaking, it's better to design for simplicity and maintainability of code rather than optimize for speed from the outset, especially in the case (like this one) where either approach works. There is no Android rule-of-thumb that says "don't use multiple activities", although I've seen a

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread Carl Whalley
Small point raised in my original post: if you do as you suggest and keep the app in portrait mode when the keyboard is opened, assuming the user turns the handset so they are holding it in portrait mode is the DPAD to the lower right or upper left of the screen? Also, thinking about this further,

[android-developers] Re: Custom controls

2009-09-11 Thread nEx.Software
All controls in any development platform I have ever worked with have been based on rectangular bounds. Whether you use all of the available space within those bounds is, of course, up to you... but the fact remains that there is a rectangular bound. Am I misunderstanding? On Sep 11, 8:49 am, pro

[android-developers] Lesson from ADC2 - Polish Your App!

2009-09-11 Thread dadical
As I've wound down from the ADC2 adrenaline rush over the past few days, I've been thinking about a few things that I (re)-learned during the development of my entry. I blogged about it here: http://keyeslabs.com/joomla/index.php/blogs/i-think-im-becoming-an-android/53-polish-your-apps-people T

[android-developers] Re: SQLiteOpenHelper.onUpgrade

2009-09-11 Thread nEx.Software
Correct, you can add columns but not change or delete existing columns. On Sep 11, 2:06 pm, Steve wrote: > What is it exactly you are trying to do with your statement? > > I think you can only add columns during an upgrade (not change > existing ones). > > On Sep 10, 2:28 pm, Marco Nelissen wro

[android-developers] Re: SQLiteOpenHelper.onUpgrade

2009-09-11 Thread Steve
What is it exactly you are trying to do with your statement? I think you can only add columns during an upgrade (not change existing ones). On Sep 10, 2:28 pm, Marco Nelissen wrote: > On Thu, Sep 10, 2009 at 8:44 AM, > > c.a.due...@googlemail.com wrote: > > > Hi Droids! > > > I get a SQLiteExce

[android-developers] Re: Activity Vs View

2009-09-11 Thread Saurav
AFAIK, android applications are activity based. Based on ur requirement and ur judgment, u shud be able to distinguish how many activities are required. Just to clarify things, its not good to have an application with "numerous" views, switched. Its normal to have several activities with fewer numb

[android-developers] Getting longer stack traces from DDMS?

2009-09-11 Thread Walles
I read this blog about how to use DDMS to track memory allocations. http://android-developers.blogspot.com/2009/02/track-memory-allocations.html Using those instructions, I was able to get allocation stack traces. Unfortunately the stack traces only go 8 deep (at least when running against the s

[android-developers] Re: How to improve existing Android applications?

2009-09-11 Thread Walles
The answer I was really looking for was this: http://source.android.com/using-eclipse Having a pointer to there from the developer FAQ would be nice. /J On 18 Aug, 10:11, Walles wrote: > How do I get (for example) the Android Calendar app into Eclipse so I > can modify it and send in patches

[android-developers] Activity Vs View

2009-09-11 Thread Gopal Biyani
Hello Guys, I have confusions over View and Activity which one we should use. In my application there are lots of different screens with lots of different functionalities. In some of the screen they share common task bar and in another screen they have different task bar and nothing in common. At

[android-developers] Re: pointer location app under emulator

2009-09-11 Thread Dianne Hackborn
http://android.git.kernel.org/?p=platform/development.git;a=blob;f=apps/Development/src/com/android/development/PointerLocation.java On Fri, Sep 11, 2009 at 1:12 PM, pro wrote: > > On my emulator under 'dev tools' there is an app called pointer > location. > > Where is the source for this activi

[android-developers] Re: Android market application on emulator

2009-09-11 Thread dhr
Finally managed to make it work. Instead of copying the image file directly to the avd directory, had to copy image to /platforms/ android-1.5/images the recreated the avd. Now android market is on the emulator! On Sep 11, 6:39 pm, dhr wrote: > Looking for the same thing. This is what I found

[android-developers] pointer location app under emulator

2009-09-11 Thread pro
On my emulator under 'dev tools' there is an app called pointer location. Where is the source for this activity/app? -pro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

[android-developers] Re: Problem in Reverse Geocoder...Address,Country Name are not Displaying...

2009-09-11 Thread Marcelo Santos
Hello Ragavendran, Did you get to solve your problem? Its hapening with me too. I've got the same code and i'am running it in the emulator. Android doesnt show the address and there isn´t any erro message. Apriciate ur help! thanks! On 1 set, 12:01, "henderson.justin" wrote: > There simply i

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

2009-09-11 Thread Jimmy
I have an app that collects neighbor cell information (CID and RSSI). It works fine in 2G. When switching to 3G, the getCid() and getRssi() throw a NumberFormatException List neighCell = null; neighCell = telManager.getNeighboringCellInfo(); for (i = 0; i < numNeigh; i++) { try {

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread anna.schal...@motorola.com
As Dianne stated, it works very much like the G1. The short answer is that there are still only two modes: portrait and landscape. The DPAD, or 5-way navigation, on the keyboard is only available when you open the keyboard. By default this automatically rotates the display to landscape. You can

[android-developers] getting SmsMessage source port

2009-09-11 Thread PhoTai
Hi, I used to following intent-filter (see below) to receive a binary SMS message coming to a port number but I cann't find an SMS Api to get the source port. The source port is located in the UDH but there is not an API to retrieve it. Please let me know if there a way w/o parsing a PDU.

[android-developers] Re: (unofficial) Bluetooth API v. 0.2

2009-09-11 Thread windstorm
On Sep 11, 3:59 am, Stefano Sanna wrote: > On Fri, Sep 11, 2009 at 6:57 AM, windstorm wrote: > > I'll check and let you know. Thanks! > > > 3 Did you ever notice and consider merge all the function provided > > here: > > >http://groups.google.com/group/android-platform/browse_thread/thread/.

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread er...@motorola.com
On Sep 11, 1:29 pm, Mark Murphy wrote: > Please, make it available to all MOTODEV members, if not the general > public. There's a separate license agreement you have to agree to online > to download the add-on. The more barriers you place, the fewer people > will download it, and the fewer apps w

[android-developers] Re: How to Develop a Custom Soft Keyboard

2009-09-11 Thread polyclefsoftware
Thanks for the quick reply, Mark. After you pointed me to that example, I searched these forums for the softkeyboard example and found this thread describing how to use the example: http://groups.google.com/group/android-developers/browse_thread/thread/3ab619a3f127e61c That gives me a decent pl

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread JoaJP
Eric, I hope to suggest that the design of Motorola's products will be reaching towards a standard that does not require the dev community's familiarization with Motorola products to a level of detail that starts to shine through here. This actually applies to all device makers. HTC has been suppl

[android-developers] Re: How to Develop a Custom Soft Keyboard

2009-09-11 Thread Mark Murphy
polyclefsoftware wrote: > In v1.5 of the SDK, the release notes include "Support for user > installation of 3rd party keyboards". So the API allows you to design > a custom keyboard layout within a single app. But how might one go > about developing a custom keyboard that a user could download and

[android-developers] Re: Is the limit of memory heap only 6M?

2009-09-11 Thread fadden
On Sep 10, 5:54 pm, Peter Jeffe wrote: > 09-11 00:45:00 .maps(649) softlim=13120KB, extlim=7232KB, > extalloc=7232KB >   freed 1136 objects / 115712 bytes in 84ms > 09-11 00:45:01 .maps(649) softlim=13568KB, extlim=8128KB, > extalloc=8128KB >   freed 3920 objects / 954368 bytes in 94ms This isn'

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread Mark Murphy
er...@motorola.com wrote: > There is an SDK add-on in the AAP part of the MOTODEV site at the > moment but it's based on an older system build. Ah, nuts. That's 35MB of bandwidth down the drain... ;-) > We have an updated > version based on a more recent build with better support for the skin. >

[android-developers] How to Develop a Custom Soft Keyboard

2009-09-11 Thread polyclefsoftware
In v1.5 of the SDK, the release notes include "Support for user installation of 3rd party keyboards". So the API allows you to design a custom keyboard layout within a single app. But how might one go about developing a custom keyboard that a user could download and install (as opposed to compilin

[android-developers] Activity and TabActivity...

2009-09-11 Thread sdphil
i have a base class "BaseActivity" and a class that dervies from TabActivity. I am doing a bunch of stuff in BaseActivity -- esp. in the overriden methods so I can avoid having to do it in all my activities ("generalize and promote"). I am finding it a bit of a pain that I have to make all those

[android-developers] Re: Recommended uses of a class extending android.app.Application

2009-09-11 Thread Tom Gibara
I hesitate to raise a word against any of Dianne's advice (ever) - and it clearly depends on the nature of your application. But what I find with my code is that most of the global state I want to keep depends on a Context. For example, anything that loads resources, or anything that needs to gener

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread er...@motorola.com
[I could've sworn I pressed "send" and yet my reply hasn't shown up. I'll try to paraphrase. I'm sure as soon as I press "send" this time, the original will show up. ;-) ] Mark, et. al., There is an SDK add-on for the Cliq under the MOTODEV AAP that is based on an older system build and had some

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread er...@motorola.com
Mark, et. al., There is an SDK add-on in the AAP part of the MOTODEV site at the moment but it's based on an older system build. We have an updated version based on a more recent build with better support for the skin. We've approved the add-on and sent it to the web team to make available insid

[android-developers] Re: Android License compatibility with LGPLd code

2009-09-11 Thread Android Development
ok thanks. The same goes for Apache license too ? On Fri, Sep 11, 2009 at 10:50 PM, Yusuf Saib (T-Mobile USA) < yusuf.s...@t-mobile.com> wrote: > > I am not aware of any problems with developing an Android app that > uses LGPL code. > > > > Yusuf Saib > Android > ·T· · ·Mobile· stick together > T

[android-developers] Re: Tracking down libdvm crash

2009-09-11 Thread fadden
On Sep 10, 6:20 pm, DaveG wrote: > With forcecopy enabled, I now get the crash in a different location: Interesting. Could be that whatever was trashing the virtual heap is now trashing the native heap. The guard areas are 256 bytes before/ after, but if the write is outside that (or something

[android-developers] Re: hi, i need help with a simple counter and timer app for use while refereeing fencing

2009-09-11 Thread Yusuf Saib (T-Mobile USA)
> p.s sorry if this is not where i should post this, please tell me > where i might be able to do this if this is the case Rentacoder? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity,

[android-developers] Re: how to change ListView Item Text Color?

2009-09-11 Thread RoryD
> i populate ListView Using ArrayAdapter, You could create your own Adapter (subclassing ArrayAdapter) and override getView(). Call through to the superclasses getView() method & then configure the View you get back however you want. e.g. public class MyArrayAdapter extends ArrayAdapter {

[android-developers] Re: About Services

2009-09-11 Thread Dianne Hackborn
Sorry, no. On Fri, Sep 11, 2009 at 12:55 AM, Shrenik Vikam wrote: > > can i send end call event or kill event to call/dial activity > > On Sep 2, 9:40 pm, Dianne Hackborn wrote: > > Correct, end call can't be seen by applications at all, so you need to > > modify the platform. You can start wit

[android-developers] Re: New Screen

2009-09-11 Thread Mark Murphy
Boozel wrote: > I know this is probably a really stupid question but have tried for > ages and searched but cant get it to work. I'm trying to create a new > screen when an item in a list in my first screen is selected. i use > the code > Intent intent = new Intent(); > intent.setClass(t

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread Mark Murphy
Buzz Android wrote: > There is an AVD. Access to it has been one of the benefits of the > MOTODEV App Accelerator Program. Ah, that would explain matters. One of the annoyances of the App Accelerator Program is it expects me to lie on the application form to gain access ("What is the name of you

[android-developers] Re: Android License compatibility with LGPLd code

2009-09-11 Thread Yusuf Saib (T-Mobile USA)
I am not aware of any problems with developing an Android app that uses LGPL code. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile US

[android-developers] Re: ListView special case

2009-09-11 Thread Mark Murphy
sdphil wrote: > I have a ListView, and I want to do something special with the first > item in the listview. > > So, I setup an adapter, an item in separate xml a java wrapper for the > item and I have a "render()" method. > > Inside my render method, I realized that I can't do something like >

[android-developers] Re: Change Text in Text View

2009-09-11 Thread WoodManEXP
I think maybe where you have mInfo = ((TextView) findViewById(R.string.infomation)); it is not getting a view back. Usually R.string.information would be referring to a field like android:id="@+id/information" Which would be an attribute of the TextView from your layout XML file. You exam

[android-developers] ListView special case

2009-09-11 Thread sdphil
I have a ListView, and I want to do something special with the first item in the listview. So, I setup an adapter, an item in separate xml a java wrapper for the item and I have a "render()" method. Inside my render method, I realized that I can't do something like "findViewById(R.id.test)" beca

[android-developers] Re: MediaRecorder does'n work with incoming calls stream

2009-09-11 Thread jsdf
On Sep 6, 10:05 am, fritzZz wrote: > I have founded some app that records incoming calls, how do they > work? Are you sure they record incoming calls from both ends? I would think they can only record what the application owner is saying, and not what is coming down the call pipe. After extensi

[android-developers] Re: Change Text in Text View

2009-09-11 Thread Mark Murphy
Boozel wrote: > I'm trying to change the text in the text view section of a custom > layout. > I Just get a null pointer exception for some reason. Here is my code: > > package com.example.easychef; > > import android.app.Activity; > import android.os.Bundle; > import android.util.Log; > import

[android-developers] Re: how to use commons-net-2.0 lib in the emulator

2009-09-11 Thread Mark Murphy
manu wrote: > I'm having a problem with common-net 2.0 in android, when i invoke the > listFiles() method i ever get nothing, if i run the same code with SUN > JRE in get a big list of FTPFiles. Anyone can help me? Do you have the INTERNET permission in your application? Have you checked logcat

[android-developers] Re: Singleton Objects and Android

2009-09-11 Thread Yusuf Saib (T-Mobile USA)
When you close your application in Android, it does not shut down the same way a desktop app does; Android may keep the state around unless it needs the memory. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in the

[android-developers] Re: Battery Status and Signal Strength Acheivement

2009-09-11 Thread Alex Tang
Emulator can run, i will try it in real device. On Sep 12, 12:53 am, Dianne Hackborn wrote: > On Fri, Sep 11, 2009 at 9:10 AM, Alex Tang wrote: > > SystemProperties.get("status.battery.level_raw") > > can get battery status instantly! Like typing #getprop > > status.battery.level_raw in adb she

[android-developers] Re: how to use commons-net-2.0 lib in the emulator

2009-09-11 Thread manu
I'm having a problem with common-net 2.0 in android, when i invoke the listFiles() method i ever get nothing, if i run the same code with SUN JRE in get a big list of FTPFiles. Anyone can help me? --~--~-~--~~~---~--~~ You received this message because you are subs

[android-developers] Change Text in Text View

2009-09-11 Thread Boozel
I'm trying to change the text in the text view section of a custom layout. I Just get a null pointer exception for some reason. Here is my code: package com.example.easychef; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public

[android-developers] Custom controls

2009-09-11 Thread pro
I know this question has been brought up before. After looking at the android api example, playing with it in the emulator ( run and debug), I could not find a way to create *irregular shaped buttons*. The requirements are - 1) Button ( or the control ) can't have rectangular area ( visible or t

[android-developers] Re: Android market application on emulator

2009-09-11 Thread dhr
Looking for the same thing. This is what I found so far: http://forum.xda-developers.com/archive/index.php/t-529170.html After copying system.img to the avd folder and running the simulator, a message appears on the screen. It says "Welcome to Android Dev Phone 1. Tap the android to begin" And two

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread Buzz Android
There is an AVD. Access to it has been one of the benefits of the MOTODEV App Accelerator Program. There is no keyboard open portrait mode... Like the G1, portrait mode is considered to be when the keyboard is closed. When the keyboard is opened, the device enters landscape. Of course, like the G1

[android-developers] Re: for loop gives NullPointer Exception

2009-09-11 Thread Boozel
the condition buffer[i]!='\n' is never met so i gets larger than the array size i think what you need is buffer[i]!=null. '\n' is the new line character which is never in your array On Sep 11, 1:35 pm, Asif k wrote: > Hi all, > >   I am getting null pointer exception at the bellow mentioned lin

[android-developers] New Screen

2009-09-11 Thread Boozel
I know this is probably a really stupid question but have tried for ages and searched but cant get it to work. I'm trying to create a new screen when an item in a list in my first screen is selected. i use the code Intent intent = new Intent(); intent.setClass(this, Ingredients.class);

[android-developers] SearchManager

2009-09-11 Thread mardah
Hi I'm trying to understand how the SearchManager works. I have one activity "Activity A" from which I would like to invoke the Search UI. When the user enters a query and clicks search I would like to start a new activity "Activity B" that handles the query. How should I implement this? In the

[android-developers] Re: (unofficial) Bluetooth API v. 0.2

2009-09-11 Thread Shrenik Vikam
i have some question which are as follows so when the serial port server profile will be ported ?? can we customize bluecove api & use it on android ?? On Sep 11, 2:59 pm, Stefano Sanna wrote: > On Fri, Sep 11, 2009 at 6:57 AM, windstorm wrote: > > > Hi Stefano, thanks for your great effort! >

  1   2   >