[android-developers] Re: Android: Get Recently used Apps

2011-04-27 Thread Goodwin
Add the following. On 4月27日, 下午9时14分, Simon wrote: > Hello! > > I need a little bit help getting information about the last lets say 5 > application that was opened/used. > > ActivityManager m = > (ActivityManager)this.getSystemService(ACTIVITY_SERVICE); > RecentTaskInfo task = m.getRece

Re: [android-developers] Phone for development

2011-04-27 Thread Pepijn Van Eeckhoudt
I agree with that review. As I already said in the set of devices I have available, that one's my 'favorite'. A couple of my colleagues have one for personal use as well and are very happy with it. BTW, there's also a revamped 'S' version of the desire which is a gingerbread device. It's proba

[android-developers] GMaps launching problem

2011-04-27 Thread kaushik p
on click of a button i am launching googlemaps , on which the current location of the user is present . But my application crashes each time i click the button . Please help me solve this problem public void launchmaps() { Intent i = new Intent(this,com.kaushik.android.ShowMap.class);

[android-developers] Re: car dock mode

2011-04-27 Thread mort
On 27 Apr., 21:24, Dianne Hackborn wrote: > Um. This API was introduced in Froyo/2.2 (that is API 8). Oops, sorry, mixed up the version numbers... :o > ACTION_DOCK_EVENT is about the device being placed in a dock.  Calling that > API puts the device in to car mode, but that doesn't cause it to

[android-developers] Re: javax.xml.bind.annotation.XmlAccessType and Android

2011-04-27 Thread Robert Massaioli
I know it has been a while but in case you wanted a JAXB replacement in Android you should use the Simple library: http://massaioli.homelinux.com/wordpress/2011/04/21/simple-xml-in-android-1-5-and-up/ -- You received this message because you are subscribed to the Google Groups "Android Develop

[android-developers] is there anyone using spotify?

2011-04-27 Thread Hitendrasinh Gohil
hi, In spotify there are offline playlist mode in which it stores songs on sdcard in number of chunks.and if we select a particular chunk with renamed extension .mp3 it cant be played even with spotify. so can anyone tell me how it works? is there any encryption or any game with id3 header or so

Re: [android-developers] How is your app selling on the Amazon Appstore?

2011-04-27 Thread Nikolay Elenkov
On Thu, Apr 28, 2011 at 2:16 PM, Zsolt Vasvari wrote: > Mine started out very slow, but has picked up some steam lately.  It's > still too few downloads to establish a pattern, but it's something for > nothing, so I can't complain. > > How is your experience? > Very slow. It took ages (2-3 weeks?

[android-developers] What exactly happens during an upgrade?

2011-04-27 Thread Robert Macaulay
I have Acra in my app to report on crashes(I will be removing it in favor of the market one soon). I've recently changed the form that it posts to during an upgrade(so the new app version will post to the new form, the old version will remain on the old form). However, I've witnessed old code, thro

[android-developers] JSon parsing has been taking more time on Android

2011-04-27 Thread imran ali
Hi all, i have big data approx 10MB, that i have to parse and save in to database of db4o. i have been downloading date and making it in to string then i am parsing and setting all values of class object, that object i have been saving in to db4o. the above process has been taking more time, to pa

Re: [android-developers] Re: Obtaining access to the surfaceView instance

2011-04-27 Thread Dianne Hackborn
You need to create it in the activity. On Thu, Apr 28, 2011 at 12:30 AM, droid-stricken wrote: > Thanks. > So, any idea on how to associate the view created in the activity with > the mediaplayer instance created in the service. > It's not an issue for playing audio files but for video files, i

Re: [android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Dianne Hackborn
Yes if you call finish() you are saying you want to completely remove the activity from the stack. The system can have the activity destroyed in the same way, but just not remove it from the stack it maintains. At the end of the day, it would be fundamentally broken if there was a way for an acti

[android-developers] How is your app selling on the Amazon Appstore?

2011-04-27 Thread Zsolt Vasvari
Mine started out very slow, but has picked up some steam lately. It's still too few downloads to establish a pattern, but it's something for nothing, so I can't complain. How is your experience? -- You received this message because you are subscribed to the Google Groups "Android Developers" gr

[android-developers] Re: Developer console: payments not charged, application statistics not updated

2011-04-27 Thread Zsolt Vasvari
> Hopefully Google will soon get around to updating my paid app > statistics, and it won't languish at the bottom of its category > forever. Or I have just wasted a couple of months work. One or the > other. Up until a couple of weeks ago, the updates to the download stats were updated once a day,

Re: [android-developers] Canvas draw outside the bitmap.

2011-04-27 Thread a a
Another question, Is it possible that new(create) several canvas on the screen at one time? 2011/4/28 Romain Guy : > You cannot draw outside of a bitmap and see it... since it's outside. You > can apply a transform on the Canvas to bring the text back in View (for > instance, do translate(-120, 0)

[android-developers] Re: Developer console: payments not charged, application statistics not updated

2011-04-27 Thread Maps.Huge.Info
> I launched my first paid app 5 days ago. It still shows zero downloads Don't worry too much about this. Once they do get around to actually processing the last nine days of data your app will float up to where it should be. My free app "Radar Now!" has had nearly 70,000 downloads in that time an

[android-developers] Re: First Application Development

2011-04-27 Thread Peter Webb
Messages? You mean email? You mean instant messaging? You mean SMS? You mean via bluetooth? You mean via direct sockets connections? You mean via Facebook/Twitter etc APIs ? These are all completely different problems, and would be solved in very different ways. What are you really trying to do,

Re: [android-developers] Canvas draw outside the bitmap.

2011-04-27 Thread Romain Guy
You cannot draw outside of a bitmap and see it... since it's outside. You can apply a transform on the Canvas to bring the text back in View (for instance, do translate(-120, 0) then drawText(120, 0) will be like drawing text at 0,0). On Wed, Apr 27, 2011 at 10:00 PM, a a wrote: > Yes, it can se

Re: [android-developers] Canvas draw outside the bitmap.

2011-04-27 Thread a a
Yes, it can see nothing. I wan't to draw the text outside and can see it. 2011/4/28 Romain Guy : > You can draw outside, but nothing will happen. > > On Wed, Apr 27, 2011 at 9:52 PM, a a wrote: >> >> Dear All, >> >> The Canvas class holds the "draw" calls. To draw something, you need 4 >> basic c

[android-developers] Re: Developer console: payments not charged, application statistics not updated

2011-04-27 Thread Peter Webb
My free app just caught up with about where it should be, after 9 days without an update. I launched my first paid app 5 days ago. It still shows zero downloads (even though people are obviously downloading it and paying for it). As a result, my paid app doesn't even make it to the top 800 in its

Re: [android-developers] Canvas draw outside the bitmap.

2011-04-27 Thread Romain Guy
You can draw outside, but nothing will happen. On Wed, Apr 27, 2011 at 9:52 PM, a a wrote: > Dear All, > > The Canvas class holds the "draw" calls. To draw something, you need 4 > basic components: A Bitmap to hold the pixels, a Canvas to host the > draw calls (writing into the bitmap), a drawin

[android-developers] Re: android set top boxes

2011-04-27 Thread Eric Wong (hdmp4.com)
Do you mean Android set box from Google or from 3rd party China manufacturer? On Apr 26, 3:20 pm, kaushik p wrote: > Hi , > > Is there there anyone here who  is working on android set top boxes ? I need > some information on that .May i know the availability of the hardware ?? > > -- > Thanks&Reg

[android-developers] Canvas draw outside the bitmap.

2011-04-27 Thread a a
Dear All, The Canvas class holds the "draw" calls. To draw something, you need 4 basic components: A Bitmap to hold the pixels, a Canvas to host the draw calls (writing into the bitmap), a drawing primitive (e.g. Rect, Path, text, Bitmap), and a paint (to describe the colors and styles for the dra

[android-developers] Re: android set top boxes

2011-04-27 Thread Zsolt Vasvari
It doesn't matter. There is no public SDK available for the Google TV, so this is not the right forum to discuss any issues with it. On Apr 28, 12:36 pm, "Eric Wong (hdmp4.com)" wrote: > Do you mean Android set box from Google or from 3rd party China > manufacturer? > > On Apr 26, 3:20 pm, kaus

[android-developers] Re: Maintain session over 3g and wifi

2011-04-27 Thread seema
Hi, You need to have a mobility protocol running on your android phone for doing this. There are protocols which maintains the session when the interfaces are changed. Check this... http://hipl.hiit.fi/hipl/manual/ch02s07.html Regards, Seema On Apr 27, 11:30 am, Ashish jain wrote: > Hi, > >

[android-developers] Re: Cropping Images with Droid X

2011-04-27 Thread James W
It's certainly fine on Nexus 1, even on 2.3.3. but I wasn't aware it wasn't supported on the Nexus S. So it looks as if long term writing my own cropping activity will be the best solution. Thanks! James On Apr 28, 2:21 am, Kumar Bibek wrote: > Cropping, as far as I know, is not a documented I

[android-developers] Re: Obtaining access to the surfaceView instance

2011-04-27 Thread droid-stricken
Thanks. So, any idea on how to associate the view created in the activity with the mediaplayer instance created in the service. It's not an issue for playing audio files but for video files, i need a surface to render it :( I am sure ppl must have faced this issue - it appears pretty commonly, i b

[android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Eric
On Apr 28, 12:21 am, Dianne Hackborn wrote: > "Asking it to finish" means finishing the activity, which means destroying > it.  Politely asking it to finish isn't going to cause it to just not > cleanly exit.  It would be fundamentally broken if activities every just > stop being used in their p

Re: [android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Dianne Hackborn
"Asking it to finish" means finishing the activity, which means destroying it. Politely asking it to finish isn't going to cause it to just not cleanly exit. It would be fundamentally broken if activities every just stop being used in their process without actually going through the lifecycle. I

Re: [android-developers] not legal to write files using the instrumentation context for an InstrumentationTestCase?

2011-04-27 Thread Dianne Hackborn
The instrumentation code is running as part of the application's process, not in its own process, so it is running under the app's uid and not its own. On Wed, Apr 27, 2011 at 3:10 PM, Andrew Ball wrote: > I get a NullPointerException when I try to invoke openFileOutput() on > the instrumentatio

Re: [android-developers] Obtaining access to the surfaceView instance

2011-04-27 Thread Dianne Hackborn
You can't do this from a service. A service is not associated with a UI. On Thu, Apr 28, 2011 at 12:15 AM, droid-stricken wrote: > Hi, > > I have an activity - > public class mainActivity extends Activity { > > private SurfaceView sv; > > @Override > public void onCreate(Bundle savedInstance

Re: [android-developers] Re: How to prevent my application from being killed?

2011-04-27 Thread Dianne Hackborn
On Thu, Apr 28, 2011 at 12:15 AM, lbendlin wrote: > b) use Alarm Manager to start your app every x minutes. In your app specify > singletask. (1) Force stop also removes all alarms registered by the app. (2) I sure hope you are not using activities with the alarm manager, and you should never

Re: [android-developers] Android: Get Recently used Apps

2011-04-27 Thread Dianne Hackborn
Fwiw, that is the API used to determine the recent tasks to show in the task switcher. On Thu, Apr 28, 2011 at 12:15 AM, Dianne Hackborn wrote: > Yes it returns the recent tasks. You'll need to describe more what you > mean by "it didn't work out well." > > > On Wed, Apr 27, 2011 at 9:14 AM, Sim

Re: [android-developers] Android: Get Recently used Apps

2011-04-27 Thread Dianne Hackborn
Yes it returns the recent tasks. You'll need to describe more what you mean by "it didn't work out well." On Wed, Apr 27, 2011 at 9:14 AM, Simon wrote: > Hello! > > I need a little bit help getting information about the last lets say 5 > application that was opened/used. > > ActivityManager m =

[android-developers] Obtaining access to the surfaceView instance

2011-04-27 Thread droid-stricken
Hi, I have an activity - public class mainActivity extends Activity { private SurfaceView sv; @Override public void onCreate(Bundle savedInstanceState) { sv = (SurfaceView) findViewById(R.id.video_surface); . } } I have a service - public class VideoService extends Service { priva

[android-developers] Re: How to prevent my application from being killed?

2011-04-27 Thread lbendlin
b) use Alarm Manager to start your app every x minutes. In your app specify singletask. -- 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

Re: [android-developers] Multiple Tasks within an Application

2011-04-27 Thread Dianne Hackborn
On Wed, Apr 27, 2011 at 10:55 PM, Eric wrote: > 6. If the user hits the HOME button while in Task B (NOT the main > application Task), and then they re-enter the App via the launcher > (for Activity A1, Task A), how can I cause the App to enter back where > I left off in Task B? The LAUNCHER doe

[android-developers] Re: Search from Database

2011-04-27 Thread Zsolt Vasvari
If I am not mistaken FTS3 is compiled into the Android SQLite. On Apr 27, 9:43 am, DanH wrote: > There are also extensions to SQLite to do full text > search:http://www.sqlite.org/fts3.html > > But these would presumably require you to C compile and load the > extensions. > > On Apr 26, 7:56 am,

[android-developers] Re: Invoke shell commands insmod/rmmod from application

2011-04-27 Thread Zsolt Vasvari
> Ethernet Configuration, found in Android-x86 2.2 & 2.3 under Settings > category. This app can change the IP address. However on a typical > Linux PC it can be done (using ifconfig) only with admin/root > privileges. There are many things the Settings app can do that you cannot, for a good reaso

[android-developers] Re: How to prevent my application from being killed?

2011-04-27 Thread Zsolt Vasvari
a) you can't b) you can't On Apr 27, 11:35 am, J J wrote: > Hello, all. > > I have 2 questions please: > a) How to prevent my application from being killed? > or > b) How to restart my application automatically after it is killed or > force stopped? > > Thanks in advance. > -Jiang -- You receiv

[android-developers] Re: Multiple Tasks within an Application

2011-04-27 Thread Eric
On Apr 27, 11:25 pm, TreKing wrote: > On Wed, Apr 27, 2011 at 9:55 PM, Eric wrote: > The rest of that documentation: > "See > FLAG_ACTIVITY_MULTIPLE_TASK > for > a flag to disable this behavior." Thank you for the infor

[android-developers] Android: Get Recently used Apps

2011-04-27 Thread Simon
Hello! I need a little bit help getting information about the last lets say 5 application that was opened/used. ActivityManager m = (ActivityManager)this.getSystemService(ACTIVITY_SERVICE); RecentTaskInfo task = m.getRecentTasks(5,0).get(0); Then i used: String output = "the last appli

[android-developers] Re: Invoke shell commands insmod/rmmod from application

2011-04-27 Thread Abhijit
Thanks, I understand this. However my curiosity in this topic got triggered by one application, Ethernet Configuration, found in Android-x86 2.2 & 2.3 under Settings category. This app can change the IP address. However on a typical Linux PC it can be done (using ifconfig) only with admin/root priv

[android-developers] Clearing composing text in IME on switching fields?

2011-04-27 Thread ColdForged
I'm working on a custom keyboard implementation overriding an InputMethodService. Our implementation creates composing text for predictions within the text field, styled appropriately. For instance, a user typing "pine" would have "pineapple" shown with the "apple" showing as gray since the user ha

[android-developers] Pure Data as your audio engine

2011-04-27 Thread Chris McCormick
Hello Android dev ppl, Pure Data is a Free Software audio patching/programming language which allows you to make wonderful sound machines by connecting boxes together with virtual wires. http://pure-data.info/ There is now a way of getting your Pure Data patches to work as the audio engine in your

[android-developers] Re: Search from Database

2011-04-27 Thread tbltop
All database fields are searchable by default. Android doesn't do the searching, you need to make your own "search bar" and use sqlite to do the actual search (called a query in sqlite speak). I've not used sqlite within Android, but if I needed to, here is what I would do: Look into Androids sq

[android-developers] not legal to write files using the instrumentation context for an InstrumentationTestCase?

2011-04-27 Thread Andrew Ball
I get a NullPointerException when I try to invoke openFileOutput() on the instrumentation context for an InstrumentationTestCase. Is this by design? I am able to use the target context. public class ImageUtilTest extends InstrumentationTestCase { /** the instrumentation context */ private Co

[android-developers] Developer console: payments not charged, application statistics not updated

2011-04-27 Thread burnayev
The payments for my application (ActionComplete Pro) sit in a limbo (the Charge button is grayed out) since April 24. Typically it took a few hours before an order would come through and Charge button would be replaced by Archive. The application statistics for both ActionComplete and ActionComple

[android-developers] 16 bit encoding

2011-04-27 Thread angshuman baruah
Hi all How can I send a SMS using 16 bit encoding scheme. All the methods that i got in the internet are deprecated. Can any one help me to send 16 bit unicode programmatically. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

[android-developers] how to use scrollview in java code.

2011-04-27 Thread rishabh agrawal
I want to know that how i use the scrollview in java code -- 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 to android

[android-developers] First Application Development

2011-04-27 Thread arpit
I am new in this app development field, I have decided to make a simple application regarding messaging, i.e. just send and receive messages.. so can u help me out in this.. how the messages are sent from one device to another..?? or do i have to stay on sending message from one emulator to another

[android-developers] Error in building application

2011-04-27 Thread aditya _22cen
Hi everyone, i am new to andriod i am geting the C:\Program Files\Android\android-sdk\tools\ant\main_rules.xml:472: The following error occurred while executing this line: C:\Program Files\Android\android-sdk\tools\ant\main_rules.xml:203: apply returned: 255 BUILD FAILED (total time: 3 seconds)

[android-developers] Getting the time of day from a cell site

2011-04-27 Thread CBD
I am writing an application that wants to know the time of day from a cell site. Any cell site that we can see is acceptable. I have not been able to find anything in the TelephonyServices or LocationServices that would allow me to do this.. Is there a way to get the time of day (any format is ok)

[android-developers] How to prevent my application from being killed?

2011-04-27 Thread J J
Hello, all. I have 2 questions please: a) How to prevent my application from being killed? or b) How to restart my application automatically after it is killed or force stopped? Thanks in advance. -Jiang -- You received this message because you are subscribed to the Google Groups "Android Devel

[android-developers] Button code

2011-04-27 Thread rishabh agrawal
How to crate button & also called without using xml. -- 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 to android-developers+u

[android-developers] How can I handle Exception message internationalization

2011-04-27 Thread Guilherme Matsumoto
Hi Everyone, Here is an example of my problem: try { // code that throws an exception } catch (Exception e) { Toast.makeText(getApplicationContext(), e.getLocalizedMessage(), Toast.LENGTH_LONG).show(); } I'd like it to show a message in other language in a beautiful way something like ju

[android-developers] why are images automatically scaled down on high density screens with BitmapDrawable(String filepath)

2011-04-27 Thread Andrew Ball
I've noticed that when working with a high density device, BitmapDrawable(String) automatically scales a bitmap down by a factor of 160/240. I'm able to get the bitmap to not be scaled by using BitmapDrawable(Context, String), but I don't understand why the image would be automatically scaled *dow

[android-developers] Maintain session over 3g and wifi

2011-04-27 Thread Ashish jain
Hi, I want to maintain session in my app when there is loss of WIFI connection and android switches to 3G automatically and also when the device is working on 3G and there is WIFI network availablity so the device would use WIFI. In this changeover of connection i want to preserve the session. How

Re: [android-developers] Multiple Tasks within an Application

2011-04-27 Thread TreKing
On Wed, Apr 27, 2011 at 9:55 PM, Eric wrote: > This seems to work empirically, HOWEVER, I don't understand "why" > this works, after I have already navigated around in Task B? I > understand why it would work the first time, to start Task B, but I > don't understand why on subsequent calls, when

Re: [android-developers] Re: Fragmentation-resistant product design

2011-04-27 Thread Brill Pappin
project created. http://code.google.com/p/aosddl/ i haven't sent any code up yet (not that there is much to send up) but will do so shortly. Those that wish to participate, please make yourself know to the project :) - Brill -- You received this message because you are subscribed to the Googl

Re: [android-developers] Keytool and Jarsigner - where are they?

2011-04-27 Thread Satya Komatineni
They are in your-jdk-directory\bin On Wed, Apr 27, 2011 at 11:02 PM, Paul Spradley wrote: > I am using eclipse and cannot find Keytool or Jarsigner . Where are they > accessed from? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group.

[android-developers] Keytool and Jarsigner - where are they?

2011-04-27 Thread Paul Spradley
I am using eclipse and cannot find Keytool or Jarsigner . Where are they accessed from? -- 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

[android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Eric
On Apr 27, 9:27 pm, Dianne Hackborn wrote: > On Wed, Apr 27, 2011 at 6:56 PM, Eric wrote: > >  Hopefully the documentation can also be updated to > > remove any doubt whatsoever that an Activity cannot possibly be > > 'removed' from memory in low-memory situations (when the process is > > _not_

[android-developers] Multiple Tasks within an Application

2011-04-27 Thread Eric
Let's say for the purposes of my specialized Application, I would like to have two Tasks (thus back stacks) that can be run by the user within an Application. Task A (with task affinity "A") --> Activity A1, Activity A2, Activity A3 Task B (with task affinity "B") --> Activity B1, Activity B2, Act

[android-developers] Re: Setting Widget Background via RemoteView

2011-04-27 Thread Jake Colman
> "KV" == Kostya Vasilyev writes: KV> 12.04.2011 17:19, Jake Colman пишет: >> I have yet to figure this out so I though I'd try posting again. >> >> Given a widget with a background image specified in its layout, >> how can one set the background's transparency at runtime?

Re: [android-developers] CheckedTextView and filtering of list not working well together

2011-04-27 Thread TreKing
On Wed, Apr 27, 2011 at 8:14 PM, Lowell Kirsh wrote: > At a high level I understand what you are saying but I'm not sure where to > hook into the filtering. I don't know anything about filtering - haven't used it. > I think I know how to save and restore the list's checked state (e.g. set > o

[android-developers] Re: Android OOM exception and SoftReferences

2011-04-27 Thread DanH
One does need to keep in mind that naively loading, say, an 8 megapixel image will take about 16mb of storage. And on some platforms (not sure about Android) simply having 6mb of heap available does not mean that there's 6mb CONTIGUOUS, as would be needed for a large object. On Apr 27, 1:24 pm, d

[android-developers] ExpandableListView for only mp3 albums. Tips requested

2011-04-27 Thread Gabriel Simões
Hello, I´ve been trying to figure a way out to search MediaStore.Audio.Albums and MediaStore.Audio.Media to retrieve a list of mp3 albums and organize them in an expandablelistview. In the end what I haven´t been able to do is to retrieve information about existing albums with mp3 files. I can li

[android-developers] Re: How do you counter repeated bogus reviews from competitors?

2011-04-27 Thread Peter Sinnott
On Apr 26, 4:49 pm, TreKing wrote: > > It has. Repeatedly. Just search for "respond to comments". Like all other > support queries and feature requests directed at Google on that forum, > they're all ignored. > I don't think they are ignored. Look at the thread about Google Docs for Android. Goog

[android-developers] Re: Application with Hardware Acceleration, hardware layers, and rotated ImageViews is causing jaggies.

2011-04-27 Thread Brion Emde
Hi Romain, I'm having the same problem, and I don't really understand what you're talking about with "layer on" and "layer off". Could you explain that a bit more, so I can get a better hold on this whole problem? Thanks, Brion Emde On Apr 26, 4:51 pm, Romain Guy wrote: > To get antialiased

Re: [android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Dianne Hackborn
On Wed, Apr 27, 2011 at 6:56 PM, Eric wrote: > I am glad this change was made, it makes more logical sense to me to > do it this way. Hopefully the documentation can also be updated to > remove any doubt whatsoever that an Activity cannot possibly be > 'removed' from memory in low-memory situati

Re: [android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Dianne Hackborn
Um, yes, called. I meant called. :) On Wed, Apr 27, 2011 at 6:53 PM, Mark Murphy wrote: > On Wed, Apr 27, 2011 at 6:44 PM, Dianne Hackborn > wrote: > > Also it may be worth mentioning -- there was a significant change to the > > activity lifecycle in 3.0 where onStop() is now guaranteed to be k

[android-developers] Call not ended when ending it in the other peer

2011-04-27 Thread Alaeddine Ghribi
Hi, I'm developping a SIP application, however, i have a big problem: When A call B, and we ended the call in B => A will not as well end the call until we confirm it (with a button or menu option). It misses some synchronisation between the two peers. How can i add this "sync" in a SIP applicatio

[android-developers] Re: How can we get the mobile position (e.g. by gps) all the time?

2011-04-27 Thread lbendlin
Not really, as the device may operate off grid. -- 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 to android-developers+unsubs

Re: [android-developers] CheckedTextView and filtering of list not working well together

2011-04-27 Thread Lowell Kirsh
Thanks TreKing. At a high level I understand what you are saying but I'm not sure where to hook into the filtering. I think I know how to save and restore the list's checked state (e.g. set of checked row ids) but where would I put the code to save the state and the code to restore the state? -

Re: [android-developers] How can i user SVN to check in my code to google server?

2011-04-27 Thread Kristopher Micinski
Why are you asking this on the Android list? Kris On Wed, Apr 27, 2011 at 8:21 PM, a a wrote: > Cannot complete the install because one or more required items could > not be found. > Software being installed: Subversive SVN Integration for the Mylyn > Project (Optional) (Incubation) 0.7.9.I201

Re: [android-developers] How can i user SVN to check in my code to google server?

2011-04-27 Thread a a
Cannot complete the install because one or more required items could not be found. Software being installed: Subversive SVN Integration for the Mylyn Project (Optional) (Incubation) 0.7.9.I20110318-1700 (org.eclipse.team.svn.mylyn.feature.group 0.7.9.I20110318-1700) Missing requirement: Subvers

[android-developers] Re: Debugging a separate thread.

2011-04-27 Thread Indicator Veritatis
The Eclipse debugger does support multi-thread debugging, but I can't say I am all that impressed with the support for it. When, for example, you set a breakpoint, you have no control over which thread is running when it hits it. Whatever thread is running, it will stop when it reaches that breakpo

[android-developers] What I found using big images on an activity

2011-04-27 Thread fr4gus
Hi everyone, I would like to share some findings related to using images on activities and impact on an application creating multiples activities or changing orientation. What I coded: public class BigImageActivity extends Activity { int count; @Override protected void onCreate(Bund

[android-developers] Re: Debugging a separate thread.

2011-04-27 Thread Indicator Veritatis
What you describe using F7 is fairly normal. But since single-stepping through code is tedious, and the tedium is fruitless when you don't have the source, I usually use Step UP instead of Step Over once I land in Android system code. I also use breakpoints in Android more heavily than I do in othe

[android-developers] Re: Android OOM exception and SoftReferences

2011-04-27 Thread Indicator Veritatis
I think I know why it is "not full[sic] proof". Some time ago, I carefully read and compared side by side the Java Sun Javadoc description of System.gc() and Android's. One shocking difference emerged. In both, the call is only a hint, but in Android, it is a much weaker hint: unlike in Sun, you ar

[android-developers] Re: Android OOM exception and SoftReferences

2011-04-27 Thread Indicator Veritatis
Well, you didn't post your code, so I can't be 100% sure, but my guess is that there are other references to the same Drawables somewhere, references that are NOT SoftReferences. That would keep it from being garbage-collected. Also, there is a difference between weak references and soft ones. It

Re: [android-developers] Error when launching a ringtone.

2011-04-27 Thread a a
android.content.res.Resources$NotFoundException: File res/raw/ringtone from drawable resource ID #0x7f05 file res/raw/ringtone is not exist? 2011/4/27 Alaeddine Ghribi : > Hi, > I have an AlertDialog that when it shows it launches a ringtone, > however i have always an exception, here is what

Re: [android-developers] webview form reading

2011-04-27 Thread Miguel Morales
what data? On Wed, Apr 27, 2011 at 4:22 PM, bob wrote: > I load a form into a WebView, but I don't know how to read the data > from it. Anyone know how? > > Thanks. > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to th

[android-developers] webview form reading

2011-04-27 Thread bob
I load a form into a WebView, but I don't know how to read the data from it. Anyone know how? 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: Activity Lifecycle Documentation Question

2011-04-27 Thread Eric
On Apr 27, 6:44 pm, Dianne Hackborn wrote: > Also it may be worth mentioning -- there was a significant change to the > activity lifecycle in 3.0 where onStop() is now guaranteed to be killed > (prior to killing a process) like onPause() has always been. I am glad this change was made, it makes

Re: [android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Mark Murphy
On Wed, Apr 27, 2011 at 6:44 PM, Dianne Hackborn wrote: > Also it may be worth mentioning -- there was a significant change to the > activity lifecycle in 3.0 where onStop() is now guaranteed to be killed > (prior to killing a process) like onPause() has always been. Just to clarify, shouldn't th

Re: [android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Dianne Hackborn
Hopefully I can clearly confirm what is actually happening. There are only two ways your entire activity instance can go away: 1. At some point the activity lifecycle completing and onDestroy() being called. 2. The process being killed. Thus you will not have a resource leak if you release the r

[android-developers] Re: How can we get the mobile position (e.g. by gps) all the time?

2011-04-27 Thread Maps.Huge.Info
A more ideal method would be to use C2DM to occasionally ping the device for a location fix. That way a service wouldn't need to be constantly running. -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, sen

Re: [android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Mark Murphy
On Wed, Apr 27, 2011 at 5:55 PM, Eric wrote: > Android is allowed to 'clean up' > your activity right after onPause(), without killing the app, if it > wants to reclaim memory. By finishing the activity, thereby triggering the onPause()/onStop()/onDestroy() triad. If the activity is paused, finis

Re: [android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread TreKing
On Wed, Apr 27, 2011 at 4:55 PM, Eric wrote: > It means the activity can be destroyed after onPause() by the system > calling 'finish()' on it. > calling finish() will result in onStop() -> onDestory() when in the paused stated. It seems to me, in that specific case, if you've started another >

[android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Streets Of Boston
The text of the documentation says you're right. A call to 'finish()' is all that could happen to 'destroy' the activity. No killing of the process is necessary. However, the image in the documentation ( http://developer.android.com/images/activity_lifecycle.png inside http://developer.androi

Re: [android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Mark Murphy
On Wed, Apr 27, 2011 at 6:04 PM, Eric wrote: > From the Activity documentation: > > http://developer.android.com/guide/topics/fundamentals/activities.html > > If an activity is **paused or stopped**, the system can drop it from > memory either by asking it to finish (calling its finish() method),

[android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Eric
>From the Activity documentation: http://developer.android.com/guide/topics/fundamentals/activities.html If an activity is **paused or stopped**, the system can drop it from memory either by asking it to finish (calling its finish() method), or simply killing its process. When the activity is ope

[android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Eric
On Apr 27, 4:45 pm, Mark Murphy wrote: > On Wed, Apr 27, 2011 at 4:22 PM, Eric wrote: > > You then navigate to a new activity by starting it. > > Which triggers onPause() and onStop() on the original activity. This is where I disagree with you. Android is allowed to 'clean up' your activity r

[android-developers] Re: How can we get the mobile position (e.g. by gps) all the time?

2011-04-27 Thread lbendlin
Sorry I may not have been clear enough. I was more thinking of using the accelerometer as a motion sensor, to restore the power to the GPS after it had been cut due to lack of location events or changes. -- You received this message because you are subscribed to the Google Groups "Android Deve

Re: [android-developers] Re: car dock mode

2011-04-27 Thread Dianne Hackborn
ACTION_DOCK_EVENT is about the device being placed in a dock. Calling that API puts the device in to car mode, but that doesn't cause it to be placed in to a dock. On Wed, Apr 27, 2011 at 3:29 PM, mort wrote: > > Additionally: Is there a way to emulate thedockmodes? I only found > > some old to

Re: [android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Mark Murphy
On Wed, Apr 27, 2011 at 4:53 PM, Streets Of Boston wrote: > Be very careful with cleaning up some resources in onPause. A dialog being > shown could put your activity into paused-state, but not into stopped-state. > This happens when a system dialog pops up (e.g. an activity chooser) and > your ac

Re: [android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Streets Of Boston
Be very careful with cleaning up some resources in onPause. A dialog being shown could put your activity into paused-state, but not into stopped-state. This happens when a system dialog pops up (e.g. an activity chooser) and your activity is still visible in the background (blurred, but still v

[android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Streets Of Boston
The text and the diagram of the link you showed are indeed not saying the same: - The diagram only shows a direct path out of onPause or onStop only when the process is being killed. - The text says that the framework can just call 'finish' on the activity (without going through onD

Re: [android-developers] Re: Activity Lifecycle Documentation Question

2011-04-27 Thread Mark Murphy
On Wed, Apr 27, 2011 at 4:22 PM, Eric wrote: > You then navigate to a new activity by starting it. Which triggers onPause() and onStop() on the original activity.  Your > activity gets paused.  Android can 'finish' your activity at this > point, WITHOUT killing the process. Which triggers onDes

  1   2   3   >