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));
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
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
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
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
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
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
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
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.
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?
--
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,
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
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
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)
|
' '
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:
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
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
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
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
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
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
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
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
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
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
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
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
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;
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 =
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,
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.
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
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;
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
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.
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
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?
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)
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
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
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.
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 -
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
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.
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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,
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?
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)
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
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
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
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
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
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
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
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
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
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
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
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(
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
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
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;
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
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
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
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
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
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
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
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
84 matches
Mail list logo