Can this data be written sooner rather than later? Can you put it or
part of it in SQLite, where it's quicker to update just a part of a
large data model?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to
Three lines of boiler plate. Not sure if I'd bother refactoring that!
But anyways...
You might have issues using the Activity subclass pattern becasue you
can't do that with existing patterns. Here's another approach. In your
home activity, or in a Global class, add a static method:
public static
Correction: ...with exisiting *activities* such as MapActivity, TabActivity,
ListActivity.
--
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 gro
That sounds a lot like a TaqbHost/TabView. I suppose each tab, Amour,
Weapons, etc, would be associated with a different activity, but sometimes
that's debateble. Tricky part may be how to layout the common player image.
--
You received this message because you are subscribed to the Google
Groups
On Mon, Sep 6, 2010 at 1:52 PM, Droid wrote:
> With LinearLayout I believe I cannot two get buttons side by side?
>
> That's what the documentation and samples indicate (wondering why you had
to ask that - again). Maybe you're overlooking that Button is a subclass of
View, so can be laid out just
>
> >> 2010/9/6 Frank Weiss
> >> > How might a user accidently remove them? Why is this a concern?
>
> There are a few file explorer down there, and for X reason people can
> remove data using them. The problem is that if that data is removed,
> it has to be d
I suppose what you need to do is NOT have the key views handle touch events
directly. Instead have the parent view and/or activity handle the multitouch
events. I think you would need to understand how touch events propagate
through the view hierarchy.
--
You received this message because you are
Need some more details. Was this about someone else's thread? What is the
test case? Have you tried a diagnostic app, such as GPS Essentials?
I have a Droid running 2.2 and see no problems with location. I did notice
there was a recent system update after the Froyo update. My phone shows 2.2
build
>
> However, when I use the google search or use the browser and check for the
> location . It shows a different a zipcode ( city).
>
>
Sorry, I don't understand those two use cases (google search and browser)
how they relate to location?
--
You received this message because you are subscribed to
I suppose you need to use a display list.
--
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+unsubscr...@
The list of objects the view draws when the OS asks the view to redraw
itself.
--
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 ema
You are probably supposing that the startActivityForResult method is
synchronous, that is, when it returns the camera activity has finished. Not!
There is an intent result callback you should focus on, no pun intended.
--
You received this message because you are subscribed to the Google
Groups "
The documentation for Activity.startActivityForResult explains it, no?
--
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
an
I just read the OP more closely, and the error is encountered in the
onActivityResult() callback. My bad.
--
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 unsubscrib
Please show the part of the manifest that is used to launch A and B. Looks
like the problem may be there.
--
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 unsubscrib
On Wed, Sep 8, 2010 at 8:03 AM, Ajmer singh wrote:
> Thanks for your reply
>
> I have another question regarding that, How can i put the already running
> activity in the background to the foreground,
> For example : if i have started Activity A then i started other Activity B
> Then Activity A sh
On Wed, Sep 8, 2010 at 3:01 AM, Andy wrote:
> Hi all,
>
> Thanks for the input and I think these comments answer my question.
> Maybe it would be an idea to allow an SDK api to access these stats as
> they, in my view for applications, can be very useful due to the heavy
> multitasking nature of
Looks bad, very bad.
First, I have no idea why you're allocating 1.8 MB (remember that Java, and
I suppsoe Dalvik as well, takes 16 bits per char). How come so much? Second,
of course writing a byte (or is it a char, there's a mismatch there) is
going to be slower than writing at least a few thous
Tez, why don't you repost your question and abandon this toxic thread.
Oftentime, stating a question a better way gets better answers
I would agree that dropping the all caps from the title would help you and
keep the forum civil.
--
You received this message because you are subscribed to the Go
Maybe you meant something like:
cancel.setOnClickListener(new OnClickListener() {
public void onClick() { cancel(true); });
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android
Which JDK version do you have installed on the Mac? Which JDK version is the
tool that had "issues" using?
--
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 unsubscri
Well, since you like open source, perhaps if you compared Android
documention with another open source project instead of iPhone, I'd have
more sympathy with your complaint.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this gr
You understand that the XML only creates and initializes a view graph? The
view graph itself is accessible at run time.
--
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
Fail. The openness of the platform does not allow an app to store secure
permanent data. The suggested solution is to use your own server to store
trial registration data.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this grou
I suppose you could add OS-specific info to the layout XML files and write
your own layout inflater.
--
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 fro
I'm creating an app for posting pictures to a particular proprietary social
site. I have it working with the camera and the IMAGE_CAPTURE intent. I want
to add the ability to do this from pictures in the Gallery. I seem to have
everything wired up, but I'm scratching my head how to get the image fr
It's running out of time in onCreate() or running out of memory. If the XML
data is known at compile time, why bother parsing it at run time?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-devel
Thanks, Kostya. It looks like I need a bit more secret sauce. The Uri I'm
getting is "content://media/external/images/media/30", but it looks like I
need to translate that into an actual file path for
BitmapFactory.decodeFile(). Even hardwiring
"/media/external/images/media/30". I suspect I need to
OK, the secret sauce was to use the ContentResolver. In this case the code
is:
Uri streamUri = theIntent.getParcelableExtra(Intent.*EXTRA_STREAM*);
*if* (streamUri != *null*) {
ContentResolver cr = getContentResolver();
InputStream is;
*try* {
is = cr.openInputStream(streamUri);
bitmap = Bi
Are you sure you want this data bundled in your app? Doesn't the data change
every so often?
Otherwise, I suggest you look into Resources.getXml(). I don't recall
offhand in what folder you need to place trhe XML file.
--
You received this message because you are subscribed to the Google
Groups
I suppose another solution would be to use separate ItemizedOverlays.
--
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
and
I see a couple of issues with your code.
1) The location variable set in the following line does not appear to be
used anywher:
Location location = locationManager.getLastKnownLocation(provider);
2) Are you trying to send an intent to the Maps or Browser app, of handle
the location display yours
I don't think there's a "perfect" setting. Please look through the
documentation regarding this topic, follow the many thread on this very
topic, and post a most specific question.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to
For simple requests, URLConnection works fine. Use HttpClient if you need to
manage basic auth, cookies, headers, etc.
--
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
I'll compare this with similar code I have running, but meanwhile, could you
run in debug and give the stack trace or at least identify the exception.
That should also give you the line number in your code.
--
You received this message because you are subscribed to the Google
Groups "Android Deve
I want to help you, but I don't clearly understand what you want to do.
I thought you want to to display a mark on a map from the latitude and
longitude a user entered in two text fields. But I don't understand if you
want to display that on a MapActivity in your app or in another app.
One thing
I suppose you mean in XML. The answer is &.
On Sep 16, 2010 1:59 AM, "KG" wrote:
> Hi Everyone,
>
> I've looked around for how to use an ampersand ( '&' ) in an item for
> a string-array but can't seem to find it. I feel silly for having to
> ask for something this simple, but does anyone know ho
Deviceatlas.com
On Sep 16, 2010 7:13 AM, "EmilDiego" wrote:
> Is there a database anywhere that has all of the different devices
> that use the android operating system and what their technical specs
> are. Mainly screen size, screen density, internal storage, external
> storage, memory, etc.
>
>
On Wed, Sep 15, 2010 at 9:56 PM, Dhrumil Shah wrote:
> I thought you want to to display a mark on a map from the latitude and
> longitude a user entered in two text fields. But I don't understand if you
> want to display that on a MapActivity in your app or in another app.
> - I want to display t
Add something like this in your AndroidManifest.xml file:
--
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 uns
Daring to go OT, I'm wondering if Android is the JME killer. As mentioned by
the previous poster, JME is not all that WORA (write once run anaywhere).
Aside from layout and some other issues, Android looks like it is the
closest yet. Thoughts?
--
You received this message because you are subscrib
I suggest looking into multipart mime type libraries. The API will likely
have an encoding parameter. I suppose a commone one is base64.
--
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
There is an Auto rotate system setting, but apparently turning it off forces
everything into portrait, at least on my Droid. Seems a little bit weird.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to andr
I have to ask, why do you want to "quit the app". Why do you think that is
something you need to do?
--
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 fro
It does matter why. The process only holds a Dalvik VM to run activities and
services of an app. Why do you need to kill the VM?
--
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@googleg
Let's try it a different way. What happens if you don't?
--
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-develope
Is that just one map tile or all the map tiles? Would the overlay be drawn
if there was no network connectivity?
--
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 uns
OK.
There's no way to quit the app because such an event doesn't exist in
Android. The best answer, given by the Android gurus is: let the Android OS
exit the process when it decides to do so.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group
Strange. Maybe try a few more locations besides home and office and see if
there's any pattern.
--
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 thi
To answer your general question: it takes experience. I've been programming
for decades and it still sometimes takes me hours of Googling and trial and
error to see if I can get it to work the way I want it to. I guess you'll
find out soon enough if you really really like programming.
--
You rece
Yup. I think the phone's GPS is optimized for battery life, not high
sampling rate. But I haven't actually tried a real GPS unit side by side
with my Droid.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email t
On Wed, Sep 22, 2010 at 1:36 PM, Greg Donald wrote:
> God I hate sales people.
>
>
>
Agreed. I don't think Tim has posted anything but spam. It's usually
off-topic (less than 10% of the questions are in regards to form/database
issues, AFAICT). It's far, far less effective than testimonials from
I'll vet TreKing, too. He knows what he's talking about - even if you can't
pose the Q reasonably clearly :-)
I do want to add that if you have a specific issue with someone's
netiquette, it's better to write them a polite personal note instead of
lambasting them in front of everyone.
That said,
Sounds like writing some unit test cases would help. Of course, you may need
to refactor the code to make it testable.
The advantage would be that you will see more clearly the input parameters
and the constraints. It would divide and conquer the problem. The test
cases would be the theory of what
I think the lesson is that an Android application and
android.app.Application are frequently mistakenly assumed to behave the same
as an "application" on other operating systems.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to th
I think you'll get more help with a specific question. I suggest you start
with the developer.android.com web site and then ask for clarifications of
particular problems that you can't solve by studying the documentation
there. If you are looking for additional resources, such as PDFs, have you
tri
I think you should know that an Android service is not meant to
interact with the user directly, as with a dialog.
Aside from questioning why the user input is needed in the midst of
the service and whether the entire background process needs to be
performed in a service, here's what I'd recommend
If the updates don't happen until the onCreate or onClickEventHandler
methods return, first guess is you're misusing the UI thread. That is,
the UI thread is busy in your while loop and can't get anything else
done, like drawing the overlays. Welcome to UI programming!
I strongly suggest you put y
My suggestion is to look at some sample code, like Romain Guy's
PhotoStream. Although PhotoStream does a Flickr download instead of an
upload, the application structure covers services, AsyncTask (albeit
an early version thereof), notifications, etc.
--
You received this message because you are s
I suppose you just need this in the right place in your code:
mapView.getController().setCenter(centerPoint);
mapView.getController().setZoom(defaultZoom); // optional
where centerPoint is the GeoPoint of the item.
I don't see any other way to do it.
--
You received this message because you ar
I've had no problems using the SAX parser on Android.
I really think you should fix your characters() override method. Read
to API docs. It doesn't have to return the full contents of a text
node (I see newbies frequently make this mistake). I always use a
StringBuffer or StringBuilder.
What help
Show your characters() method. It's probably buggy.
Set breakpoints and step through your 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 th
d the eclipse debugger to step through the issue and found
that the CopyOnWriteArrayList "lock" instance variable is what is set
to null. Has anyone else seen this and is there any fix?
--
Joshua Frank
--
You received this message because you are subscribed to the Google
Groups "Andro
y it worked with Nexus One 2.1 and works
> with 2.2.
>
> We also found this
> issue:http://code.google.com/p/android/issues/detail?id=8407
Hm well I guess thats both bad and good news. I guess I'll have to
wait for Android 2.2 then :-\
Best regards,
Frank
--
You received thi
The problem doesn't seem to have anything to do with GPS, correct?
I tried your coordinates, 22.9638357,113.3156041, on desktop google
maps and from within a MapView. I get the same unequal results that
you did. I also tried msn.com (in satellite view - theirs are older!)
and that agrees with the
You said that more than 4 connections would give better performance.
How much faster would it be with a 5th connection?
--
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
Then go to the documentation http://developer.android.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-develop
The way I look at it is that if you are going to use some pictures in
your application, then the people using your application are going to
have to get those pictures
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, se
You can find that information here:
http://code.google.com/android/add-ons/google-apis/
com.google.android.maps.MapController.setCenter()
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-develope
Is it a URL? Then you need to escape the "#".
--
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+unsubscr
In your code, the String variables tim and tim2 are both from
location.getTime(), with differing formatting. However, in your value
comparison, tim2 is supposed to come from "System Time".
In my app, I use "new Date(location.getTime()).toString()", and am not
seeing a discrepency for locationManag
What does "current location" mean?
AFAIK, on Android you can only get timestamped locations, either via
notification or last known.
--
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@goo
Some more specifics in the OP would have saved me the trouble of asking:
eclipse version?
system memory size?
at startup of eclipse?
using the graphical layout editor?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group,
I suppose that iJetty, like Jetty, is a servlet container. It's open
source, have you considered stripping it down to bare HTTP?
Search for embedded Java HTTP servers that would be used in devices
such as routers.
If your needs are very simple and highly constrained, building you own
HTTP server
I've used nekohtml to scrape pages. Have you looked for an API for
getting the data instead?
You should carefully consider the ramifications of screen scraping.
The web site may not be thrilled by your syphoning off information
they may have to pay for. When the web site is redesigned, the screen
It doesn't make sense to me why you're trying to cancel the AsyncTask
in the Activity's onDestroy method. That seems too late in the
lifecycle.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-dev
I wish I could be of more help. It works OK on my Droid. Perhaps you
can do some more debugging, looking for some kind of pattern or look
at the Android source code for how that value is returned.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" gr
How noob are you?
Assuming that you've been seriously programming for at lease a year:
developer.android.com
buy a book, if that helps
get a device if you want to use the sensors and GPS
run some of the sample code, modify it
share your problems and learnings here on the list
--
You received th
> No offense, but it seriously blows my mind how people can find this group,
> sign up, and post to it, but can't (or won't) take the time to search for
> and (quickly and easily) find the official documentation.
> Just ... don't ... get it
>
I'm sure there are many others - including myself
> The message could be urgent thing or request response to user.
> In this case, I want to show it to users right away without the
> notification.
> I think this is not kind of right and wrong.
> It just matter of scenario.
That's just not the way Activities are supposed to work in Android.
What i
Maybe you can visualize my suggested solution better with some code:
if (demo) {
demoLocationManager.requestLocationUpdates(provider,
min, distance, this);
} else {
locationManager.requestLocationUpdates(provider, min
I assume you want a blocking alert dialog like the MsgBox() function.
This has been brought up before and basically "no can do" the way the
Android UI thread works, AFAIK. The two "natural" android approaches:
1) An other activity that you start with startActivityForResult(),
which can be themed a
On Fri, Jul 30, 2010 at 5:14 AM, sblantipodi
wrote:
> Ok, since I founded no way to automatically do it with netbeans now
> I'm trying the ant way posted here:
> http://just2us.com/2009/07/tutorial-obfuscate-an-android-application/
> previously in this thread.
>
> I followed all the instructions b
I don't recognize what data format that is, but I would guess that
your code has an error or is not sending the right HTTP headers. What
client side code are you using?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group,
I strongly recommend you try to find some sample code at
developer.android.com that does something similar and follow that
example.
In other UI frameworks, there's a convenience function, such as
MsgBox() that accomplishes "blocking" the UI thread. I don't know
exactly how it's done, but I suspect
Here is a long thread on the subject:
http://groups.google.com/group/android-developers/browse_thread/thread/1c9078176b172e1a/235bae6530ee7e74?show_docid=235bae6530ee7e74
There are Java projects that use various preprocessors. The lack of a
standard one is a problem. AFAIK Sun's WORA ideology ran
I think Bob Kearns may have it right. I was also wondering why you'd
be seeing any XML if you're using SOAP, which is basically an RPC
framework.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-d
Have you enabled Allow USB Debugging on the device?
--
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+un
This thread is a little like schadenfreude to me. A lot of it is about
taste - of which arguing about is of little use. I just saw some Java
code where every closing brace is commented with "// end of if", "//
end of for", "// end of method", etc. Yech!. That, to me, is worth
arguing about!
If the
Please understand what the DOM is. There you have two text nodes
sandwiching a BR element. Either the feed should use CDATA to wrap the
marked up text or you need to decide how you are going to reconstruct
PCDATA, that is, turn the sandwiched BR element into text.
--
You received this message bec
I don't see how your problem is any different on Android than it would
be for any program in any language on any device. Pick a data
structure. Don't optimize it (yet).
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group,
Closest I got for a digital filter was to ask for a notification rate
somewhat higher than the desired sample rate an downsample the value
sequence.
On Aug 2, 2010 6:33 PM, "Tope" wrote:
Hello everyone,
Just joined the Android group. I'm having problems with the
acceleration and
orientation sens
Should we assume you know how to hit test for a circle and you want to know
if the SDK can do it for you instead?
On Aug 2, 2010 6:33 PM, "kingh32" wrote:
Hello
I'm currently trying to program a target as part of an Android
Application.
I want the user to be able to touch a particular band with
@Leigh LOL. I think your amusement is warranted.
What I meant to say is that a lot of the really great programming
techniques, such as refactoring to patterns, tend to be explained in
Java. I would suppose that really good programmers can write flexible
Java code without the use of a preprocessor
What does "quit the app" mean in the context of the Android SDK?
--
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-
On Wed, Aug 4, 2010 at 9:54 AM, ls02 wrote:
> I want to terminate the Linux process, the same way Pandora app does.
I'm not being cheeky, but just want to understand your thinking. If
the Android app's host linux process is NOT terminated, what is the
consequence, if any?
--
You received this m
Can you try to use the correct terminology. The onstop method is for an
activity. If you can get that, maybe you can try to answer treking's
question.
On Aug 8, 2010 8:59 PM, "optimusgeek" wrote:
I mean I want to do something when my app going to be stopped.(not
destroyed)
and the situations are
Correct me if I'm wrong, but "app" is a bogus term with regard to an
Android broadcast receiver. Don't you mean to ask what intent and
category do the Phone and Contacts apps use, such as:
android.intent.action.MAIN, android.intent.category.LAUNCHER
--
You received this message because you are s
Indicator, I don't understand why you repeat the erroneous "launching
another app". Correct me if I'm wrong, when you tap an icon on the
home screen what's happening is that an intent is being sent which
starts an activity in a particular package. That package's application
context may already be "
I'm assuming that the data you want to save includes a geocode
(lat/long) and some additional data, such as title. The answer to your
question can get quite elaborate, depending on the details. However, I
suggest you start with the simplest thing that work. That would
probably be see the marker and
201 - 300 of 745 matches
Mail list logo