[android-developers] Re: How to create a file outside the application?

2010-05-28 Thread pramod.deore
Is that mean there is no any other way to maintain the record of IMEI number if GPS is not active on phone and SDCard is not present? -- 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@g

Re: [android-developers] Re: How to create a file outside the application?

2010-05-28 Thread Frank Weiss
It sounds like you're ultimately looking for a TPM. It really has to be part of the hardware, and it has to be unerasable. -- 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.

[android-developers] how to solve the process is bad in the android widget

2010-05-28 Thread igo where
hi,everyone, when i use the widget, i occur the following issue. 05-28 12:01:14.937: WARN/ActivityManager(52): Unable to launch app com.mmtimer/10024 for broadcast Intent { act=android.appwidget.action. APPWIDGET_ENABLED cmp=com.mmtimer/.MMWidget }: process is bad 05-28 12:01:14.947: WARN/ActivityM

[android-developers] Re: API call from browser

2010-05-28 Thread Rajnikant
Any thoughts??? On May 28, 7:35 am, Rajnikant wrote: > Hi All, > > I have list key note speech on launch of Android 2.2, > > I want to try with few of its features, specifically making API call > from Browser. > > Can somebody tell me, what could be the approach to make API call from > Browser? >

[android-developers] Loaded time zone names infinite loop issue

2010-05-28 Thread croco
Hi all, I was wondering why my app slow down anormally ... showing DDMS i figureout the following stacktrace goes indefenetly. i'm on android 1.6. I think befaore i didn't got this issue and i've no idea why this come. I show here and there not use toString on Date but i don't do that and all my

[android-developers] Re: EditText is unuseful on widget

2010-05-28 Thread chaitanya
This is because EditText is not supported by the AppWidget framework. here is a list of Views which you can use in the widget UI * AnalogClock * Button * Chronometer * ImageButton * ImageView * ProgressBar * TextView For more info read this page http://developer.and

[android-developers] Re: How to update a Widget dynamically (Not waiting 30 min for onUpdate to be called)?

2010-05-28 Thread James W
Those broadcast actions are definitely what you want: http://developer.android.com/reference/android/net/wifi/WifiManager.html Then just register for them in your widgets manifest, for example: Then override your AppWidget's onReceive, and handle that Intent when it arrives: pub

[android-developers] Re: How to create a file outside the application?

2010-05-28 Thread pramod.deore
Hi, >. Your only other real alternative is to write this information back to your own server somewhere. But suppose in my phone GPRS is not active, and I don't have SDcard, and I want to save the record of IMEI numbers that have already used the trial version of application. So how I can restrict

[android-developers] Re: Best way to live demo apps

2010-05-28 Thread DonFrench
DroidAtScreen (http://blog.ribomation.com/2010/01/21/droidscreen/) works great in my experience. Just hook up a projector and your Android to your PC and then demo your program right from your phone. Fast action animation will suck but otherwise it works fine. It works better than the emulator an

[android-developers] Re: Couldn't get the seekbar by findViewById

2010-05-28 Thread Jeruliu
Wow, thanks Mark, you are absolutely not just a common guy!!! On May 29, 2:09 am, Mark Murphy wrote: > Jeruliu wrote: > > I'm building a dialog including seekbar but i can't locate the seekbar > > by findViewById, it only returns nullpoint. > > > My code: > > Context mContext = this; > >        

Re: [android-developers] WebView encoding? why?

2010-05-28 Thread Frank Weiss
I think your puzzlement is well justified. It would seem to make more sense that the first parameter should be byte[] instead of String. Without looking at the Android source, I have some hypothesis: 1. The loadUrl() method indicates mimeType may be "image/jpeg" and encoding may be "base64". In t

RE: [android-developers] [android-developer] Error running jena on Android using Androjena API

2010-05-28 Thread Ted Neward
Generally it's impolite to send attachments to a mailing list-if somebody's going to offer to help, you can send them the attachment off-list. Otherwise you're just filling up other peoples' inboxs (and deleted items) folders with larger amounts of spam. :-) A VerifyError usually is only thrown

RE: [android-developers] Best way to live demo apps

2010-05-28 Thread Ted Neward
What about one of those magnifier overhead projectors from back in the 70s or so? Not the transparency ones, the ones that essentially point a camera at the base and project up onto the screen. You hold (or set) the phone underneath it, and voila, you now have two screens, one from your laptop and

[android-developers] EditText is unuseful on widget

