[android-developers] Re: Sd card file write

2010-03-16 Thread Bob Kerns
I can't really make out what you're doing. You have a 'bos.write(myByte);' line that references bos, with no clue what that is. I don't know what myvals or x are intended to be. I don't see a filecon.close() anywhere, or a try/finally block to ensure it's closed (and preferably deleted) in the e

Re: [android-developers] Emulator won't work

2010-03-16 Thread David Turner
On Thu, Jun 11, 2009 at 4:55 PM, Dagvadorj Galbadrakh wrote: > > When I start an AVD with emulator, emulator says the following > > emulator: emulator window was out of view and was recentred > > The emulator saves the last position of its window when it exits. On startup, it retrieves the recorde

[android-developers] Re: Emulator won't work

2010-03-16 Thread Anandi
I downloaded the 2.1 source on ubuntu machine and built it. Now emulator is working fine. On Mar 12, 1:23 pm, Anandi wrote: > i am also facing the same issue. Can anybody please help? > > On Jun 12 2009, 4:55 am, Dagvadorj Galbadrakh > wrote: > > > When I start an AVD with emulator, emulator s

[android-developers] Re: Deleting an entire table in a content provider?

2010-03-16 Thread Kumar Bibek
Prachi's method does work. Try it out. Thanks and Regards, Kumar Bibek. On Mar 17, 11:12 am, prachi wrote: > H > > Yaa u can delete the whole table table using delete method supplying > table name and where and whereargs as null.Inside the delete method of > your contentprovider call the del

[android-developers] Re: Ant vs Eclipse build difference

2010-03-16 Thread Amy Winarske
Yes, they are in the libs directory. On Mar 16, 6:24 pm, Makas Tzavellas wrote: > Do you have the jar files that the project is dependent on in the > "libs" folder in your Android project folder? > > If not, it might explain why it works in Eclipse since it can > reference jar files from other lo

[android-developers] How to get all Contact details in a single query

2010-03-16 Thread Pankaj
I am using Android SDK 1.6 I want to get name, all emails, all phone numbers, organization details for a contact. Currently what I do is append the People.ContactMethods.CONTENT_DIRECTORY with a base uri to obtain emails Contacts.Organizations.CONTENT_DIRECTORY with a base uri to obtain organizat

[android-developers] Re: Deleting an entire table in a content provider?

2010-03-16 Thread prachi
H Yaa u can delete the whole table table using delete method supplying table name and where and whereargs as null.Inside the delete method of your contentprovider call the delete method of SQLiteDatabase. I guess this will work. On Mar 16, 1:04 pm, Makas Tzavellas wrote: > Can't say that I

[android-developers] Re: Put a 2D Image into android...the code?

2010-03-16 Thread grace
hi, define ur layout with an image view and set the src to some image drawable On Mar 16, 1:25 pm, massimo wrote: > Hi, > I would like to put an image into android (I'm using Eclipse). > How I need to procede? > > I have make a new project with a class that have the base code, after > what I ne

[android-developers] Re: Audio Flickering - my code, my computer or android emulator?

2010-03-16 Thread HeHe
if you find any native audio interfaces in NDK, please share it with me first :) for your issue, did you check GC? that is, around the time when you see buffer overflow msgs, does GC happen too? On Mar 16, 7:33 pm, Gabriel Simões wrote: > *** Idea ... > Using the NDK native audio interfaces shou

[android-developers] Everything for your mobile. The search is over

2010-03-16 Thread Omer Farooq
Tired of searching software for your mobile Phone. Well the search is over now. Wether you have Andriod, Symbian or Iphone. WHether you have NOKIA, HTC, IPHONE, SONY ERICSON, SAMSUNG. It doesn't matter for this product. Search any software, themes, ringtones, wallpapers, screensave. You will defina

[android-developers] Sd card file write

2010-03-16 Thread sumit asok
Hi, I'm trying to write a file from an Http post reply to a file on the sdcard. Everything works fine until the byte array of data is retrieved. I've tried setting WRITE_EXTERNAL_STORAGE permission in the manifest and tried many different combinations of tutorials I found on the net. How my app

[android-developers] Re: Numbers aligned to the right in EditText

2010-03-16 Thread grace
u can set the gravity of the view(edittext ) to right. On Mar 16, 2:17 pm, Marek Urbaniak wrote: > Is it possible to align text in the EditText widget to the right? I do > not see any such a property. Am I missing it or maybe there is no such > an option. -- You received this message because yo

