Android : Sharing Gps Stuff Between Several Activity

May 11, 2010

I found myself using the same code for accessing to gps / cell location stuff from a couple of activities of my application. What I was wondering now is, which is the best way to avoid code duplication? Should I use a superclass for the activities which implements that kind of stuff? Use an helper class? How do you deal with this kind of problems? 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

Android : Sharing gps stuff between several activity


Android :: Create A Photo Sharing Activity?

Aug 31, 2010

How can I create a custom activity that can be chosen by the user via the share option when viewing the photo gallery? I have options like "Share with Facebook, Twitter, FlickR" etc. But I want to add my own option in there.

i.e. Go to "Photos", then click the "Share" button. You will be presented with a bunch of share providers. What do I need to do to get my activity in there?

View 2 Replies View Related

Android :: Activity Still Lagging When Run Stuff In Service And Handler.post Method / Do This Correctly?

Nov 18, 2010

I'm confused why is my activity still lagging, I use remote service that has few methods and each has its own work like download stuff, process data, compare stuff, etc... It will run in background and update data at selected intervals and notify user of changes over notify system.

The reason why remote service, because I will eventually add a widget, and service needs to stay running even if android kills the activity, so I unbind it on each onPause().
But as far I understand that part doesn't cause my issue.

But back to my problem... so my is Activity still lagging when I run stuff in service and handler.post method.

here is the code...

Also I wanted to add progressDialog to be updated in updateLayer(...) through Activity is a listener to this service, but thats not working well. Whats the best way to update progressDialog? Ever listener, handler, intent, or what?

So how do I do this correctly?

View 2 Replies View Related

General :: Sharing Google Play Account Without Sharing Everything Else?

Sep 19, 2012

I have my Google account also setup on my wife's phone so we can share purchased apps. However, everything else is shared too. For example, even though I have sync for everything on my account turned off, my calendar still showed up on my wife's phone until I disabled it in the calendar app. Also, I can't remove my Google Talk account from her phone so my messages show up on her phone.

This is on a pair of stock Samsung Galaxy S3 phones.

View 2 Replies View Related

Sprint HTC Hero :: Outlook - Automatically Delete Stuff As Delete Stuff On The Exchange Server

Jan 15, 2010

I connect to my works Exchange server using EAS (I think, it was the default) and it syncs with my mail automagically as stuff comes in. I'd really like to find a way to automatically delete stuff on the Hero as I delete stuff on the exchange server. Is there a way to do this without involving another program?

View 1 Replies View Related

Android :: Transfer Apps N Stuff?

Jun 5, 2010

Just got replacement motorola Droid for the one I smashed. How do I get all the stuff I had onto my new phone.

View 1 Replies View Related

Android :: Getting Mobile Pc Stuff To Work

Jun 17, 2009

Is it possible to request sites or programs that you would like someone to put on android ? I have some software on a windows mobile pc xda and would like to get an android phone on my next contract. but I want it to be able to support this particular software.

View 2 Replies View Related

Android :: How To Use Session In WebView In Other Stuff ?

Mar 15, 2010

The user must login through the WebView. Of course, the session is for that WebView.But, what if I need to make REST API calls during my Android application?Those REST API calls need the session to be authenticated , otherwise those will not work. Is there any way I can attach the cookies of WebView into everything I do in Android?

View 1 Replies View Related

Android :: Scroll Down To View More Buttons And Stuff

Mar 27, 2010

Im putting buttons as layouts with text boxes, but im running out of room. How would i make it possible for the user to scroll down to view more buttons and stuff. For example, if i have 6 buttons, and 3 are in the field of view, i wanna be able to scroll with my finger and be able to see those buttons as I scroll.

View 1 Replies View Related

Android :: Screen Applications - Widgets And Stuff

Apr 9, 2010

I only have my clock and a folder on the home screen, have 2 other screans one is net stuff, and the other one is music, What widgets and stuff do you have on your Droid or Droid Eris?

View 5 Replies View Related

Android :: Application For Buying Stuff From Market?

Jan 9, 2010

I am from Sweden and can't buy anything from the market. Is there a app or something that can help me?

View 2 Replies View Related

Android :: Building Stuff - Libraries Into Executables

Apr 22, 2010

I want to build some libraries into executables that I need to use with my application. For example I need to build the C library slocate, so that I can use it in my application. Another example, I have to build sqlite-3.1 db to be usable with Python from ASE.

View 1 Replies View Related

Android :: How Can I Access Rest Of Stuff In Drawable Folder

Jul 22, 2009

How can I access the rest of the stuff in the drawable folder, such as the Android emoticons? I can use many of what is in the drawable folder by doing "drawable.XXX" but not all of them are available when I do that.

