Re: [android-developers] Problems with big buttons using android:duplicateParentState

2010-04-19 Thread ~ TreKing
On Sat, Apr 17, 2010 at 4:26 AM, Marco Alexander Schmitz marco.alexander.schm...@googlemail.com wrote: How can I create such a big button as I want to? I don't know about your current problem, but how about instead using just a Button that's as big as you want, with the text your want, with

Re: [android-developers] Re: Can i get this layout with List view??

2010-04-19 Thread ~ TreKing
On Sun, Apr 18, 2010 at 9:35 PM, SheikhAman shekh.a...@gmail.com wrote: Things stay fine until i assign the adapter to the list i have created- as soon as i add the last line, problems start. whats wrong? Mainly, the fact that you haven't shown what problems start means or what error

[android-developers] Re: Avoid cache name collisions with webkit

2010-04-19 Thread Brian
Never mind. I looked at the source for the CacheManager class today, and for web views Android is apparently creating a subdirectory in the cache directory. I could do the same, and therefore stay well out of its way. -- You received this message because you are subscribed to the Google Groups

[android-developers] How to achieve mixed layout with ListView

2010-04-19 Thread SheikhAman
Ohk, Things go fine, and i am able to design a layout like this- ?xml version=1.0 encoding=utf-8? RelativeLayout android:id=@+id/widget101 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; RelativeLayout

[android-developers] Re: HTC Incredible no default external storage?

2010-04-19 Thread webmonkey
Here is a screenshot of the SD card phone storage screen from phandroid.com http://phandroid.com/wp-content/uploads/2010/04/incredibleinternalstorage-550x372.jpg On Apr 19, 6:24 pm, Mark Murphy mmur...@commonsware.com wrote: String wrote: On Apr 19, 4:38 pm, webmonkey webmonke...@gmail.com

Re: [android-developers] Re: can develop in any phone ?

2010-04-19 Thread Kevin Duffey
I thought screen size was no longer an issue since 1.6? Or maybe it was 2.0? I thought they added layout managers that adjust to different screen sizes? On Mon, Apr 19, 2010 at 4:19 AM, Jags jag...@gmail.com wrote: and debug ? is tattoo a g1 ? how come so cheap ? On Apr 19, 1:20 pm, Kumar

[android-developers] Re: Can i get this layout with List view??

2010-04-19 Thread SheikhAman
Sorry. my fault. the emulator says- The application has stopped unexpectedly LogCat says- java.lang.RuntimeException: Unable to start activity ComponentInfo{com.abc.MyApp/com.abc.MyApp.MainActivity}: java.lang.NullPointerException at com.abc.MyApp.MainActivity.onCreate(MainActivity.java:16) [16

Re: [android-developers] How to achieve mixed layout with ListView

2010-04-19 Thread social hub
on Ctrl + F i dont see any widget with id tweetList Have u copied it right here. if you can loojk at logcat trace then you can trouleshoot more or ask for help with tha ttrace On Mon, Apr 19, 2010 at 11:58 AM, SheikhAman shekh.a...@gmail.com wrote: Ohk, Things go fine, and i am able to

[android-developers] waitForCondition(ReallocateCondition) timed out messages w/deadlock in 2.1?

2010-04-19 Thread Robert Green
I was seeing these with Droid OpenGL reinit and now saw it again on a regular activity/surfaceview that I was just working with. W/SharedBufferStack( 74): waitForCondition(ReallocateCondition) timed out (identity=13831, status=0). CPU may be pegged. trying again. This happens on a Droid w/2.1

Re: [android-developers] Re: HTC Incredible no default external storage?

2010-04-19 Thread Mark Murphy
webmonkey wrote: Here is a screenshot of the SD card phone storage screen from phandroid.com http://phandroid.com/wp-content/uploads/2010/04/incredibleinternalstorage-550x372.jpg Well, at least there's ~1GB for apps. We still need to get to the bottom of why the apps Engadget mentioned

[android-developers] Re: Modifying components on widget from activity

2010-04-19 Thread Dirk Vranckaert
Thx Mark, that did it for me :) On 17 apr, 19:18, Mark Murphy mmur...@commonsware.com wrote: Dirk Vranckaert wrote: On my widget I'm having a button and a textView. When clicking that button some data is registered and I want the TextView to be updated. However I can't get to the TextView

[android-developers] Re: Creating A Bunch of Textviews Programmatically