2010-05-28 Thread Wenqin Li
Dear all, When I making widget with using EditText,DDMS print a exception as "class not construction".Once I remove the EditText,the widget work well.I couldn't understand why? Can anyone else fix the bug? -thanks -- You received this message because you are subscribed to the Google Groups "

[android-developers] Re: MapView Overlay Location Way Off

2010-05-28 Thread jtkendall
Turns out my latitude and longitude's were not being converted to microdegrees correctly. Taking the latitudes and longitudes and converting them from 37.331689 and -122.030731 to 37331689 and -122030731 were actually ending up as 3700 and -12200. I was using double*1E6 to convert to microd

[android-developers] Re: Scan wireless networks periodically

2010-05-28 Thread Charly
Thank you for the replies. Finally I decided to implement a Handler object and it works fine. -- 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

[android-developers] Re: Stalling widget buttons after some time

2010-05-28 Thread Dirk Vranckaert
I just had the issue also on my device. Strangly when I noticed it has been little longer than 24 hours since I added the widget. And 24 hours is the updateperiod I've set. Could it really have anything to do with that and if so, what??? Can't I just disable the updatePeriod? Dirk On May 29, 12:

Re: [android-developers] Re: Best way to live demo apps

2010-05-28 Thread Chi Kit Leung
I am using a emulator. This will be better and using somethings like Cam Studio to take a video of PC screen. On Sat, May 29, 2010 at 10:42 AM, Mark Murphy wrote: > Wayne Wenthin wrote: > > don't some of the newer phones have output ports? I thought a couple > > of them even did 720p > > At lea

Re: [android-developers] Re: Best way to live demo apps

2010-05-28 Thread Mark Murphy
Wayne Wenthin wrote: > don't some of the newer phones have output ports? I thought a couple > of them even did 720p At least with the EVO 4G, one review indicated it only played video (and...gallery images?), not the Android home screen or regular activities. I haven't picked up the right HDMI c

Re: [android-developers] Re: Best way to live demo apps

2010-05-28 Thread Wayne Wenthin
don't some of the newer phones have output ports? I thought a couple of them even did 720p On Fri, May 28, 2010 at 5:17 PM, Yahel wrote: > Keep in mind that Android is a geek thing, it was never meant for > marketing. It's build by geek for geeks :) As opposed to iphone which > was build from

[android-developers] Re: Best way to live demo apps

2010-05-28 Thread Yahel
Keep in mind that Android is a geek thing, it was never meant for marketing. It's build by geek for geeks :) As opposed to iphone which was build from day one with marketing in sight. So video feed from the device was mandatory. The Android team seems more composed of huge engineers-techno-nerds w

[android-developers] Re: where is the sdcard in emulator 2.2?

2010-05-28 Thread karteek
> > > i am working with eclips with the new SDK2.2. while creating u r avd(emulator) there is option called sdcard size you need to mention size and in the below there is option called property there include sdcard support option On May 28, 2:37 pm, coolbanana wrote: > yes,  i did it, > > but i c

[android-developers] Re: SPP bluetooth

2010-05-28 Thread DonFrench
I notice that the UUID you are using differs slightly from the one in the final line of the log, where it says onUuidChanged. Could you be using the wrong UUID? On May 28, 2:10 pm, Robert Armstrong wrote: > I managed to transfer a file from the host PC to the HTC Desire using > Bluetooth - see W

Re: [android-developers] Re: Drawable resource images

2010-05-28 Thread Romain Guy
According to the Java Language Specifications: "An identifier is an unlimited-length sequence of Java letters and Java digits, the first of which must be a Java letter." (Section 3.8) On Fri, May 28, 2010 at 4:18 PM, Mark Murphy wrote: > John Gaby wrote: >> Thanks for the reply.  Is there a max

Re: [android-developers] Re: Drawable resource images

2010-05-28 Thread Mark Murphy
John Gaby wrote: > Thanks for the reply. Is there a maximum length to the name of a > drawable resource? Probably. Whatever the maximum length of a Java identifier is would likely be the limiting factor. Don't know what that is off the top of my head though. 256? 128? -- Mark Murphy (a Commons

[android-developers] Re: Drawable resource images

2010-05-28 Thread John Gaby
Thanks for the reply. Is there a maximum length to the name of a drawable resource? On May 28, 4:02 pm, Mark Murphy wrote: > John Gaby wrote: > > Can I have sub-folders to hold my drawable resources.  For example can > > I store an image in, say, 'res/drawable/content/images/myimage.jpg' > > an

