[android-developers] Official Widget Design Guidelines outdated for SDK 1.6

2009-10-12 Thread Asad Zia
Hi, I'll like to point out that Widget Design Guidelines lists standard cell sizes in pixels. However, in launcher source code in Donut branch (SDK 1.6) cell sizes are in dip. This results in different pixel values on different density screens. I'll suggest documentation should be updated with

[android-developers] Re: Tut (SDK 1.5) Get google account of user

2009-10-12 Thread kostmo
It seems tantalizingly close, but I still can't get the GoogleLoginService method to work with Google App Engine (GAE). I'll start with a review of the method that currently works for me. Let's say that myapp is my GAE application name and authstring is the 203-character string I get from

[android-developers] How to caculator the time?

2009-10-12 Thread Sansiro
long startTime=System.currentTimeMillis(); // do something long endTime=System.currentTimeMillis(); long spentTime=(endTime-startTime)/1000; but if I change the system time in //do something , how to caculator the spentTime? the CPU running time?

[android-developers] How to caculator the time?

2009-10-12 Thread Sansiro
long startTime=System.currentTimeMillis(); // do something long endTime=System.currentTimeMillis(); long spentTime=(endTime-startTime)/1000; but if I change the system time in //do something , how to caculator the spentTime? the CPU running time?

[android-developers] Re: environment set-up confusing, instructions unclear

2009-10-12 Thread Raphael
Well, maps.jar is *only* available when using the Google addon. Don't build using the regular 1.5 if you want maps. Why do you want to do that? Also consider posting your errors. R/ On Oct 8, 2009 6:24 AM, ian stilbit...@gmail.com wrote: I;ve had no end of build path problems and I am still

[android-developers] Re: Geting SMS Center number

2009-10-12 Thread Delirium
SMSMessage object allows you to set SMSC number, and you can get it after setting, otherwise it returns null. The only solution i found is to map SMSC numbers manualy to mobile network numbers which you can get from TelephonyManager. See android.telephony.TelephonyManager.getNetworkOperator() for

[android-developers] Cancel Pending Intent on Widgets

2009-10-12 Thread M.Manjunatha
Hi, I am writing a widget app. I need set the pending intent based on the state of my application.. For one state, I don't want any pending intent to be set.. which means, I need to cancel the previously set pending intent. so, when i click, should do nothing. Can anyone please help me on

[android-developers] Custom ANR messages

2009-10-12 Thread Sujay Krishna Suresh
Hi, i'd like to no if there's any possibility for an application to provide a custom ANR message to be displayed to the user? This will make sure that the customer is not confused when an ANR pops up. Thanks, Sujay --~--~-~--~~~---~--~~ You received this

[android-developers] How can I package shared libs only into apk

2009-10-12 Thread tica
From the SimpleJNI's sample code, the Android.mk is like this: # This makefile shows how to build a shared library and an activity that # bundles the shared library and calls it using JNI. TOP_LOCAL_PATH:= $(call my-dir) # Build activity LOCAL_PATH:= $(TOP_LOCAL_PATH) include $(CLEAR_VARS)

[android-developers] How can I package shared libs only into apk

2009-10-12 Thread tica
From the SimpleJNI's sample code, the Android.mk is like this: # This makefile shows how to build a shared library and an activity that # bundles the shared library and calls it using JNI. TOP_LOCAL_PATH:= $(call my-dir) # Build activity LOCAL_PATH:= $(TOP_LOCAL_PATH) include $(CLEAR_VARS)

[android-developers] Possible to calculate yaw,pitch,roll from x,y,z magnetic field values alone?

2009-10-12 Thread DD
Hi, is it possible to calculate yaw,pitch,roll solely from x,y,z magnetic field values obtained from the magnetometer, for example, according to physics? How? Thanks a lot! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Can anybody tell pls.....

2009-10-12 Thread ragavendran s
Can anybody tell pls. I m new to android. Here is my question: example: |4|2|raghav|4|Roshan|5|raghul|6|sachin Wat i need means i want to separate this by string tokenizer(|) and store it into separate valuesthe first number 4indicates i need 4 list itms should display with name

[android-developers] Notification sound loop

2009-10-12 Thread Neil
I am setting Notification.sound to the URI of a ringtone and it plays the ringtone. The problem is that the sound loops forever which I understand is the correct behaviour. However that's not the behaviour I want. Is there a way to change it so that it only plays the sound once? Perhaps I can

