[android-developers] How to perform socket communication

2010-01-21 Thread saikiran n
Hi I have done socket communication in a single application it is working fine But my requirement is i have opened two emulators and i am able to send sms between those two. Now i want to run server in one emulator(myavd-5554) and client on another emulator(myavd1-5556) I have used the following co

[android-developers] Re: Strange error with AdMob

2010-01-21 Thread Seni Sangrujee
I just checked two of my apps that include ads and they both have the same thing in R.java. These apps have both been released like that. But you said Eclipse is acting like they're not comments on your end. I'm not seeing that here. -seni -- Android Prayer Network http://prayerstoshare.net -

[android-developers] Re: Help with listview!

2010-01-21 Thread Guillaume
Hi ls02, It depends how you created the text view. You can use the method setText(string) on the text view, and the method setBitmap(bitmap) on the image view. Guillaume On Jan 22, 8:07 am, ls02 wrote: > I am new to Android. Can someone show to me how do I force invalidate > a portion of an i

[android-developers] Re: Creating a proper Splash/Loading screen

2010-01-21 Thread jajal09
Hi Chris, I think you will have more than one activity in your application. So, for the getting splash screen you can get reference from the below link. http://www.anddev.org/simple_splash_screen_-_alternative-t815.html I hope, the above link can give help to you. Thanks. Regards.

[android-developers] Re: Custom Buttons containing layouts

2010-01-21 Thread Kumar Bibek
You can extend the Button and make your custom Button class, where you can change all the effects. You will get hooks to all the methods. Kumar Bibek On Jan 22, 10:58 am, theSmith wrote: > Hey all, > > I was wondering if it was possible to use a RelativeLayout containing > TextViews as a button

[android-developers] Re: drawing word-wrapped text at arbitrary position on a canvas

2010-01-21 Thread Samsyn
On Jan 17, 2:29 am, skink wrote: > On Jan 17, 10:25 am, Samsyn wrote: > > > So, having spent the obligatory five hours trying to figure out how > > android wanted me to do it (other than just "don't do that!"), I ended > > up writing this bit of code to do what I actually WANTED. > > > It's not

[android-developers] Re: Problem while sending unicode character via SMS

2010-01-21 Thread andu
Hello How are you I have tried to send the sms with unicode character to the android phone itself and accept the message by my application (using BroadcastReceiver ...) to view its content. but still the unicode character is displayed as space. And I tried to see its code using codePointAt( ) an

Re: [android-developers] Re: Activity.finish() x System.exit

2010-01-21 Thread Kevin Duffey
It's too bad the android team can't remove some methods like exit() to avoid these potential pitfalls that aren't documented very well (at least in most books). For guich, looks like you would need to implement some way of detecting that the library is already loaded, so as not to load it again.

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-21 Thread Andre
Hi Jason, Thank you very much for test and code example Best Regards, Andre On 22 янв, 01:19, Jason Arora wrote: > Hi Andre, > > I got around 60 fps without bullets on my Google Ion device. When > touching the screen it would go around 53 and when shooting it would > dip just under 40. Before d

[android-developers] Exiting an onDraw()

2010-01-21 Thread mmkr
Hi, In my application I want to exit the onDraw method when a certain condition is achieved, But the method keeps on calling. How can I exit from onDraw()? Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

[android-developers] Custom Buttons containing layouts

2010-01-21 Thread theSmith
Hey all, I was wondering if it was possible to use a RelativeLayout containing TextViews as a button like object. My goal here is to not have to create 2 image button backgrounds (landscape and portrait), usually this is not much of an issue but the buttons will span the entire screen and the tex

[android-developers] Get Attributes of a media file.

2010-01-21 Thread Manjunatha M
Hi, I have downloaded a media file. (say mp3 file). I need to get the attributes of the file, like ARTIST, TITLE etc. Can anyone help me on this??? -- Regards, Manjunatha -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this g

[android-developers] MMS receiving/sending

2010-01-21 Thread rukiman
Is there an API to send and receive MMS from an application? Similar to that of SMS? In SMS one can send SMSs by using SMSManager.sendTextMessage() and receive them by registering for the broadcast message. -- You received this message because you are subscribed to the Google Groups "Android Dev