View 2 Replies View Related

Android :: Need GPS Navigation Stuff For Making Bookmarks Of Places

Dec 7, 2009

Firstly, I wanted to mention taht I live in Canada, so that might mean some solution do, or don't exist. What I am looking for is some sort of smart phone that can do the following: GPS navigation stuff, makeing bookmarks of places, and entering coordinates is good. Voice over IP . even if it is using the voice implementation of something like ventrally, that would work, even better is to have it act like a true phone. Ideally I want to do this so that I can use WIFI network, rather then phone minites, to keep monthly cost down. Phone and video are cool and all, but on my current "dumb" phone I don't use them at all.

View 2 Replies View Related

Android :: Drawing 2D Stuff On Screen In OpenGL Over 3D Scene

Jun 27, 2010

Can somebody take me step-by-step how to draw 2D stuff over a 3D scene (such as controls, etc.). What I've been doing so far has not been working (it only draws the 3D scene), which is (in every frame): draw the 3D scene as normal, projection matrix mode, load identity, call GLU.gluOrtho2D(gl, 0, myScreenWidthInPixels, 0, myScreenHeightInPixels), switch the array pointers (vertices and texture coords) to the ones for my 2D stuff, then drawElements with an appropriate index list. (then switch the array pointers back so the 3D stuff works again).I get nothing added to the screen (just the 3D stuff).Do I need to be doing something else for it to draw? Can somebody take me step-by-step?

View 5 Replies View Related

Android :: Google Chrome Send Stuff To Phone (Rooted 2.2)

Jul 27, 2010

How do you do the chrome to phone thing where google chrome sends stuff to your phone? I have a rooted 2.2 droid. I have chrome, and the app on my phone but idk how to do it from my computer

View 1 Replies View Related

Android :: Undefined Error When Trying To Run Droid Tutorial Form Stuff / Fix It

Sep 3, 2010

I have copied and pasted the code from the Form stuff example on this website. I am getting an error when i try and run the project, the project has a little red square with a white cross on it but when drilling down into the elements of the project (using eclipse) there is element with an error. In the problems tab of eclipse I have the following text

Description Resource Path Location Type
Unparsed aapt error(s)! Check the console for output. HelloFormStuff2 Unknown Android Packaging Problem

But there is nothing in the console!!
Here is the code and elements that I am using... code...

View 2 Replies View Related

Android :: Is Bad MotionEvent/Touch Slowdown Stuff Actually Fixed On First-gen 2.1 Updates

Apr 18, 2010

I'd really like to know what the state of that fix is as 2.1 is rolled out onto first generation (MSM7200-based) devices. As it stands, I don't see much of a problem with touch eating up CPU on the Droid and N1 but those are much faster phones so I don't think it would be quite as pronounced on them. My current 1.6 devices (G1 and Tattoo) cut my framerates in half during any touch (with the sleep hack, even). I optimized my new games so that they would run well-enough (25-40fps) on that hardware but they have very touch-centric interfaces so won't work well with that bug. I talked to a few people who run 2.0/2.1 mods on their G1s and they said the problem isn't any better. They still see the big slowdown. I tested on my 1.6 emulator vs a 2.1 emulator and there is a huge improvement. The 1.6 emulator slows down just like my G1 does and the 2.1 emulator shows only a tiny bit of slowdown, which is what I was hoping for. That's encouraging, but I have yet to see a real 2.1 MSM7200 update in the field so I don't know what to think yet.

View 10 Replies View Related

Android : FW Update / Chinese Clone With 9mp Camera - Bunch Of Other Cool Stuff

Aug 4, 2010

Im looking at buying a Chinese clone, it has a 9mp camera and a bunch of other cool stuff

3.0 Inch WIFI Quad Band Dual Card TV Cell Phone Support Dual Camera and JAVA

My buddy has bought from the same site and said they take returns no questions asked if I dont like it

it says it uses android 1.5 now would I be able to bring that up to date with froyo, or at the least, eclair?

View 5 Replies View Related

Android : Trigger A Media Scan From Within Droid To Make Quicker For Stuff?

Nov 15, 2010

With a lot of apps eg, camera, pictures appears in the gallery immediately, but some apps like Dropbox or blackmoon Attachsave, if you put a picture or MP3 or whatever on the card, they can not appear for ages.

One way on my Galaxy Apollo is to plug in USB and go into storage mode, it then scans the disk (A little icon in the status bar) and the media is now there.

A more extreme way is to unmount the card and then physically remove it and re-insert (I dont have to remove the battery) and it sets off a scan.

Is there anyway to trigger a media scan from within android to make it quicker for stuff to appear?

View 5 Replies View Related

Android :: HTC Evo - Internet Sharing Via USB