[android-developers] get outgoing call details in background

2009-10-12 Thread Nemat
Hi friends, Actually I was working to get duration of outgoing call.But I dont find any way of doing this.Then I decided to get the details of outgoing call from call log. But my code works only for Activity.I want this to work with Services because I want to get the details related to outgoing

[android-developers] play video backward

2009-10-12 Thread RS
How to play video in a time reversed direction? The requirement is to loop playing forward and backward repeatedly. Thanks a lot! R.S ps: The video is shot on the same android device (g1/adp1) --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Sound recording in emulator working but voice recognition is not ?

2009-10-12 Thread anirudh
hi amith, for the emulator to recognize the microphone , any configuration needs to be done in the emulator?? regards, Anirudh N On Sep 28, 9:19 am, Amit amit.bhava...@gmail.com wrote: Hi, I am pulling my hair on this problem from a long time and haven't found a solution yet. I am running

[android-developers] Re: Custom ANR messages

2009-10-12 Thread Mark Murphy
Sujay Krishna Suresh wrote: i'd like to no if there's any possibility for an application to provide a custom ANR message to be displayed to the user? Not from an SDK application. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your

[android-developers] Scroll to content position in WebView

2009-10-12 Thread info.sktechnol...@gmail.com
I have a WebView which has been loaded with local content using loadData(String data, String mimeType, String encoding). I want this to initially display with a given substring of the first parameter visible. This is, I want to scroll to a position given the content at that position. If

[android-developers] Re: Possible to calculate yaw,pitch,roll from x,y,z magnetic field values alone?

2009-10-12 Thread RS
DD, there are a few special cases that won't work: If mag a sensor's first axis (say x) is already pointing mag north exactly, the mag components on the other two axis (say y,z) would be zero. here your x axis is not just towards north but is exactly tangential to one of the field lines

[android-developers] Re: Custom ANR messages

2009-10-12 Thread Sujay Krishna Suresh
Is there some other way??? Sujay On Mon, Oct 12, 2009 at 4:39 PM, Mark Murphy mmur...@commonsware.comwrote: Sujay Krishna Suresh wrote: i'd like to no if there's any possibility for an application to provide a custom ANR message to be displayed to the user? Not from an SDK

[android-developers] Can anybody tell pls.....

2009-10-12 Thread ragavendran s
Can anybody tell pls. I m new to android. Here is my question: example: |4|2|raghav|4|Roshan|5|raghul|6|sachin Wat i need means i want to separate this by string tokenizer(|) and store it into separate valuesthe first number 4indicates i need 4 list itms should display with name

[android-developers] Re: Custom ANR messages

2009-10-12 Thread Mark Murphy
Sujay Krishna Suresh wrote: Is there some other way??? Write your app to avoid ANRs. Or, modify the firmware to customize the ANR dialog and distribute the modified firmware. By definition, if you ANR, your application is not responding, so Android is not exactly going to go back to your

[android-developers] Re: Custom ANR messages

2009-10-12 Thread Sujay Krishna Suresh
Thnx for the replies Mark. I shall try to avoid ANRs as much as i can. Sujay On Mon, Oct 12, 2009 at 5:19 PM, Mark Murphy mmur...@commonsware.comwrote: Sujay Krishna Suresh wrote: Is there some other way??? Write your app to avoid ANRs. Or, modify the firmware to customize the ANR

[android-developers] Archos 5 Android: new firmware w/ ADB support

2009-10-12 Thread Mark Murphy
If you have an Archos 5 Android Internet Tablet, go check for firmware updates (Settings About device Firmware update). The 1.1.01 firmware is now available. Among other things, this enables ADB support. To use ADB, you will need to manually set the USB mode (Settings Device storage USB

[android-developers] can anybody tell pls....

2009-10-12 Thread ragavendran s
Can anybody tell pls. I m new to android. Here is my question: example: |4|2|raghav|4|Roshan|5|raghul|6|sachin Wat i need means i want to separate this by string tokenizer(|) and store it into separate valuesthe first number 4indicates i need 4 list itms should display with name

[android-developers] Fast test for internet connectivity

2009-10-12 Thread stanlick
Is there a fast way to determine if you have connectivity sufficient to make an HttpRequest? I have played around with setting the timeout, but it feels to me there may be a ping behavior or some such quick test. Scott --~--~-~--~~~---~--~~ You received this

[android-developers] Video problem - How to use a surface for both canvas and mediaplayer

2009-10-12 Thread Latha Shivanna
Hii All I have a requirement in my application where i need to do 2 things : 1.use canvas to display a bitmap 2.use mediaplayer class to display a video. I tried using getHolder().setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); and could see the video alone followed by an exception for