2010-04-19 Thread Matthew Patience
What if I use a String Builder to create just a giant TextView with all of the comments spanning across a ScrollView? Will this still be a bad idea and take up more memory? Because I really don't want to have to revert to using the ListView. On Apr 17, 5:13 pm, Matthew Patience

Re: [android-developers] Re: Creating A Bunch of Textviews Programmatically

2010-04-19 Thread Mark Murphy
Matthew Patience wrote: What if I use a String Builder to create just a giant TextView with all of the comments spanning across a ScrollView? Will this still be a bad idea and take up more memory? That depends on how many comments you have. If you have only a few KB of comments, that's not

[android-developers] Re: HTC Incredible no default external storage?

2010-04-19 Thread webmonkey
According to this post: http://groups.google.com/group/android-developers/msg/7b8a78c9d32309ab the Samsung Galaxy uses /sdcard for the internal storage and a special folder /sdcard/sd for the external storage. I am also wondering how this all works with the getExternalStorageState() state

Re: [android-developers] Re: Creating A Bunch of Textviews Programmatically

2010-04-19 Thread social hub
if you are just displaying comments probably u can just use Textview itself (u can enable multiline and set text directly from html Html.fromHtml(string) with some success.. you can try ) prob inside a scrollview. if its just a few kb as Mark mentioned if its more than a kb or so then its better

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-19 Thread gambiting
Well,with each day I'm getting convinced more and more that the phones will not arrive in europe,and it was only for the US. But on the other side, we didn't pay anything for these phones, so it doesn't hurt to wait - maybe one day there we will get them? I just hope that people from europe will

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-19 Thread Piotr
This is pure speculation, you understand, but it fits the facts as we've been given them. Surface mail from the US to Europe usually takes 6-8 weeks, So, how you explain that. 5 months ago I have bought e-ink reader from U.S. Arrived to Poland after 10 (ten) days. Mountain View, we have a

[android-developers] Re: Android Bluetooth Development - Problem connecting

2010-04-19 Thread Max
Hi Phil! I just found your post and thought I'd chime in. Funnily enough I'm just spending second day trying to connect to a device with very similar signature to yours and I'm using code which is pretty much the same as yours and, of course, I can't make it work as well so I thought we could

Re: [android-developers] Abridged summary of android-developers@googlegroups.com - 100 Messages in 63 Topics

2010-04-19 Thread Jorge Sierra
Help wanted Hi, Any Android developer or BB who wants to help me migrate this app, pls email me. This could be 3-6 month project Here is the link of the project http://sourceforge.net/projects/sierramobilepos/files/ Thanks -- You received this message because you are subscribed to the Google

[android-developers] Teams partnership

