[android-developers] IllegalStateException: No wrapped connection.

2010-10-31 Thread Julius Spencer
Hi, I'm trying to send an HTTP request from a WakefulService so a Service which has been started from an alarm set up with AlarmManager and I get the error: IllegalStateException: No wrapped connection. HttpGet httpGet = (HttpGet) new HttpGet(MYRequestHelper.getRequest(this));

[android-developers] Re: Is it possible to run multiple Broadcast receivers for the same Intent in the same application?

2010-10-31 Thread Doug
On Oct 25, 4:12 pm, Some Coder somecoder...@gmail.com wrote: Is it possible to register multiple BroadcastReceivers for the same Intent in the same application and have them all run? You might want to read the documentation for BroadcastReceiver, understand the different between normal and

Re: [android-developers] IllegalStateException: No wrapped connection.

2010-10-31 Thread Mark Murphy
There is something messed up with your HttpClient object. That exception is being raised by HttpClient itself, based upon what I can see in the Android source code. Bear in mind that, in the case of an alarm, your process hopefully was terminated/recycled since the last alarm, and so there is

[android-developers] Re: How different do the broadcast Intents need to be?

2010-10-31 Thread Doug
On Oct 30, 12:18 pm, Mark Murphy mmur...@commonsware.com wrote: I know I've read about this behavior in this forum in the past but I can't find in the documentation where this duplicate elimination logic is described in detail. Mostly, I just want to differentiate the Intents enough that

Re: [android-developers] Re: How different do the broadcast Intents need to be?

2010-10-31 Thread Mark Murphy
On Sun, Oct 31, 2010 at 3:01 AM, Doug beafd...@gmail.com wrote: To be fair, the javadoc for Intent.filterEquals() says nothing about if or when a broadcast intent would be dropped for any reason.  Or do you think it's implied? Whoops. I misread the original question, thinking we were talking

[android-developers] Re: 2.2.1 / N1 / USB Dropping

2010-10-31 Thread Doug
On Oct 30, 2:34 am, Pent tas...@dinglisch.net wrote: Anyone else ? +1 and annoyed by it. I always have to reboot to restore this functionality. But I honestly can't say if there's a correlation with 2.2.1. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] One process, two live Application objects?

2010-10-31 Thread Mark Murphy
In a comment on an epic StackOverflow question-and-answer, a gentleman who I will call Tim has outlined a scenario he says he is running into, one I have some difficulty believing. Reading somewhat between the lines, the flow would appear to be this: 1. User taps on an activity icon in the

[android-developers] Re: how do i create a donate menu button

2010-10-31 Thread Raziel23x
Can you explain more I am still new to this mixture I have not worked with browser activity On Oct 30, 11:26 am, Kumar Bibek coomar@gmail.com wrote: You need to have Internet permission.  Instead of using thewebview, you are better off using the Bowser activity for this. On Sat, Oct

Re: [android-developers] IllegalStateException: No wrapped connection.

2010-10-31 Thread Julius Spencer
Wow thank you Mark. I'll try to implement those changes. Regards, Julius. On 31/10/2010, at 7:56 PM, Mark Murphy wrote: There is something messed up with your HttpClient object. That exception is being raised by HttpClient itself, based upon what I can see in the Android source code.

[android-developers] AdMob Analytics?

2010-10-31 Thread William Ferguson
Is anyone using AdMob analytics to track location and events in their app? I haven't been able to find any Android relevant info for the (AdMob) analytics side of things. Can someone please point me in the right direction? Alternatively, what are you using to track location and event data? --

Re: [android-developers] One process, two live Application objects?

2010-10-31 Thread Kostya Vasilyev
I don't have an answer to your actual question, however - wouldn't it be more reliable to initialize native code from a static block? class MyApplication extends Application { private native void initializeNativeSide(); static { initializeNativeSide(); } } -- Kostya 31.10.2010 10:34,

Re: [android-developers] One process, two live Application objects?

2010-10-31 Thread Mark Murphy
Well, in Tim's case, that static block would only be fired once, presumably. If Application instance B is created before Application instance A is terminated, then we're still talking the same VM, and so the static initializer would have been run when A was created and would not be re-run when B