[android-developers] Re: Problem in programmatically installing a 3rd party App onto the SD card

2010-05-28 Thread chaitanya
Thanks Mark. Always good to learn some industry standards. I still am not able to figure out why the intent cannot find out the AndroidManifest.xml file in the apk which I am downloading from androidfreeware.org . Aw, if you do have any clue about it let me know or I will dig into it all night.

Re: [android-developers] Drawable resource images

2010-05-28 Thread Mark Murphy
John Gaby wrote: > Can I have sub-folders to hold my drawable resources. For example can > I store an image in, say, 'res/drawable/content/images/myimage.jpg' > and then find that resource via a call to: > > id = > context.getResources().getIdentifier("com.mycompany.myprog:drawable/ > content/ima

Re: [android-developers] Best way to live demo apps

2010-05-28 Thread Mark Murphy
Stu wrote: > I want to be able to perform live demos of an app I've been working at > conferences. > > There doesn't seem to be an easy way to get a video feed of what's > going on onscreen onto a big screen. > > We've hooked up the screen capture utility of DDMS and keep hitting > refresh. Its n

[android-developers] Drawable resource images

2010-05-28 Thread John Gaby
Can I have sub-folders to hold my drawable resources. For example can I store an image in, say, 'res/drawable/content/images/myimage.jpg' and then find that resource via a call to: id = context.getResources().getIdentifier("com.mycompany.myprog:drawable/ content/images/myimage", null, null); I h

[android-developers] Re: SPP bluetooth

2010-05-28 Thread msellner
Could you post more source code so we could see exactly how you're attempting the communication? On May 28, 4:10 pm, Robert Armstrong wrote: > I managed to transfer a file from the host PC to the HTC Desire > usingBluetooth- see Word document supplied > here:-http://forum.vodafone.co.uk/topic/5

[android-developers] Best way to live demo apps

2010-05-28 Thread Stu
I want to be able to perform live demos of an app I've been working at conferences. There doesn't seem to be an easy way to get a video feed of what's going on onscreen onto a big screen. We've hooked up the screen capture utility of DDMS and keep hitting refresh. Its not ideal. I'm aware that th

[android-developers] Re: Stanford researchers looking for a programmer in Silicon Valley to write code for two Android apps

2010-05-28 Thread Phil Montgomery
I'm also looking for two Android developers in the bay area - so if you get too many replies Eric, please send them my way.. I have a similar research project, but it's passively collecting data for use in a new type of security approach - perhaps we could get together and compare notes, as our da

[android-developers] WebView encoding? why?

2010-05-28 Thread Angelo
Hello all, I have started to work with the WebView component of Android Platform, but the API to load data to the component is confusing me, because it includes a parameter with a encoding. In both methods: public void loadData (String data, String mimeType, String encoding); public void loadD

[android-developers] Changing the Caller ID

2010-05-28 Thread Denis Souza
Hi, I'm trying to write a program that changes the incoming caller ID number to match exactly number in the phone's address book (since some carriers vary how they send the caller ID). I am receiving broadcasts for changes in phone state. I can get the caller ID number by checking the "incoming_n

[android-developers] Comparing 2 Voice API?

2010-05-28 Thread Touchapon
Hi, I'm developing an app and I need some way to compare 2 voices if they' match or not, I know that Voice Recognizer is a way to do that but since (i think) it needs to translate the voice into string first, it won't be so suitable for other language apart from the lang supported by the speech re

[android-developers] Re: Can't Add an EditText to my Widget Layout

2010-05-28 Thread eyanblog.appspot.com
Hi, It seems to my problems. I can't add EditText for a widget. Why?Can anyone help me? Thanks. Suspect it is google's bug. On 5月27日, 上午3时01分, Christopher wrote: > Whenever I add anEditTextwidgetto the layout of my home > screenwidget(confusing how the term "widget" is being used

[android-developers] Google Maps Voice Turn-By-Turn

2010-05-28 Thread Renegade
I currently have Android 2.1 with the new Google Maps 4.2 update. I want to create an application that interacts with it and turns on voice turn-by-turn navigation if the technician has it on mute. How can I do this? -- You received this message because you are subscribed to the Google Groups "

[android-developers] modes of connectivity, device identification and device inter-communication?

2010-05-28 Thread manwood
Hi All I am trying to understand the different ways in which I can build a collaborative application between android devices and just need a little input... I can think of three scenarios in which devices can be identified, discover each other and communicate: - WiFi - each device has an IP add

[android-developers] ProgressBar freezes

2010-05-28 Thread J
I have a simple app that uses an indeterminate ProgressBar. It works fine if I use the setVisibility method. However, when I changed it to remove the widget when my task was done (and re-add it when the task was started again), it stopped working. All I see after re-adding the widget is a frozen

[android-developers] Term.java - how to use it from my app

2010-05-28 Thread Marcos Dione
I'm developing an app that will need a Terminal emulator to run a CLI program. I already have the CLI program ported, so that's not an issue. I see that Eclair's source code includes development/apps/Term/ src/com/android/term/Term.java, which seems to be exactly what I need. there's also an extern

[android-developers] Re: Android phone registered as a bluetooth HID service

2010-05-28 Thread msellner
Did you have any luck with getting it set up as an HID device? Do you have the code which made your android phone discoverable as an HID device? I'm attempting to create an app in which the android phone will be used as an HID device as well and will gladly share any information I find with you a

[android-developers] Camera on HTC Hero: Calling camera.autoFocus(...) gives a IOException .. ?

2010-05-28 Thread Sicz-Mesziár János
Hi guys! I also was a problem on my Hero. But I found a solution. 05-28 21:58:58.058: ERROR/QualcommCameraHardware(37): Invalid camera state QCS_IDLE: expecting QCS_PREVIEW_IN_PROGRESS, cannot start autofocus! 05-28 21:58:58.059: DEBUG/CAM OPEN(2710): java.io.IOException: autoFocus failed >From

[android-developers] Re: Froyo-Problem: Calendar access

2010-05-28 Thread greatKids
Hi, thanks for the information. content://com.android.calendar/ works! But I tried com.google.android.calendar.EditEvent to create a new event and it failed. Has anyone tried this or the equivalent? Thanks. On May 26, 12:01 pm, Adam Jensen wrote: > Here are the URI and package name changes bet

[android-developers] how to solve the process is bad

2010-05-28 Thread zejun wu
hi,everyone, when i use the widget, i occur the following issue. 05-28 12:01:14.937: WARN/ActivityManager(52): Unable to launch app com.mmtimer/10024 for broadcast Intent { act=android.appwidget.action.APPWIDGET_ENABLED cmp=com.mmtimer/.MMWidget }: process is bad 05-28 12:01:14.947: WARN/ActivityMa

[android-developers] Conversion to Dalvik format failed: Unable to execute dex: null

2010-05-28 Thread Lopa
Hi All, I am trying to build and run an android project based on target 1.1 While doing so, i get the following error: Conversion to Dalvik format failed: Unable to execute dex: null Could anyone lemme knw as to what that error means and how can i resolve the same? Thanks, lopa -- You receive

[android-developers] android.pim package availability with android.jar

2010-05-28 Thread djana
Hi: I am relatively new in Android based mobile applications. I would like a help regarding an error "The import android.pim cannot be resolved" while trying to compile an application that uses android.pim.DateUtils? I have Google Android 2.2 (froyo) running on windows through eclipse. The androi

[android-developers] addProximityAlert() does not fire the Broadcast Intent

2010-05-28 Thread mache
Hello group, I read several posts and other resources but I don't find the answer or a solution for my problem. I try to program the addProximityAlert() API to get notified if the current position is near an area of interrest. But it seems that no alert willl be fired. According to this issue (htt

[android-developers] Re: android.graphics.Path editor or SVG converter?

2010-05-28 Thread pltxtra
Hi, I've ported libsvg to Android. Using this library you can load a svg file and rasterize it to an Android canvas. https://code.launchpad.net/libsvg-android It has been tested on Android version 1.6, using the emulator. It requires the NDK to build. Please note also that it is NOT extensively

[android-developers] Android Mobile Platforms Engineer in Playa Del Rey, CA

2010-05-28 Thread Christian Carollo
GameFly, the leading subscription-based video game rental company is currently seeking a qualified Mobile Platforms Engineer to join its expanding, in-house team in Playa Del Rey, CA. to create standards- compliant mobile solutions, targeted for the Android platform. Core Qualifications o Ex

Re: [android-developers] Re: How to update a Widget dynamically (Not waiting 30 min for onUpdate to be called)?

2010-05-28 Thread Kostya Vasilyev
There are Wifi-specific broadcast actions you can register your widget for, and only update when there is a change. Thesw include: a change in signal level, connection state, etc. This way your code can avoid burning through the battery and still display the information you want. Also, take a loo

[android-developers] Re: SIGSEGV in "system_server"

2010-05-28 Thread fadden
On May 28, 10:13 am, Dmitriy wrote: > The application I wrote HTTP POSTs a file to a remote web server.  If, > during this upload the phone is going through a lot of other activity > - applications being opened, closed, switched; notification drawer > being opened and closed - the whole phone shut

[android-developers] Stalling widget buttons after some time

2010-05-28 Thread Dirk Vranckaert
Hey all, I'm currently working on a widget/application and I have an issue with that. Before I get into the issue you could check out the code which is available just over here: http://code.google.com/p/workregistrationwidget-android/source/browse/ So my issue... :) The widget contains two butto

[android-developers] Re: Bulk inserts into ContentProviders

2010-05-28 Thread abhi
Look into ContentProviderOperation On May 26, 10:04 am, Vikram wrote: > I have written a content provider over a database table which > essentially captures phone contacts information. > > So at a point of time, in my application code, I want to query the > android contacts content provider, and

[android-developers] Re: How to update a Widget dynamically (Not waiting 30 min for onUpdate to be called)?

2010-05-28 Thread Dirk Vranckaert
I think String is right about that. I wouldn't do that either just to save battery life! However I think it is better to set the update interval of the applet to a high enough amount of time (like 24 hours or sth) and just update the widget manually. I'm currently working on a widget to and in my

[android-developers] Re: Is it possible to keep an authtoken stored for an Account private?

2010-05-28 Thread abhi
Are you storing the authoken as part of the userData in the Account? If so, anyone can access that. Perhaps you need to find a different method to store your authtoken. You could look at creating your own database using a Cursor or use SharedPreferences. On May 27, 10:38 am, GroundZero wrote: > I

[android-developers] Re: How to update a Widget dynamically (Not waiting 30 min for onUpdate to be called)?

2010-05-28 Thread String
Before you get too far into this, you need to be aware that the widget architecture isn't designed to update that frequently. There's a lot of overhead, and updating every ten seconds will seriously impact battery life. As will having a service continually running in the background, for that matter

[android-developers] Re: Can't we add shared libraries without use of android ndk tools

2010-05-28 Thread mah
That would likely mean you've compiled your library using an x86 compiler. That will not run on an ARM processor. You do not have to use the Android makefile or build system to build your library, but you do need to use the compiler that comes with the NDK. On May 27, 3:05 am, karteek wrote: > >

Re: [android-developers] Please tell me where to look for help!

2010-05-28 Thread Mark Murphy
cpcarroll71 wrote: > I posted a question on here about video playback on Android 2.1 a > couple of days ago and don't expect to get an answer. I assumed this > was the place to look for answers since it is an official Google group > for Android Developers. Maybe I was wrong. You posted to a group

Re: [android-developers] Re: Problem in programmatically installing a 3rd party App onto the SD card

2010-05-28 Thread Mark Murphy
chaitanya wrote: > So, when the user ticks the checkbox which says install from unknown > sources , do we need to fire up the Intent which lets you install the > application onto the SD card? > I was unsure as to how exactly I am going to handle the > installation of the apk file via code.

[android-developers] Re: SPP bluetooth

2010-05-28 Thread Robert Armstrong
I managed to transfer a file from the host PC to the HTC Desire using Bluetooth - see Word document supplied here:- http://forum.vodafone.co.uk/topic/58936-htc-desire-unable-to-send-files-via-bluetooth/ I have also tried the SDK supplied BluetoothChat example App. But with UUI changed to:- pr

[android-developers] Re: Problem in programmatically installing a 3rd party App onto the SD card

2010-05-28 Thread chaitanya
Sorry about that the "it" in the previous post meant showing up the Application Settings screen . I managed to show the Application Settings screen. So, when the user ticks the checkbox which says install from unknown sources , do we need to fire up the Intent which lets you install the applicat

[android-developers] Re: Android benchmark with rectangles

2010-05-28 Thread kish
Good thought, but if I use multiple threads, I am not sure the timing I keep track of would screw up. because its a benchmarking program i am very keen on time. Is there any other way other than using multiple threads. On May 28, 7:33 am, TreKing wrote: > On Thu, May 27, 2010 at 3:29 PM, kish wr

[android-developers] Re: Problem in programmatically installing a 3rd party App onto the SD card

2010-05-28 Thread chaitanya
I got the Application Settings screen to pop up by using Intent intent = new Intent(); intent.setAction(Settings.ACTION_APPLICATION_SETTINGS); startActivity(intent); It gives you an option whether to install the apps. Then on that screen you had the option to manage the applications.

[android-developers] Please tell me where to look for help!

2010-05-28 Thread cpcarroll71
I posted a question on here about video playback on Android 2.1 a couple of days ago and don't expect to get an answer. I assumed this was the place to look for answers since it is an official Google group for Android Developers. Maybe I was wrong. I want to know where to go or who to talk to to fi

[android-developers] Re: GestureOverlayView throwing exception when used with Linkify

2010-05-28 Thread MrChaz
Right, fixed. passing getApplicationContext() rather than 'this' was the problem. Thanks. On May 28, 5:26 pm, Romain Guy wrote: > Here's your problem: > > android.util.AndroidRuntimeException: Calling startActivity() from > outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK > f

Re: [android-developers] missing Lists.newArrayList()

2010-05-28 Thread abisai rangel
*Any one want a FREE website or word press blog set up? if you join my hosting!* Email me at *abira...@gmail.com* On Fri, May 28, 2010 at 10:19 AM, Pinheiro wrote: > I was trying to delete a contact using the code in the docs: > > ArrayList ops = Lists.newArrayList(); > ops.add(ContentProvider

[android-developers] Re: Froyo-Problem: Calendar access

2010-05-28 Thread Flying Coder
Definitely looking forward to the day when Android makes the API official again (also VERY much looking forward to the day when there is an API to access the email and/or gmail database). But, in the meantime, prior to Froyo, I was using the following uri to access calendar events: content://cale

Re: [android-developers] GestureOverlayView throwing exception when used with Linkify

2010-05-28 Thread abisai rangel
*Hey guys anyone want **business cards? 1000 for $69 Shipped! Custom design on all cards, also double sided design.* On Fri, May 28, 2010 at 7:36 AM, MrChaz wrote: > Hi, > > Anyone else run into this and have a solution? > Basically I have a GestureOverlayView over the top of a TextView. The >

Re: [android-developers] Re: Certain apps not being shown in Android Market?

2010-05-28 Thread Mark Murphy
powder wrote: > I thought 2.2 was offical SDK, yes. Nexus One or other hardware, no. > I have installed a "true" 2.2 > from Google > on a non rooted Nexus phone. Please point me to the Google blog post or Web page indicating that this was "true". > Should not Google make sure this works > befor

[android-developers] Re: GestureOverlayView throwing exception when used with Linkify

2010-05-28 Thread MrChaz
The context I'm using to do what? Creating the GestureOverlayView? On May 28, 5:26 pm, Romain Guy wrote: > Here's your problem: > > android.util.AndroidRuntimeException: Calling startActivity() from > outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK > flag. Is this really what

[android-developers] Re: JUnit failing with warning - ""test class not found in selected project"

2010-05-28 Thread Felipe Ramos
Hi Brett, You were right. My testing class didn't have its constructor made public. After I did that, everything went fine. Too bad that I missed this in the only ProviderTestCase2 I have in my test code, which made me think that this was a platform problem. Nice to hear that future releases will

[android-developers] Re: Certain apps not being shown in Android Market?

2010-05-28 Thread powder
Hi, Thanks... I thought 2.2 was offical, I have installed a "true" 2.2 from Google on a non rooted Nexus phone. Should not Google make sure this works before even putting up the new SDK and before rolling out 2.2. Regards Jonas. On May 27, 9:19 am, String wrote: > On May 27, 3:44 am, powder w

[android-developers] Re: FYI - Both GL and Canvas are locked to 30FPS on new phones.

2010-05-28 Thread Robert Green
I apologize. I jumped the gun. I just felt that it was maybe a trend because of the 2D cap on the Droid 2.1u1 and then the 2D and GL cap on the EVO. So this is an OEM-opted limit then and is not going to be standard as part of the platform? If so, that's a much better situation IMO. On May 28,

[android-developers] android phone’s scroll ball, D-Pad not working

2010-05-28 Thread Michael Lam
hi, i have a Cliq and a MyTouch phone. i am writing a game that requires a fire button. on the cliq, it's the center of the D-Pad, and on the MyTouch, the scroll ball. i am handling the onKeyDown events via a separate thread. it all works until i press the button too many times, meaning the key do

Re: [android-developers] dynamic content of a ListPreference

2010-05-28 Thread Jose Luis Montes
I got it! The method retrieveUserCalendars() fills the callListEntries (the labels) and calListEntryValues (the IDs) with the values you want to put into the list preference. Regards! public class Preferences extends PreferenceActivity { > private CharSequence[] calListEntries = null;

Re: [android-developers] Re: Problem in programmatically installing a 3rd party App onto the SD card

2010-05-28 Thread Mark Murphy
chaitanya wrote: > How exactly am i supposed to go about it? What is "it"? > When the person modifies it via the Settings application he will be > able to install the application. So when I try to install a 3rd party > app into the emulator via the command adb install , how > does it install co

[android-developers] Re: Problem in programmatically installing a 3rd party App onto the SD card

2010-05-28 Thread chaitanya
Thanks Mark. How exactly am i supposed to go about it? And just a small question. When the person modifies it via the Settings application he will be able to install the application. So when I try to install a 3rd party app into the emulator via the command adb install , how does it install corre

[android-developers] Re: missing Lists.newArrayList()

2010-05-28 Thread Pinheiro
Thanks Dmitri. Btw, do you know how to delete a contact without using a batch? This doesn't work, I don't know why: getContentResolver().delete(ContactsContract.Contacts.CONTENT_URI, ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME+"="+nameToDelete, null); -- You received this message because

Re: [android-developers] Re: Strange behavior when launching app from Market

2010-05-28 Thread TreKing
On Fri, May 28, 2010 at 1:30 PM, Rico Yao wrote: > Thanks for the suggestions. Unfortunately FLAG_ACTIVITY_CLEAR_TOP doesn't > really work for my app because I need multiple instances of the same > activities. I guess I'll just ask my users to live with this for now. > This may be overkill but

[android-developers] Re: Clear defaults programmatically

2010-05-28 Thread Bonifaz
Thanks TreKing, this is exactly what I meant. And thank you for your tip. I already have a description of how to do this manually, but never thought about opening the manage application activity. If there is no other way I will head for your proposed work around. On May 28, 8:37 pm, TreKing wro

Re: [android-developers] Clear defaults programmatically

2010-05-28 Thread Mark Murphy
TreKing wrote: > OP - I don't know if this is possible, but as a next best thing you > could possibly tell the user what they have to do and then open the > manage application's settings page for them and let them finish the process. PackageManager has clearPackagePreferredActivities(). However, y

[android-developers] Layout margin left/right issue in 2.2?

2010-05-28 Thread mp6800
I'm using a framelayout to position 2 buttons in the center of the screen. I'm anchoring from the center (using layout gravity = center_horizontal) then applying Layout margin left = 50dip and Layout margin right = 50dip to each button. In 2.2 the margins are being drawn much larger than the numb

Re: [android-developers] Clear defaults programmatically

2010-05-28 Thread TreKing
On Fri, May 28, 2010 at 1:17 PM, skink wrote: > > http://developer.android.com/intl/fr/reference/android/preference/PreferenceManager.html#setDefaultValues(android.content.Context, > int, > boolean) This is not what the OP is asking - when you execute an action, if there are multiple activitie

Re: [android-developers] Re: Strange behavior when launching app from Market

2010-05-28 Thread Rico Yao
Thanks for the suggestions. Unfortunately FLAG_ACTIVITY_CLEAR_TOP doesn't really work for my app because I need multiple instances of the same activities. I guess I'll just ask my users to live with this for now. Again, thanks. On Fri, May 28, 2010 at 8:06 AM, TreKing wrote: > On Thu, May 2

[android-developers] Re: Zooming in on any view

2010-05-28 Thread ritwaj
I guess this might come to your help - http://code.google.com/p/android-pinch/ This provides zoom feature for ImageViews, WebViews and MapViews. I have used this quite a few times and have helped me all the while. Regards, Ritwaj On May 28, 10:18 am, praneet pandit wrote: > I have a hack f

Re: [android-developers] Clear defaults programmatically

2010-05-28 Thread skink
Bonifaz wrote: > Does anyone know > how to clear defaults of my own app by code. > > I know that a user can always go to Manage Applications, find my app > and click the button there to clear previously assigned default > actions. But for most users this isn't intuitive at all. > > I would like t

[android-developers] Re: Speech recognition: prevent or automatically handle "No matches found" dialog

2010-05-28 Thread GregM
You still can't give the speech recognizer a grammar, so you can't tell it what to expect. You are right though, even some canned, yes/no/ cancel or digit recognizers would be a huge help. Android has an AlertDialogBuilder, why not have a SpeechDialogBuilder with some simple options? The good news

Re: [android-developers] New crash reporting - is it a function of the phone or the app?

2010-05-28 Thread TreKing
On Fri, May 28, 2010 at 10:59 AM, Geefer wrote: > is the new crash reporting feature announced last week a function of the > firmware on the phone or the sdk version that the app was compiled with? > Neither, I don't think - the feature activated on my phone without a firmware update on an app t

Re: [android-developers] Couldn't get the seekbar by findViewById

2010-05-28 Thread Mark Murphy
Jeruliu wrote: > I'm building a dialog including seekbar but i can't locate the seekbar > by findViewById, it only returns nullpoint. > > My code: > Context mContext = this; > LayoutInflater inflater = (LayoutInflater) > mContext.getSystemService(LAYOUT_INFLATER_SERVICE); >

[android-developers] Re: Clear defaults programmatically

2010-05-28 Thread Bonifaz
Is it even possible? No one knows this? I suppose many users don't know how to do this on their phones, because it is rather complicated to understand for non programmers. I want to give my users the option to clear defaults of my app, within my app. But how do I do this? On Apr 19, 3:01 am, Bon

Re: [android-developers] missing Lists.newArrayList()

2010-05-28 Thread Dmitri Plotnikov
This method is a shorthand for creating an array list. You can use this instead: .. ops = new ArrayList(); On Fri, May 28, 2010 at 10:19 AM, Pinheiro wrote: > I was trying to delete a contact using the code in the docs: > > ArrayList ops = Lists.newArrayList(); > ops.add(ContentProviderOpera

Re: [android-developers] Re: How to create a file outside the application?

2010-05-28 Thread TreKing
On Fri, May 28, 2010 at 3:30 AM, pramod.deore wrote: > So, I want to place somewhere else (but not in SDcard) > Well you've just eliminated your two options as far as the physical phone is concerned. Your only other real alternative is to write this information back to your own server somewhere.

[android-developers] Couldn't get the seekbar by findViewById

2010-05-28 Thread Jeruliu
I'm building a dialog including seekbar but i can't locate the seekbar by findViewById, it only returns nullpoint. My code: Context mContext = this; LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(LAYOUT_INFLATER_SERVICE); View layout = inflater

[android-developers] missing Lists.newArrayList()

2010-05-28 Thread Pinheiro
I was trying to delete a contact using the code in the docs: ArrayList ops = Lists.newArrayList(); ops.add(ContentProviderOperation.newDelete(Data.CONTENT_URI) .withSelection(Data._ID + "=?", new String[] {String.valueOf(dataId)}) .build()); getContentResolver().applyBatch(C

[android-developers] SIGSEGV in "system_server"

2010-05-28 Thread Dmitriy
This is a strange one. I'm not filing as a bug yet because I've not come up with an easy way to reproduce it (my full application can do this consistently, but it's not exactly a lightweight test case). The application I wrote HTTP POSTs a file to a remote web server. If, during this upload the

[android-developers] Re: How to update a Widget dynamically (Not waiting 30 min for onUpdate to be called)?

2010-05-28 Thread schwiz
I haven't done any widget work but perhaps doing a database with a managed cursor would update it as the database changed. -or- that could be a horrible idea that would never work /shrug On May 28, 8:43 am, "draf...@gmail.com" wrote: > I am currently learning about widgets in Android. > > I want

[android-developers] Re: Alarm Clock quitting my application

2010-05-28 Thread guich
Hi, I found the culprit. My task was sublaunched using the Intent.FLAG_ACTIVITY_NO_HISTORY. Clearing this flag solved the problem. cheers guich -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andro

[android-developers] Re: Documentation errors in "Developing on a Device?"

2010-05-28 Thread Zigurd
Yeah, I see that it specifies "debugging" as part of the goal of setting up. And since running in the emulator is enough to validate that the SDK is set up correctly, I see that consolidating the instructions for running and debugging is a valid decision. I also see that if you specify that "Setti

Re: [android-developers] MusicVis live wallpaper

2010-05-28 Thread Romain Guy
Hi, The music live wallpapers rely on APIs that we have not made public in the SDK yet. These APIs were added very late in the development process and we haven't had the time to properly turn them into maintainable and documented APIs. On Fri, May 28, 2010 at 12:48 AM, HaMMeReD wrote: > The live

  1   2   >