[android-developers] Join Thailand Forums Thailand Message Boards Living, Work and Play in Thailand ...X.

2010-01-21 Thread �`�.~ Boom BooOm~.���
Join Thailand Forums Thailand Message Boards Living, Work and Play in Thailand http://www.poetak.blogspot.com -- 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 un

[android-developers] Join Thailand Forums Thailand Message Boards Living, Work and Play in Thailand ...W.

2010-01-21 Thread �`�.~ Boom BooOm~.���
Join Thailand Forums Thailand Message Boards Living, Work and Play in Thailand http://www.poetak.blogspot.com -- 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 un

[android-developers] Re: Anyone noticing more uninstalls of their app than usual over last weekend/today?

2010-01-21 Thread Seni Sangrujee
Sorry to bump this old thread, but has anyone had their active percentages completely recover since the "fix"? Mine's still down quite a bit from before the problem started. -seni -- Android Prayer Network http://prayerstoshare.net -- You received this message because you are subscribed to t

[android-developers] How to force US Account in Android phone

2010-01-21 Thread Guillaume
Hi All, This question may sound stupid but let me give you bit of my background. I am a developer in a country which is neither a buying-app supported nor a selling-app supported country, and have submitted my application to Android market as a paid application. Now, I would like to see if I can

[android-developers] Using Gmail content provider

2010-01-21 Thread Alberto
Hello, I was wondering if anyone has any information on accessing the Gmail content provider. It doesn't seem to be officially supported in the API but it looks like people are able to do this regardless. See the SlideScreen app which notifies you of new e-mail and even shows you info (sender, titl

[android-developers] Re: AsyncTask discrepancy

2010-01-21 Thread Streets Of Boston
A Service, like an Activity, has a main thread with a message-loop. You can create an AsyncTask in the onX() callbacks of Services, just like in an Activity. The onPostExecute can do your handling of the results, as you described. However, AsyncTask is more geared towards the one-time executin

[android-developers] $200 per live wallpaper

2010-01-21 Thread aspidoff
paying $200 per original, cool, live wallpaper for 2.1 hit me up with ideas or your portfolio. thanks! -- 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

[android-developers] Re: How to close an application?

2010-01-21 Thread Streets Of Boston
If you want to make sure that your app shuts down completely: - Implement onPause to pause any threads running in the background (if you have any) - Implement onDestroy to clean up any other resources (stop threads, if any, for example) Short of the user pulling the battery, the onPause is guarant

[android-developers] Re: Out of memory / orientation change / Memory Analyzer question

2010-01-21 Thread Matt Kanninen
I had a similar issue, randomly getting the external allocation too large for this process error. For me, it started when I added android:targetSdkVersion="4" to the manifest, and went away when I removed that bit. On Jan 21, 3:17 pm, OldSkoolMark wrote: > Yes,  the OOM is related to 'external a

[android-developers] Re: Display TextFile

2010-01-21 Thread perumal316
Yah I have tried using TextView but I am getting blank screen. Is it correct to use the following code to access the file in /data directory? File file = new File(Environment.getDataDirectory(),"/data/ monitor.txt"); After which I did the reading by line and displaying using TextView but getting

Re: [android-developers] Re: How to close an application?

2010-01-21 Thread Frank Weiss
Your main thrust is about battery drain. Is your assumption that an application that is not shut down will drain the battery really valid? On Thu, Jan 21, 2010 at 2:27 PM, Kevin Duffey wrote: > I don't know if I like this model. :D I'll give you one reason that I don't > know if it comes up or e

[android-developers] Active Sync support for android

2010-01-21 Thread Murali M
Is there a active-sync support in Android just like how we see in Windows Mobile . If so how can i programatically set configuration parameters thanks, Murali. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send em

[android-developers] Re: Authentication Credentials

2010-01-21 Thread Brion Emde
I've been working with OAUTH and wrote a tiny client that demonstrates some aspects of working with Twitter's OAUTH infrastructure. They require that all requests be signed, so that security information is encoded in the request in a public key form, that can be decoded on each side, to verify aut

Re: [android-developers] Re: Activity.finish() x System.exit

2010-01-21 Thread Dianne Hackborn
You really should be able to just continue using the library. It is not unloaded, so you don't need to reload it, and can use it again. To be clear: using System.exit() is strongly recommended against, and can cause some poor interactions with the system. Please don't design your app to need it.