2010-04-19 Thread Emil Boev
Hi to all, We are looking for developers who have problems with the merchant part of the Google Market (for example their country doesn't supported). We think partnership between these developers can increase their profit, reduce the time for customers support etc. If you are interested

[android-developers] how to logging in android npapi plugin

2010-04-19 Thread Sili
My sdk version is 1.6 and I use the sample code in external\webkit \WebKit\android\plugins\sample. But I find that I don't always get loggint output in LogCat. Sometimes some log ouputs were send to LogCat and I can see it, but almost of time, there is nothing at all. The log code I use is like

[android-developers] Bluetooth Bug/Omission

2010-04-19 Thread FrostEngine
When performing a device discover the remote device name is cached. All subsequent device discoveries returns the same cached name over and over even if the remote device name has changed. Is this a known problem? Does a workaround exist? Some way to clear the cached name or force the phone to try

[android-developers] To popup Numeric Keypad instead of Default Keypad | HTML code

2010-04-19 Thread Shib
Hi I have an HTML/JSP page which is supposed to run on Android phone. Theres an Amount field, clicking on should pop up the Numeric Keypad instead of Default keypad. I am not able to find the code(HTML code) which should bring the numeric keypad. I tried input android:inputType=phone

[android-developers] icon with circle and downward triangle

2010-04-19 Thread etorunski
I want to create a listview of strings, which I know how to do. I want some of those strings to have the android icon for a popup dialog, like in settings-Call Settings-Voicemail Service or also settings-SoundDisplay-Ringer Volume , Media Volume, Phone ringtone, etc... Does anyone know how do I

[android-developers] Developing for Android tablets, harder than developing for the iPad?

2010-04-19 Thread Christoffer Pettersson
Hi all. First of all, I just want to say I am a software developer, but I am not an Android developer. However I usually walk around and think on stuff. AndI've been recently thinking all the news concerning how fragmented Android is getting, with different Android versions and tweaks by

[android-developers] Re: How to display all contacts?

2010-04-19 Thread JohnT
Hello, I implemented Dmitri's cursor code: Cursor cursor = mResolver.query( Data.CONTENT_URI, new String[]{Event.DISPLAY_NAME, Event.DATA}, Data.MIMETYPE + = + Event.CONTENT_ITEM_TYPE + AND + Event.TYPE + = + Event.TYPE_BIRTHDAY, null, Data.DISPLAY_NAME ); But I'm getting the

[android-developers] Best Practice For Displaying Two Types of Views

2010-04-19 Thread Adam
Ok some background: Say you have two ways of displaying content, in a list or in a detail view (only one item is shown). When the user launches the application, depending on the intent data (or lack there of) I have made the correct logic to either show the detail view or the list view. I

[android-developers] Question regarding the database creation

2010-04-19 Thread Santhosh
Hello all, I have started creating database for my application. It is working well. The data is also getting stored.But the issue is that i require dropping table, that already exists, every time i run the application. How is it possible? Please help me in this aspect. Waiting for ur reply. But

[android-developers] Signal Strength data for WCDMA

2010-04-19 Thread JGriffin
I've been researching this for a while now, and still coming up empty. I would greatly appreciate any/all input anyone may have on my problem. I'm writing an app to monitor detailed radio data coming off the phone that I'm sending back to my own server that is collecting this information from a

[android-developers] Need Help--- Regarding Creating Database and Tables

2010-04-19 Thread Raihan Jamal
I am trying to create database and table on the click event of button... when I am clicking on the button for creating database and table... it is saying that process com.example.hw3 has stopped unexpectedly...please try again... Below is the code... what wrong I am doing?? Somebody Please

[android-developers] Problems with ACTION_BATTERY_CHANGED

2010-04-19 Thread Alessandro Arturi
Hi group, I'm wondering if there is more simple way to receive battery level from code. At the moment I'm using a BroadcastReceiver registered at the Context with a IntentFilter on ACTION_BATTERY_CHANGED, all this made by code. My AndroidManifest.xml do not specifies about other filter or

[android-developers] Possible to detect which grid sections are used by widgets on home screen?

2010-04-19 Thread straddle
My understanding is that any of the available home screen spaces are compromised of a grid view. These slots in the grid view can contain a simple shortcut to a program or/and a single widgets can take up multiple rows or columns of the grid (E.g picture frame generally takes up one 2 columns 3

[android-developers] Display Numeric Keypad instead of Default Keypad | from HTML code

2010-04-19 Thread Shib
Hi all. I was designing HTML/JSP pages which can be viewed from Android Phones. Theres a place where i have a text box to accept Amounts. clicking on it, pops up the Default text Keypad. I want to get the Numeric KeyPad instead of this Default Keypad. Any help Thanks in Advance -- You

Re: [android-developers] dependency between applications

2010-04-19 Thread Dianne Hackborn
You need to look at what the applications are using. There is no magic set of steps to find the dependencies. On Fri, Apr 16, 2010 at 6:38 AM, dnak newvf91.brjtn579...@gmail.com wrote: Hi, all. I want to know how to know the dependency between applications. Calender needs CalendarProvider,

[android-developers] Bluetooth RFCOMM connection dying immediately after .connect()

2010-04-19 Thread Max Gilead
Hi! I'm trying to connect to Zeemote (http://zeemote.com/) gaming controller from Moto Droid running 2.0.1 firmware. The test application below does connect to the device (LED flashes) but connection is dropped immediately. I can connect to the device perfectly fine using bluez tools (log

[android-developers] Re: Looking for Android plugin for NetBeans 6.8 ?

2010-04-19 Thread Petr Kotek
I've got NetBeans 6.8 + NBAndroid + Android SDK r5 working. Maybe you're getting A platform target has to be selected error when adding Android Java Platform. Follow this: http://kenai.com/jira/browse/NBANDROID-55 : You can read there: adamgmetzler added a comment - 06/Mar/10 10:35 PM It works

[android-developers] How do I bind a row cursor to a listView?

2010-04-19 Thread RollerBoy
Hello, I working on an app that's reads a SQLite database and lists selected rows as listViews inside a TableLayout. The problems is that I dont know how to bind the row cursors to the listViews. Anyone how have don such a thing? Here is the relevant parts of my code public class DataBaseHelper

[android-developers] How to make my app start up itself at the specified time just like the alarm clock.

2010-04-19 Thread shock
Hi I am making a app similar to a Alarm Clock as the first exercise. I would like to let my app start up itself in the specified time,even it has not been actived in the background. Just like a Alarm Clock. how should I do? any comment is appreciated. Thanks in advance. shock -- You received

[android-developers] RecognizerIntent speech prompt not getting focus upon activity relaunch

2010-04-19 Thread pac
I used VoiceRecognition.java as a starting point for my app. But instead of having a button that when clicked calls startVoiceRecognitionActivity() to fire a RecognizerIntent to start a voice recognition activity, I called startVoiceRecognitionActivity directly from onCreate(). I need to launch

[android-developers] android.widget.DigitalClock

2010-04-19 Thread mijzcx
Hello, Does anybody knows how to format time in android.widget.DigitalClock? Either programmatically or declaratively? Or where can I find android.widget.DigitalClock source code? Thank You -Melvin R. Zamora -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: How to display all contacts?

2010-04-19 Thread JohnT
Hello, I'm using Dmitri's code but am getting the following error: ERROR/AndroidRuntime(529): Caused by: android.database.sqlite.SQLiteException: near .: syntax error: , while compiling: SELECT display_name, data1 FROM view_data_restricted data WHERE (1) AND

[android-developers] Where the Android Store SQLite database..

2010-04-19 Thread Raihan Jamal
Can anybody explain me where android store sqLite database I have created database and tables on the click event of a Button so I just need to verify whether the database and table have been created or not Do reply -- You received this message because you are subscribed to the

Re: [android-developers] Opengl

2010-04-19 Thread Stephen Eilert
On Mon, Apr 19, 2010 at 12:42 AM, risha risha.kott...@wipro.com wrote: Let me know how to set up a background image in opengl There's no such thing. --Stephen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Doubt In Eclipse Plugin Development

2010-04-19 Thread Pallavi Jadhav
I have to extend the existing problem view of Eclipse.. But I have problem to display problems i.e errors,warning,infos at run time... I am able to get that runtime but when we change any error i.e after removing or adding any error,warning that changes not reflect immediately in problem view

[android-developers] Android sdk

2010-04-19 Thread cheng cien hua
I ve download 3 packages successfully, why when I reopen the sdk setup again , the installed package is already nothing again? If I press update all, the list appeared still consist the already downloaded packages n else Why? THX for the help glass supply, bb service n supply YM

Re: [android-developers] Opengl

2010-04-19 Thread Max Gilead
On 19 April 2010 04:42, risha risha.kott...@wipro.com wrote: Let me know how to set up a background image in opengl Before you render your scene set up an ortho projection and render a quad with aspect ratio equal to your screen aspect (or just square quad if your background is a tiling image)

[android-developers] Re: Android Camera Issue

2010-04-19 Thread zcic...@gmail.com
I've started getting the same issue. Trying to grab a single frame and am getting: 04-19 01:00:03.059: ERROR/QualcommCameraHardware(621): native_get_picture: MSM_CAM_IOCTL_GET_PICTURE fd 14 error Connection timed out 04-19 01:00:03.059: ERROR/QualcommCameraHardware(621): getPicture failed! My

[android-developers] What format and tools do you use for music in your games?

2010-04-19 Thread Patrick
I've been looking around for tools for working with MIDI to create soundfonts, but the one mentioned in the Android JET docs (Awave) is a bit pricey for me. Tried Vienna Soundfont Studio but it quickly told me that I have no soundfont compatible device on my laptop... Since I'm coming from a

[android-developers] Is camcorder emulation supposed to work for the android?

2010-04-19 Thread SpangSpang
Hi Group, I'm new here (hopefully I'm not posting this wrong somehow) and wondering, is the emulation of the Google Android on a PC supposed to include the camcorder recording function? I'm writing a program that uses picture and video taking, and the picture taking works fine but the video

[android-developers] Re: Bluetooth RFCOMM connection dying immediately after .connect()

2010-04-19 Thread Max Gilead
Any Bluetooth fellow devs willing to try and give some hints maybe? :) The updated version of this issue is at: http://stackoverflow.com/questions/2660968/how-to-prevent-android-bluetooth-rfcomm-connection-from-dying-immediately-after Cheers, Max On 18 April 2010 02:36, Max Gilead