[android-developers] Re: Fast test for internet connectivity

2009-10-12 Thread Mark
Seems like there are already some posts on it: http://groups.google.com/group/android-developers/browse_thread/thread/65cdc456b93ad2d9/ea74d2519394642b?lnk=gstq=check+for+internet#ea74d2519394642b On Oct 12, 8:45 am, stanlick stanl...@gmail.com wrote: Is there a fast way to determine if you

[android-developers] Re: ContentProvider.query() is not being called.

2009-10-12 Thread sdphil
ping, not seen any comments on this... On Oct 11, 8:07 am, sdphil phil.pellouch...@gmail.com wrote: I have been playing around with the SearchableDictionary sample application trying to understand it. I set a breakpoint in DictionaryProvider.query() and verified that it's going in there

[android-developers] Re: diff label for icon and searchable item text.

2009-10-12 Thread sdphil
ping... On Oct 11, 5:53 am, sdphil phil.pellouch...@gmail.com wrote: I want to have a different text string for my icon and the text that appears in Searchable Items (QSB). I have the following lines in my AndroidManifest.xml --     application android:icon=@drawable/icon                  

[android-developers] How did you localize your app?

2009-10-12 Thread Jason Van Anden
How have non-multilingual indy devs gone about translating their apps for different languages? I don't mean how do you localize ... I mean, how did you get translation done (paid, bartered, online translator, ...)? Did you notice an impact on downloads? Jason Van Anden

[android-developers] Usage of WebView.addJavascriptInterface()