Jul 22, 2010

When I plugged my phone into my computer (Mac) to move music on to it it came up with the option to charge only, HTC sync, Disk drive, and share Internet. I know that with Sprint you can pay for the Mobile hotspot app, which in my opinion is way to expensive, so I was wondering if the USB sharing is free or if it is bundled with the mobile hotspot add on.

View 2 Replies View Related

Android :: Sharing Internet

Jun 7, 2010

When connecting through USB my HTC Desire, I am sometimes asked if I want to share the Internet. The fact is that it would try sharing HTC Desire's internet to my computer, but it has here no interest, as the opposite is most current for me. Is there a reverse implementation of this as an Android GUI?

View 2 Replies View Related

Android : Need GPS Sharing App To Website

Nov 22, 2009

I was wondering if anyone knew a good GPS sharing app for the Droid so that my family can follow along with me on my trip back from college. I take a bunch of different people back with me, and figured if there was an easy way to share my GPS location (constantly refreshing) on a website for their family along as well.

View 10 Replies View Related

HTC EVO 4G :: How To Setup Certain Stuff

May 24, 2010

Just found this cool site that tells you how to setup certain stuff on your EVO. HTC EVO 4G User Guides, FAQs, Tips and Tricks - HTC EVO 4G - Know Your Cell

View 23 Replies View Related

Communicate With Other Stuff?

Jul 28, 2012

how to make an app which acts like a switch, the case is I don't know were to start. I don't even know what's the name for that, I know there's bluetooth but its not exactly what I'm looking for. I checked the android developer site and searched and found some comunication stuff but I didn't know were to look.

View 3 Replies View Related

Android :: Sharing Database Between Applications

May 15, 2009

Anybody knows if we can share databases between applications? How can I access to a database from an A application to another B application? It is possible? What URI I would have to put?

View 4 Replies View Related

Android :: Calendar Sharing Between Two Phones

Oct 9, 2010

I have a HTC Incredible and my Fiancee will soon be upgrading to an Ally. I want to share my calendar on her phone, and vice versa. In essence I want my entries to show on her phone or hers on mine so we don't set appointments or end up with conflicting events. I know people have done this, but I'm just not sure on the steps needed to do so.

View 4 Replies View Related

Android :: Sharing Data Between Activities

Apr 7, 2010

I was playing a bit with adapters cursors and activities. Let's assume i have a cursor containing a query I've made (it doesn't matter if it's to DB or content provider). Now lets assume i bind some of the data (first two rows) to a list activity. Every click on one of those items should open a new list activity (i pass on the cursor index in the activity bundle). Now the question is, which sharing method will be most efficient and right from code point of view ?

1. I thought of trying to send the cursor object in the intent itself (hoping it implemented runnable) but I'm not so sure it's that efficient since the query may contain many rows which will need to be parceled, and i the other intents uses only a few (say 4-5 columns of each row) it's a real waste.

2. Thought of trying to create the array list for my other list screen adapter and serialize it to the intent (again use serialize and intent to pass on the data) but again i fear for efficiency penalty.

3. my last solution was to use static cursor member in my first activity, with package permission, it will work and be relatively efficient, but I'm not so sure regarding memory efficiency and code structure, i'm not fond of using static variables in any case.

Is there another sharing method that i don't know off, if two activities share the same process and application, then they also share memory space, then it should be easy to pass variables from one to another, the question is what's the easiest way without serializing ?

View 6 Replies View Related

Android :: Sharing Data Between Tab Activities

Aug 10, 2010

I did some digging, but couldn't find a clear answer. I have an application with TabActivity as the main activity. I have some computing and network communication that needs to be done when user clicks on the big red jolly "DO IT" button. One tab hosts the form with "DO IT" button, while the other tabs display the results from computing (each tab displays different part of results). The computing is done as AsyncTask as it's supposed to be (afaik).

Now the question is, what is the best way to share the results between the tabbed activities? It can be done with ContentProvider + database from what I have read, although that seems like a bit too much for my needs. I have also considered an option to save the results to some cache file activities could read in onCreate, onResume etc and display the data. Are there any other convenient ways to share the data? (To make it more clear, the data aren't simple, so doing it through preferences etc is impossible.)

View 5 Replies View Related

Android :: Sharing Data Across Activities

Mar 13, 2009

I was looking out for ways to share data between various activities that one may need to create for his applications . Using "Parcel" and Bundle one can do data exchange , but looks like this is a bit cumbersome process specifically if you have to share large array objects with too many fields.

As android.app.Application maintains global state for the application , we can use this class to store global data and access it across activities. Is this a good way ? Are there any implications on allocating large objects in the your class which extends from android.app.Application ?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved