[android-developers] Re: Careful, Dell Streak 7 ignores manifest setting for Orientation

2011-02-14 Thread ko5tik
On Feb 14, 6:09 am, Dianne Hackborn hack...@android.com wrote: This isn't specific to the dell streak.  In the standard platform, the lock screen forces the orientation to portrait, so when going to sleep if the screen is landscape then it will get changed to portrait.  As always, an app

[android-developers] Picking a contact in a PreferenceActivity

2011-02-14 Thread Mattias Svala
Hello! I'm looking for a way to select a contact from the phones list of contacts in a PreferenceActivity. What is the best way to approach this? Do you know of some project that has implemented a this in some way. Or do I need to subclass Preference myself? :.:: mattias -- You received

Re: [android-developers] Share some of my work - DragDrop framework

2011-02-14 Thread Marcin Orlowski
On 14 February 2011 08:59, Oded O. olb...@gmail.com wrote: BTW, why is this an issue, and on what machines? Some with case sensitive filesystem -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] ExpandableListViews, SimpleCursorTreeAdapters and my sanity

2011-02-14 Thread Richard Marsh
Hey Kostya Just a quick update to let you know that I figured it out with your help. You were right on the button with what to do. Played around getting it to work, but no I'm setting background colors, doing group header totals etc. Again, much thanks for the help! I'll post a tutorial either

[android-developers] Re: App closes on load (reported only on LG Ally and X10 mini)

2011-02-14 Thread Johan Abramsson
Hi, The Sony Ericsson X10 mini has screen size 240 * 320. See http://developer.sonyericsson.com/wportal/devworld/phones/phone-overview/xperiax10mini?cc=gblc=en for more information. (Or check in this, more develpoer related link:

Re: [android-developers] Re: Android Application without a Main Activity?

2011-02-14 Thread Kostya Vasilyev
This lets you enable and disable application component states: http://developer.android.com/reference/android/content/pm/PackageManager.html#setComponentEnabledSetting(android.content.ComponentName, int, int) -- Kostya 14.02.2011 5:55, AndroidDevTime пишет: Well the exact behavior I want is

[android-developers] Possible to temporarily disable IMEs word prediction?

2011-02-14 Thread LinusOnline
I have a text box (EditText) in my application, where it never makes sense to use word prediction (in fact, it interferes with my own functionality, in different ways depending on the IME). Is there a way for me as an application programmer to tell the IME not to use word prediction, even though

Re: [android-developers] Possible to temporarily disable IMEs word prediction?

2011-02-14 Thread Kostya Vasilyev
This came up on the list just recently, here is a reference: http://groups.google.com/group/android-developers/browse_thread/thread/d3c055137498bbc9/ Since the proper way of doing it still depends on the IME doing the right thing, and not all IMEs do, you could experiment with other text

[android-developers] About In-App Billing and creating Products List

2011-02-14 Thread raju bhusani
Hi All, I have some queries about the Android In-App Billing. We have a publisher account x and we are implementing the In-App Billing , and Creating Products list in our Application and then my Queries are, 1)How can we create the Products list for the paid app so ,

[android-developers] Re: possible to track movement without GPS

2011-02-14 Thread JAlexoid (Aleksandr Panzin)
In theory it is possible using accelerometer. But that will trash the battery and will not be reliable. In addition to being heavy on computation. On 4 фев, 15:55, dica steven.mu...@gmail.com wrote: Hi Is it possible to track movement without GPS?  The GPS signal is too weak on my phone to

[android-developers] Re: How to assign unique identifier to regions of an Image and do image overlay?

2011-02-14 Thread JAlexoid (Aleksandr Panzin)
2D graphics guide in the Android Developer guide? On 5 фев, 04:19, playbox21 makad...@gmail.com wrote: Hi, I have this requirement that I need to subdivide an image into smaller regions, and be able to place a marker or an icon over a particular region on the image.  I'm not sure how to get

[android-developers] Live Wallpaper canvas gradient banding

2011-02-14 Thread obie
Hey guys I posted this before the weekend but it seems to have dissappeared so sorry if you're seeing this for a second time (I can't find any way of find 'my posts' in Google groups either). I was hoping that one of you might have had some experience with this. I am creating a Live Wallpaper

[android-developers] Re: How To Consume .NET Web Services via Android Mobile Device

2011-02-14 Thread JAlexoid (Aleksandr Panzin)
http://www.google.com/search?q=java+io+tutorial You are not getting any errors BTW. On 6 фев, 22:33, ROH rhol...@gmail.com wrote: Hi Fellow Android Developers, I have fairly new to the development of Android mobile applications. In one of my applications that I have developed, I want to

Re: [android-developers] google maps display error

2011-02-14 Thread TreKing
On Mon, Feb 14, 2011 at 7:10 AM, Atif Musaddaq atif.musad...@gmail.comwrote: Now In my project I could not find option to set Google APIs as the target. See attached snapshot, what i should do now. How i can add maps in my project ? Run the SDK Setup / Manager file in your Android SDK

Re: [android-developers] Re: possible to track movement without GPS

2011-02-14 Thread Deeps Uttekar
Hi you can use network provider for it plse see following code if gps not working then you can use network provider Sorry for code indentation LocationManager myManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); Location

[android-developers] Canvas or Gesture??

2011-02-14 Thread Abhishek Talwar
Hi guys I have to make an application in which the user can sign on the touchscreen and that signature of his gets saved in the device and then if he clicks on the mail button a mail is send with that sign image as an attachment. I spend some time doing this with gesture but now since i have

[android-developers] Re: google maps display error

2011-02-14 Thread Samsung Galaxy
Found the solution: writing here for future references. as i am using windows 7 so it requires administration rights to install these add ons. So when you run the android SDK manager instead of double click user right click and run as a administrator. then it will ask for permission by doing yes

[android-developers] How to delete...?

2011-02-14 Thread Abhilash baddam
Hi, In sqlite database, i am having some values. How can i delete a particular value from database. I tried like but showing error.. What mistake is i am doin here..? myDB.execSQL(DELETE FROM tablename where colname=+string); i want to delete the value at that particulat string. Any help

[android-developers] Re: Fragment question on the use of the arguments bundle

2011-02-14 Thread davemac
Thank you for the reply. I had second thoughts about my post and removed it, but you're right on top of things, as usual ;-) As you said, the arguments Bundle is critical for the proper restoration of a Fragment if it gets saved away. What I wondered about was the code on the client side where

Re: [android-developers] Cloud API for content extraction

2011-02-14 Thread TreKing
On Sun, Feb 6, 2011 at 9:16 PM, S Y syadav...@gmail.com wrote: Is this something that is needed for mobile apps? To give you a completely useless answer, this is something that is needed for mobile apps that need this functionality. If you want to build this API for fun or profit, go for it.

[android-developers] Re: How to delete...?

2011-02-14 Thread Hari Edo
On Feb 14, 9:15 am, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: I tried like but showing error.. Why is it so hard for people to explain WHAT error they get? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Re: possible to track movement without GPS

2011-02-14 Thread TreKing
On Mon, Feb 14, 2011 at 7:40 AM, Deeps Uttekar deeps.utte...@gmail.comwrote: if gps not working then you can use network provider OP said: I want to be able to track where I've been within a building. Network provider does not have the accuracy to track you within a building.

[android-developers] Mixing RelativeLayout and Absolute

2011-02-14 Thread RLScott
I have a complex layout that is almost perfectly adapted to RelativeLayout rules - all except for 2 buttons. I want to equally space 5 ImageButtons along the bottom of the view. The outside two buttons I can do in XML with android:layout_alignParentRight=true and

Re: [android-developers] How to delete...?