[android-developers] Re: SQLiteDatabase lifecycle and threads

2010-01-21 Thread Nathan
On Jan 21, 4:22 pm, jotobjects wrote: > > It doesn't make any sense to me that you have to turn locking on > (whatever that means) if you are using transactions.   You probably don't if you are using one thread. I think the setLocking is about making the the SQLite *code* thread safe, and not

[android-developers] How to enable/add the log in "\external\fsck_msdos" to appear in logcat?

2010-01-21 Thread GPU
Hi , I tried with adding the log util.. #define LOG_TAG "TAG" #include Getting error like external/fsck_msdos/boot.c:49: undefined reference to `__android_log_print' external/fsck_msdos/boot.c:275: undefined reference to `__android_log_print' Is it wrong wht i have added? or I there any

[android-developers] Re: Activity.finish() x System.exit

2010-01-21 Thread guiha...@gmail.com
I just found a side-effect of using finish: my lib.so library is NOT unloaded, and the application will not work if it is called again. guich -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-deve

Re: [android-developers] AsyncTask discrepancy

2010-01-21 Thread Frank Weiss
Please reread the doc carefully. You can run stuff on the UI thread in three of the methods. There's really no need to send a message if you make the subclass of AsyncTask an inner class. In that case those three methods can do anything on the enclosing Activity's behalf, like setting the contents

[android-developers] URGENT ...How to get MCC , MNC, LAC of neighboring cells

2010-01-21 Thread BowlOfChilli
Does anyone how to get MCC, MNC , LAC of neighboring cells on a GSM network?. A number of people have posted but nobody has responded to this question I am utilizing the getNeighboringCellsInfo method of the telephony manager to get the cells. thanks Thanks, Fawad. -- You received this messag

[android-developers] Re: simple web search based on location

2010-01-21 Thread Sunny
Thanks Jeff, john. I tried with Geocoder getFromLocationName - it does not return business based results unless you have the complete address. I would greatly appreciate if you have a code piece written that works. I am using android 2.1. thanks Sunil. On Jan 20, 11:15 am, jeffro wrote: > Ch

[android-developers] Strange error with AdMob