[android-developers] Re: AbstractAccountAuthenticator.getAccountRemovalAllowed query

2010-03-16 Thread sukumar bhashyam
Can anyone pls respond? On Fri, Mar 12, 2010 at 3:20 PM, sukumar bhashyam < bhashyam.suku...@gmail.com> wrote: > hi, > > I'm trying to create a sync account which should not be deleted by user ( > On selecting RemoveAccounts from Accounts settngs). > > For that, I overriden getAccountRemovalAllow

[android-developers] NEW TOURIEST SPOTS IN KERELAhi,just see that

2010-03-16 Thread antriya zen
hi,just see that hi,This money making oppurtunity is totaly free and all you have to do is click on some ads .learn more about it by clicking on the link below and you will findout how!Go head, click on the link http://www.joshuanet.in , time is money watch it http://www.joshuanet.in BEST WISHES

[android-developers] Re: Some Queries about ListView

2010-03-16 Thread SheikhAman
Thanks! I just check it out. On Mar 16, 10:15 pm, Kumar Bibek wrote: > Yes, the ListView is fully customisable. Look for some examples on the > net. > > http://tech-droid.blogspot.com/2009/07/custom-listview-for-android.html > > Thanks and Regards, > Kumar Bibek > > On Mar 16, 2:14 pm, SheikhAman

[android-developers] How could I make such a UI? customized UI issue

2010-03-16 Thread cindy
Our UI designer design a very complicated UI, User gets a string like "I like apple and banana" for server. When UI displays the sentence, "apple" and "banana" should be red color. When user clicks apple or banana, there is a drop down list of fruit, such as "pearl" "water melon",etc. user woul

[android-developers] Re: How to merge two bitmap into one

2010-03-16 Thread Nithin
Thanks for all replies.. By merge I mean adding, one image with another. Nithin On Mar 16, 6:28 pm, Warren wrote: > I use something like the following function. It really depends what > you mean by "merge". Do you mean average, alpha over, multiply, add, > etc.? > Anyway, you can change the ari

[android-developers] Re: General lag issues with real-time games

2010-03-16 Thread Jason Arora
+1 for Game Mode As others have mentioned, background processes can invoke the GC. On my development device, I used to have Taskiller installed for the occasional Kill-All but I realized that it would regularly invoke the GC about once a minute. I think the Taskiller widget was causing this to hap

[android-developers] Google Checkout Finally Arrives in Canada?

2010-03-16 Thread Agus
Based on todays' news Canadians can buy paid apps from the Market. Can anyone (from Google) confirm if Google Checkout finally work for Canadian users? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

[android-developers] Please share the info about the problem "app is not visible on Android Market"

2010-03-16 Thread Vincent
Hi, All. The end of last year, there were discussions about the problem regarding to the visibility of apps on Android Market. App Not showing up on Verizon DROID Phones http://groups.google.com/group/android-developers/browse_thread/thread/6324add11decee78/ad4c75a4cd595046?lnk=gst&q=not+visible+

Re: [android-developers] Re: 3D Physics Engine For Android Demo

2010-03-16 Thread Kevin Duffey
Well if it makes you feel any better, us Moto Droid owners were supposed to have an Android experience phone, where we would get updates as soon as they came out, or soon after. We have been waiting for the 2.1 update for over 2 months now, with no information from anyone regarding when we'll ever

[android-developers] Re: CTS APK'S QUERIES

2010-03-16 Thread Umang Gupta
Any help on how to test apk's generated by compiling cts tests on emulator or target ?? Thanks : Uander On Tue, Mar 16, 2010 at 5:53 PM, Umang Gupta wrote: > Hi All , > > I am running cts test cases on eclair . I've done with : > . build/envsetup.sh; lunch 1; make cts > > That compiled my a

[android-developers] Re: How to disable the menuitem

2010-03-16 Thread grace
hi, based on your logic.. may u can try like this menu.getItem(ItemID).setEnabled(false); and if u dont want the item to be visible u cant set the visibility accordingly.. On Mar 17, 5:03 am, David Toledo wrote: > Hi All > >               How to disable the menuitem in android in execution time

[android-developers] Share files with different Activities running in different processes in a application.