[android-developers] Re: Android GData (Calendar)

2010-04-19 Thread Achanta
Hi Kumar, You can use the official gdata libraries from google. Whats stopping you? I tried looking at the documentation and the code to see how I can access Google Health from android but could not yet find a way. Can you let me know How I can retrieve the user account info/token on android.

Re: [android-developers] Need Help--- Regarding Creating Database and Tables

2010-04-19 Thread Liviu Ungureanu
Hi! I use this method to work with database: // this is my DatabaseManager class package com.liviu.app.nearbyplace.data; import java.util.ArrayList; import com.liviu.app.nearbyplace.util.Constants; import android.content.ContentValues; import android.content.Context; import

[android-developers] Re: Social Gaming Platforms

2010-04-19 Thread Michael A.
Thanks for the information Junde. I am already registered and just now got access to the SL beta SDK for Android, so I'll be spending some time to look this over and test it in the coming weeks. Regards, Michael A. On Apr 14, 5:02 am, Junde jun...@gmail.com wrote: Hi Michael, Rob and Mauricio,

[android-developers] Highlight part of the text in a textview object

2010-04-19 Thread sebastian23
the problem is that your solution is only for the font color, but i want to set the font background :( -- 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

Re: [android-developers] Where the Android Store SQLite database..

2010-04-19 Thread social hub
its under ur package name say com.test.test1 then u can find under /data/data/com.test.test1/databases/ using adb shell On Sat, Apr 17, 2010 at 6:03 PM, Raihan Jamal jamalrai...@gmail.com wrote: Can anybody explain me where android store sqLite database I have created database and tables

Re: [android-developers] icon with circle and downward triangle

2010-04-19 Thread social hub
you can do so by writing your own adapter. Look at cursorAdapter or baseadapter etc. There are plenty of examples around. On Sun, Apr 18, 2010 at 7:53 PM, etorunski etorun...@gmail.com wrote: I want to create a listview of strings, which I know how to do. I want some of those strings to have

Re: [android-developers] spinner question: how to detect the selection of an already selected item?

2010-04-19 Thread ~ TreKing
On Sun, Apr 18, 2010 at 8:45 PM, greg sep...@eduneer.com wrote: Any tips on how to detect the selection of an already selected item in a spinner? You can't. Optionally you could: 1 - Provide a separate Update button that the user presses to re-sort the list after they've checked what they

[android-developers] Re: Possible to detect which grid sections are used by widgets on home screen?

2010-04-19 Thread String
On Apr 18, 6:47 pm, straddle psaum...@gmail.com wrote: Is there a way to detect which grid blocks are occupied on the home screen and what is available and how big of a block is available? I don't believe that there is, no. The Home app does it internally, but I've done quite a bit of widget

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-19 Thread JDS
I would be very surprised if they do not arrive. If the intention never was to send any to europe, why would Google confirm that they will arrive over and over again? What is obvious is that they had, or still have, some major issues but I don't think we will never know what kind. In the last

[android-developers] Re: What format and tools do you use for music in your games?

2010-04-19 Thread Robert Green
I really like Cubase 5. I've been a Cubase user for years and you can get a light version pretty cheap. It, like many production apps, take a little bit of effort to learn but I can now crank songs out in it like nothing else. I don't recommend MIDI on Android, btw. I started using it for a

[android-developers] Re: Android Bluetooth Development - Problem connecting

2010-04-19 Thread ssozonoff
Hi Guys, I am having the same issue with code which worked fine on the HTC Legend and now fails on the HTC Desire. Could you report which handsets you are using as well. I would like to establish if this could be some sort of timing related issue. Thanks, Serge On Apr 18, 12:32 am, Max

Re: [android-developers] Pass ArrayList parameters between two activities.

2010-04-19 Thread ~ TreKing
On Mon, Apr 19, 2010 at 1:24 AM, Ke Wu kerl@gmail.com wrote: I dont know what the Intent exactly do when I use putExtra to pass in an ArrayListMyClass object. Did you read the documentation on Intents? Specifically this:

[android-developers] Re: Developing for Android tablets, harder than developing for the iPad?

2010-04-19 Thread Streets Of Boston
Unfortunately Android does not have the same luxury to do this Where did you hear/read this? And, it's the opposite, it *does* have that luxury. Unless you specified in your app's manifest file that Android should not try to scale up your app's UI, Android will try its best to fit your app in the

[android-developers] Re: HTC Desire keyboard problem

2010-04-19 Thread jamesc
Perhaps your 'digit2' View doesn't have focus at the point where input is being requested? On Apr 19, 9:15 am, Michael Rueger mike.rue...@gmail.com wrote: On 4/18/2010 3:43 PM, jamesc wrote: Hi Michael It'll be the Sense UI's IME which has different behaviour to the stock Android IME.

Re: [android-developers] Re: How to display all contacts?

2010-04-19 Thread Dmitri Plotnikov
You need to escape the mime type. Better yet, do this: Cursor cursor = mResolver.query( Data.CONTENT_URI, new String[]{Event.DISPLAY_NAME, Event.DATA}, Data.MIMETYPE + =? AND + Event.TYPE + =?, new String[]{Event.CONTENT_ITEM_TYPE , String.valueOf(Event.TYPE_BIRTHDAY)},

[android-developers] Re: HTC Incredible no default external storage?

2010-04-19 Thread Streets Of Boston
I am also wondering how this all works with the getExternalStorageState() state function, does it always return MEDIA_MOUNTED ? Maybe not when you connect your phone to a PC and select 'Mount', for example... On Apr 19, 2:44 pm, webmonkey webmonke...@gmail.com wrote: According to this post:

Re: [android-developers] Re: Android Bluetooth Development - Problem connecting

2010-04-19 Thread Max Gilead
Hi Serge! Moto Droid 2.0.1 here. I described the issue in much more (and up to date) detail on Stack Overflow: http://stackoverflow.com/questions/2660968/how-to-prevent-android-bluetooth-rfcomm-connection-from-dying-immediately-after What kind of timing issue you think about? Cheers, Max On

[android-developers] java.util.Random caching?

2010-04-19 Thread Ivan Greene
That is the only thing I can think of. When I generate a random number (for the radius of a ball), after a while, the radius goes to one number and sticks that way. I've even tried setting the random number value to 0 before getting the random number, and java.util.Random must be at fault, it

[android-developers] Re: Can i get this layout with List view??

2010-04-19 Thread Bob Kerns
What's wrong? The last line! Please very read carefully the documentation for the ArrayAdapter constructor. You'll need to be sure to understand each word, as it's rather short on explanation. Given the multiple meanings for 'id', you'll see how you got confused! The documentation for the second

[android-developers] Re: What format and tools do you use for music in your games?

2010-04-19 Thread Mario Zechner
I'm also sticking to ogg at the moment which of course limits the amount of music i can pack into my games. For production is use some tools from drpetters, namely sfxr for 8-bit sound effects as well as audacity and cubase for heavy lifting. Another way i plan on lifting the application size

Re: [android-developers] Problems with ACTION_BATTERY_CHANGED

2010-04-19 Thread Dianne Hackborn
You don't send this broadcast, you receive it. I can't figure out why you would want to send the broadcast -- there is no way you can fill it in correctly without receiving it from the system, anyway. If you just want to retrieve the current state, this is a sticky broadcast so you can use the

[android-developers] Re: java.util.Random caching?

2010-04-19 Thread Tim
On Apr 19, 10:49 pm, Ivan Greene ivant...@gmail.com wrote: code Random randomizer = new Random(System.currentTimeMillis()); int hw; hw = randomizer.nextInt(95-15+1)+15; /code Presumably you don't create a newly seeded Random for each new random number... right? -- You received this

[android-developers] Background processes not being CPU-limited?

2010-04-19 Thread Mark Murphy
We were told that, as of Android 1.6, background processes were put in a Linux process scheduling class that limited how much CPU they would use. A few weeks ago, I ran a benchmark test that seemed to validate this claim. I have run more tests, and I am no longer confident in my earlier

[android-developers] reenableKeyguard() without direct locking

2010-04-19 Thread arnoldl
I'm building a app wich wakes and unlock's the phone on a event. This works fine.. only when leaving the activity (or when a timer runs out..for when there's nobody around) i use reenableKeyguard() to restore the keylock to origenal state... but then it locks directly i would like the

[android-developers] Re: Background processes not being CPU-limited?

2010-04-19 Thread Robert Green
Perhaps the issue is simply more fundamentally difficult than scheduling can fix and an exclusive mode (for games and other real- time apps where users don't care about having their RSS feed up to date, etc) is in order? On Apr 19, 5:32 pm, Mark Murphy mmur...@commonsware.com wrote: We were told

[android-developers] Could anyone with an HTC Desire/Droid help me

2010-04-19 Thread Zsolt Vasvari
Hello, I just released my first app, but I am getting reports of FC on the Desire/Droid immediately. I don't have those devices to test against, I only have a Nexus One and the emulator. Is it possible that somebody with these devices could give me a hand and give my app a try? The app is

[android-developers] Re: Background processes not being CPU-limited?

2010-04-19 Thread Robert Green
I'll repeat my question from the bug: So if this defect is not a defect, what are the plans to make it so that our games don't have periods of lag caused by greedy background processes that we can't control? As it stands, gaming on Android is a laggy experience and this is one of the issues. On

[android-developers] WebKit browser specifications for web developers

2010-04-19 Thread tenacious
I'd like to re-open the discussion that was ignored and dropped at: http://groups.google.com/group/android-developers/browse_thread/thread/eb7034f18896e0d0/cac00712e5ed6f78?lnk=gstq=webkit+version#cac00712e5ed6f78 We want a documented page which describes the version of WebKit and the supported

[android-developers] Re: Background processes not being CPU-limited?

2010-04-19 Thread Bob Kerns
Well, after looking at your code, my suggestion for advice would be: Do no evil! :=) When I implemented something like this on Symbolics Lisp Machines back in the 1980's, I made the scheduling boost for UI actions be for a limited period of time. Perhaps something like that is going on here? I

[android-developers] compatibility with nonexistant classes

2010-04-19 Thread kec6227
I have read the Backward Compatibility Article, and I don't full understand how (or if I can) make a program backwards compatible if I want to use a class introduced in later versions. For example, I want to use WallpaperManager for apis 5+, but make the app as a whole compatible with api 3+. Is

[android-developers] Re: Background processes not being CPU-limited?

2010-04-19 Thread Robert Green
Bob, The idea is that an exclusive mode would cater to apps that are never idle. Games are never idle. They constantly update and draw. There are other apps that work that way as well and having a more guaranteed consistent amount of CPU available for those simulations would probably be very

[android-developers] AbstractAccountAuthenticator getAuthToken

2010-04-19 Thread brian
I'd like to limit or at least know who is calling my AbstractAccountAuthenticator. Ultimately, I'd like to get the signatures of the calling application before I return from getAuthToken int callingUid = Binder.getCallingUid(); int callingPid =

Re: [android-developers] Re: Background processes not being CPU-limited?

2010-04-19 Thread mike
On 04/19/2010 04:56 PM, Robert Green wrote: Bob, The idea is that an exclusive mode would cater to apps that are never idle. Games are never idle. They constantly update and draw. There are other apps that work that way as well and having a more guaranteed consistent amount of CPU available

[android-developers] ImageView - Set width in code?

2010-04-19 Thread Tommy
Hey, I have an image view on my activity I set the height and width to 500px to start with as the image is rather big. I have the scale set to fitXY. My problem is the image comes in 3 widths 500px, 1200px and 1500px (depending on the graph) Whenever I have the 1200px or 1500px load into the

[android-developers] Re: Background processes not being CPU-limited?

2010-04-19 Thread Robert Green
Mike, The whole issue is that the Sync and IM services are specifically what cause lag in games. If a user wants a smooth gaming experience, something's gotta go - or it's gotta be squashed way down so that it can't use much of the CPU. I'm not saying I know what should stay and what should go.

Re: [android-developers] Re: Background processes not being CPU-limited?

2010-04-19 Thread Mark Murphy
Robert Green wrote: The whole issue is that the Sync and IM services are specifically what cause lag in games. If a user wants a smooth gaming experience, something's gotta go - or it's gotta be squashed way down so that it can't use much of the CPU. That's what the background process

Re: [android-developers] Re: Background processes not being CPU-limited?

2010-04-19 Thread mike
On 04/19/2010 05:37 PM, Robert Green wrote: Mike, The whole issue is that the Sync and IM services are specifically what cause lag in games. If a user wants a smooth gaming experience, something's gotta go - or it's gotta be squashed way down so that it can't use much of the CPU. I'm not

[android-developers] Re: Disable or Override the Car Dock App

2010-04-19 Thread shookie10
Hi, Thanks for the help! I have tried the suggestions but still unable to get it to work. The Main Activity has an intent filter in the manifest but the activity does not get called. Below is my manifest. My broadcast receiver is also listed below. The receiver seems to be working when it is

[android-developers] Re: java.util.Random caching?

2010-04-19 Thread Ivan Greene
Presumably you don't create a newly seeded Random for each new random number... right? no I don't On Apr 19, 5:28 pm, Tim tdh...@gmail.com wrote: On Apr 19, 10:49 pm, Ivan Greene ivant...@gmail.com wrote: code Random randomizer = new Random(System.currentTimeMillis()); int hw; hw =

Re: [android-developers] Re: Background processes not being CPU-limited?

2010-04-19 Thread mike
On 04/19/2010 05:43 PM, Mark Murphy wrote: Robert Green wrote: The whole issue is that the Sync and IM services are specifically what cause lag in games. If a user wants a smooth gaming experience, something's gotta go - or it's gotta be squashed way down so that it can't use much of the

Re: [android-developers] Re: Disable or Override the Car Dock App

2010-04-19 Thread Mark Murphy
shookie10 wrote: I have tried the suggestions but still unable to get it to work. The Main Activity has an intent filter in the manifest but the activity does not get called. Below is my manifest. My broadcast receiver is also listed below. The receiver seems to be working when it is placed

Re: [android-developers] How to play three images as an animation on Widget?

2010-04-19 Thread D.Y
I don't want add an animation control on the widget, I just want to show three images in turn on the ImageView of Widget. I think there should be a solution. Thanks, -邮件原件- 发件人: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] 代表 Mark Murphy 发送时间:

[android-developers] Re: waitForCondition(ReallocateCondition) timed out messages w/deadlock in 2.1?

2010-04-19 Thread Robert Green
Does anyone know what this is all about? Seems like something that should never happen. On Apr 19, 12:44 pm, Robert Green rbgrn@gmail.com wrote: I was seeing these with Droid OpenGL reinit and now saw it again on a regular activity/surfaceview that I was just working with.

Re: [android-developers] Re: Disable or Override the Car Dock App

2010-04-19 Thread Mark Murphy
I found the answer, courtesy of an alldroid.org thread. Here's the intent-filter you need: intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / category android:name=android.intent.category.CAR_DOCK /

[android-developers] Re: Background processes not being CPU-limited?

2010-04-19 Thread Robert Green
Mike, If I implemented what you are proposing where the game Backs off as other processes want CPU, the game would choke itself down to 10FPS while your email is being retrieved. Wanna know what kind of user feedback that would create? I'll tell you: 1 star - Game sucks and lags hard. Don't

Re: [android-developers] How to play three images as an animation on Widget?

2010-04-19 Thread Mark Murphy
D.Y wrote: I don't want add an animation control on the widget, I just want to show three images in turn on the ImageView of Widget. I think there should be a solution. Then update the app widget using AppWidgetManager and a RemoteViews three times, with whatever delay you want between them,

Re: [android-developers] Re: Game develop like Air Attack touching screen event

2010-04-19 Thread a a
It still can't work. It says Set whether this view can receive focus while in touch mode. Setting this to true will also ensure that this view is focusable. I think my view is not in touch mode, so how to set my view with touch mode? is it right? 2010/4/19 Robert Green rbgrn@gmail.com:

Re: [android-developers] Re: Background processes not being CPU-limited?

2010-04-19 Thread mike
On 04/19/2010 06:16 PM, Robert Green wrote: Mike, If I implemented what you are proposing where the game Backs off as other processes want CPU, the game would choke itself down to 10FPS while your email is being retrieved. Wanna know what kind of user feedback that would create? I'll tell

Re: [android-developers] Re: Disable or Override the Car Dock App

2010-04-19 Thread Dianne Hackborn
There is no need for the LAUNCHER category unless you want this activity to also show up as a top-level application in the launcher. On Mon, Apr 19, 2010 at 6:16 PM, Mark Murphy mmur...@commonsware.comwrote: I found the answer, courtesy of an alldroid.org thread. Here's the intent-filter you

[android-developers] Re: How to achieve mixed layout with ListView

2010-04-19 Thread SheikhAman
Yaa.. ur ryt. it wasn't copied correctly. I tried another work around, and its now working :-) On Apr 19, 10:26 pm, social hub shubem...@gmail.com wrote: on Ctrl + F i dont see any widget with id tweetList Have u copied it right here. if you can loojk at logcat trace then you can

<    1   2   3   >