Re: [android-developers] One process, two live Application objects?

2010-10-31 Thread Kostya Vasilyev
Right, a static block runs only once. And is guaranteed to run in this case, since Android is going to instantiate MyApplication. You wrote in the original email that the native side needs to initialize some statics and singletons. Those should only be initialized once, so a static block

[android-developers] How can I create an aircraft-mounted-liked compass?

2010-10-31 Thread josef.hardi
I want to create a non-generic compass that uses rotating directions instead of a rotating needle as in the conventional compass. The drawing is like the illustration below. | ' ' W ' ' ' ' ' N ' ' ' ' ' E ' ' ' ' ' S ' ' ' (shift a bit to the east) | ' '

Re: [android-developers] IllegalStateException: No wrapped connection.

2010-10-31 Thread Julius Spencer
Hi Mark, Looks like it was a threading issue - from what you say; IntentService doing work on a separate thread, so just creating a new DefaultHttpClient seems to have done the trick. Thank you for explaining (once again) :) Regards, Julius. On 31/10/2010, at 7:56 PM, Mark Murphy wrote:

[android-developers] Extending SimpleCursorAdapter

2010-10-31 Thread Peter Webb
I'm an Android newbie, stuck on a problem for a over week now, if I knew what I was doing it would be 10 minutes work. Im using the NotePad example as a base for an application. This binds a ListActivity to a Provider. Its perfect, except it uses SimpleCursorAdaptor, which means the list only

Re: [android-developers] One process, two live Application objects?

2010-10-31 Thread Mark Murphy
On Sun, Oct 31, 2010 at 4:39 AM, Kostya Vasilyev kmans...@gmail.com wrote: Right, a static block runs only once. And is guaranteed to run in this case, since Android is going to instantiate MyApplication. You wrote in the original email that the native side needs to initialize some statics

[android-developers] Re: for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-31 Thread Peter Webb
I'm a newb as well. I offer my idiot suggestion purely on the basis you sound desperate. I know that feeling. Have you tried calling .invalidate to force a redraw between steps, so the display and your code stay in sync? On Oct 31, 4:43 pm, acr acr...@gmail.com wrote: I am totally stumped

Re: [android-developers] Extending SimpleCursorAdapter

2010-10-31 Thread Mark Murphy
On Sun, Oct 31, 2010 at 5:12 AM, Peter Webb r.peter.w...@gmail.com wrote: Its perfect, except it uses SimpleCursorAdaptor, which means the list only binds to and displays one item per row. I want it to display two items, both bound the Provider. Or more accurately display the text from one

Re: [android-developers] Extending SimpleCursorAdapter

2010-10-31 Thread Kostya Vasilyev
Peter, SimpleCursorAdapter is the simplified version of the CursorAdapter. You need to use the real thing and override newView() and bindView(). newView needs to load (inflate) a new list item layout. bindView needs to set values in views contained in the list item layout to reflect values

[android-developers] Content Service Crash

2010-10-31 Thread oriharel
I get weird exception: 10-31 09:09:51.308: ERROR/ContentService(59): Content Service Crash 10-31 09:09:51.308: ERROR/ContentService(59): java.lang.NullPointerException 10-31 09:09:51.308: ERROR/ContentService(59): at android.content.ContentService

Re: [android-developers] render an activity to an image file.

2010-10-31 Thread Marcin Orlowski
On 31 October 2010 02:58, sdphil phil.pellouch...@gmail.com wrote: i know you can't take a screenshot without having root access, but is there a way to render an activity and all the contents to an image file? a) root your phone or b) use simulator to get the screenshot c) grant yourself

[android-developers] Re: render an activity to an image file.

2010-10-31 Thread Lance Nanek
Never tried it, but first thing I would try is to just make a Bitmap the size of the screen, construct a Canvas using the constructor that takes a Bitmap, then get the Window from the Activity, then get the decor View from that, and pass the Canvas to its onDraw. On Oct 30, 8:58 pm, sdphil