2010-03-16 Thread magicpig
Hi, I would like to share a cache file across activities, which are running in different processes but in a same application. The operations on the file are: Read: context.openFileInput->read fileInputStream->close fileInputStream Delete: context.deleteFile Write:con

[android-developers] Re: How to trace contentProvider

2010-03-16 Thread grace
hi, as we can see this query is an abstract method and the implementation of this method will be defined in the classes that extend this contentprovider class. you can check out different provider implementations for the definition of this method. On Mar 17, 7:24 am, a a wrote: > Dear All, > >

[android-developers] Re: how to make textview clickable

2010-03-16 Thread Superbiji
Hello, i have tried to create xml and assign it to textColor attribute.. but when started i got FC.. (can not instant/find class) also tried from code., wont work also pls help On Mar 16, 8:07 pm, Superbiji wrote: > Wow... thanks > so basicly textview is clickable, but only the appearance not c

[android-developers] Re: Audio Flickering - my code, my computer or android emulator?

2010-03-16 Thread Gabriel Simões
*** Idea ... Using the NDK native audio interfaces should solve this problem? On 16 mar, 22:26, Gabriel Simões wrote: > News, but no good news... > > I´ve tried the source code above on another machine running the sdk > 2.1, an AVD with default parameters plus audio record and audio > playback ca

[android-developers] How to trace contentProvider

