[android-developers] Re: Confused about Timezones and Sqlite3

2010-08-09 Thread Sarwar Erfan
Hi, Conversion is a Java question, not related to Android though. Anyways, here is a catch --- in Java, the date is ALWAYS stored as UTC in "Date" object. You CANNOT convert its timezone (stored value will be always in UTC). However, you can print it in different timezones, that is here formatters

[android-developers] Re: Yet another Droid OpenGL texture problem

2010-08-09 Thread Mike
Well that wasn't it but you were on the right path. It is something to do with my texture selection. I took a break down at the local pub and after a few beers I saw much clearer. :) I'll post an update sometime tomorrow after I get everything nailed down completely. Thanks everyone for the help.

[android-developers] Re: Monkey Test

2010-08-09 Thread KVR
Thanks Naseer Is there any option for excluding ?? On Aug 9, 10:27 pm, Naseer wrote: > Exclude packages on an all packages run instead of including so many. > > On Aug 9, 2:09 pm, KVR wrote: > > > Hi All, > > I want to include about 40 packages in monkey command.But when I tried > > to inclu

[android-developers] Re: How to know the home launcher app packagename through programming?

2010-08-09 Thread manoj
I am getting the correct result if I have the only one home app (default home) is installed. If i have more than 1 home apps, I am getting the result w.r.t ResolveActivity. Now how can I resolve this? say, for example, 1. Android Home (action=MAIN, cat=LAUNCHER,HOME...etc). 2. MyHome(action=MAIN,

[android-developers] Re: AppWidget multiple sizes

2010-08-09 Thread kaundinya
Hi, How can i give an option for the user to select 3 options(news only, weather only, News and weather) in the dialog on load of the widget? On Aug 10, 3:23 am, mboehmer wrote: > How is this done for the News and Weather widget? After selecting it a > dialog opens and asks for which content (i.

[android-developers] Re: on sdcard, File.canRead() = true, File.canWrite() = false

2010-08-09 Thread Bob Kerns
Ah, yes, of course. That critical fact slipped my mind -- thanks Dianne! This is, of course, a major reason why ability to write to the SD card is controlled by an application permission. Even without the limitations of FAT, file ownership is a tenuous concept with removable media. I have scripts

[android-developers] Wifi-UPnP

2010-08-09 Thread msnkm
Hi, Im trying to Wifi UPnP(which comes along with froyo source code) but the build is failing. Has anybody tried building wpa_supplicant_6. Any help in this matter is appreciated Thanks & Regards msnkm -- You received this message because you are subscribed to the Google Groups "Android Develo

[android-developers] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-09 Thread sunrises
Hi, I have got the solution please refer the link http://groups.google.com/group/android-developers/browse_thread/thread/41852900bd603070/583943d91dc9f754?lnk=gst&q=insufficient+memory#583943d91dc9f754 , but I added the option "-partition-size 1024" in "run configurations"->"target"->"Additional Em

[android-developers] Build ID , Build Host

2010-08-09 Thread parag
hi all, What is the difference between build version build ID build Host android hardware version. the documentation does not clearly specify its usage. thanks in advance. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this g

[android-developers] Can I freely use the Android source?

2010-08-09 Thread kevin0228ca
Can I freely use the Android source? i.e: Can I take one of the bulit-in apps, then with no or minimal modifications to the oringinal contents, enhance it with new features, and publish as a new app? Thanks. -- You received this message because you are subscribed to the Google Groups "Android Dev

[android-developers] Re: how to get the screen size in inches...

2010-08-09 Thread Rob
Hopefully, when they fix the Droid it won't report 240. That's what the emulator reports with a screen size of 3.7 (diagonal) and WVGA854. I tried 240 on my Droid, and it's definitely not as accurate as 264. At 240 pixels/inch, the Droid would have a 2 inch wide screen. The actual width is 1.8

[android-developers] Re: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-09 Thread William Ferguson
I can't imagine why you care whether its on an external storage card embedded or inserted in the phone versus inside the platform storage space. As far as your app in concerned it is irrelevant. If you are worried about security of your images then excrypt them. On Aug 10, 2:05 pm, sunrises wro

[android-developers] Re: how to get different device Version

2010-08-09 Thread parag
hi all, when i check the settings--> about phone i can c the firmware information etc. i need to know a way to find those numbers. thanks in advance. On Aug 9, 4:21 pm, parag wrote: > hi DevDroid, > > Thanks for the quick response, > > i have tried that but it dosnt give me the versions that

[android-developers] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-09 Thread sunrises
HI, I have a lot of images which are approximately 30 MB,I had put them in assets folder but while try to run the emulator it shows the "Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE" in console,please me how to I need to use them for android application and I have tried by increasing hea

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Jitesh mishra
Okay that means user does'nt need to know the geocode of the location. Thanks a lot. On Tue, Aug 10, 2010 at 10:27 AM, Frank Weiss wrote: > The user can either enter an address and your app can geocode it or > the user can tap on the map and your app can get the lat long > coordinates of where t

Re: [android-developers] Re: Confused about Timezones and Sqlite3

2010-08-09 Thread Frank Weiss
Chances are you can google for ways to convert text to date data types. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to a

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Frank Weiss
The user can either enter an address and your app can geocode it or the user can tap on the map and your app can get the lat long coordinates of where the user tapped. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, s

[android-developers] Re: How to handle OutofMemoryError in a service?

2010-08-09 Thread Soumya
I would investigate the "root cause" of out of memory error instead of finding a way to restart your service/activity. On Aug 10, 12:34 am, doug wrote: > Hello, > > If my service encounters an OutofMemoryError when creating new > objects, what can I do to tell Android to restart my service later

[android-developers] Re: Yet another Droid OpenGL texture problem

2010-08-09 Thread Robert Green
Heh, I think I see your problem. Replace this.textureMap.put(new Integer(textureFiles[i]), new Integer(i)); With this.textureMap.put(new Integer(textureFiles[i]), new Integer(tmp_tex[i])); Droids don't number textures incrementally like qualcomms do. It was working because your texture ids hap

[android-developers] Re: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-09 Thread sunrises
Hi, thanks for your reply,but I should need to store them as phone memory,I did not get appropriate answer even I googled for the maximum project size for android and .apk file , I did lot of projects by downloading from net..I need alternative solution.. On Aug 10, 3:56 am, William Ferguson wrot

[android-developers] Re: how to get the screen size in inches...

2010-08-09 Thread Rob
Thanks, Mark. That seems to work. I'm using this: float pixels_per_X_inch = displayMetrics.xdpi; float pixels_per_Y_inch = displayMetrics.ydpi; if(Build.DEVICE.equals("sholes") && Build.MODEL.equals("Droid")) { pixels_per_X_inch = 264; // 480/(9*3

[android-developers] Microsphone cannot be recorded on android emulator

2010-08-09 Thread aftershock
Hi, A small program that I wrote cannot record the microphone. One api call, getminbuffersize keeps returning -2 which is not correct. The program works on a real android one. I use 11025Hz, 16bit pcm,mono recording.. Can you give me a suggestion what can be wrong? Thank you. aftershock --

Re: [android-developers] Re: ERROR IN "C:\Users\lenovo\Desktop\android-sdk_r06-windows\android-sdk-windows>>SDK Setup.exe"

2010-08-09 Thread Alex Xin
Try http, it works for me On Tue, Aug 10, 2010 at 12:25 PM, Bob Kerns wrote: > Has this (https) ever worked for anyone, ever? > > On Aug 9, 4:05 pm, Kwan Cheng wrote: > > I think you can fix it by turning "force http" its on the getting started > > page > > > > On Aug 9, 2010 4:46 PM, "izzet.ul

[android-developers] Re: Yet another Droid OpenGL texture problem

2010-08-09 Thread Nightwolf
Why do you set GL_TEXTURE_MIN_FILTER twice? Replace one of the calls with GL_TEXTURE_MAG_FILTER. On Aug 10, 5:22 am, Mike wrote: > Welp, I did even better. I went out and bought a Droid from > Craigslist. > > I logged the height and width of the bitmaps at each of the mipmap > levels and here's t

[android-developers] Re: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-09 Thread sunrises
Hi, thanks for your reply,but I should need to store them as phone memory,I did not get appropriate answer even I googled for the maximum project size for android and .apk file , I did lot of projects by downloading from net..I need alternative solution.. On Aug 10, 3:56 am, William Ferguson wrot

[android-developers] Re: ERROR IN "C:\Users\lenovo\Desktop\android-sdk_r06-windows\android-sdk-windows>>SDK Setup.exe"

2010-08-09 Thread Bob Kerns
Has this (https) ever worked for anyone, ever? On Aug 9, 4:05 pm, Kwan Cheng wrote: > I think you can fix it by turning "force http" its on the getting started > page > > On Aug 9, 2010 4:46 PM, "izzet.ulas" wrote:> I've been > taking "Failed to fetch URL > > https://dl-ssl.google.com/android/r

[android-developers] Re: Confused about Timezones and Sqlite3

2010-08-09 Thread Bara
Ahh, that makes a lot more sense. Now, when you say "always use UTC" (which makes more sense to me), how exactly would I convert a time to a different timezone? In my original question I asked "How would I go about converting a string like "8-8-2010 11:00 AM EST" into the proper format for sqlite

[android-developers] Re: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-09 Thread sunrises
Hi, thanks for your reply,but I should need to store them as phone memory,I did not get appropriate answer even I googled for the maximum project size for android and .apk file , I did lot of projects by downloading from net..I need alternative solution.. On Aug 10, 3:56 am, William Ferguson wrot

[android-developers] Do we need to call System.gc() ?

2010-08-09 Thread Alex Xin
Hi, Do we need to call System.gc() to indicate that system should do a garbage collection or just let system to choose when to collect garbage and free it? Because my app will random FCs on certain phones, but if I add some calls to System.gc(), then there were no FCs. Thanks & BRs, Alex -- Y

Re: [android-developers] Opening a context menu in the onCreate of an activity

2010-08-09 Thread Chris Stewart
I should also say that I'm kind of searching for a best practice here as well. I get the vibe that opening the context menu in this way may not be the most sound way of doing it, but hey, if it works and it's not troublesome for the user, that works for me. Regards, Chris Stewart Fantasy Footba

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Jitesh mishra
Sorry may be I am not clear to you, actually suppose a client want to set the location of a place in the app's map then does he need to know the geocode or he can directly set it in the map only. thanks for all your help and assistance. On Tue, Aug 10, 2010 at 9:13 AM, Frank Weiss wrote: > Well,

[android-developers] Re: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-09 Thread sunrises
Hi, thanks for your reply,but I should need to store them as phone memory,I did not get appropriate answer even I googled for the maximum project size for android and .apk file , I did lot of projects by downloading from net..I need alternative solution.. On Aug 10, 3:56 am, William Ferguson wrot

Re: [android-developers] Opening a context menu in the onCreate of an activity

2010-08-09 Thread Chris Stewart
I have tried variations of that but getting the View is where I'm falling short. Something like: registerForContextMenu(this.getCurrentFocus()); openContextMenu(this.getCurrentFocus()); I'm not sure what View I should be passing in as right now this Activity doesn't really have any UI components

Re: [android-developers] Opening a context menu in the onCreate of an activity

2010-08-09 Thread TreKing
On Mon, Aug 9, 2010 at 10:44 PM, Chris Stewart wrote: > I'm not finding a way to do what I'm after and was wondering if anyone has > run into this before and how they solved it. I'm sure you tried this already, yes? http://developer.android.com/reference/android/app/Activity.html#openContextMenu

[android-developers] Re: Has anyone gotten Point Sprites to work?

2010-08-09 Thread iconnary
Ok, good to know that they are supported. The Galaxy wallpaper even runs on my phone. Are there any source code examples showing how to use point sprites in Android? I've found a number of helpful iPhone sample projects demonstrating GL_POINT_SPRITE_OES and GL_POINT_SIZE_ARRAY_OES usage, but th

Re: [android-developers] How to determine that an activity was brought to the foreground from the home screen vs. another activity

2010-08-09 Thread TreKing
That should be "how your app functions". On Mon, Aug 9, 2010 at 10:41 PM, TreKing wrote: > On Mon, Aug 9, 2010 at 7:25 PM, jsera wrote: > >> Other than some convoluted hacks, I don't know how to make this >> determination. >> > > Convoluted hacks are basically your option. This really shouldn't

[android-developers] Re: AsyncTask and UI activity

2010-08-09 Thread Bob Kerns
I recommend you display a great big message saying "do not disturb!" while the restore occurs. You can't actually block the user, for example, from the home key, or the power key... So I'd suggest transactionalizing things as much as possible. Read a set of related files (e.g. for one app) all at

[android-developers] Opening a context menu in the onCreate of an activity

2010-08-09 Thread Chris Stewart
I have a need to capture some user input when an activity opens for the first time. I'm hoping to give the user a list of options to select from, which will be pulled in dynamically. I'll then store the selected value locally for future use. I'm not finding a way to do what I'm after and was won

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Frank Weiss
Well, it's not clear what you mean by "all locations". Most of us map builders already have a database of the points of interest that are to be displayed on the map. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, sen

Re: [android-developers] How to determine that an activity was brought to the foreground from the home screen vs. another activity

2010-08-09 Thread TreKing
On Mon, Aug 9, 2010 at 7:25 PM, jsera wrote: > Other than some convoluted hacks, I don't know how to make this > determination. > Convoluted hacks are basically your option. This really shouldn't matter in general and I'd recommend you rethink you your app functions. Giving the user the option

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Jitesh mishra
First difficulty I am facing is That where can we get geocode of all locations and another thing if there is any other way to set the location with the help of Location name only. On Tue, Aug 10, 2010 at 2:22 AM, TreKing wrote: > On Mon, Aug 9, 2010 at 12:15 PM, Jitesh mishra wrote: > >> I am ne

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Anthon Bob
Okay I moved it and less errors are present now. However, ArrayList is underlined. Am I supposed to declare that as a variable? On Mon, Aug 9, 2010 at 9:33 PM, Frank Weiss wrote: > Thanks for getting down to the brass tacks. > > First, that field (aka member) declaration and initialization shoul

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Frank Weiss
Thanks for getting down to the brass tacks. First, that field (aka member) declaration and initialization should go inside the class declaration, not before it. Next is Java Generics, a powerful Java language feature that takes some time getting used to. Here's the official story: http://www.orac

[android-developers] Re: how can I check my app stopped by which home key or other apps

2010-08-09 Thread optimusgeek
Thank you all. Here is what I'm doing. I'd like to register a notification as 'ongoing' when my app being invisible by only Home key. but on second thought, It's meaningless as your opinions. There's not different one app between home screen from application aspect. I do not notice that It's all ab

[android-developers] Re: Yet another Droid OpenGL texture problem

2010-08-09 Thread Mike
Welp, I did even better. I went out and bought a Droid from Craigslist. I logged the height and width of the bitmaps at each of the mipmap levels and here's the output: DEBUG/Texture(1558): Texture image loaded at 256 x 256 DEBUG/MMTexture(1558): Texture image loaded at 128 x 128 DEBUG/MMTexture(

Re: [android-developers] How to handle OutofMemoryError in a service?

2010-08-09 Thread Jenus Dong
Service is bound to acrtivity, this kind of service you can control. So if service has encounted an OutofMemoryError, the OS could restart your activity, you can restart your service in the activity, eg, OnCreate, OnRestart. On Tue, Aug 10, 2010 at 7:34 AM, doug wrote: > Hello, > > If my service

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Anthon Bob
This part: Part 2: Adding Overlay Item I'll elaborate. first of all, they say to put this line "private ArrayList mOverlays = new ArrayList();" before HelloItemizedOverlay class. I did that. Is something supposed to go into parameter or is it supposed to say like that? Secondly, mOverlays is gi

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Frank Weiss
What part of the Hello, MapView tutorial are you having trouble with? http://developer.android.com/intl/de/guide/tutorials/views/hello-mapview.html -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Anthon Bob
I really need the help since I have been stuck at this phase for a lng time. Please do help if you can! I'll truly appreciate it!! On Mon, Aug 9, 2010 at 8:45 PM, Anthon Bob wrote: > I have gone through it. I am reading it as we speak. Still, I'm getting > some trouble. Do you think you can

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Anthon Bob
I have gone through it. I am reading it as we speak. Still, I'm getting some trouble. Do you think you can assist? On Mon, Aug 9, 2010 at 8:43 PM, Frank Weiss wrote: > Anthon, if you had gone through and studied the MapView tutorial, I > think you wouldn't be asking those kind of basic questions

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Frank Weiss
Anthon, if you had gone through and studied the MapView tutorial, I think you wouldn't be asking those kind of basic questions. -- 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@googlegr

[android-developers] Re: Yet another Droid OpenGL texture problem

2010-08-09 Thread String
Can I suggest you stick a Log call in with your actual loaded texture sizes? Something like the following: Log.i(TAG, "Texture image loaded at " + mapImage.getWidth() + " x " + mapImage.getHeight()); Then get one of the Droid/Milestone users to shoot you a logcat output... xda-devs folks ough

[android-developers] How to determine that an activity was brought to the foreground from the home screen vs. another activity

2010-08-09 Thread jsera
So I'm writing a news app that has to periodically refresh it's database of articles. I want to refresh after a certain amount of time has passed. I could check in the onStart of every activity, but then I'd wind up refreshing, and preventing user interaction in the middle of an app "session". If

[android-developers] WifiInfo. getLinkSpeed : uplink or downlink?

2010-08-09 Thread j
I need the Wifi link speed for the smaller of uplink speed and downlink speed. What does WifiInfo's getLinkSpeed return? The documentation doesn't say. Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send e

[android-developers] Re: AppWidget multiple sizes

2010-08-09 Thread String
On Aug 9, 11:23 pm, mboehmer wrote: > How is this done for the News and Weather widget? After selecting it a > dialog opens and asks for which content (i.e. size) the user wants to > have. Is that on HTC's Sense UI? If so, their widgets are "baked in" to the home screen and don't have to follow

[android-developers] Re: Website for your app, how important do you feel it is?

2010-08-09 Thread Doug
In case people don't know this, you can create a "product web site" with facebook that you don't have to be a facebook member to see. You do have to have a facebook account yourself, and if someone wants to post or discuss, they have to have accounts. It's a perfectly usable place to share genera

[android-developers] Re: Yet another Droid OpenGL texture problem

2010-08-09 Thread Mike
Yep I ran into that as well. My textures are all 128x128 and 256x256 On Aug 9, 6:43 pm, Robert Green wrote: > Let me add that when mipmapping, the textures must not only be power- > of-two but also square, meaning 256x256, not 128x256 like you can > normally do. > > On Aug 9, 4:11 pm, Mike wrote

[android-developers] Re: Yet another Droid OpenGL texture problem

2010-08-09 Thread Robert Green
Let me add that when mipmapping, the textures must not only be power- of-two but also square, meaning 256x256, not 128x256 like you can normally do. On Aug 9, 4:11 pm, Mike wrote: > I am. That's what's so perplexing. > > On Aug 9, 3:56 pm, Tom wrote: > > > > > Make sure that you are loading your

[android-developers] Re: POJO junit test in an Android project

2010-08-09 Thread doug
Oh well, It doesn't seem that the Eclipse plug-in would even run a test case subclassed directly from junit.framework.TestCase. How do folks test POJOs in Android then? Thanks, doug -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] How to handle OutofMemoryError in a service?

2010-08-09 Thread doug
Hello, If my service encounters an OutofMemoryError when creating new objects, what can I do to tell Android to restart my service later? I thought about Alarm but then I can't create a pending intent in the OutofMemoryError situation... Thanks, doug -- You received this message because you ar

Re: [android-developers] AsyncTask and UI activity

2010-08-09 Thread TreKing
On Mon, Aug 9, 2010 at 3:25 PM, Kim Damevin wrote: > Well, I saw several posts saying that the activity app should "not be > blocked" while the async task is running in background. I've never seen that. You may be confusing "do not block the UI thread" which is a different matter.

Re: [android-developers] Webview of local webpage shows cluttered/repeated text

2010-08-09 Thread Mark Murphy
On Mon, Aug 9, 2010 at 7:03 PM, jb wrote: > I display a local webpage (located in my 'assets' directory) within a > Webview. Try using: mWebView.loadUrl("file:///android_asset/signPostContent.html"); instead. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy

[android-developers] POJO junit test in an Android project

2010-08-09 Thread doug
Hello, If I create a "tests" directory in my Eclipse Android project to hold POJO junit test cases derived from junit.framework.TestCase, will the Eclipse plug-in exclude those test classes when packaging the apk? Thanks, doug -- You received this message because you are subscribed to the Goog

[android-developers] Re: Does a contact have a phone number?

2010-08-09 Thread William Ferguson
http://developer.android.com/reference/android/provider/ContactsContract.Contacts.html See Contacts#HAS_PHONE_NUMBER On Aug 7, 10:24 pm, Kanodi wrote: > Hi all, > >    I am trying to write a simple function that determines if a contact > has a phone number or not. And am not having any luck wha

Re: [android-developers] ERROR IN "C:\Users\lenovo\Desktop\android-sdk_r06-windows\android-sdk-windows>>SDK Setup.exe"

2010-08-09 Thread Kwan Cheng
I think you can fix it by turning "force http" its on the getting started page On Aug 9, 2010 4:46 PM, "izzet.ulas" wrote: > I've been taking "Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, > reason: Connection timed out: connect" error for 2 weeks. I am getting

Re: [android-developers] Re: Error after publishing

2010-08-09 Thread Kwan Cheng
This is a tricky error. I've seen this a lot on my own programs. There is no way to help you unless the source is available. Try to run the program in debug mode on the device. It will usually break at the point of the null pointer exception. It is most likely because the acidity thread got

[android-developers] Webview of local webpage shows cluttered/repeated text

2010-08-09 Thread jb
Hi, I display a local webpage (located in my 'assets' directory) within a Webview. The webpage is almost exclusively text. When displayed, the middle third of the body of text appears to be repeated multiple times, and makes the text appear very cluttered. I ran the webpage through the W3C html v

[android-developers] Re: BitmapFactory.decodeResource, Multiple Resolution Support and SurfaceViews

2010-08-09 Thread Greg
Anyone? Still horribly stuck and confused... On Aug 7, 2:06 pm, Greg wrote: > I am having an issue understanding how to get Bitmaps from resources > in density specific directories to scale properly when drawing them to > a Surface View.  If I have a resource in folder "drawable" I expect it > t

[android-developers] Re: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-09 Thread William Ferguson
Don't include them with your application. When the application first starts, if the external storage contains enough space, download your images and store them there. For what its worth, I wouldn't download an mobile app that was 30MB, On Aug 9, 10:03 pm, Rahul wrote: > Hi, > > I have the same pr

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Anthon Bob
Is geocode lat/long or the micro degrees? Also, if I have all the geocodes typed up, how do I utilize that? Do I have to create a new class to create itemized overlay with arrays? On Mon, Aug 9, 2010 at 6:11 PM, Frank Weiss wrote: > I'm assuming that the data you want to save includes a geocode

Re: [android-developers] An alternative for android-market-api

2010-08-09 Thread Shane Isbell
I'm not aware of any alternative but I've found the API works very well. The thing is Android Market itself doesn't play nice so you just need to make sure that your use of the API is robust to failures (sometimes Android Market logs you out, or throttles you or you gives an invalid result...). On

Re: [android-developers] How to set data in google maps and further access that data

2010-08-09 Thread Frank Weiss
I'm assuming that the data you want to save includes a geocode (lat/long) and some additional data, such as title. The answer to your question can get quite elaborate, depending on the details. However, I suggest you start with the simplest thing that work. That would probably be see the marker and

Re: [android-developers] Has anyone gotten Point Sprites to work?

2010-08-09 Thread Romain Guy
The Galaxy live wallpaper is implemented with point sprites :) So yes, they work and they are supported. On Mon, Aug 9, 2010 at 2:37 PM, iconnary wrote: > I'm developing on a Droid, version 2.1update.  My supported GL > extensions include GL_OES_point_sprite and GL_OES_point_size_array. > > I am

Re: [android-developers] Re: AppWidget multiple sizes

2010-08-09 Thread Mark Murphy
On Mon, Aug 9, 2010 at 6:23 PM, mboehmer wrote: > How is this done for the News and Weather widget? After selecting it a > dialog opens and asks for which content (i.e. size) the user wants to > have. It doesn't do that on my Nexus One. It asks what content I want, but the size is the same. --

[android-developers] Re: Error after publishing

2010-08-09 Thread HIRAK
This is the stacktrace I received, when I published the app. Now, nowhere in the stacktrace, my classes are mentioned. So I am not able to understand, where the code is breaking. So I thought, if anybody can give me some hint, about how to go forward with solving this issue. On Aug 8, 2:52 am, T

Re: [android-developers] Re: on sdcard, File.canRead() = true, File.canWrite() = false

2010-08-09 Thread Dianne Hackborn
You can't change the permissions on stuff in external storage. That uses a FAT filesystem, which doesn't have permissions, so all files there simply immutably use the permissions of the mount point. On Mon, Aug 9, 2010 at 11:46 AM, Bob Kerns wrote: > Kostya and Mark answered your main question;

[android-developers] Re: AppWidget multiple sizes

2010-08-09 Thread mboehmer
How is this done for the News and Weather widget? After selecting it a dialog opens and asks for which content (i.e. size) the user wants to have. On 10 Aug., 00:04, Mark Murphy wrote: > Have two elements with two separate metadata files with the > two sizes, presumably. > > On Mon, Aug 9, 2010

Re: [android-developers] Re: is there any API available to receive the broadcast receiver for app started.

2010-08-09 Thread Frank Weiss
Indicator, I don't understand why you repeat the erroneous "launching another app". Correct me if I'm wrong, when you tap an icon on the home screen what's happening is that an intent is being sent which starts an activity in a particular package. That package's application context may already be "

[android-developers] An alternative for android-market-api

2010-08-09 Thread mboehmer
So far I have been using the android-market-api as provided at http://code.google.com/p/android-market-api/ to retrieve information on apps from the Market. But this client does not work very well and not every request returns a result. Does anybody know, if there is any good alternative to query t

Re: [android-developers] AppWidget multiple sizes

2010-08-09 Thread Mark Murphy
Have two elements with two separate metadata files with the two sizes, presumably. On Mon, Aug 9, 2010 at 5:30 PM, Fernando T wrote: > I'm looking at creating an AppWidget and want to have the user select > which size they want before adding it. Thus, the user can choose 1x1, > 2x2, etc. The Cal

[android-developers] Re: Populating custom layout from xml resource.

2010-08-09 Thread gnugu
Here is the solution. Thank you Mark Murphy for you guidance and for the excerpt from your book (found on the link you provided above). The purpose of this exercise is to use ListView for app navigation instead of a menu. In /res/layout create menu_list_item.xml: http://schemas.android.com/apk/r

Re: [android-developers] Re: developing with htc aria

2010-08-09 Thread Kostya Vasilyev
FWIW - I only have experience with an HTC Hero, not Aria. It is necessary to select HTC Sync *in the phone* for it to connect with the ADB driver. Having HTC Sync installed in Windows is not necessary, and I suspect might even be detrimental. The phone never finds the Sync app in Windows, and disp

[android-developers] Re: Detecting activity' fresh start

2010-08-09 Thread Pinheiro
Thanks a lot, TreKing! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com Fo

[android-developers] Re: developing with htc aria

2010-08-09 Thread Joseph Earl
Providing a driver for the HTC Aria is probably up to HTC and not Google, though I could be wrong. Try contacting HTC support and searching Google to see if others have had the same issue. HTC Sync works fine for me with various HTC devices on Windows 7 Professional (though I do not have the Aria I

[android-developers] Has anyone gotten Point Sprites to work?

2010-08-09 Thread iconnary
I'm developing on a Droid, version 2.1update. My supported GL extensions include GL_OES_point_sprite and GL_OES_point_size_array. I am unable to get point sprites to render.The code below throws UnsupportedOperationException from GLWrapperBase at the glTexEnvi call.If I disable textures a

[android-developers] AppWidget multiple sizes

2010-08-09 Thread Fernando T
I'm looking at creating an AppWidget and want to have the user select which size they want before adding it. Thus, the user can choose 1x1, 2x2, etc. The Calendar widget in Android 2.2 (and possibly earlier, but not in 1.6) does this. How is this done? -- You received this message because you are

Re: [android-developers] Re: Content provider doubt

2010-08-09 Thread Kostya Vasilyev
I'd like to further clarify one important benefit of ContentProvider lifecycle management for an application with multiple Activities that need to share data. Putting a database into a Service means that, to use the database, an Activity needs to bind to the Service. Binding is asynchronous, so th

Re: [android-developers] Detecting activity' fresh start

2010-08-09 Thread TreKing
On Mon, Aug 9, 2010 at 4:25 PM, Pinheiro wrote: > How can we detect if an Activity is run for the 1st time? The savedInstanceState Bundle passed to you is null the first time through. It is non-null if you're being restored (from a screen rotation or otherwise), in which case it contains the da

[android-developers] Re: hi, i'm newbie in android, i wonder about float dp...

2010-08-09 Thread Joseph Earl
Your calculation is wrong, it should be buttonWidth = (currentDPI/160)*100; So if currentDPI = 240 then buttonWidth = 150px Instead of using (currentDPI/160) use final float scaleDPI = getContext().getResources().getDisplayMetrics().density; and then buttonWidth = scaleDPI*100; See http://dev

Re: [android-developers] Backup file

2010-08-09 Thread Mark Murphy
On Mon, Aug 9, 2010 at 5:19 PM, Arthur Neves wrote: > Ok, this is the thing that I wanna make sure,... so I have to make one > screen for it, right? How you implement it from a UI standpoint is up to you. An activity with options to back up and restore the data seems like a reasonable choice, tho

[android-developers] Detecting activity' fresh start

2010-08-09 Thread Pinheiro
Hi! How can we detect if an Activity is run for the 1st time? I mean, it's run just after the user clicked on the icon in the homescreen and not after some event like screen rotation? For instance: public class Incoming extends Activity { private boolean firstrun=true; @Override

[android-developers] Launching barcode reading from browser

2010-08-09 Thread m
On the Google Products page, from an Android device, there is a "scan barcode" button that launches a 3rd party barcode scanning app, which returns results back to the browser. 1) How did they do this? 2) Is this available for any web developer to do, or a Google -> Google api only? -- You rec