2009-10-12 Thread Anton Pirker
Hey List! I have an Application that displays a Website in an WebView. This is working quite good. Now i want give the Website access to a Class of my Android Project with WebView.addJavascriptInterface() [1] This is my Java Code (in an Activity) public void onCreate(Bundle

[android-developers] How to install plugins into Android's browser

2009-10-12 Thread Migol
Hi all. I have the next problem: I have an NP API plugin for Android's browser, it works properly. I have to go to the command line and to input some commands of copy plugin's so file into emulator (with help of adb) for installing it. However, for end user it is too complicated to input this

[android-developers] Re: Usage of WebView.addJavascriptInterface()

2009-10-12 Thread Mark Murphy
Anton Pirker wrote: Hey List! I have an Application that displays a Website in an WebView. This is working quite good. Now i want give the Website access to a Class of my Android Project with WebView.addJavascriptInterface() [1] This is my Java Code (in an Activity) public void

[android-developers] Re: ListView/Adapter Crash in 1.6 only: illegalStateException. 1.6 bug?

2009-10-12 Thread Moto
Same issue here! Thanks for the information! -Moto! On Oct 11, 3:11 pm, ccfrazier2 georgefraz...@yahoo.com wrote: Romain, Fantastic, thanks for the help! I've had customers contact me over the months about force closes that I can never get to the bottom of. This likely has fixed the

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

2009-10-12 Thread Streets Of Boston
I might be mistaken, But this part of the stack-trace worries me a bit: android.view.LayoutInflater.inflate(LayoutInflater.java:276) com.altcanvas.readerscope.ItemDetails.init(ItemDetails.java: 145) com.altcanvas.readerscope.ItemDetails.getInstance(ItemDetails.java: 566)

[android-developers] Re: How to caculator the time?

2009-10-12 Thread Lance Nanek
http://developer.android.com/reference/android/os/SystemClock.html On Oct 12, 2:20 am, Sansiro wangjiangfeng0...@gmail.com wrote: long startTime=System.currentTimeMillis(); // do something long endTime=System.currentTimeMillis(); long spentTime=(endTime-startTime)/1000; but if I change the

[android-developers] Accessing another DB

2009-10-12 Thread Skeniver
Hey Skyhigh I am faced with the same issue at the moment. With the code you provided, does a user have to have both versions of the app installed? Or did you just run that once to access the database and then copy the data across to a new database? Or have I missed the point completely? Any

[android-developers] Re: Setting Focus

2009-10-12 Thread Mark
Same problem here, setSelected(false) does nothing, my edit field still insists on having input focus when my app starts up. There must be a way to fix this? On Oct 5, 11:59 am, Tom thomas.coz...@gmail.com wrote: Hi, I'm looking for the same thing. Best regards

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

2009-10-12 Thread Jayesh Salvi
-- Jayesh On Mon, Oct 12, 2009 at 7:49 PM, Streets Of Boston flyingdutc...@gmail.comwrote: I might be mistaken, But this part of the stack-trace worries me a bit: android.view.LayoutInflater.inflate(LayoutInflater.java:276)

[android-developers] Someone advertising pirated apps by posting feedback on market and pointing to his Twitter account

2009-10-12 Thread Mike
This guy has been regularly posting feedback on my game in the market and pointing people to his Twitter account. He claims that he will send any app to them if they contact him and give him their email address. I've already contacted Twitter about this and they disabled his account this past

[android-developers] Re: Usage of WebView.addJavascriptInterface()

2009-10-12 Thread Anton Pirker
Hey Mark! Mark Murphy wrote: Dump the window. -- just reference FileUtil directly. Then I displayed all members of the window object and my FileUtil is missing. It's not supposed to be there. You do not get an actual Javascript object from addJavascriptInterface(). It is a

[android-developers] rename column sqlite database

2009-10-12 Thread Wouter
Hey, I have a database that I download external and save on my sdcard. But this database is also used for an iPhone app and has a column id and not _id (sqlite uses _id). How can i rename this column to _id? Thank you, Wouter --~--~-~--~~~---~--~~ You received

[android-developers] Re: Someone advertising pirated apps by posting feedback on market and pointing to his Twitter account

2009-10-12 Thread Maps.Huge.Info (Maps API Guru)
Have you marked the post as spam? It's easy to do in the market app, just long press on the comment or click on the x to the right of the comment to flag it as spam. That's about all you can do as far as I know. -John Coryat Radar Now! What Zip Code?

[android-developers] Re: Someone advertising pirated apps by posting feedback on market and pointing to his Twitter account

2009-10-12 Thread Mike
Yes. I started doing this about a week ago. I did notice that as of this morning I don't see his comments any longer. It'd be nice if Google could block this guy from posting comments altogether, but in the mean time, I'll keep marking as spam when I see it. Hopefully others will do the

[android-developers] Re: Streetview Intent Format

2009-10-12 Thread ian
Another observation. When I went to the emulator's opening screen and selected Mapsm then switched to Streetview mode on the menu, well it brought up the thumbnail but then crashed when I selected it, the same way as my app. I;m using 1.5r1 and maybe streetview needs a newer version like 1.6 to

[android-developers] Re: rename column sqlite database

2009-10-12 Thread Marco Nelissen
On Mon, Oct 12, 2009 at 8:12 AM, Wouter wouterg...@gmail.com wrote: Hey, I have a database that I download external and save on my sdcard. But this database is also used for an iPhone app and has a column id and not _id (sqlite uses _id). How can i rename this column to _id? So this is

[android-developers] Re: play video backward

2009-10-12 Thread Marco Nelissen
On Mon, Oct 12, 2009 at 3:34 AM, RS rajeshs...@gmail.com wrote: How to play video in a time reversed direction? You can't. The requirement is to loop playing forward and backward repeatedly. Thanks a lot! R.S ps: The video is shot on the same android device (g1/adp1)

[android-developers] Re: rename column sqlite database

2009-10-12 Thread Wouter
It is an sqlite database but don't now why it has no _id but id (for iPhone? ) Ok i will try your sample code! Thanks, Wouter On 12 okt, 17:23, Marco Nelissen marc...@android.com wrote: On Mon, Oct 12, 2009 at 8:12 AM, Wouter wouterg...@gmail.com wrote: Hey, I have a database that I

[android-developers] Re: Notification sound loop

2009-10-12 Thread Marco Nelissen
Pick another sound, one that doesn't loop. On Mon, Oct 12, 2009 at 3:03 AM, Neil neilb...@gmail.com wrote: I am setting Notification.sound to the URI of a ringtone and it plays the ringtone.  The problem is that the sound loops forever which I understand is the correct behaviour.  However

[android-developers] Re: Someone advertising pirated apps by posting feedback on market and pointing to his Twitter account

2009-10-12 Thread Mike
One of the other reasons I posted here is to give Google to opportunity to see this as a problem. It's one thing to notice it and not raise the issue. But I'm hoping now that the issue is raised, something more can be done about it. Out of curiosity, has anyone else noticed this guy posting

[android-developers] Question for Android frameworks people: Regarding 'Full screen mode'

2009-10-12 Thread Vijay
Hi, I wanted to know what fullscreenmode means? Is that when my softkeyboard occupies half of my screen or just whenever I'm in landscape mode? I tried the following code when I was in landscape mode. InputMethodManager imm = InputMethodManager.peekInstance(); imm.isFullscreenmode() Even

[android-developers] Re: Someone advertising pirated apps by posting feedback on market and pointing to his Twitter account

2009-10-12 Thread nEx.Software
I see this a lot, from a lot of people, on a lot of apps. On Oct 12, 8:31 am, Mike michaeldouglaskra...@gmail.com wrote: One of the other reasons I posted here is to give Google to opportunity to see this as a problem. It's one thing to notice it and not raise the issue.  But I'm hoping now

[android-developers] Re: play video backward

2009-10-12 Thread Yusuf Saib (T-Mobile USA)
Unless you modify the video file by concatenating a reversed version with the original. There are open-source tools for transforming video files (such as ffmpeg); you could possibly run one on the phone after recording, or you upload it to a cloud (preferably while recording), transform and

[android-developers] Re: How did you localize your app?

2009-10-12 Thread Yusuf Saib (T-Mobile USA)
Machine translation quality varies from good to humorous. A few extra strings in your code, and the logic to handle them, shouldn't add much to the download. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in

[android-developers] Application compatibility between SDK 1.5 and 1.6

2009-10-12 Thread flohier
Dear All, What is the recommended approach to have currently shipping 1.5-SDK compliant apps to start offering 1.6 features (such as TTL) in the Market ? Can we just publish 2 versions of the same package name each compiled with a different SDK level (will the Market automatically push out only

[android-developers] Re: rename column sqlite database

2009-10-12 Thread Marco Nelissen
You could also just add id AS _id to your query, and that way you won't have to process the downloaded database at all, you'll just do it as part of your queries. On Mon, Oct 12, 2009 at 8:26 AM, Wouter wouterg...@gmail.com wrote: It is an sqlite database but don't now why it has no _id but

[android-developers] Re: Can anybody tell pls.....

2009-10-12 Thread Yusuf Saib (T-Mobile USA)
To split a string, use String.split(): http://developer.android.com/reference/java/lang/String.html#split(java.lang.String) For the ListView, use an ArrayAdapter that maps an array of items to be displayed in a a list. Each item can be of a class you define that contains the name and id. Tell

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

2009-10-12 Thread Yusuf Saib (T-Mobile USA)
http://developer.android.com/reference/android/telephony/TelephonyManager.html#getDeviceId() 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

[android-developers] Re: How to share a database between a free and paid version of an application

2009-10-12 Thread skyhigh
After doing some more testing I have found that using a shared user ID is not needed to access the other package's databases. If you call Context.createPackageContext(other_package_name, Context.CONTEXT_IGNORE_SECURITY) then you can access the other package's databases even if there is no shared

[android-developers] Re: Detecting Long Press on a Map Overlay

2009-10-12 Thread Phil
Hi, May be this is a late answer ! Never mind, as I went through this problem, I post here the solution I found. As the ACTION_DOWN is called only once while the user is pressing the screen, the idea is to post a delayed event to detected the long press What I've done : At the beginning of the

[android-developers] Re: Nesting an ActivityGroup as atTab content

2009-10-12 Thread Huebi
I almost don't dare to write it but I want to implement iPhone like navigation behaviour where you can have nested navigation within a tab. For UI consistency reasons I wanted the tabs to be still visible as the new screen is specific to the one tab. I think I will leave that now knowing that

[android-developers] TTS SMS API

2009-10-12 Thread Neil Perry
Hello there, We're looking on making an app that would interact with SMS's so it could be played via the TTS api. Is there any way we can input into the long press menu of a sms to call it to play the said message. Thanks Neil Perry --~--~-~--~~~---~--~~ You

[android-developers] Re: Setting Focus

2009-10-12 Thread Mark
For now, I created a dummy LinearLayout and set it to focusable(true), so at least when the activity starts, the first EditText isn't selected: LinearLayout llDummy = new LinearLayout(); llDummy.setFocusable(true); llDummy.setFocusableInTouchMode(true); addView(llDummy); EditText edit

[android-developers] Re: Application compatibility between SDK 1.5 and 1.6

2009-10-12 Thread Mark Murphy
flohier wrote: What is the recommended approach to have currently shipping 1.5-SDK compliant apps to start offering 1.6 features (such as TTL) in the Market ? Publish one app, using reflection to access 1.6 APIs. Can we just publish 2 versions of the same package name each compiled with a

[android-developers] Re: Nesting an ActivityGroup as atTab content

2009-10-12 Thread Mark Murphy
Huebi wrote: I almost don't dare to write it but I want to implement iPhone like navigation behaviour where you can have nested navigation within a tab. For UI consistency reasons I wanted the tabs to be still visible as the new screen is specific to the one tab. I think I will leave that

[android-developers] Re: How did you localize your app?

2009-10-12 Thread Charlie
Hi, I'm relying on volunteers to translate my app (Thinking Space) via email. Managing the translations this way is difficult and slow, many people offer to translate, however get scared off once they get the XML files. I would like to use something like launchpad (https://launchpad.net/ ) to

[android-developers] Re: Application compatibility between SDK 1.5 and 1.6

2009-10-12 Thread nEx.Software
It sure would be nice if we could upload multiple versions of an application into the same space, and have the Market deliver the appropriate version for the user's device. So if User1 is running a device with API Level 3, they get the API Level 3 release (description, binary, etc...) and if

[android-developers] Re: Nesting an ActivityGroup as atTab content

2009-10-12 Thread Huebi
True but one is a Map and the other a list and I don't want to implement all the control code again. Simpler cases can be done through views for sure On 12 Okt., 18:43, Mark Murphy mmur...@commonsware.com wrote: Huebi wrote: I almost don't dare to write it but I want to implement iPhone like

[android-developers] Re: Application compatibility between SDK 1.5 and 1.6

2009-10-12 Thread frantz lohier
Thanks Mark. Could you elaborate on what you mean by reflection ? Thanks, On Mon, Oct 12, 2009 at 9:40 AM, Mark Murphy mmur...@commonsware.comwrote: flohier wrote: What is the recommended approach to have currently shipping 1.5-SDK compliant apps to start offering 1.6 features (such as

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

2009-10-12 Thread Wayne Wenthin
Is this something that someone with an archos can test? /looks at Mark. I know he has copious amounts of spare time. LOL On Mon, Oct 12, 2009 at 9:25 AM, Wayne Wenthin wa...@fuligin.com wrote: why not String Android_ID = System.getString(this.getContentResolver(),

[android-developers] Re: Application compatibility between SDK 1.5 and 1.6

2009-10-12 Thread Dianne Hackborn
Please see this blog post: http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html On Mon, Oct 12, 2009 at 10:10 AM, frantz lohier floh...@gmail.com wrote: Thanks Mark. Could you elaborate on what you mean by reflection ? Thanks, On Mon, Oct 12, 2009 at 9:40

[android-developers] Re: Nesting an ActivityGroup as atTab content

2009-10-12 Thread Dianne Hackborn
If you mean implementing ListActivty, what it does is trivial. On Mon, Oct 12, 2009 at 10:04 AM, Huebi konrad.hueb...@googlemail.comwrote: True but one is a Map and the other a list and I don't want to implement all the control code again. Simpler cases can be done through views for sure

[android-developers] Re: Application could not be installed on this phone?

2009-10-12 Thread Richard Schilling
I am seeing this now too. Just upgraded the phone to 1.6. DDMS doesn't tell me squat. Anyone? Richard Schilling Mobile Operating System Engineer Root Wireless, Inc. On Aug 14, 8:32 pm, dougx douglas.lin...@gmail.com wrote: I just rebuilt an application to use some new assets, and now I get

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

2009-10-12 Thread Mark Murphy
Wayne Wenthin wrote: Is this something that someone with an archos can test? /looks at Mark. I know he has copious amounts of spare time. LOL Copious isn't the word I'd use. ;-) I'll try to look into it this coming weekend, when I do more coding-level experimentation with the Archos. --

[android-developers] Re: How can I package shared libs only into apk

2009-10-12 Thread Roman ( T-Mobile USA)
Which version of the NDK are you using? I am using 1.5 and the Android.mk does not look as complicated. By the way, try to ask your question in the Android-NDK instead of the developer group! -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and

[android-developers] Re: How did you localize your app?

2009-10-12 Thread Jason Van Anden
Thanks... I meant ... did the number of downloads increase noticeably after doing a translation? Basically, trying to do a cost/benefit on localization. Analytics tells me that 40% of my users are from Europe, mostly from UK, but also from Germany and Italy. So the question becomes ... which

[android-developers] Re: Application could not be installed on this phone?

2009-10-12 Thread nEx.Software
Obvious question alert: Did you remove any old version you might have had had installed before trying to install the new one? On Oct 12, 10:28 am, Richard Schilling richard.rootwirel...@gmail.com wrote: I am seeing this now too.  Just upgraded the phone to 1.6.  DDMS doesn't tell me squat.

[android-developers] Re: get outgoing call details in background

2009-10-12 Thread Roman ( T-Mobile USA)
You should be able to measure the time between multiple onCallStateChanged events. In case of an outgoing call the state would switch from IDLE to CAll_STATE_OFFHOOK to to IDLE again. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in

[android-developers] Re: get outgoing call details in background

2009-10-12 Thread nEx.Software
You are getting the error on startManagingCursor because that method does not exist in a Service. Leave that out and make sure you close the cursor when you are done with it. On Oct 12, 11:00 am, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: You should be able to measure the

[android-developers] Re: Set Weight using API calls

2009-10-12 Thread Nitin67
Hello, I am also trying to set the weight using api calls. I have a LinearLayout, and I want to put a row of MyButtons in it, and I want them to space themselves out. Instead they bunch up on the left side of the row, and leave a large empty space on the right. I see that the

[android-developers] How to read market comments coming from all countries?

2009-10-12 Thread Andrea
Is there a way to read market comments coming from all countries? I can only read those left by users of my country. I know about androlib.com but there comments are not updated/real-time. It would be nice to have this feature into the Developer Console. Thanks a.p.

[android-developers] How to mix external and local content in WebView?

2009-10-12 Thread mroulias
Hi, I am trying to create a hybrid Android app which pulls html content from a web server and renders it in a WebView. However, I also want the external html to be able to reference images that are packaged within the android app. I realize that currently it is not possible to do something like

[android-developers] Re: Activity blocks till service completes

2009-10-12 Thread abhi
I created a new thread and tried starting the service from there, but the service is not being started from the new thread. When I set a break point in the new thread, it does not hit and there is nothing updated on logcat. Any ideas as to why this is happening? From my main class, I am creating

[android-developers] Re: Set Weight using API calls

2009-10-12 Thread Romain Guy
In your code you are setting the layout params of the LinearLayout itself. Instead, you need to create a new set of LayoutParams for each button and give each of them the weight you want. On Mon, Oct 12, 2009 at 11:16 AM, Nitin67 nitin6...@gmail.com wrote: Hello,    I am also trying to set

[android-developers] Re: Tut (SDK 1.5) Get google account of user

2009-10-12 Thread kostmo
It seems I was the victim of an edge case. I had not done a factory reset of my ADP1 since Android 1.1. It works now! :) Karl On Oct 12, 1:13 am, kostmo kos...@gmail.com wrote: It seems tantalizingly close, but I still can't get the GoogleLoginService method to work with Google App Engine

[android-developers] Re: Set Weight using API calls

2009-10-12 Thread nEx.Software
What you want is: LayoutParams lp = new LinearLayout.LayoutParams(width, height, weight); On Oct 12, 11:16 am, Nitin67 nitin6...@gmail.com wrote: Hello,     I am also trying to set the weight using api calls.     I have a LinearLayout, and I want to put a row of MyButtons in it, and I

[android-developers] Re: How to mix external and local content in WebView?

2009-10-12 Thread Mark Murphy
mroulias wrote: Hi, I am trying to create a hybrid Android app which pulls html content from a web server and renders it in a WebView. However, I also want the external html to be able to reference images that are packaged within the android app. I realize that currently it is not possible

[android-developers] Re: Activity blocks till service completes

2009-10-12 Thread Mark Murphy
abhi wrote: I created a new thread and tried starting the service from there, but the service is not being started from the new thread. No, you start the thread *in* the service. All Android components are started on the UI thread. If you want a component to use a background thread, that

[android-developers] Re: Application could not be installed on this phone?

2009-10-12 Thread Richard Schilling
The issue seems to be with the certificate used to sign the application. It works now. What I would like to do is submit a patch that provides more verbose information about why an install fails (e.g. certificate is invalid). Looking into PackageInstaller to see what I can find. Richard On

[android-developers] Re: Activity blocks till service completes

2009-10-12 Thread Dianne Hackborn
I don't see you creating a service anywhere in your code service, so I'm not sure what you mean about creating one and not having it run... yes, if you don't create one for your service there won't be one for it to run. :} You need to make a thread in your service -- either in onCreate() or

[android-developers] Re: Application could not be installed on this phone?

2009-10-12 Thread Richard Schilling
Oh, the android should be upgrading the old application properly, so uninstalling should not be necessary. This is an upgrade. Richard On Oct 12, 11:37 am, Richard Schilling richard.rootwirel...@gmail.com wrote: The issue seems to be with the certificate used to sign the application.  It

[android-developers] Re: Setting Focus

2009-10-12 Thread Neilz
Hi Mark, thanks for offering a solution to this frustrating problem. I can't implement it though... what's the addView() method from? I can't seem to resolve it... Cheers. On Oct 12, 5:38 pm, Mark mar...@gmail.com wrote: For now, I created a dummy LinearLayout and set it to focusable(true),

[android-developers] Re: Setting Focus

2009-10-12 Thread Mark
Oh the addView() is just from whatever your top level container is. So a default Activity created through the wizard just houses a LinearLayout. So it's like: LinearLayout main = (LinearLayout) findViewById(R.id.mainlayout); LinearLayout dummy = ...; dummy.setFocusable(true);

[android-developers] Re: ListView/Adapter Crash in 1.6 only: illegalStateException. 1.6 bug?

2009-10-12 Thread Sergey Vasilinets
That's a possibility. You could also just use a CursorAdapter I had also this error, and I used SimpleCursorAdapter, that's why i think, it isn't solution of the problem. ccfrazier2, Try to frequently select items, while list is adding new elements, error may be repeated(may be not). ( if you

[android-developers] Re: Duplicated permissions in Developer Console

2009-10-12 Thread James Yum
Hi Jonas, It's a bug in the publisher site. The users won't see the duplication. Cheers, James On Sun, Oct 11, 2009 at 12:59 PM, Jonas Alves jona...@gmail.com wrote: In my app's page, it shows: - This apk requests 4 permissions that users will be warned about

[android-developers] Re: ListView/Adapter Crash in 1.6 only: illegalStateException. 1.6 bug?

2009-10-12 Thread Sergey Vasilinets
That's a possibility. You could also just use a CursorAdapter I also had this error, and I used SimpleCursorAdapter, that's why i think, it isn't solution of the problem. ccfrazier2, Try to frequently select items, while list is adding new elements, error may be repeated(may be not). ( if

[android-developers] Re: How did you localize your app?

2009-10-12 Thread Brian Conrad
I haven't noticed if Android has done this but at least one other non-phone platform I develop for has furnished a file of common device used words and their translations. Noting it took a few years for that platform to do this I wouldn't hold my breathe for Android to do so but it would be

[android-developers] Alarm is canceled if app is stopped

2009-10-12 Thread Lazarus 101
I have an app that does some polling every 2 hours. I set a repeating alarm that starts a service but I have noticed that if I use some task manager (e.g. TasKiller) to kill my app then the polling will not be performed from that moment on. I know this because I store the time of the last poll, I

[android-developers] how to determine if there is any alertdialog pop-up on the screen?

2009-10-12 Thread huanwu
as the title i want to do something in my application but i have to make sure there is no other alertdialog pop-up since user may have make some alertdialog pop-up at run time and they are several different alertdialog to choose how can i check if there is all clear (no dialog)? when

  1   2   >