[android-developers] Re: Collecting my Market installation statistics

2010-10-31 Thread deg
Thanks. In what ways have you found the numbers to be untrustworthy? Are the numbers exposed via the API any different? Also, can you point me to the API you recommend? A quick search just now found several unofficial APIs, but no official support. Thanks, David On Oct 28, 5:50 pm, TreKing

[android-developers] Dialog not displayed properly in Landscape mode

2010-10-31 Thread Dilli
Hi all, @landscape mode In messaging application screen i am trying to attach a audio , it pop up a dialog and, at the same time some incoming call came, after disconnecting the call the popup dialog displayed (half) not full dialog ( only header of dialog visible no buttons are visible to

[android-developers] Re: for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-31 Thread acr
invalidate and postInvalidate doesn't fix the problem, VERY desperate, but that's the type of response I was looking for much appreciated. I used logcat and looked at everything if i remove/add 3 items items from the array, the loop runs, it sets the coordinates through each iteration, just the

[android-developers] Adventures with LVL

2010-10-31 Thread Alex
I have finally got LVL working in my app, but now I am having second thoughts about including it. If you have published an app including LVL, what are your experiences? Has it caused bad feedback from your users? -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-31 Thread acr
Now I even tried to change my loop to go through the array and get the same EXACT result.. I have to be missing something here. Has ANYone else experienced this type of problem? or can give me some guidance. Thanks a bunch. int temp1Y=0;

[android-developers] How to get the selected Overlay index

2010-10-31 Thread Donald
hi guys, i'm working with a google maps for a while now. i'm having multiple markers in the map once you select a perticular maker an Overaly will appear so once the Overlay is selected i want to get the index of the overlay. every time its 0. this is how i'm adding overlays GeoPoint point =

Re: [android-developers] Re: Collecting my Market installation statistics

2010-10-31 Thread TreKing
On Sun, Oct 31, 2010 at 5:16 AM, deg d...@degel.com wrote: In what ways have you found the numbers to be untrustworthy? http://www.google.com/support/forum/p/Android+Market/thread?tid=2ad7b50d916b941bhl=enstart=40 Are the numbers exposed via the API any different? I don't know. Also,

Re: [android-developers] How to get the selected Overlay index

2010-10-31 Thread TreKing
On Sun, Oct 31, 2010 at 8:11 AM, Donald hasitharand...@gmail.com wrote: onBalloonTap always returns 0?? Actually, it looks like it always returns true, according to your code. What is onBalloonTap and BalloonItemizedOverlay? I don't see either of those in the documentation.

[android-developers] Intent resolution: supplying action+data where filter had only action, causes it to fail

2010-10-31 Thread longingtoadopt.com
I thought that Action was preeminent during intent resolution and if the intent had the same action as the intent filter, it would be considered a match regardless of data, if the filter did not specify anything. So I was very surprised to find that supplying action+data where filter had only

[android-developers] Re: How to get the selected Overlay index

2010-10-31 Thread Donald
Hi Treking, thanks for your reply.BalloonItemizedOverlay is a class which extends BalloonItemizedOverlay. this is the BalloonItemizedOverlay implementation public abstract class BalloonItemizedOverlayItem extends ItemizedOverlayOverlayItem { private MapView mapView;

[android-developers] Re: Adventures with LVL

2010-10-31 Thread Pent
If you have published an app including LVL, what are your experiences?   99.9% no problem. Has it caused bad feedback from your users? Once or twice, a long time ago. But my implementation is very forgiving. It doesn't care if the licence can't be verified for the first 7 days, and only

Re: [android-developers] Intent resolution: supplying action+data where filter had only action, causes it to fail

2010-10-31 Thread Mark Murphy
On Sun, Oct 31, 2010 at 10:25 AM, longingtoadopt.com anil.r...@gmail.com wrote: I thought that Action was preeminent during intent resolution and if the intent had the same action as the intent filter, it would be considered a match regardless of data, if the filter did not specify anything.

[android-developers] Re: Content Service Crash

2010-10-31 Thread oriharel
the triggering code is: getContentResolver().registerContentObserver(Uri.parse(refreshChange), false, _refreshObserver); On Oct 31, 11:38 am, oriharel ori.ha...@gmail.com wrote: I get weird exception: 10-31 09:09:51.308: ERROR/ContentService(59): Content

[android-developers] broadcast message leave activity in the background

2010-10-31 Thread rrd
Hari, My app's main activity listens to a broadcast message. When it receives the message it brings the activity to the front. I want to update the activity if it is in the front, so the user is playing with it, but otherwise I do not want to bring the activity to the front. How should I do it?

Re: [android-developers] broadcast message leave activity in the background

2010-10-31 Thread Mark Murphy
On Sun, Oct 31, 2010 at 11:27 AM, rrd r...@1108.cc wrote: My app's main activity listens to a broadcast message. When it receives the message it brings the activity to the front. That sounds like you used startActivity(), not sendBroadcast(). -- Mark Murphy (a Commons Guy)

[android-developers] Re: broadcast message leave activity in the background

2010-10-31 Thread rrd
Yes the receiver calls startActivity(). I think sending broadcast would not help me as the message already sent and received by the receiver. -- 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: broadcast message leave activity in the background

2010-10-31 Thread Mark Murphy
On Sun, Oct 31, 2010 at 11:51 AM, rrd r...@1108.cc wrote: Yes the receiver calls startActivity(). Then don't do that, since the complete and entire purpose of that is to put the activity in the foreground, which you do not want. I think sending broadcast would not help me as the message

Re: [android-developers] Re: How to get the selected Overlay index

2010-10-31 Thread TreKing
On Sun, Oct 31, 2010 at 9:35 AM, Donald hasitharand...@gmail.com wrote: but why it's always giving the index of 0? I don't know and I don't have time to review and make sense of you code, but printing log statements and stepping through the debugger should yield an answer pretty quickly.

Re: [android-developers] button click

2010-10-31 Thread TreKing
Your question is difficult to understand. You should try to clarify and rephrase so we can better understand the problem you're having. - TreKing http://sites.google.com/site/rezmobileapps/treking -

Re: [android-developers] Can u help me to find the mistake? i can't run this program.

2010-10-31 Thread TreKing
The mistake is you posted a bunch of code with no context and have not even explained what problem it is you're having. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit

Re: [android-developers] Re: Collecting my Market installation statistics

2010-10-31 Thread Brad Gies
David, I'm in the process of developing a website that collects market statistics and developer statistics, and one of the features I'm adding is a utility to collect my own market download numbers daily so I can put them into a spreadsheet and chart/graph them so I can easily spot trends.

[android-developers] deprecating Display#getOrientation() not such a good idea

2010-10-31 Thread tenacious
I'm not sure what the motivation was to deprecate Display#getOrientation() in SDK 8 is, since I haven't had a chance to read the changeset description. The decision made the API a little less humanistic. I propose it be brought back in SDK 9 for these reasons: 1) The community has two+ years of

[android-developers] Re: for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-31 Thread acr
So, It has nothing to do with the loop if I add the images manually I get the very same result the first graphic is being drawn to x0 y0 in my code. what I have is a column of 7 graphics(_theGrid) and when I remove a graphic from it, a new graphic is created in _toAdd. What my code is doing

Re: [android-developers] One process, two live Application objects?

2010-10-31 Thread Dianne Hackborn
Only one Application per-.apk-per-process is created, ever. If you use android:process to have multiple .apks sharing the same process, each .apk will have its own Application instantiated in the process. If you use android:process to have an .apk run in multiple processes, each process will get

Re: [android-developers] One process, two live Application objects?

2010-10-31 Thread Mark Murphy
On Sun, Oct 31, 2010 at 2:07 PM, Dianne Hackborn hack...@android.com wrote: As far as using Application to clean up statics -- this simply doesn't really make sense, for the reasons above.  For a legacy application with statics that can't be re-used again in the same process, your only choice

Re: [android-developers] How can I create an aircraft-mounted-liked compass?

2010-10-31 Thread Frank Weiss
Is the lower part of the gauge textual or a pretty image? What part are you having problems with? -- 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

Re: [android-developers] deprecating Display#getOrientation() not such a good idea

2010-10-31 Thread Dianne Hackborn
getOrientation() has never returned orientation, it returns rotation. So it is being renamed to getRotation(). This is *much* less confusing. In fact you were confused -- you thought it returned orientation, when it does not. If you want the current orientation,

Re: [android-developers] One process, two live Application objects?

2010-10-31 Thread Dianne Hackborn
On Sun, Oct 31, 2010 at 11:12 AM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Oct 31, 2010 at 2:07 PM, Dianne Hackborn hack...@android.com wrote: As far as using Application to clean up statics -- this simply doesn't really make sense, for the reasons above. For a legacy application

Re: [android-developers] Intent resolution: supplying action+data where filter had only action, causes it to fail

2010-10-31 Thread Dianne Hackborn
On Sun, Oct 31, 2010 at 7:44 AM, Mark Murphy mmur...@commonsware.comwrote: I suspect that you are confusing intent-filter characteristics with IntentFilter characteristics. intent-filter and IntentFilter have the same characteristics. In fact intent-filter is just the XML syntax for creating

Re: [android-developers] Re: render an activity to an image file.

2010-10-31 Thread Dianne Hackborn
On Sun, Oct 31, 2010 at 3:13 AM, Lance Nanek lna...@gmail.com wrote: Never tried it, but first thing I would try is to just make a Bitmap the size of the screen, construct a Canvas using the constructor that takes a Bitmap, then get the Window from the Activity, then get the decor View from

Re: [android-developers] Re: Content Service Crash

2010-10-31 Thread Dianne Hackborn
The system shouldn't crash, but your code is broken. Your Uri.parse(refreshChange) is creating a Uri that is not actually a content: URI. You need to provide a Uri that is a full content: URI (with authority) to the data you want to observe. On Sun, Oct 31, 2010 at 7:58 AM, oriharel

[android-developers] Re: Dialog not displayed properly in Landscape mode

2010-10-31 Thread Kumar Bibek
You need a different layout for your dialog for the landscape mode. On Oct 31, 3:27 pm, Dilli dilliraomca...@gmail.com wrote: Hi all, @landscape mode In messaging application screen i am trying to attach a audio , it pop up a dialog and, at the same time some incoming call came, after

[android-developers] Re: how do i create a donate menu button

2010-10-31 Thread Kumar Bibek
You need to launch the default browser with your donation URL. After that, the browser app should take care of the further actions. To launch the Browser, you need to use a VIEW intent like this. http://developer.android.com/guide/appendix/g-app-intents.html Action - View Uri - Your donation

[android-developers] Re: Adventures with LVL

2010-10-31 Thread jtoolsdev
I have only had one customer complain of a problem since I upgraded to LVL. And who knows why that is happening as they could have changed emails since the original purchase under the old system or part of the problem which seems to be going on with the Market these days. Also it was my

[android-developers] Re: device fingerprinting

2010-10-31 Thread jtoolsdev
Isn't LVL locked to the user's Google email? I thought that was the idea though they you can use device IDs as an option. Linked to the account it allows the user to install the app again if they get a different device. The ID option would be for a single device policy though they could stand

Re: [android-developers] how do i create a donate menu button

2010-10-31 Thread Jonas Petersson
An alternative to this is to do my trick: Just create your own donation app and link to it on Market - no need for any permission, just: startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(market://details?id=se.petersson.freebeer))); Best / Jonas On 10/30/2010 05:27 PM,

[android-developers] Re: How can I create an aircraft-mounted-liked compass?

2010-10-31 Thread Adrian Romanelli
Does an Android 'sensor' have a compass built in? I thought it was just a motion sensor, portrait/landscape, etc., and not a true compass? And as far as I know, the gps device is a coordinate/point location thing, not a compass thing. How would the phone/device actually know its facing North?

[android-developers] Re: One process, two live Application objects?

2010-10-31 Thread greg
From Dianne, That said, my recommendation to everyone is to just not subclass Application. This gives you *nothing* you can't do in other, better ways. In particular, a singleton directly represents what is really going on (it lives for the life of the process after the first need for it)

Re: [android-developers] button click

2010-10-31 Thread Filip Havlicek
I'm going the crystal ball way here. You need to take the current content of text view (or save it somewhere) and when you press the button next time, take that content (or it's id or something like that, really depends on what you are trying to do and how) and then select next content based on

[android-developers] Re: Intent resolution: supplying action+data where filter had only action, causes it to fail

2010-10-31 Thread longingtoadopt.com
For actions, the field will not be tested if no values have been given (treating it as a wildcard); if no data characteristics are specified, however, then the filter will only match intents that contain no data. Thanks for your reply... If you look at the code, I did specify the action in

Re: [android-developers] Re: how do i create a donate menu button

2010-10-31 Thread Marcin Orlowski
On Sat, Oct 30, 2010 at 11:23 PM, Raziel23x raziel...@gmail.com wrote: I am having trouble creating a donate menu button but I am having trouble Try PayPal android library: https://www.x.com/community/ppx/xspaces/mobile/mobile_ec I've played with it a bit and it's far better than

Re: [android-developers] Re: Intent resolution: supplying action+data where filter had only action, causes it to fail

2010-10-31 Thread Dianne Hackborn
On Sun, Oct 31, 2010 at 3:01 PM, longingtoadopt.com anil.r...@gmail.comwrote: Thanks for your reply... If you look at the code, I did specify the action in both the Intent and the Intent filter: ALERT_ME_ACTION Correct me if I am mistaken but it is intuitive to expect that if the Actions

[android-developers] Re: How can I create an aircraft-mounted-liked compass?

2010-10-31 Thread Adrian Romanelli
Just to answer my own question, Compass functionality is built into some (all?) devices. I noticed that the up-coming T-Mobile Comet has compass functionality. On Oct 31, 2:06 pm, Adrian Romanelli adrian.romane...@gmail.com wrote: Does an Android 'sensor' have a compass built in?  I thought it

[android-developers] Re: How can I create an aircraft-mounted-liked compass?

2010-10-31 Thread DanH
I do wonder how accurate it could possibly be, however. Your standard compass can be led astray by a steel belt buckle, so it's hard to see how a compass inside a phone, with batteries, printed circuits, electrons whizzing around, etc, could be very accurate at all. On Oct 31, 5:35 pm, Adrian

Re: [android-developers] Re: One process, two live Application objects?

2010-10-31 Thread Dianne Hackborn
On Sun, Oct 31, 2010 at 2:08 PM, greg sep...@eduneer.com wrote: I confess to using an Application subclass to clean up statics in my application and I would be glad to repent if I knew how. Dianne, is there a sample application in the SDK (or elsewhere) showing the best practice for

[android-developers] Re: How can I create an aircraft-mounted-liked compass?

2010-10-31 Thread DanH
In answer to the original query, there are four conceptual ways I can think of to do the job: 1) Paint the letters and hash marks under program control 2) Have an image that goes, say W..N..E..S..W..N..E and slide it back and forth as needed 3) Have images W, N, E, S, and several .. images of