[android-developers] Re: Can't make restartPackage() / killBackgroundProcesses() to work

2010-08-09 Thread Indicator Veritatis
That depends on where you draw your line to decide what is in and outside of the "black box". If you use JUnit, and have all your Applications under test inherit from the basic test (TestCase), can't you get the "black box" test effect you desire? On Aug 9, 3:56 am, Fabrizio Giudici wrote: >

Re: [android-developers] Backup file

2010-08-09 Thread Arthur Neves
Ok, this is the thing that I wanna make sure,... so I have to make one screen for it, right? On Mon, Aug 9, 2010 at 5:16 PM, Mark Murphy wrote: > On Mon, Aug 9, 2010 at 5:11 PM, Arthur Neves wrote: > > No, I did not reject, I just reject the idea to send the backup file to a > > server, because

[android-developers] Re: on sdcard, File.canRead() = true, File.canWrite() = false

2010-08-09 Thread john brown
SOLVED! THANK YOU Android-Developers group! Thank you so much for your help. It is wonderful to have someplace to go for answers. John Brown On Aug 9, 11:59 am, john brown wrote: > Hello, > > Documentation source > >http://developer.android.com/guide/topics/data/data-storage.html > > "Every An

Re: [android-developers] Backup file

2010-08-09 Thread Mark Murphy
On Mon, Aug 9, 2010 at 5:11 PM, Arthur Neves wrote: > No, I did not reject, I just reject the idea to send the backup file to a > server, because I don`t have a server, and also this files cannot go a > server side because they have some information that must be safe. That's rejecting the BackupM

[android-developers] Re: Content provider doubt

2010-08-09 Thread Indicator Veritatis
Kostya hit the nail on the head: the biggest benefit provided by ContentProvider and ContentResolver is probably just that, that it provides lifecycle management on top of database queries. There are also other benefits, such as insulating from the particulars of database, but since we are tied to

[android-developers] Re: Yet another Droid OpenGL texture problem

2010-08-09 Thread Mike
I am. That's what's so perplexing. On Aug 9, 3:56 pm, Tom wrote: > Make sure that you are loading your textures from the drawable-nodpi > resource > directory:http://www.anddev.org/opengl_textures_-_motorola_droid-t10930.html > > On Aug 9, 1:07 pm, Mike wrote: > > > > > I'm getting white (blank

Re: [android-developers] Backup file

2010-08-09 Thread Arthur Neves
No, I did not reject, I just reject the idea to send the backup file to a server, because I don`t have a server, and also this files cannot go a server side because they have some information that must be safe. about this just work in Android 2.2, it`s not a problem On Mon, Aug 9, 2010 at 5:0

[android-developers] Re: is there any API available to receive the broadcast receiver for app started.

2010-08-09 Thread Indicator Veritatis
The real solution is: study http://developer.android.com/guide/topics/fundamentals.html, especially the parts on lifecycles of activities, services and broadcast receivers (http://developer.android.com/guide/topics/ fundamentals.html#lcycles). Then take into account what Dianne said (that there is

  1   2   3   4   >