2010-03-16 Thread a a
Dear All, I am now reading contentProvider.java( under the base/core/java/android/content) Ln 127 looks following: public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { enforceReadPermission(uri);

Re: [android-developers] About android.permission.INJECT_EVENTS

2010-03-16 Thread David Ashwood
Your asking for the permission to inject events from your application to others. It won't take away the ability for you app to receive input - it allows you to send something like a keystroke from your app to another. On 17 March 2010 02:25, Morris wrote: > Hi All, > > I refer to > http://develo

Re: [android-developers] dns failing in broadcast receivers?

2010-03-16 Thread David Ashwood
Check that times are sync'd - I've seen some issues before where out-of-sync clocks caused DNS errors. On 17 March 2010 02:06, Jason Proctor wrote: > hey all, > > something weird just started happening. my app has a broadcast receiver > which may access the network when invoked. the code has bee

Re: [android-developers] Re: 3D Physics Engine For Android Demo

2010-03-16 Thread Greg Donald
On Tue, Mar 16, 2010 at 4:52 PM, Martin wrote: > So bad that I cannot test it on my HTC Hero, because I have Android > 1.5 :-( Sucks to be us :( My Hero was cool right up until I realized 1.5 sucked and HTC was in no hurry to update it. -- Greg Donald destiney.com | gregdonald.com -- You r

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

2010-03-16 Thread Johnnie
really? On Mar 3, 8:46 am, Roman Nurik wrote: > Folks, the email is NOT a fake. We will look into the email issues. > > Roman Nurik > Android Developer Relations, Google > > NOTE: please do not send me email directly about this. > > On Mar 2, 4:43 pm, Mark Anacker wrote: > > > > > Well, if noth

[android-developers] Re: Audio Flickering - my code, my computer or android emulator?

2010-03-16 Thread Gabriel Simões
News, but no good news... I´ve tried the source code above on another machine running the sdk 2.1, an AVD with default parameters plus audio record and audio playback capabilities, another operational system (linux), etc. The results? the same we had before audio delay (long delay), chopping,

[android-developers] About android.permission.INJECT_EVENTS

2010-03-16 Thread Morris
Hi All, I refer to http://developer.android.com/intl/zh-TW/reference/android/Manifest.permission.html and find "android.permission.INJECT_EVENTS" as below description. -- Allows a

[android-developers] Re: Ant vs Eclipse build difference

2010-03-16 Thread Makas Tzavellas
Do you have the jar files that the project is dependent on in the "libs" folder in your Android project folder? If not, it might explain why it works in Eclipse since it can reference jar files from other locations but fails with ANT build since it is not found in the libs folder. Makas On Mar 1

[android-developers] Re: Audio Flickering - my code, my computer or android emulator?

2010-03-16 Thread Gabriel Simões
News, but no good news... I´ve tried the source code above on another machine running the sdk 2.1, an AVD with default parameters plus audio record and audio playback capabilities, another operational system (linux), etc. The results? the same we had before audio delay (long delay), chopping,

Re: [android-developers] Process and application lifecycles

2010-03-16 Thread Frank Weiss
I think it would help to take a change of perspective. Programmers have a tendency to think more in terms of code than data. Try think of an Android application as a set of states over time. Code only runs to change the state of the application (such as adding a contact) or to do fancy graphics or

Re: [android-developers] Re: Oh crap. I missed IO registration :(

2010-03-16 Thread Mark Murphy
Maps.Huge.Info (Maps API Guru) wrote: > If I might suggest... > > Contact the Bay area GUTG and see if they can help you organize a get- > together the evening before IO. Last year they had an event that was > interesting but mostly geared toward Bay residents. It might be useful > to have somethi

Re: [android-developers] Grrrrr.... 100 SMS per hour

2010-03-16 Thread Isaac Wagner
On Tue, Mar 16, 2010 at 3:56 PM, Mark Murphy wrote: > Isaac Wagner wrote: >> After the 100 messages limit Android pops up a dialog saying something >> about sending a large number of messages and asking the user if they >> want to continue.  When they click OK or Cancel are there events >> generat

[android-developers] Re: Oh crap. I missed IO registration :(

2010-03-16 Thread Maps.Huge.Info (Maps API Guru)
If I might suggest... Contact the Bay area GUTG and see if they can help you organize a get- together the evening before IO. Last year they had an event that was interesting but mostly geared toward Bay residents. It might be useful to have something oriented toward IO instead. http://www.meetup.

[android-developers] what resolution mediaplayer can support?

2010-03-16 Thread genxsol
Hi Dear, i am trying to play a video through uri (http://-) but i can only listen voice, no display i am using the MediaPlayerDemo_Video from the api samples. i used anyother link which works fine. i need to know what resolution Android videoplayer can support so i can transcode my video

[android-developers] Re: EXTRA_OUTPUT problem with video camera - breaks 'retake' and 'delete' buttons

2010-03-16 Thread Anna PS
Any ideas, anyone? wondering if this is an Android bug, or if I'm doing something wrong. Seems to work fine when taking photos, just not videos. On Mar 12, 7:27 pm, Anna PS wrote: > NB here's my traceback: > > 03-12 19:25:57.948: INFO/ActivityManager(936): Starting activity: > Intent { act=androi

[android-developers] Game Developers: Some general questions about high scores, achievements, multi player support and in game ads.

2010-03-16 Thread Kevin Duffey
Hey all, I am curious how the various groups of game developers, primarily mobile (android in this case) and cross-platform (android/iPhone/facebook) handle storing high scores, achievements, and such as well as how multi player is done. How does your game(s) access high scores, update the list,

[android-developers] dns failing in broadcast receivers?

2010-03-16 Thread Jason Proctor
hey all, something weird just started happening. my app has a broadcast receiver which may access the network when invoked. the code has been solid for ages, but in the last few days it has started getting DNS errors on perfectly fine hosts. these are hosts which can be reached without proble

[android-developers] How to disable the menuitem

2010-03-16 Thread David Toledo
Hi All How to disable the menuitem in android in execution time. Example : Button Next and Back. When is in the last record, the Next menu is disable Thanks David -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th

[android-developers] Problem with Network Access with HttpClient using AsyncTask (or Thread directly)

2010-03-16 Thread Objectist Software Inc
Hi, I am trying to use a certain wrapper of HttpClient, called HTTPRequestHelper with an associated responseHandler as the basic class for my wrapper to a web service which is implemented as a singleton. HTTPRequestHelper and samples of usage are described in chapter 6 of "Unlocking Android" p

[android-developers] Multiline text with elipsis

2010-03-16 Thread ls02
I need to implement multiline text with ellipsis with txt to be no more than two lines. Ellipsis attributes in default TextView does not seem to work for multiline text. I could implement my own text widget, but i don't know how to break text into multiple lines. In this case I could draw text line

Re: [android-developers] Application losing SharedPreferences and Sqlite database on Droid

2010-03-16 Thread Mariano Kamp
I get lots of these ("database disk image is malformed"). Also "unable to open database file", "error code 14: unable to open database file", "database or disk is full" and many more. I can't put my finger on what the issue is though. "unable to open database file" is my current favorite. It seem

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-16 Thread Bob Kerns
>From your log messages, I would guess that the class com.google.gdata.client.GoogleService lives in a different .jar, that you haven't included somehow. (At least, googling com.google.gdata.client.calendar.CalendarService suggests that's the superclass in question). Check inside the .dex file to

[android-developers] Re: Nexus One won't debug in Ubuntu 9.10

2010-03-16 Thread Doughy
Wow, I feel like an idiot. Somewhere down the line I turned off my debug settings, so no matter what I did with the udev rules, it wouldn't show up. Now that I turned it on, it's working. Thanks fpr trying to help. :/ On Mar 16, 4:42 pm, Doughy wrote: > Thanks for posting, but it still didn't

[android-developers] Re: ImageToggleButton?

2010-03-16 Thread Nathan
On Mar 16, 2:16 pm, Mark Murphy wrote: > Nathan wrote: > > The current ToggleButton extends TextView and not ImageButton, so you > > can't switch images, just text. > > First, ToggleButton extends CompoundButton, like you were proposing for > your own implementation. > > Second, you should be ab

[android-developers] Zooming into Gallery and Scrolling

2010-03-16 Thread rsung
I have a gallery. On an item select event, I wanted to animate zooming into that selection (via scale animation). After "zooming in", I want to be able to scroll through the images. I'm able to accomplish the "zooming in" using ScaleAnimation but when I try to scroll, the images are clipped. I th

[android-developers] Re: Nexus One won't debug in Ubuntu 9.10

2010-03-16 Thread Doughy
Thanks for posting, but it still didn't work. On Mar 16, 4:30 pm, George wrote: > Another link for your issue is: > > http://www.jaduncan.com/2010/01/nexus-one-adb-access-on-ubuntu-karmic... > > On Mar 15, 3:22 pm, Doughy wrote: > > > > > I can't getUbuntu9.10 to recognize theNexusOneas a debug

[android-developers] Re: OpenGL Circle drawing

2010-03-16 Thread Robert Green
Tom, I have to recommend just getting a book on the subject. I learned most everything off of examples and documents on the web. After several months, I finally picked up the blue book and everything I had scoured to find is clearly demonstrated in it. Look for the red book and the blue "superb

[android-developers] Manually set preferences being overwritten by a subclass of PreferenceActivity

2010-03-16 Thread Pete
Hi, I am having a problem with an application I am in the middle of writing which is causing me some serious headaches. The situation is this: The application allows the user to configure several different kinds of information in several activities. One of the activities, which is a subclass of

[android-developers] Re: CacheManager.getCacheFileBaseDir() always returns null

2010-03-16 Thread LeonB
If I look at the webkit sources: http://tinyurl.com/yfqutnf I see that they call CacheManager.init(), which makes sense because that's the method that sets up the mBaseDir variable that should get returned when using getCacheFile(). But why can't I call init()? And why isn't it listed in the docs?

[android-developers] Re: Nexus One won't debug in Ubuntu 9.10

2010-03-16 Thread George
Another link for your issue is: http://www.jaduncan.com/2010/01/nexus-one-adb-access-on-ubuntu-karmic.html On Mar 15, 3:22 pm, Doughy wrote: > I can't getUbuntu9.10 to recognize theNexusOneas a debug device. > I tried following the instructions found here but they are not > working:http://alan.l

[android-developers] Webview on Nexus not receiving touch events on links

2010-03-16 Thread Juanjo
Hi, I've a problem that is driving me mad. I have a webview where I load an String with: mContent.loadDataWithBaseURL(null, mBodyText, "text/html", mCharset, null); [I've also tried using a fake first argument for loadDataWithBaseURL, and using "x-data://base"] The webview has a webViewClient

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

2010-03-16 Thread Hong
I just saw the post today. I felt like contributing some info. from NY. If you feel this thread is getting out of hand, you can simply ignore it ;) On Tue, Mar 16, 2010 at 4:33 PM, TreKing wrote: > On Tue, Mar 16, 2010 at 2:52 PM, Hong wrote: > >> Same here in New York, needing a Nexus One bad

[android-developers] Re: Oh crap. I missed IO registration :(

2010-03-16 Thread Mark Carpenter
I'm also bummed, but will still attend. Hope to see you there Robert. On Mar 16, 2:43 pm, laphroaig15 wrote: > Same here.  You don't expect the conference to sell out a month before > the earlybird ends.  I like a good party, but I can't say that I'd buy > a trip across the country for happy hou

[android-developers] Re: CacheManager.getCacheFileBaseDir() always returns null

2010-03-16 Thread LeonB
I thought it maybe was the sdk/eclipse or avd installation so I installed it all on another (windows) computer. Created a new android project and only put CacheManager.getCacheFile(); in it, but that also failed. -- You received this message because you are subscribed to the Google Groups "Androi

[android-developers] Re: What's the "proper" way to time animation frames?

2010-03-16 Thread String
Not Android-specific, but I recommend the following classic article on the subject: http://dev.koonsolo.com/7/dewitters-gameloop/ String On Mar 16, 8:49 pm, Jack wrote: > I have a project that requires a view to be animated whenever the user > performs a certain action - perhaps twenty frames or

Re: [android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid

2010-03-16 Thread Dianne Hackborn
getDefaultSharedPreferences() returns the same preferences for every context, provided that getDefaultSharedPreferencesName() returns the same thing. The default string returned by getDefaultSharedPreferencesName() is the package name concatenated with "_preferences", which will be the same for ev

[android-developers] Show activity on search button press?

2010-03-16 Thread Mark Wyszomierski
Hi, Is there a way to launch an activity when the device's search key is pressed? I know we can hook into the search feature of android instead. But I'm trying to fix a broken app quickly. Ideally whenever the search key is pressed (if my app is visible) then one of my activities is started. T

[android-developers] Re: ORM tool for ANDROID Applications

2010-03-16 Thread Hari
Thank you for the response.We have started to evaluate sqlitegen... After posting the initial message, i stumbled on db4O and the website says the following "Using db4o in your Android apps is FREE!". At the sametime i have read in forums where people have discussed about the licensing iss

[android-developers] Re: Oh crap. I missed IO registration :(

2010-03-16 Thread laphroaig15
Same here. You don't expect the conference to sell out a month before the earlybird ends. I like a good party, but I can't say that I'd buy a trip across the country for happy hour...not on my dime. On Mar 16, 4:46 pm, Robert Green wrote: > Yes this is about Android development :) > > Well I've

[android-developers] Re: Bluetooth API in 2.x problem.

2010-03-16 Thread Nadav
I've also been quite frustrated by this issue since I'm also doing activities that depend on a device being always discoverable. There is an open issue on the Android project page about this - if you (and others) would like to see this implemented please star it! http://code.google.com/p/android/i

Re: [android-developers] What's the "proper" way to time animation frames?

2010-03-16 Thread Mark Murphy
Jack wrote: > Right now my test program uses a very simple method: I have a handler > that is called to start the animation. The handler's handleMessage() > method calculates the new frame, invalidates the view, and calls > sendMessageDelayed(obtainMessage(0), 50); > > However, the animati

[android-developers] Re: 3D Physics Engine For Android Demo

2010-03-16 Thread Martin
So bad that I cannot test it on my HTC Hero, because I have Android 1.5 :-( -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

[android-developers] OpenGL Circle drawing

2010-03-16 Thread Loki117
Afternoon all, I hope someone can help. I am trying to get my head around OpenGL on Android and hopefully start making some nice GUI's that are both quick and nice to look at. At the moment I am attempting to draw a radar type screen. To describe the screen think of a mapview with a point on the m

Re: [android-developers] ImageToggleButton?

2010-03-16 Thread Mark Murphy
Nathan wrote: > The current ToggleButton extends TextView and not ImageButton, so you > can't switch images, just text. First, ToggleButton extends CompoundButton, like you were proposing for your own implementation. Second, you should be able to replace the image used by ToggleButton. Step #1:

[android-developers] What's the "proper" way to time animation frames?

2010-03-16 Thread Jack
I have a project that requires a view to be animated whenever the user performs a certain action - perhaps twenty frames or so, with a total duration of a second. There's more work required than just updating the view, so the animation classes are not helpful. Right now my test program uses a very

[android-developers] set priorities on icons

2010-03-16 Thread jony
Hello Android Developers, I am trying to figure out how to set priorities on imagebutton. I want to have a layout with a bunch of Icon or buttons that can be selected either by touch, radio, or checked box. As these images are selected they are set on queue to be displayed in order of Precedence

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

2010-03-16 Thread Matt
... regardless. Can't wait! These next 5 - 10 days we'll all be jumping for joy with our new Android devices (or at least those of us who are qualified to receive one). On Mar 16, 3:49 pm, TreKing wrote: > On Tue, Mar 16, 2010 at 3:36 PM, Blake wrote: > > I believe you mean almost 300 posts. >

[android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid

2010-03-16 Thread Bob Kerns
BINGO! If you're using getDefaultSharedPreferences, you want to use getApplication() to get the context to supply. The shared preference file name can differ if you use differing contexts. You want to use the same context every time, no matter which activity or service you look at it from. So you

Re: [android-developers] Re: Bind to system service

2010-03-16 Thread Hong
All available system services you can get by: Context.getSystemService(Context.SYSTEM_SERVICE_NAME); Private services are hidden and are not supposed to be used by 3rd party apps ;) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post t

[android-developers] Re: What xml encodings work for non-europian languages

2010-03-16 Thread Bob Kerns
It's not a de facto standard, it's a de jure standard. Under the various relevant standards, Unicode is the only character set, and UTF-8 the only encoding of that character set, which are guaranteed to be available to you. You can use 16 or 32-bit encodings of Unicode internally, but except for

[android-developers] ImageToggleButton?

2010-03-16 Thread Nathan
I have need of a button that will change its image from one drawable to another based on whether it is toggled on (not just when pressed). I believe to do this I would extend CompoundButton and add images, or extend ImageButton and implement Checkable, with custom attributes for onSrc and offSrc.

[android-developers] Re: android tablet emulator creation

2010-03-16 Thread rooster 808
thanks bob for feedback, i thought i was doing something wrong. On Mar 1, 7:55 pm, Bob Kerns wrote: > But I wasn't able to launch an emulator at a mere 1336x678, either, > not even with allocating 1GB RAM for the device an 128MB for the app > heaps. The system_server dies in the SurfaceFlinger i

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

2010-03-16 Thread TreKing
On Tue, Mar 16, 2010 at 3:36 PM, Blake wrote: > I believe you mean almost 300 posts. Ah, you're right ... my GMail thread count reads 100 for some reason ... and now I'm bumping this damned thread with useless information ... =P -

[android-developers] Re: Custom Dialog

2010-03-16 Thread Bob Kerns
I've not been able to come up with a single use case for calling getApplicationContext(); I suspect the need for it is ENTIRELY internal. Also getBaseContext(). Generally, you want to pass along the most specific context available. That will be your current activity or service. UI components like

[android-developers] Oh crap. I missed IO registration :(

2010-03-16 Thread Robert Green
Yes this is about Android development :) Well I've been planning on going to IO for months but was waiting for my business account to get enough cash in it to go. Turned out I waited too long and now there are no IO tickets left :( Did anyone here buy one that they will no longer be using? I'd

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

2010-03-16 Thread Blake
I believe you mean almost 300 posts. On Mar 16, 4:33 pm, TreKing wrote: > On Tue, Mar 16, 2010 at 2:52 PM, Hong wrote: > > Same here in New York, needing a Nexus One badly ;) > > Hong, not directed at you specifically, but ... > > This thread already has almost 100 posts. Is it really necessary

[android-developers] How to set priority on Image button

2010-03-16 Thread jony
Hello Android Developers, I am trying to figure out how to set priorities on imagebutton. I want to have a layout with a bunch of Icon or buttons that can be selected either by touch, radio, or checked box. As these images are selected they are set on queue to be displayed in order of Precedence

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

2010-03-16 Thread TreKing
On Tue, Mar 16, 2010 at 2:52 PM, Hong wrote: > Same here in New York, needing a Nexus One badly ;) Hong, not directed at you specifically, but ... This thread already has almost 100 posts. Is it really necessary to keep updating it with useless information, like continuous confirmation that ph

[android-developers] How to build an instrumentation test case against my application interacting with the existing system app "Messaging"?

2010-03-16 Thread Freedom
I built an SDK application (a.apk). Part of the application's workflow need involve existing system app "Messaging" by startActivity(View conversation intent). My question is how to build an instrumentation test case against my application interacting with the existing system app "Messaging"? What

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

2010-03-16 Thread Sundog
I'd think the chances of getting the Nexus would be good, based on (ahem) how many of each are just sitting around, but fingers crossed anyway. On Mar 16, 1:52 pm, Hong wrote: > Same here in New York, needing a Nexus One badly ;) > > On Tue, Mar 16, 2010 at 3:42 PM, Matt wrote: > > Nothing yet h

[android-developers] Re: Bluetooth API in 2.x problem.

2010-03-16 Thread moneytoo
You can't. Try creating and connecting to specific service instead of using discoverable mode. On Mar 15, 5:09 am, Rafal Z wrote: > I have written a small app that puts my bluetooth in discoverable mode > for a long time (G1 - API 1.6). I use that along with small program on > windows to lock/unl

[android-developers] Using a service that listens to events generated on Android OS (outside any activity)

2010-03-16 Thread Qadeer
Hi all! I am very new to Android development and have two questions, possibly related. It would be great if you could point me to the correct direction: 1) is it possible use a service running in background that gets notified whenever user starts or ends any activity/applications? I want to use t

[android-developers] Re: UPnP Stack in Android

2010-03-16 Thread Raymond Huang
Hi Satoshi, I am trying to use your library for an android UPnP Project. I only have an android emulator, and I know it doesn't have mutlicast supported. In that case, is there a way for me to verify that I am able to detect devices on the network? Thanks, Raymond On Feb 24, 6:39 am, Satoshi Kon

[android-developers] Multiple PDP/APN Support

2010-03-16 Thread nniranjan
Hi ALL, I see lot of queries related to supporting multiple PDP/APN connections simultaneously in Android but I haven't seen any definite reply yet. I am sending this query once again hoping there will be some updated information from the Android team. Is Android team already working on supportin

[android-developers] Basic program structure questions

2010-03-16 Thread ARB
Hello everyone, I am starting my first Android program, and I am just having trouble structuring my program appropriately (in terms of views, activities, etc...) Basically, the program is a simple multiplayer trivia game where the phone is passed from player to player for each turn. Right now, I

[android-developers] Re: RESTful application with Protobufs

2010-03-16 Thread Walter
You may want to look at Restlet. They provide libraries and examples for both Android and Google App Engine. http://www.restlet.org/ Walter On Mar 16, 12:34 am, Ingmar wrote: > Hi, > > I need some hints about how to design an Android app that uses > Protobufs and RESTful consumption from a re

[android-developers] Re: Problem in read() for Bluetooth

2010-03-16 Thread moneytoo
Try checking InputStream.available() before reading. On Mar 15, 12:13 pm, Praful Sanas wrote: > Hey guys, >                I'm having problems during the "read" call of the > InputStream. The call gives me a "IOException: Software Caused Abort" > exception. I'm able to get the BluetoothSocket and

Re: [android-developers] Rating Bar Stars cutoff in Droid

2010-03-16 Thread George | SlideME
If you are referring to eclair, this could be related to http://code.google.com/p/android/issues/detail?id=2324 Emulator displays fine ratingbar stars, but not on actual HD devices such as Nexus and Droid - where it over-scales stars and affects overall formatting. On some other devices where eclai

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

2010-03-16 Thread Hong
Same here in New York, needing a Nexus One badly ;) On Tue, Mar 16, 2010 at 3:42 PM, Matt wrote: > Nothing yet here in Wisconsin. I did get a confirmation email on like > the 5th or 6th, and I filled out the form on the 2nd, so if they're > correct with the 2 - 4 weeks, I would assume it should

Re: [android-developers] Grrrrr.... 100 SMS per hour

2010-03-16 Thread Mark Murphy
Isaac Wagner wrote: > After the 100 messages limit Android pops up a dialog saying something > about sending a large number of messages and asking the user if they > want to continue. When they click OK or Cancel are there events > generated that I can get? I do not know for certain, as I don't

Re: [android-developers] Re: Process and application lifecycles

2010-03-16 Thread Dianne Hackborn
On Tue, Mar 16, 2010 at 8:11 AM, hans wrote: > However, the next paragraph of the above document indicates that > components of an app can be setup to run on more than one processes. > So, theoretically it is possible to arrange an app with M+N components > to run on two processes P and Q where P

[android-developers] Configuring the icons of an ExpandableListView - A simple example

2010-03-16 Thread Ali Chousein
Hi, Recently I was trying to configure the icons of an ExpandableListView. As many people would do, I was trying to replace the default icons for the minimized and maximized states. As it appears, doing this basic thing it's not that straightforward as one would expect/guess. There are not many ex

[android-developers] ADO.NET like database interface

2010-03-16 Thread Matt
Is there a data interface that performs similarly to ADO.NET for windows? The current data access methodology is quite rudimentary. -- 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@goog

  1   2   3   >