Re: [android-developers] One process, two live Application objects?

2010-10-31 Thread Tom Gibara
Given this strong recommendation against subclassing Application, I'll look to avoid doing so in future projects, but when you say [subclassing Application] gives you *nothing* you can't do in other, better ways. the main benefit that comes to my mind is that you can expose static accessors

[android-developers] Vertex buffer object corruption on MSM720xa

2010-10-31 Thread Mario Zechner
Hi there, i was refactoring some of my code today and wanted to minimze buffer object binds. My use case is it to bind a vertex buffer/index buffer pair once and batch up rendering as much as possible. Each batch is uploaded to the currently bound vbo. This works as expected on all tested

[android-developers] Drag and Drop List Simple Example

2010-10-31 Thread ericharlow
I struggled with finding and using a simple drag and drop list. I figured others would be looking for the same type of thing since android doesn't currently provide one. A simple Drag and Drop List Example can be found at

[android-developers] Re: How to figure out who is causing GC on my device?

2010-10-31 Thread dipu
Thank you very much for the tip. I have restrasted my phone and made sure that my app is not running. Now I see two processes causing the GC. system1103 1013 221560 49288 S system_server app_381872 1013 146228 23724 R com.android.email D/dalvikvm(

Re: [android-developers] Re: How to figure out who is causing GC on my device?

2010-10-31 Thread Miguel Morales
Try putting your phone in airplane mode and see what happens. On Oct 31, 2010 5:39 PM, dipu contac...@gmail.com wrote: Thank you very much for the tip. I have restrasted my phone and made sure that my app is not running. Now I see two processes causing the GC. system1103 1013 221560 49288

Re: [android-developers] Re: for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-31 Thread Miguel Morales
Are you sure you are not modifying any of those values from another thread. On Oct 31, 2010 11:07 AM, acr acr...@gmail.com wrote: So, It has nothing to do with the loop if I add the images manually I get the very same result the first graphic is being drawn to x0 y0 in my code. what I have is

[android-developers] Re: Can u help me to find the mistake? i can't run this program.

2010-10-31 Thread davemac
I'm going to guess that asking for the SEARCH_SERVICE and casting it to a SensorManager is not going to go well for you. You're probably getting a NoSuchMethodException, yes? - dave www.androidbook.com On Oct 29, 12:01 am, 菠菜冬 huabeiyipil...@gmail.com wrote: package com.android.CirclingCounter;

[android-developers] Re: Drag and Drop List Simple Example

2010-10-31 Thread Mathias Lin
Thanks for sharing. Can also look at http://stackoverflow.com/questions/2909311/android-list-view-drag-and-drop-sort http://github.com/commonsguy/cwac-touchlist for another example On Nov 1, 8:33 am, ericharlow eric.b.har...@gmail.com wrote: I struggled with finding and using a simple drag and

[android-developers] Re: for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-31 Thread acr
Thanks for the reply Miguel, Im positive I went through all of the lines just to double check. its getting the incorrect coordinates from the initial values of x and y where graphic.getGridCoordinates().setGrid1Y(y) sets to. but when I print lines via logcat to show the current

[android-developers] Re: Can u help me to find the mistake? i can't run this program.

2010-10-31 Thread Bob Kerns
No, assuming he doesn't get an error even earlier, I'm sure he gets a ClassCastException on that line. That happens before it even checks for the method. NoSuchMethodException is somewhat more esoteric The advice he actually needs is beyond the scope of this group. But I'll sum it up: Learn to

Re: [android-developers] Re: Linkify

2010-10-31 Thread Priyank Maiya
Hi, Thanks for the reply.. I am trying to do what you said. I defined a string: string name= support_requestSupport Request: a href= supp...@unl.com?subject=commentssupp...@unl.com/a/string In my .java code, I created a textview and called the setMovementmethod like this: TextView

[android-developers] Re: One process, two live Application objects?

2010-10-31 Thread Bob Kerns
Well, I've never expected onTerminate to be useful, but subclassing Application is. The Application's onCreate() method (and any static and instance initializers) are called before ANY application component is created or loaded. There's no other way to make this guaranty that I am aware of. You

[android-developers] Re: How can I create an aircraft-mounted-liked compass?

2010-10-31 Thread Bob Kerns
I may know more about magnetic compasses than some of the engineers putting them in devices...but of course, I don't know what those engineers are doing. But let me try to address the question in general terms anyway. Consider that traditionally, huge iron ships could use magnetic compasses with

Re: [android-developers] Re: One process, two live Application objects?

2010-10-31 Thread Dianne Hackborn
On Sun, Oct 31, 2010 at 8:20 PM, Bob Kerns r...@acm.org wrote: The Application's onCreate() method (and any static and instance initializers) are called before ANY application component is created or loaded. There's no other way to make this guaranty that I am aware of. You can come close

[android-developers] Re: Extending SimpleCursorAdapter

2010-10-31 Thread Peter Webb
Thankyou, thankyou, thankyou to both of you. Exactly what I needed. -- 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