2011-02-14 Thread Mark Murphy
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at your stack trace associated with your error. In your case, you will find that you have invalid SQL, because your string is not quoted. Please use: String[] args={string}; myDB.execSQL(DELETE FROM tablename

Re: [android-developers] How to delete...?

2011-02-14 Thread Abhilash baddam
Hi, i am getting that string, dynamically. On Mon, Feb 14, 2011 at 7:54 PM, Mark Murphy mmur...@commonsware.comwrote: Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at your stack trace associated with your error. In your case, you will find that you

Re: [android-developers] Re: How to delete...?

2011-02-14 Thread Abhilash baddam
Hi hari, I am getting this exception *android.database.sqlite.SQLiteException: * *no such column: August: , while compiling: DELETE FROM favourites WHERE month=August* * * where month is colname . On Mon, Feb 14, 2011 at 7:54 PM, Hari Edo hari@gmail.com wrote: On Feb 14,

Re: [android-developers] How to delete...?

2011-02-14 Thread Abhilash baddam
Hi, In my code i used the command like this,** * * * myDB.execSQL(DELETE FROM tablename where colname=+string,null);* In the place of args i am passing null, is it correct what exactly i have to pass there. On Mon, Feb 14, 2011 at 8:06 PM, Abhilash baddam

[android-developers] Re: Mixing RelativeLayout and Absolute

2011-02-14 Thread Streets Of Boston
There are many ways to tackle this problem. But what about putting a horizontal LinearLayout at the bottom of the RelativeLayout, with width set to fill_parent, height to wrap_content. Then put 5 buttons inside this horizontal layout, give them equal weight. -- You received this message because

Re: [android-developers] Re: Fragment question on the use of the arguments bundle

2011-02-14 Thread Kostya Vasilyev
The code fragment below creates two instances of MyFragment, which is probably not what you intended. One is created by the new operator outside the constructor (someone doing new MyFragment(myIndexValue)) and another instance inside the constructor (f = new MyFragment). The latter one, with

Re: [android-developers] Mixing RelativeLayout and Absolute

2011-02-14 Thread Kostya Vasilyev
Scott, One easy way I can think of is to stick a horizontal LinearLayout in the Relative parent, and then give each button layout_width=0px and layout_weight=some value, say, 1. If you would like buttons to be sized to text with empty space in between, you can put empty View objects where

Re: [android-developers] Re: Fragment question on the use of the arguments bundle

2011-02-14 Thread Satya Komatineni
I think Dave's code can be slightly changed to have the desired affect and still maintain constructor semantics public class MyFragment extends Fragment { public MyFragment() {} public MyFragment(int index) { //MyFragment f = new MyFragment(); Bundle args = new Bundle();

Re: [android-developers] How to delete...?

2011-02-14 Thread Abhilash baddam
Hi, what type of mistake is i am doing? On Mon, Feb 14, 2011 at 8:11 PM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi, In my code i used the command like this,** * * * myDB.execSQL(DELETE FROM tablename where colname=+string,null);* In the place of args i am

Re: [android-developers] Re: sdk r09 breaks my app, r08 works fine

2011-02-14 Thread Adam Tybor
Thanks for the tip but I have tried that. Even checking out a clean version to a new directory and that still doesn't seem to work. Btw, I am using library projects so I am wondering if something in the ant scripts or how library resources are merged. Adam On Feb 13, 2011 9:02 PM, William

[android-developers] Re: Mixing RelativeLayout and Absolute

2011-02-14 Thread RLScott
Thank you Streets and Kostya. I had never worked with nested layouts before, so I didn't realize such a thing was so easy. I tried it and it works great. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Connecting 4 Geopoints

2011-02-14 Thread TreKing
On Sun, Feb 6, 2011 at 11:49 PM, Naveen HS naveen22...@gmail.com wrote: Now i am trying to animate the line while drawing between 2 Geopoints, i just want to show them some kind of animation while drawing line .. is it possible to do ?? or i can call some delay function ?? Create some kind

Re: [android-developers] Custom Dialogs with big messages

2011-02-14 Thread TreKing
On Mon, Feb 7, 2011 at 1:49 AM, andrewg_oz andrew.greg...@gmail.com wrote: I've worked around this problem by adding a TextView to the View above the Checkbox, then wrapping the whole lot in a ScrollView. The dialog grows and shrinks with the message, the only issue being that the Checkbox

[android-developers] Re: Careful, Dell Streak 7 ignores manifest setting for Orientation

2011-02-14 Thread Kim
Thanks Diane. I see my thinking was wrong. I thought that in the manifest, the designer can tell the OS that all of the activities are protrait and should never get notified of a change in orientation outside of your activity (except if implementing onConfigurationChanged). I was hoping to tackle

[android-developers] Re: List issues with Android devices here

2011-02-14 Thread Kim
All HTC, as far as I can tell - do not implement UDP multi-cast properly. Join command does not get issued. (edited 2/14/11 to remove Dell Streak 7 sending configuration changes to an app that does not support those changes, when the Streak goes to sleep. Apparently, this is normal Android

[android-developers] losing PendingIntent on upgrade

2011-02-14 Thread rrd
Hi, My app works like this 1) At boot time or when the app's database is empty (means after installation) it starts a service which checks the internet for some data. 2) The service stop itself when it is ready and use PendingIntent to run again later My problem is the following. It seems to

Re: [android-developers] Re: Careful, Dell Streak 7 ignores manifest setting for Orientation

2011-02-14 Thread Pepijn Van Eeckhoudt
Adding android:configChanges=orientation to activities that handle orientation changes themselves should do the trick. Of couse, it becomes your own responsibility to handle the config change properly then... Pepijn On 14/02/2011 17:13, Kim wrote: Thanks Diane. I see my thinking was wrong. I

[android-developers] Re: google maps display error

2011-02-14 Thread Samsung Galaxy
Now i have this error:- Sorry! The application mapview (process com.map.view) has stopped unexpectedly please try again. Log Cat 02-14 15:42:59.296: WARN/dalvikvm(393): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 02-14 15:42:59.327:

Re: [android-developers] Re: AutoCompleteTextView doesn't work with android:style/Theme.Light

2011-02-14 Thread Julian
Still on 2.2. 2009/12/18 Marcus marcus.ter...@gmail.com The same on my Motorola Milestone (german Droid) with still 2.0 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: google maps display error

2011-02-14 Thread TreKing
On Mon, Feb 14, 2011 at 10:53 AM, Samsung Galaxy atif.musad...@gmail.comwrote: 02-14 15:42:59.296: WARN/dalvikvm(393): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 02-14 15:42:59.327: ERROR/AndroidRuntime(393): FATAL EXCEPTION: main 02-14 15:42:59.327:

[android-developers] Re: google maps display error

2011-02-14 Thread Samsung Galaxy
emulator On Feb 14, 6:04 pm, TreKing treking...@gmail.com wrote: On Mon, Feb 14, 2011 at 10:53 AM, Samsung Galaxy atif.musad...@gmail.comwrote: 02-14 15:42:59.296: WARN/dalvikvm(393): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 02-14 15:42:59.327:

[android-developers] Re: How do you cuase the onTap of a map marker (pushpin) to invoke getting directions via Google Maps?

2011-02-14 Thread Spiral123
Search this group for 'Launch navigation app with an Intent'. Be aware that this is not a formally supported intent and may well disappear or change at some point. On Feb 13, 2:44 pm, charlest stevegut...@gmail.com wrote: I used the code in Commonware book The Busy Coders Guide Chapter 33

[android-developers] Formatting a Preference Summary

2011-02-14 Thread Jake Colman
I would like to update a preference summary at run-time (to display its currently value) but would like to format it to appear on two lines. I successfully implemented the ability to update the value but, if I use two lines, the second line is never displayed. Does anyone know if this is

Re: [android-developers] Re: sdk r09 breaks my app, r08 works fine

2011-02-14 Thread Adam Tybor
Nevermind, somebody made a checkin that caused the bug. BTW -- When using a LayoutInflater make sure it is created within the same Context you are using the view in. LayoutInflater.from(Application) is just a bad idea. Adam -- You received this message because you are subscribed to the

Re: [android-developers] Re: google maps display error

2011-02-14 Thread TreKing
On Mon, Feb 14, 2011 at 11:08 AM, Samsung Galaxy atif.musad...@gmail.comwrote: emulator OK, and did you make sure to run this on an AVD that was configured using the Google Maps Addons? - TreKing

Re: [android-developers] Code for Folder Lock

2011-02-14 Thread TreKing
On Sun, Feb 6, 2011 at 11:46 PM, Nataraj Patil CV natarajpatil...@gmail.com wrote: Please send me the android code for folder lock . I don't want the application for folder lock, I want the source code for it. If you expect someone to send you some source code for some arbitrary folder lock

Re: [android-developers] Can't manage to requestFocus a Spinner

2011-02-14 Thread TreKing
On Mon, Feb 7, 2011 at 2:09 PM, Free Spirited Software sam.steph...@kiwibank.co.nz wrote: The problem is that when the screen starts, the EditText has focus, meaning that some Spinners are off the top of the screen. Check the return value of requestFocus(). Make sure the spinner is

Re: [android-developers] Re: Careful, Dell Streak 7 ignores manifest setting for Orientation

2011-02-14 Thread Dianne Hackborn
You just need to deal with being restarted due to a configuration change. Note that even if you force an orientation, this can still happen due to the user opening a keyboard, changing the locale, and for many other reasons. It is true that even if you specify a particular orientation, you may

Re: [android-developers] Re: Fragment question on the use of the arguments bundle

2011-02-14 Thread Dianne Hackborn
Yes I really suggest following the model in the sample, with a static function to create the fragment with its arguments. It is not any more lines of code, and avoids making mistakes like forgetting to declare an empty constructor. On Mon, Feb 14, 2011 at 6:47 AM, Kostya Vasilyev

Re: [android-developers] Formatting a Preference Summary

2011-02-14 Thread TreKing
On Mon, Feb 14, 2011 at 11:43 AM, Jake Colman col...@ppllc.com wrote: Any suggestions? http://developer.android.com/reference/android/preference/Preference.html#setLayoutResource(int) - TreKing

[android-developers] AlphabetIndexer Letter 'Toast' Question

2011-02-14 Thread Paul
I have created a DateIndexer class that mimics the AlphabetIndexer class, except I can pass it an ArrayList of unique dates, and it will generate the section prompts to a ListView when implemented. I'd be happy to share this code once I have it finished... which brings me to this question: The

[android-developers] Re: google maps display error

2011-02-14 Thread Samsung Galaxy
on mobile device it is working. thanks On Feb 14, 6:39 pm, TreKing treking...@gmail.com wrote: On Mon, Feb 14, 2011 at 11:08 AM, Samsung Galaxy atif.musad...@gmail.comwrote: emulator OK, and did you make sure to run this on an AVD that was configured using the Google Maps Addons?

[android-developers] Problem Activity

2011-02-14 Thread Kevin R. Octavian
I have problem with activity. . my activity is playing sound.. when i start activity, sound is played. but , when i changed to be a landscape mode . the sound is playing again.. why it happen?? can you give me a solution for my problem??thx.. -- Mobile Developer

[android-developers] Re: [android-porting] /mnt/secure/asec

2011-02-14 Thread Dianne Hackborn
It is secure containers, currently mainly for apps on SD card. On Sun, Feb 13, 2011 at 11:34 PM, Anand Android android.an...@gmail.comwrote: hi all, actually when i mount mysd card . i see 2 partitions ,/mnt/sdcard and /mnt/secure/asec. what is /mnt/secure/asec? whats the use ? - Anand

Re: [android-developers] AlphabetIndexer Letter 'Toast' Question

2011-02-14 Thread Kostya Vasilyev
Paul, Looks like the index popup is drawn here: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/FastScroller.java;h=aa68a742f615867177a0cf62612976f9e3d85e30;hb=93552de8e305027fb003401e347b9493c64c981f#l174 Now sure how useful this is, since this

Re: [android-developers] Problem Activity

2011-02-14 Thread TreKing
On Mon, Feb 14, 2011 at 12:08 PM, Kevin R. Octavian kevin.r.octav...@gmail.com wrote: why it happen?? can you give me a solution for my problem?? Please review the documentation the Android Activity Lifecycle. Understanding this should answer your questions.

[android-developers] WebView Page Not Found Error Trapping

2011-02-14 Thread Craigbtx
I am using webview. If the page is not correct or the website is down, how can I error trap a page not found and show the users an error page or some othe page? I am very much a beginner so I need examples of code. @Override public void onCreate(Bundle savedInstanceState) {

[android-developers] finish doesn't call onDestroy on Android 2.2

2011-02-14 Thread guich
Hi, Running an application in Android 1.6 throught 2.1, when i call finish(), the onPause then onDestroy method is correctly called. On Galaxy Tab (Android 2.2), when i call finish, the onPause is called, but onDestroy not. What i have to invoke to make onDestroy be called? Seems that the Galaxy

Re: [android-developers] WebView Page Not Found Error Trapping

2011-02-14 Thread Mark Murphy
Implement onReceivedError() in your WebViewClient. On Mon, Feb 14, 2011 at 1:21 PM, Craigbtx craig...@austin.rr.com wrote: I am using webview. If the page is not correct or the website is down, how can I error trap a page not found and show the users an error page or some othe page? I am

Re: [android-developers] Problem Activity

2011-02-14 Thread Kevin R. Octavian
thx... On Tue, Feb 15, 2011 at 1:17 AM, TreKing treking...@gmail.com wrote: On Mon, Feb 14, 2011 at 12:08 PM, Kevin R. Octavian kevin.r.octav...@gmail.com wrote: why it happen?? can you give me a solution for my problem?? Please review the documentation the Android Activity Lifecycle.

[android-developers] a different list mechanism

2011-02-14 Thread kiros88
Hi I was curious if anyone knew of a different list mechanism other then listview? that would list an array of strings for the user -- 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] Re: AlphabetIndexer Letter 'Toast' Question

2011-02-14 Thread Paul
Gah... it's a hardcoded value, and as you said, is instantiated directly from AbsListView so I can't extend it and have it used by the ListView... looks like a dead-end. Any suggestions on getting around this, or is my DateIndexer dead in the water? Thanks for any insight, Paul On Feb 14,

Re: [android-developers] finish doesn't call onDestroy on Android 2.2

2011-02-14 Thread Mark Murphy
On Mon, Feb 14, 2011 at 1:25 PM, guich guiha...@gmail.com wrote: Running an application in Android 1.6 throught 2.1, when i call finish(), the onPause then onDestroy method is correctly called. On Galaxy Tab (Android 2.2), when i call finish, the onPause is called, but onDestroy not. Works

Re: [android-developers] a different list mechanism

2011-02-14 Thread Mark Murphy
What are you expecting to be different about this different list mechanism? On Mon, Feb 14, 2011 at 1:29 PM, kiros88 ghui...@gmail.com wrote: Hi I was curious if anyone knew of a different list mechanism other then listview? that would list an array of strings for the user -- Mark Murphy (a

[android-developers] Re: finish doesn't call onDestroy on Android 2.2

2011-02-14 Thread John
I don't think that onDestroy is guaranteed to be called. My understanding is that the system chooses when/whether to destroy it. But onPause is guaranteed to be called, and you can check isFinishing to see whether the activity is finishing in the onPause. On Feb 14, 11:25 am, guich

[android-developers] Re: finish doesn't call onDestroy on Android 2.2

2011-02-14 Thread guich
Hi Mark, Very strange. I'm sending messages to the console and it really shows only the onPause method, and not the onDestroy. I'm pretty sure something changed (or maybe is a new bug in 2.2). Anyway, i added a thread with a sleep that calls System.exit if the app doesn't exit after a second.

[android-developers] Re: a different list mechanism

2011-02-14 Thread kiros88
Um well I was just curious if there was a different widget or a different android tool On Feb 14, 10:31 am, Mark Murphy mmur...@commonsware.com wrote: What are you expecting to be different about this different list mechanism? On Mon, Feb 14, 2011 at 1:29 PM, kiros88 ghui...@gmail.com wrote:

[android-developers] Re: AlphabetIndexer Letter 'Toast' Question

2011-02-14 Thread Paul
Looks like there might be a solution here, disabling the FastScroller then rolling your own: http://stackoverflow.com/questions/3531398/resize-fastscroll-alert-dialog So much work for such a simple feature... On Feb 14, 1:30 pm, Paul pmmen...@gmail.com wrote: Gah... it's a hardcoded value, and

[android-developers] Re: finish doesn't call onDestroy on Android 2.2

2011-02-14 Thread Streets Of Boston
When an activity is *finishing*, the onDestroy will be called. The documentation states that onPause is guaranteed to be called, but not the onDestroy in case an activity is part of a process that is about to be killed: Apps with foreground activities won't be killed -- onPause will be called,

Re: [android-developers] Re: AlphabetIndexer Letter 'Toast' Question

2011-02-14 Thread Kostya Vasilyev
Yeah, I was just about to suggest creating your own alternative implementation. With the class being instantiated inside android.widget.AbsListView, and no way to redefine it, that would seem like the only way to do it. Good thing you found someone's work that you can leverage. -- Kostya

[android-developers] Making Sure a Finished App is not Draining Resources

2011-02-14 Thread John
I understand that Android will keep an application open until the system decides to close it. The correct way to handle this is to make sure your app isn't using resources and call finish() on the Activity. Once a month, my employer will use a task manager app and figure out that our app is still

Re: [android-developers] Re: a different list mechanism

2011-02-14 Thread Kostya Vasilyev
For a small list, where you don't care about item recycling, you can just put a LinearLayout in your layout XML file, and add views to it dynamically from code (probably by using LayoutInflater so that each item's layout can be also defined in XML). -- Kostya 14.02.2011 21:40, kiros88 пишет:

[android-developers] Re: a different list mechanism

2011-02-14 Thread kiros88
no It be a big long list sometimes would this method work for that too I kinda just wanted to confirm if ListView is teh only option for creating lists in Android On Feb 14, 10:49 am, Kostya Vasilyev kmans...@gmail.com wrote: For a small list, where you don't care about item recycling, you can

[android-developers] Re: finish doesn't call onDestroy on Android 2.2

2011-02-14 Thread guich
Hi, I don't think that onDestroy is guaranteed to be called. My understanding is that the system chooses when/whether to destroy it. But onPause is guaranteed to be called, and you can check isFinishing to see whether the activity is finishing in the onPause. In my situation, the isFinishing

[android-developers] Re: finish doesn't call onDestroy on Android 2.2

2011-02-14 Thread guich
Thanks for the isFinishing tip. Now i'm using it onFinish and checking, and it works fine. I no longer trust at onDestroy. :-) regards guich -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: a different list mechanism

2011-02-14 Thread Kostya Vasilyev
ListView already provides a way to implement long lists that's efficient in terms of both memory usage and processing time. It also connects to classes that make it easy to pull your data from a database. It also implements a way to automatically refresh data if it changes. That's a lot of

Re: [android-developers] Re: finish doesn't call onDestroy on Android 2.2

2011-02-14 Thread Mark Murphy
On Mon, Feb 14, 2011 at 1:39 PM, guich guiha...@gmail.com wrote: Very strange. I'm sending messages to the console and it really shows only the onPause method, and not the onDestroy. I'm pretty sure something changed (or maybe is a new bug in 2.2). I'm pretty sure nothing changed, at least for

Re: [android-developers] Making Sure a Finished App is not Draining Resources

2011-02-14 Thread Kostya Vasilyev
14.02.2011 21:48, John пишет: Once a month, my employer will use a task manager app and figure out that our app is still running even after he has exited the app. Then he asks me about it, I explain the Android rules to him, and he comes back with But Angry Birds doesn't show up in the task

[android-developers] AsyncTask Question

2011-02-14 Thread DanielleM
Hello all: I'm trying to use an AsyncTask to prepare two MediaPlayer objects while the rest of my activity loads. However, I've noticed that once everything is loaded...I'm able to play my media player just fine, but if I switch to another activity in my app and then switch back to the media

[android-developers] Re: Making Sure a Finished App is not Draining Resources

2011-02-14 Thread John
I appreciate the response. I can deal with my employer, explaining things each time. A user who has downloaded my app probably won't take time to ask me why my app is still running. He will merely look at the task manager and form a bad opinion of my app. Misguided as this user may be, I have

Re: [android-developers] AsyncTask Question

2011-02-14 Thread Kostya Vasilyev
AsyncTask doesn't know anything about activities or their lifecycles. If you leave your activity with the back key, it's actually destroyed. So when you come back (by launching again, or by using the recent apps list [long-pressing the home key]), it will be created all over again. It's up

[android-developers] Re: a different list mechanism

2011-02-14 Thread Spiral123
With the supplied ListView you can also override a heap of stuff to make it look very different from a 'standard' list. Personally I think I would always start from the default. Some of the guys on the Sony Ericsson developer blog did a nice tutorial around 3d lists:

Re: [android-developers] AsyncTask Question

2011-02-14 Thread Danielle Murkerson
Ok that's good to know...I didn't see anything about that in the docs...So I could just tell it to cancel when the activity resumes. Thanks, DanielleM On Mon, Feb 14, 2011 at 2:32 PM, Kostya Vasilyev kmans...@gmail.com wrote: AsyncTask doesn't know anything about activities or their

Re: [android-developers] Re: Making Sure a Finished App is not Draining Resources

2011-02-14 Thread Kostya Vasilyev
14.02.2011 22:28, John пишет: A user who has downloaded my app probably won't take time to ask me why my app is still running. He will merely look at the task manager and form a bad opinion of my app. Yes they can. However, not all users use task killers, and among those who do, some do email

Re: [android-developers] AsyncTask Question

2011-02-14 Thread Kostya Vasilyev
No, you tell it to cancel when your activity is *paused* (probably combined with a check for isFinishing()). And actually, you don't need to use an AsyncTask for a media player: http://developer.android.com/reference/android/media/MediaPlayer.html#prepareAsync() public void prepareAsync ()

Re: [android-developers] AsyncTask Question

2011-02-14 Thread Danielle Murkerson
Thanks for the help. On Mon, Feb 14, 2011 at 2:46 PM, Kostya Vasilyev kmans...@gmail.com wrote: No, you tell it to cancel when your activity is *paused* (probably combined with a check for isFinishing()). And actually, you don't need to use an AsyncTask for a media player:

[android-developers] Re: Your feedback on Samples/Tutorials/Articles

2011-02-14 Thread Elvis
Sorry this might not sound friendly but this is reality. All I can say is me and 80 000 other developers are having a nightmare trying to find basic info on the android website and google search is well 30% on what I am searching for if it even finds anything related. This is just the normal

[android-developers] How do I Crop an picture after taking it?

2011-02-14 Thread Carlos Eduardo Rührwiem
Hello devs! I've searched alot for some sort of library/help/tutorial to do the picture croping after taking a picture. Unfortunately I wasn't able to find something with good results and that was easy to use. There was a topic a year ago here but no real solution was found. Any ideas of how

[android-developers] Re: Formatting a Preference Summary

2011-02-14 Thread Jake Colman
T == TreKing treking...@gmail.com writes: T On Mon, Feb 14, 2011 at 11:43 AM, Jake Colman col...@ppllc.com wrote: Any suggestions? T http://developer.android.com/reference/android/preference/Preference.html#setLayoutResource(int) Short, pithy reply! :-) So the only way to do this

Re: [android-developers] Canvas or Gesture??

2011-02-14 Thread Robin Talwar
Ok lemme refine the question. How to use canvas to sensetize the touch event and then save the image created by the user through touch and mail it as an attachment On Mon, Feb 14, 2011 at 7:13 PM, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com wrote: Hi guys I have to make an application in

Re: [android-developers] Re: Formatting a Preference Summary

2011-02-14 Thread TreKing
On Mon, Feb 14, 2011 at 1:57 PM, Jake Colman col...@ppllc.com wrote: So the only way to do this is to create my own view to be used to for that preference and set up the edittext for summary so that it handled multiple lines? I don't know if it's the *only* way, but since you tried the

Re: [android-developers] Re: Making Sure a Finished App is not Draining Resources

2011-02-14 Thread Kevin Duffey
I am curious why if in your onDestroy you shut down any tasks/threads, your app would still show up? I would think it would exit properly if you wanted it to. Perhaps I misunderstood that. I thought if the lifecycle onDestroy fires, that meant your app (or at least the activity) was going to be

Re: [android-developers] Problem Activity

2011-02-14 Thread Kevin Duffey
Orientation changes restart your activity if I recall correctly. I have not done what you are doing, but I would think that in the onPause, you'd need some way to save the location of the audio playing, then in the onResume after the orientation change, restart playback from that point? On Mon,

[android-developers] Re: How do I Crop an picture after taking it?

2011-02-14 Thread Carlos Eduardo Rührwiem
Just to be more clear. I would like to be able to point at the picture (it would be nice to have some sort of small zoom) and pick the 4 corners so that the app can crop latter. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Problem Activity

2011-02-14 Thread Kevin Duffey
Incidentally, I don't know if there are other reasons for restarting activities on orientation changes, but I know one reason it's done is to allow potential layout changes to occur. You can provide layouts for both landscape and portrait. I don't know why some sort of event handler couldn't be

Re: [android-developers] Re: How do I Crop an picture after taking it?

2011-02-14 Thread Kevin Duffey
Do you mean for your code to crop it to some smaller size? Or allow the user to adjust a box around the picture then crop it once the user sets the size? 2011/2/14 Carlos Eduardo Rührwiem carlos.ri...@gmail.com Just to be more clear. I would like to be able to point at the picture (it would be

Re: [android-developers] Re: Making Sure a Finished App is not Draining Resources

2011-02-14 Thread Mark Murphy
On Mon, Feb 14, 2011 at 3:10 PM, Kevin Duffey andjar...@gmail.com wrote: I am curious why if in your onDestroy you shut down any tasks/threads, your app would still show up? I would think it would exit properly if you wanted it to. Perhaps I misunderstood that. I thought if the lifecycle

  1   2   >