2010-01-21 Thread Wayne Wenthin
I have already posted on their developer group but based on everything I've seen I don't expect a reply. I have a strange problem. When I added and adview to my app it imported a bunch of comments that all start with /** Eclipse is acting like it is not a comment. Although it isn't erroring o

Re: [android-developers] Phone.apk crashes due to failure loading resource dtmf_twelve_key_dialer.xml

2010-01-21 Thread Dianne Hackborn
Questions about working with the platform should be on android-porting; thanks. On Thu, Jan 21, 2010 at 2:11 PM, wen yi wrote: > This is a re-hash of a question I posted before. > Crash scenario: > Software is AOSP 2.0.1 > > 1. Pair and connect phone with a stero BT headset. > 2. Make a call to

[android-developers] Re: SQLiteDatabase lifecycle and threads

2010-01-21 Thread jotobjects
On Jan 21, 12:09 pm, Nathan wrote: > I put a transaction > around a long series of small updates and it was reduced to a few > seconds.  This was a situation where you would think a transaction > would improve correctness, but degrade performance slightly. That is not so surprising since with

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Just in case it will be useful to someone, here's the manifest file application part for my "library". There's no even need to define an action. guich -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-21 Thread Jason Arora
Kevin, you have to use logcat while its connected via USB (debug mode): adb logcat dalvikvm:D Asteroids:D *:S On Jan 21, 2:32 pm, Kevin Duffey wrote: > Question.. I havent ran your app yet.. going to on my moto droid. Do you > show the fps, or do I need to run it attached via USB in debug mode to

[android-developers] Help with listview!

2010-01-21 Thread ls02
I am new to Android. Can someone show to me how do I force invalidate a portion of an item in listview? I have listview row item that contains textview and image view. I only want to invalidate text in the textview of a particular item in the listview. -- You received this message because you are

[android-developers] Launch ContextMenu from ContextMenu

2010-01-21 Thread Ken H
How can I launch a contextmenu from a contextmenu? I'm trying to replicate the MediaPlayer action that happens when you long click a song, then click "Add to playlist" in the resulting contextmenu. When you click that menu item, another contextmenu pops up with "Add to playlist" as the title, and

[android-developers] Re: New AChartEngine release

2010-01-21 Thread Zsolt Vasvari
Hi there, looks very cool. I don't see the license for this library? Is there one? Thanks! On Jan 21, 5:38 pm, Dan Dromereschi wrote: > Hi all, > > We are proud to announce a new release for the AChartEngine charting > library. > You can download it here:http://code.google.com/p/achartengine/d

[android-developers] Authentication Credentials

2010-01-21 Thread Flapjack
I would like to connect to a remote web service to retrieve data. However, in doing so, I must provide this web service with credentials to authenticate the client, (to disallow anonymous requests), before data is returned. The only way I can think of to do this is by simply passing along the crede

[android-developers] Re: Confused about how focus works

2010-01-21 Thread Mark Nuetzmann
The Android settings activity does exactly what I want... By default the text is WHITE and when the listitem is in a selected state the text changes color to BLACK... How did you do that? On Jan 21, 5:03 pm, Mark Nuetzmann wrote: > I understand how to do that if all I wanted was to change the l

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
I just found the answer to one more question: how to remove from the launchers list an application. All you have to do is remove the >From your AndroidManifest.xml file. Then uninstall the app and install again (if you already had installed it), and it will not appear in the list

[android-developers] AsyncTask discrepancy

2010-01-21 Thread Flapjack
According to my research, which includes reputable sources (Mark Murphy et al), the most preferred way of polling a remote source and presenting said data to the user is by creating a service and using AsyncTask within that service to do the polling. I have done that. But, when I read the docs (ht

[android-developers] Re: Android Coverflow widget

2010-01-21 Thread Taf
Thanks for the input, like the way you've done this, looks good. :) On Jan 19, 12:05 am, Nerdrow wrote: > I did a similar POC overriding the getChildStaticTransformation() > method of the Gallery.  Like Taf's widget, you need to provide a > standard adapter and should probably pre-create the mirr

[android-developers] Re: Out of memory / orientation change / Memory Analyzer question

2010-01-21 Thread OldSkoolMark
Yes, the OOM is related to 'external allocations'. I googled 'dalvikvm external allocation' and there's plenty to pore over. Is there an update on this issue in general? Here's the relevant logcat excerpt: 01-21 13:04:49.140: INFO/WindowManager(79): onOrientationChanged, rotation changed to 1 01

[android-developers] Email ,Wifi settings

2010-01-21 Thread Murali M
I am working on a application from which i need to ADD,Delete ,Change Email and Wifi Settings. I even need to add new Email Accounts . Can you please give me some pointers where i can start this . In Android, Are there APIs i can directly call for this or should it use content provider to do the

[android-developers] Re: Confused about how focus works

2010-01-21 Thread Mark Nuetzmann
I understand how to do that if all I wanted was to change the look of the background for the selected items in the list. However I do not see how a statelist drawable will help me in this case. Each item in the list is a RelativeLayout that contains an image and two textviews. The textviews have

Re: [android-developers] Re: Confused about how focus works

2010-01-21 Thread Romain Guy
Selected items in a listview are in the selected state, not in the focused state. You can use state drawables to achieve this. On Thu, Jan 21, 2010 at 2:47 PM, Mark Nuetzmann wrote: > no problem.  so, how do I how do I simply change the color of the text > for a textview when the item is selected

[android-developers] IRC office hours answers posted

2010-01-21 Thread Megha Joshi
Hi everyone, We have posted answers to the previous office hours sessions here: http://moderator.appspot.com/#15/e=120951&t=1286cf A few still remain, they will be answered soon. For today's office hours 5pm-6pm PST you

[android-developers] Re: Confused about how focus works

2010-01-21 Thread Mark Nuetzmann
no problem. so, how do I how do I simply change the color of the text for a textview when the item is selected? I obvisouly cannot use a focus change listener. I also cannot add the code to my adpater because it is only called when the view is needed and I see no way to call onInvalidated() to as

[android-developers] Re: Out of memory / orientation change / Memory Analyzer question

2010-01-21 Thread fadden
On Jan 21, 12:58 pm, OldSkoolMark wrote: > Is this telling me something useful? If forcing a GC with DDMS > reclaims the memory used by now-defunct instances of my activity, I > would have thought the VM would have garbage collected some, if not > all of these defunct activities automatically. Do

[android-developers] Re: Mystery Segfault after exiting game. Happens reliably but unable to track it down.

2010-01-21 Thread fadden
On Jan 21, 1:58 pm, Robert Green wrote: > I was creating a TypeFace using a path to a font that was not > available.  This Typeface was then assigned to TextViews and Paints. > Somewhere in the resource management code, the release of either the > TypeFace, View or Paint was causing the segfault.

Re: [android-developers] Confused about how focus works

2010-01-21 Thread Romain Guy
It's easy: don't use focusableInTouchMode. Especially since ListView already is focusable in touch mode. On Thu, Jan 21, 2010 at 2:31 PM, Mark Nuetzmann wrote: > I am completely confused as to how the focusable and > focusableInTouchMode are supposed to work.  If I set > focusableInTouchMode="tru

Re: [android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-21 Thread Kevin Duffey
Question.. I havent ran your app yet.. going to on my moto droid. Do you show the fps, or do I need to run it attached via USB in debug mode to see this info? On Thu, Jan 21, 2010 at 2:19 PM, Jason Arora wrote: > Hi Andre, > > I got around 60 fps without bullets on my Google Ion device. When > t

[android-developers] Confused about how focus works

2010-01-21 Thread Mark Nuetzmann
I am completely confused as to how the focusable and focusableInTouchMode are supposed to work. If I set focusableInTouchMode="true" for the items in my ListView the ItemClickListener is never called. Why? I have the selector for the ListView set as a rect shape filled with a solid color. As I

[android-developers] What functions my activity will get called when the phone comes back from screen saver?

2010-01-21 Thread hap 497
Hi, Can you please tell me what functions my activity will get called when the phone comes back from screen saver? When the phone is showing my activity, and then I leave the phone untouched, and then I press Menu to wake it up. What function of my activity will get called by andriod framework?

Re: [android-developers] Re: How to close an application?

2010-01-21 Thread Kevin Duffey
I don't know if I like this model. :D I'll give you one reason that I don't know if it comes up or exists often, but I think it's one of the most confusing issues for non-techie (and even techie peeps that don't know about programming and threads and such) users for android devices. The problem to

[android-developers] Re: How to increase FPS (now ~20, desired ~40-50)

2010-01-21 Thread Jason Arora
Hi Andre, I got around 60 fps without bullets on my Google Ion device. When touching the screen it would go around 53 and when shooting it would dip just under 40. Before doing my test, I closed all apps with Task Killer. You can remove the status bar by calling the following in your Activity.onC

Re: [android-developers] Re: Does the Android Market check installed android's version ?

2010-01-21 Thread TreKing
On Thu, Jan 21, 2010 at 3:59 PM, Maps.Huge.Info (Maps API Guru) < cor...@gmail.com> wrote: > You can't delete your comment or rating though. > Yes you can. Menu -> Clear my review. Wipes your comment and rating. This is on 1.6, don't remember if I saw this or not previously.

Re: [android-developers] Touch screen data

2010-01-21 Thread Dianne Hackborn
This information isn't available outside of the screen firmware. It reports the touch event data (basically what the application will see) from the firmware to the CPU on a bus, and as far as I know no lower-level data is available through there. On Wed, Jan 20, 2010 at 3:29 PM, ltjisstinky wrot

Re: [android-developers] Touch screen data

2010-01-21 Thread Kevin Duffey
You looking to build a velocity sensitive music keyboard app? :D On Wed, Jan 20, 2010 at 3:29 PM, ltjisstinky wrote: > Alot of android phones use the capacitive touchscreen technology. I > was wondering if there is away to access any sort of information > related to this sensor. > > In other wor

Re: [android-developers] Re: Creating dialogs from a thread

2010-01-21 Thread Kevin Duffey
Ah yes Streets.. that was what I was missing.. been a while since I dealt with UI threads. It's not that you have to run a thread on the UI.. you run a Runnable. The Runnable just defines run() method.. I forget now but I think basically it allows the UI thread to just call run() on your Runnable y

[android-developers] Phone.apk crashes due to failure loading resource dtmf_twelve_key_dialer.xml

2010-01-21 Thread wen yi
This is a re-hash of a question I posted before. Crash scenario: Software is AOSP 2.0.1 1. Pair and connect phone with a stero BT headset. 2. Make a call to the phone. 3. Phone.apk crashes complaining failure loading resource 0x7f030009 (dtmf_twelve_key_dialer) The same doesn't occur when BT is n

Re: [android-developers] Re: How to forward a phone call to voice mail ?

2010-01-21 Thread Kevin Duffey
I think he meant programatically..like he wants to write a service app that gets notified of incoming calls and he can write some code that sends the call to voice mail directly. On Thu, Jan 21, 2010 at 11:20 AM, Kumar Bibek wrote: > In the contacts Content Provider, there is a field for this. I

[android-developers] Re: Creating dialogs from a thread

2010-01-21 Thread Streets Of Boston
Note that 'post' and 'runOnUiThread' takes a Runnable and it should *not* be a Thread (although that implements Runnable as well)! (Mis) using a Thread for this is not good. Just use a Runnable. Create a new instance of a Runnable and implement its 'public void run ()' method (see my example code

[android-developers] AudioTrack - Clicking Proplem

2010-01-21 Thread Business Talk
I am trying to resolve the clicking problem while using the AudioTrack. It takes place only when playing the first part of the wave (pcm) buffer when the offset to the write is 0 (zero). track.write(buffer, offset, minBufferSize); It tells me that there is something wrong with the p

[android-developers] Re: Does the Android Market check installed android's version ?

2010-01-21 Thread Maps.Huge.Info (Maps API Guru)
> Users should be able to go back and redo their mark setting for an app as > well. This is already happening, since 1.5 at least. The score and comment can be updated at any time by a user. You can also respond to user comments by adding a comment of your own. Just download and install your app

[android-developers] Re: Mystery Segfault after exiting game. Happens reliably but unable to track it down.

2010-01-21 Thread Robert Green
Thanks to Andy's help, problem solved: I was creating a TypeFace using a path to a font that was not available. This Typeface was then assigned to TextViews and Paints. Somewhere in the resource management code, the release of either the TypeFace, View or Paint was causing the segfault. Thank yo

[android-developers] Re: Serious android app problem in Canada

2010-01-21 Thread Streets Of Boston
Some (very) small consolation. Try, for now, to offer your app through other markets, such as SlideMe, Handango, MobiHand, etc. On Jan 21, 12:57 pm, Alex wrote: > No, you cannot either upload or download paid apps from android market > in Canada. > We are in the same boat and I've been waiting fo

[android-developers] Re: Activity.finish() x System.exit

2010-01-21 Thread Streets Of Boston
System.exit() kills your entire process. activity.finish() just hides, stops and destroys your activity. Your process is still running. You should not call System.exit(). It could mess up Android's handling of the lifecycles of your activities and result in an awkward user- experience (e.g. when k

Re: [android-developers] Re: Creating dialogs from a thread

2010-01-21 Thread TreKing
On Thu, Jan 21, 2010 at 3:30 PM, Dirk Vranckaert wrote: > It seems your solution does not work either. > Um ... it should, I've used this technique repeatedly. Can you post the code you're using? > As long as I'm doing it in a thread it doesn't work. > Well, it depends on how you're running th

Re: [android-developers] Re: Creating dialogs from a thread

2010-01-21 Thread Kevin Duffey
Did you create a 2nd thread with the run() method having the call to the dialog.. and then queue that thread onto the UI thread? It should work. I am not sure why you need to do the call to the dialog on the UI Thread entirely.. I've done a lot of Swing stuff where the UI thread was event driven,

[android-developers] Re: ContextResolver for existing applications

2010-01-21 Thread JFrog
Currently I had not been been able to find decent examples describing the context provider and context resolver relationship. If I were to write my own context provider then I would know what url and what other specific information such as its data types in order to consume the information. I wou

[android-developers] Re: Creating dialogs from a thread

2010-01-21 Thread Streets Of Boston
Dirk, You cannot create UI elements in threads that don't have a message- looper themselves. I usually do this. Call the 'post' (or 'postDelayed') method. In your example, I assume that the method getEpisodes() is part of a Thread instances that is defined as a non-static inner (anonymous) class

Re: [android-developers] Does the Android Market check installed android's version ?

2010-01-21 Thread Kevin Duffey
yes.. if I understand it correctly, only apps that can run on the device using the market app will show up.. they shouldn't even see apps that wont run on it. However, someone correct me if I am wrong, but I also understand that if a user buys a 1.5 app while having 1.5 on their OS.. and then that

[android-developers] Re: Creating dialogs from a thread

2010-01-21 Thread Dirk Vranckaert
It seems your solution does not work either. As long as I'm doing it in a thread it doesn't work. Altough what I tried next was setting the error message for the user in my catch clause. And right after the thread finished I handled the showing of the errors based on wheater some error message was

Re: [android-developers] Re: Creating dialogs from a thread

2010-01-21 Thread TreKing
On Thu, Jan 21, 2010 at 1:47 PM, Dirk Vranckaert wrote: > I certainly will try it out later this evening (studying for my > certification right now) > Good luck! > but is there any more detailed/advanced > explanation about why I can't run a bunch of code in a thread and at > the end of the thr

[android-developers] Re: RatingBar size issues on high-density screens (Droid, Nexus One)

2010-01-21 Thread Smelly Eddie
Apparently Nexus is actuall an medium density screen. So are G1s... I would like to avoid specifying every possible resoltion. Is there an easier way to distinguish whatever difference is causing this usse? On Jan 21, 3:21 pm, Smelly Eddie wrote: > Surely someone has an idea.  I have continued t

[android-developers] Re: Mystery Segfault after exiting game. Happens reliably but unable to track it down.

2010-01-21 Thread Robert Green
It happens every time. On Jan 21, 2:35 pm, fadden wrote: > On Jan 21, 10:18 am, Robert Green wrote: > > > Is there any way to track down the function segfaulting using those > > memory addresses? > > I have half an answer, which is more than I used to have. :-) > > build/tools/adbs is a front-en

[android-developers] Out of memory / orientation change / Memory Analyzer question

2010-01-21 Thread OldSkoolMark
My application is designed to support both portrait and landscape orientations. Using my HTC IO device, it survives 12 orientation changes before throwing an out of memory exception while inflating my activity. When I follow the recommended procedure of using DDMS to first force a GC and then writ

[android-developers] Re: App Died Signal 11

2010-01-21 Thread fadden
On Jan 18, 9:19 am, "guiha...@gmail.com" wrote: > Works fine, but it will be better if Google make the Stack tool > public. Take a look at build/tools/adbs: http://android.git.kernel.org/?p=platform/build.git;a=blob_plain;f=tools/adbs;hb=HEAD It's a wrapper for "adb" that watches the logcat

[android-developers] Activity.finish() x System.exit

2010-01-21 Thread guiha...@gmail.com
Hi, I've been using System.exit to quit the application. Is Activity.finish a better approach? What would be the differences? thx guich -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develo

[android-developers] Re: Mystery Segfault after exiting game. Happens reliably but unable to track it down.

2010-01-21 Thread fadden
On Jan 21, 10:18 am, Robert Green wrote: > Is there any way to track down the function segfaulting using those > memory addresses? I have half an answer, which is more than I used to have. :-) build/tools/adbs is a front-end shell script that watches for native crashes in logcat and converts the

[android-developers] Does the Android Market check installed android's version ?

2010-01-21 Thread ColletJb
Hi, I was wondering if the market checks if the application can be installed on the device. For example, if I have an Android 1.6 and if I try to install an application with : "" on its manifest. What will happend ? Thanks for your help ColletJb -- You received this message because you are s

[android-developers] Best practice for dealing with assets on different dpi devices?

2010-01-21 Thread Mariano Kamp
My app provides some images in its asset directory. Is there any "right" way to deal with different resolutions? There doesn't seem to be an asset-hdpi directory ;-) Some of those images are buttons and I would appreciate if they are of the same relative size. -- You received this message because

[android-developers] Where can the user select different font-sizes?

2010-01-21 Thread Mariano Kamp
Hi, I have requests to offer different font sizes in my app, in particular offer bigger sizes for people with less than perfect vision. Now, I could my own preferences and mechanism for that, but I think that the font-size is more user/phone-specific than app-specific. So what is the proper w

[android-developers] Re: RatingBar size issues on high-density screens (Droid, Nexus One)

2010-01-21 Thread Smelly Eddie
Surely someone has an idea. I have continued to search the SDK reference and resources but I can't even ind an allusion to the layout/ formatting issues with high-density screens. On Jan 20, 6:32 pm, Smelly Eddie wrote: > Hello Group - > >  I am hoping someone that has formatted rating bars on a

[android-developers] Re: SQLiteDatabase lifecycle and threads

2010-01-21 Thread Nathan
On Jan 21, 11:08 am, jotobjects wrote: > You might want to look into the transaction paradigm/pattern: > > http://developer.android.com/reference/android/database/sqlite/SQLite... > > Transactions are the well understood way to get consistent results > with multiple readers and writers.  Exactly

[android-developers] Re: Creating dialogs from a thread

2010-01-21 Thread Dirk Vranckaert
I certainly will try it out later this evening (studying for my certification right now) but is there any more detailed/advanced explanation about why I can't run a bunch of code in a thread and at the end of the thread start a dialog? Why I have to start a nested thread with just the dialog creati

[android-developers] Re: Working in Windows 2000

2010-01-21 Thread Doug Aitken
Guich, Ubuntu (or even Xubuntu, to run something lighter) will work really well for you if you can do that. On Jan 18, 10:19 pm, "guiha...@gmail.com" wrote: > Thanks for all suggestions. I'll try to run linux, either in a > partition or in virtualbox. > > cheers > >     guich -- You received th

Re: [android-developers] Keep activity running while in "sleep" mode

2010-01-21 Thread Mark Murphy
>> I am newer to Android development and I have a app that needs to run a >> command even if the phone goes to sleep. >> >> I have it running as a service but it runs randomly when. >> Is there a way to have the service run even when the phone is >> sleeping. > > Use AlarmManager. Keep your servic

Re: [android-developers] Keep activity running while in "sleep" mode

2010-01-21 Thread Mark Murphy
> I am newer to Android development and I have a app that needs to run a > command even if the phone goes to sleep. > > I have it running as a service but it runs randomly when. > Is there a way to have the service run even when the phone is > sleeping. Use AlarmManager. Keep your service stopped

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
I have one more question: can i load the view of another package, instead of calling another activity? In the sample above, i would call setContentView(LoaderView) someway. This would be perfect for me. thx guich -- You received this message because you are subscribed to the Google Groups "An

[android-developers] Re: Custom ClassLoader - Urgent!

2010-01-21 Thread fadden
On Jan 21, 6:31 am, Karl Pauls wrote: > > Since the 'test' TestClass instance is created with reference to the > > new class-loader, I'd expect that after this line executes, > > test.getClass().getClassLoader() will return an instance of > > CustomClassLoader, but I always get the default PathCla

[android-developers] Re: creating activity-less packages

2010-01-21 Thread guiha...@gmail.com
Hi, I got it working with this: public class Stub extends Activity { /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { //super.onCreate(savedInstanceState); Intent intent = new Intent("android.intent.action.MAIN"); inten

[android-developers] Re: Android Performance Monitoring..

2010-01-21 Thread Menion
try look at this ... http://developer.android.com/intl/fr/guide/developing/tools/traceview.html i mean, very usefull ;) On Jan 21, 10:54 am, bharat wrote: > Guys, > I am working on a project where I need to measure the performance of > an app in terms of memory and CPU cycles used...I need to k

[android-developers] Creating a proper Splash/Loading screen

2010-01-21 Thread Chris
Hello all, I have an application that uses OpenGL on a GLSurfaceView. The problem is that the initial load takes quite a while processing textures and getting things ready. What i want to do is have a simple PNG displayed (with a slight animation) while the GLSurfaceView is getting ready. As soon

[android-developers] Re: adding voice search

2010-01-21 Thread schwiz
I think you would override onActivityResult like I did in my project. On Jan 21, 12:17 pm, Achanta wrote: > Thank you Schwiz and David for the replies. they were helpful. > > I included the part that David advised and it works great. > > Now I have a requirement with the search in my project. > I

  1   2   >