[android-developers] Re: Send Data to a running app

2010-05-17 Thread Ne0
That sounds like it will do the job, thanks for your input. Ne0 On 15 May, 18:04, Mike dg vinb...@gmail.com wrote: You can set single instance for an activity to ensure more than one won't exist. And in the activity's onNewIntent handle the new intent. On May 15, 11:50 am, Ne0 liamjamesalf

[android-developers] Send Data to a running app

2010-05-15 Thread Ne0
StartActivity and stuff the intent with the data i want to send to it but if i start the activty that is already running, another instance of it will be created (wont it?) . Thanks for any info. Ne0 -- You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Re: Get file path from asset

2010-04-16 Thread Ne0
Good point, but i still need to know the path to my assets to be able to copy it don't i? I don't really want to open a Reader and copy it that way. As a workaround i am now just downloading the file from the web, but i would much prefer to have it embedded in my package. Ne0 -- You received

[android-developers] Get file path from asset

2010-04-15 Thread Ne0
); startActivity(intent); It launches QuickOffice to open the pdf as it should, but the file path is incorrect, how can i get the path of my file in my app? Ne0 P.S I am aware not all Android devices have quick office, though this app will only be install on ones that do. ;-) -- You received

[android-developers] Re: Get file path from asset

2010-04-15 Thread Ne0
Thanks, I hadn't, but i have now and it did not work. pdg was a typo i meant. ... Uri path = Uri.fromFile(new File(assets/UserGuide.pdf); ... Any other suggestions? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: DDMS('?' in process name field)

2010-03-23 Thread Ne0
Mar, 16:02, Bob Kerns r...@acm.org wrote: I believe this is simply thatDDMShasn't yet received the name of the process. You'll notice the process number doesn't change. On Mar 22, 2:20 am, Ne0 liamjamesalf...@googlemail.com wrote: I get this with my Nexus One, the worrying thing

[android-developers] Re: DDMS('?' in process name field)

2010-03-22 Thread Ne0
I get this with my Nexus One, the worrying thing is that appears then disappears very quickly like it is trying hard not to be noticed. I would associate this sort of behaviour with a virus, trying to remain undetected, but if you are seeing this in an emulator then it may just be a system

[android-developers] Re: Lock an .apk to a given (and physical) device

2010-03-16 Thread Ne0
Why dont you want to hardcode the IMEI? On 16 Mar, 10:44, jamesc jame...@gmail.com wrote: Hi I'm looking for guidance on locking an .apk to a specific device (that I have physical access to in order to install the .apk).  Gotchas (i.e. avoiding hardcoding IMEIs/ANDROID_ID etc.?) and the

[android-developers] Widgets: Can the widget icon be different...

2010-03-16 Thread Ne0
the home screen and select widgets, the widget appears with the same icon and name as the application package. Is there a way to change this icon and name to an icon and name that better represents what the widget does rather then the application? Ne0 -- You received this message because you

[android-developers] Re: Lock an .apk to a given (and physical) device

2010-03-16 Thread Ne0
authenticate with the server before it will work. Ne0 On 16 Mar, 10:55, jamesc jame...@gmail.com wrote: Sorry, I wasn't clear.  I'm asking whether that's the recommended option. On Mar 16, 10:52 am, Ne0 liamjamesalf...@googlemail.com wrote: Why dont you want to hardcode the IMEI? On 16 Mar

[android-developers] Re: Widgets: Can the widget icon be different...

2010-03-16 Thread Ne0
Thanks Mark. On 16 Mar, 12:15, Mark Murphy mmur...@commonsware.com wrote: Ne0 wrote: ...to the application icon? Essentially i have an application that has a few different activities and services. I want a widget that indicates whether or not one of the services is running and starts

[android-developers] Re: Widgets: Can the widget icon be different...

2010-03-16 Thread Ne0
/ /intent-filter meta-data android:name=android.appwidget.provider android:resource=@xml/smptwidget / /receiver Ne0 On 16 Mar, 13:31, Ne0 liamjamesalf...@googlemail.com wrote: Thanks Mark. On 16 Mar, 12:15, Mark Murphy mmur...@commonsware.com wrote: Ne0 wrote

[android-developers] SMS BroadcastReceiver

2010-03-05 Thread Ne0
Hi, I am writing my own sms receiver app and i want it to catch all the sms using a broadcast receiver. This on its own, is no problem, but i want to be able to stop the message being passed to the messaging app. Does anyone know if this is this possible? -- You received this message because

[android-developers] Re: Activity design advice

2010-03-05 Thread Ne0
styles and themes are available? On Mar 4, 2:52 pm, Ne0 liamjamesalf...@googlemail.com wrote: Just in case this saves anyone else some time. activity android:name=.app.DialogActivity              android:label=@string/activity_dialog              android:theme=@android:style/Theme.Dialog

[android-developers] Re: Activity design advice

2010-03-04 Thread Ne0
/ category android:name=android.intent.category.SAMPLE_CODE / /intent-filter /activity On 3 Mar, 18:35, Ne0 liamjamesalf...@googlemail.com wrote: Thanks, couldn't see it for looking! New it was there somewhere. On Mar 3, 5:56 pm, westmeadboy westmead...@yahoo.co.uk wrote: Yup

[android-developers] Activity design advice

2010-03-03 Thread Ne0
filling the screen? So it looks like a dialog box? Ne0 -- 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

[android-developers] Re: Activity design advice

2010-03-03 Thread Ne0
Thanks, couldn't see it for looking! New it was there somewhere. On Mar 3, 5:56 pm, westmeadboy westmead...@yahoo.co.uk wrote: Yup, you just need to set the android:theme attribute in your activity tag in your manifest. On Mar 3, 6:16 pm, Ne0 liamjamesalf...@googlemail.com wrote: I have

[android-developers] SQLite Query selectionArgs

2010-02-25 Thread Ne0
are not getting substituted by the selectionArgs as they are supposed to be. Please let me know if you have used selectionArgs effectively please let me know. Ne0 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

[android-developers] SQLite Query selectionArgs

2010-02-25 Thread Ne0
by the selectionArgs as they are supposed to be. Please let me know if you have used selectionArgs effectively please let me know. Ne0 -- 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

[android-developers] ContentResolver NullPointerException

2010-02-22 Thread Ne0
: 629) at com.smithmyers.smmobileapps.mobilegoose.MobileGoose.onCreate(MobileGoose.java: 56) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2459) Any suggestions? Ne0

[android-developers] Re: GsmCellLocation.getCid() returns very large numbers.

2010-02-10 Thread Ne0
Large ones are more then likely 3G CellId's. Put the phone on 2G only and see if you get any large numbers. On 3 Feb, 04:47, Ahmad ahm...@gmail.com wrote: Sorry for bringing up this topic from the past, but I was wondering if the OP or anyone else knows the cause or a solution to this problem

[android-developers] NeighboringCellInfo 3G CellID

2010-02-08 Thread Ne0
Hi, I'm trying to get neighbouring cell id info for the 3G neighbours, though i dont get a result (-1). It gets the serving cell just fine, can anyone tell me if this is a bug or weather this is how it is supposed to be? Liam -- You received this message because you are subscribed to the

[android-developers] Re: BluetoothAdapter - ACTION_DISCOVERY_FINISHED

2009-10-29 Thread Ne0
On Oct 28, 1:02 pm, skink psk...@gmail.com wrote: On Oct 28, 5:10 pm, Ne0 liamjamesalf...@googlemail.com wrote: Ok i may be missing something here, but i can't see any documentation on what (if any) data is returned with Intent ACTION_DISCOVERY_FINISHED. I would hope

[android-developers] BluetoothAdapter - ACTION_DISCOVERY_FINISHED

2009-10-28 Thread Ne0
Ok i may be missing something here, but i can't see any documentation on what (if any) data is returned with Intent ACTION_DISCOVERY_FINISHED. I would hope that there is a list of discovered devices, but i cant find any documentation on it plus i don't have an android phone to test this on. Any

[android-developers] R.drawable.my_icon Missing

2009-10-16 Thread Ne0
Hi, For some strange reason one of my drawable resources will not get written to R.drawable!?! The icon i am trying to use is in the correct directory, has a legal name, but when i compile i get: target Java: MobilePowerSurvey (out/target/common/obj/APPS/

[android-developers] Re: R.drawable.my_icon Missing

2009-10-16 Thread Ne0
Sorted, as i had mode no changes to the manifest it was rebuilding the resources, hence the reason it was saying it couldn't find the files. Liam On Oct 16, 12:30 pm, Ne0 liamjamesalf...@googlemail.com wrote: Hi, For some strange reason one of my drawable resources will not get written

[android-developers] Re: R.drawable.my_icon Missing

2009-10-16 Thread Ne0
The Fix (Short answer): If you have this problem, make a change to manifest, save and rebuild, sorts it all out! Liam On Oct 16, 12:30 pm, Ne0 liamjamesalf...@googlemail.com wrote: Hi, For some strange reason one of my drawable resources will not get written to R.drawable!?! The icon i am

[android-developers] Do MapView Overlays get painted at angle?

2009-10-09 Thread Ne0
When an overlay is put on a MapView, the shadow suggest that its at an angle and not flat on the map. I have been creating scaled bitmaps to overlay on a mapview, but i am either geting the scale wrong or the overlay is being painted at a slight angle, sitting up a bit, rather then being flat to

[android-developers] Re: Do MapView Overlays get painted at angle?

2009-10-09 Thread Ne0
Yes they do, i figured it out to be 50 degrees. If it is Documented some where i must have missed it! On 9 Oct, 11:32, Ne0 liamjamesalf...@googlemail.com wrote: When an overlay is put on a MapView, the shadow suggest that its at an angle and not flat on the map. I have been creating scaled

[android-developers] Overlay on MapView

2009-10-06 Thread Ne0
Hi, I have created an image of a tracked trail and want to overlay this on to my map view so that the bounding box of the overlay is at static co- ordinates. This way when the mapview is zoomed in or out, the overlayed trail stays in the correct place and to scale I just wondered if this is

[android-developers] Re: MapView Overlays

2009-10-02 Thread Ne0
only have 1 overlay. On Oct 1, 9:58 am, Ne0 liamjamesalf...@googlemail.com wrote: Essentially its a tracker, one part of the app tracks gps location and logs it to a file, the other part loads the file into a mapView with the readings (taken every 10 or however many seconds you like

[android-developers] ProgressDialog Issue

2009-10-02 Thread Ne0
Hi, I have prgress dialog that gets displayed while me activity is reading a file, but it the little circle in the dialog does not appear to spin. I thought it was supposed to as i have seen this in other apps, can anyone see what i am doing wrong here? // Display an indeterminate

[android-developers] Re: MapView Overlays

2009-10-01 Thread Ne0
going to let my activity take the strain and see if it makes it any better. Any thoughts on this issue are still greatly received. Liam On Sep 28, 2:51 pm, Ne0 liamjamesalf...@googlemail.com wrote: My problem is my MapView becoming very laggy and so non-responsive at times, that Android thinks its

[android-developers] Re: MapView Overlays

2009-10-01 Thread Ne0
:01 pm, Mika mika.ristim...@tkk.fi wrote: What you could try is to use just one instance of your Overlay subclass that includes all the 60 icons that you want to show on the map. -Mika On Oct 1, 4:08 pm, Ne0 liamjamesalf...@googlemail.com wrote: Not had any response, but my solution

[android-developers] Re: MapView Overlays

2009-10-01 Thread Ne0
to search for more if those 10 do not meet their needs? On Sep 28, 8:51 am, Ne0 liamjamesalf...@googlemail.com wrote: My problem is my MapView becoming very laggy and so non-responsive at times, that Android thinks its hit deadlock and tries to close it. I am adding 60 overlays to the map view

[android-developers] Focus MapView

2009-09-28 Thread Ne0
Hi, Thought this might have been covered already, but i cant seem to find it anywhere. My app reads GPS positions from a file and overlays them on the mapView. All very simple stuff, but how to get the map view to go to and zoom in on a point? Thanks Liam

[android-developers] Re: Focus MapView

2009-09-28 Thread Ne0
Thanks, thought it would be simple, hadn't come accross MapController yet. Cheers. Liam On Sep 28, 12:21 pm, Mark Murphy mmur...@commonsware.com wrote: Ne0 wrote: Hi, Thought this might have been covered already, but i cant seem to find it anywhere. My app reads GPS positions from

[android-developers] MapView Overlays

2009-09-28 Thread Ne0
My problem is my MapView becoming very laggy and so non-responsive at times, that Android thinks its hit deadlock and tries to close it. I am adding 60 overlays to the map view and i originally thought that the icon size may be causing the problem by using up all the memory. When i decreased the

[android-developers] Re: Remote Interface - Parcelables problem...

2009-09-24 Thread Ne0
() {                 public OnlineUser createFromParcel(Parcel in) {                         return new OnlineUser(in);                 }                 public OnlineUser[] newArray(int size) {                         return new OnlineUser[size];                 }         }; On Sep 23, 9:52 am, Ne0

[android-developers] Remote Interface - Parcelables problem...

2009-09-23 Thread Ne0
Been using remote interfaces for quite a while now, but the time has come to increase the amount of data i need to pass between processes. Following the Designing a Remote Interface using aidl examples/ tutorial i have had some success but have now come to a problem. My activity binds to my

[android-developers] What am i missing here?

2009-09-18 Thread Ne0
Hi, i must be missing something silly here as i have had this work many times. Eclpise shows no error, but when i compile i get packages/apps/SM3GNetMon/src/com/work/sm3gnetmon/SM3GNetMon.java:15: cannot find symbol symbol : class SMNetworkInfo location: package com.work import

[android-developers] Re: problem in List Activity

2009-09-18 Thread Ne0
Some code would be helpful, else your problem will not get solved! On 18 Sep, 14:24, ragavendran s sraghav.ra...@gmail.com wrote: i m having ListActivity displays list views normalwhenever i click on that particular item from the list it doesn't works (i.e) it does not calls the another

[android-developers] Re: problem in List Activity

2009-09-18 Thread Ne0
().setTextFilterEnabled(true);     } On Fri, Sep 18, 2009 at 7:04 PM, Ne0 liamjamesalf...@googlemail.com wrote: Some code would be helpful, else your problem will not get solved! On 18 Sep, 14:24, ragavendran s sraghav.ra...@gmail.com wrote: i m having ListActivity displays list views

[android-developers] Re: Changing a Back button press to Home button press

2009-09-03 Thread Ne0
and calls finish(). Liam On Sep 2, 5:53 pm, Dianne Hackborn hack...@android.com wrote: On Wed, Sep 2, 2009 at 2:19 AM, Ne0 liamjamesalf...@googlemail.com wrote: Yes that is what i want to achieve and i know it is acting in a non- standard way. Please correct me if you think i am going about

[android-developers] Re: Changing a Back button press to Home button press

2009-09-02 Thread Ne0
Yes that is what i want to achieve and i know it is acting in a non- standard way. Please correct me if you think i am going about this in the wrong way, but my understanding is that using the back button destroys the focused activity and hence does not hit onSaveInstanceState(...). The users of

[android-developers] Changing a Back button press to Home button press

2009-09-01 Thread Ne0
Trying to the do as the title describes with the following code, but it doesn't seem to work. It just does nothing once i have altered the keyCode. Do i have to do something to the event? public boolean onKeyDown(int keyCode, KeyEvent event) { /* * The back key usually destroys

[android-developers] Re: Why does my PhoneStateListener go quiet?

2009-08-10 Thread Ne0
so i am no longer bound by the SDK API's. I would have preferred to stick to the SDK, but it is in need of some work. According to issue 700 (i think) google is planning on making that API better. Liam On Aug 7, 12:32 pm, chrisnew ch...@floor51.com wrote: On Jul 29, 2:59 pm, Ne0 liamjamesalf

[android-developers] Re: how to modify the power manager code

2009-07-31 Thread Ne0
Here is the code i have used to control the wake state, look at PowerManager in the reference for all the flags. // Use the power manager to make sure the CPU doesnt stop // so we will always catch the alerts mPm = (PowerManager)

[android-developers] Testing Power state - Question?

2009-07-31 Thread Ne0
Hi, Had a look through the reference and i cannot find anywhere that allows you to set up a listener to listen to power state changes. My service holds the phone in SCREEN_DIM_WAKE_LOCK power state and what i would like to do is apply KeyguardLock when we enter into the DIM state, as this is

[android-developers] Re: Android service always alive..

2009-07-29 Thread Ne0
I am having a similar issue, having my service monitor cell location changes, but it stops logging them as soon as the power manager turns everything off. I was just curious as to how the Phone app manages to know that a call is coming through if the CPU is off? surely it must have some way to

[android-developers] Re: Android service always alive..

2009-07-29 Thread Ne0
you have any suggestions? Thanks, Liam On 29 July, 11:56, Mark Murphy mmur...@commonsware.com wrote: Ne0 wrote: I am having a similar issue, having my service monitor cell location changes, but it stops logging them as soon as the power manager turns everything off. I was just curious

[android-developers] Re: Android service always alive..

2009-07-29 Thread Ne0
that keeping the GPS radio on means very short battery life. I wasn't 100% clear, its location updates from telephony manager, so when the phone gets a new LAC code rather then GPS location updates. On 29 July, 12:57, Mark Murphy mmur...@commonsware.com wrote: Ne0 wrote: Can you confirm if i am using

[android-developers] Why does my PhoneStateListener go quiet?

2009-07-29 Thread Ne0
Hi, Been having some issues with my PhoneStateListener, what i would like it to do is to always listen to CellLocationUpdates even when the phone sleeps. I am currently trying to do this with the following code. public class MyService extends Service { ... public void onCreate() { //

[android-developers] Re: Why does my PhoneStateListener go quiet?

2009-07-29 Thread Ne0
I am using ACCESS_COARSE_LOCATION in my manifest. On 29 July, 14:49, Ne0 liamjamesalf...@googlemail.com wrote: Hi, Been having some issues with my PhoneStateListener, what i would like it to do is to always listen to CellLocationUpdates even when the phone sleeps. I am currently trying

[android-developers] savedInstanceState Textview text problem.

2009-07-28 Thread Ne0
Hi, My activity displays a text view where the text is constantly changed with updates from a LocationListener. When returning to the activity after navigating away, the text view comes back with the savedInstanceState state but any changes to the text in the text view dont. How do i get the

[android-developers] Re: savedInstanceState Textview text problem.

2009-07-28 Thread Ne0
Thanks, i will approach it that way. On 28 July, 11:28, Mark Murphy mmur...@commonsware.com wrote: Ne0 wrote: My activity displays a text view where the text is constantly changed with updates from a LocationListener. When returning to the activity after navigating away, the text view

[android-developers] Debugging a service

2009-07-27 Thread Ne0
Hi, I have written activity that starts a service that can be accessed remotely (similar to the Remote service API sample), it compiles and appears to run fine. The service has a LoctaionManager and a TelephonyManager that detect GSM and GPS location changes and should send a string back to any

[android-developers] Re: How to add a new library to android source

2009-06-17 Thread Ne0
custom API and use it to feed my  app Please guide me on the same Arun On Tue, Jun 16, 2009 at 8:28 PM, Ne0 liamjamesalf...@googlemail.com wrote: Do you mean you want to Edit/Add Android source code, build the android library with your custom API and use it to feed your app? On Jun

[android-developers] Re: Android 1.5 SDK, Release 2 -- TelephonyManager

2009-06-17 Thread Ne0
related functions to extract neighboring cell related information (however, I could be wrong about this). I hope this helps. Unfortunately, I am still stuck with regards to getNeighboringCellInfo(). Alex Donnini On Jun 16, 10:47 am, Ne0 liamjamesalf...@googlemail.com wrote: Yes it does, though

[android-developers] Re: Android 1.5 SDK, Release 2 -- TelephonyManager

2009-06-17 Thread Ne0
due to one of the black holes in my memories of java, shouldn't have had so many beers over the last 5 years!! ;-) Liam On Jun 17, 9:13 am, Ne0 liamjamesalf...@googlemail.com wrote: Thanks Alex, i will look into it. On Jun 16, 5:55 pm, alexdonnini alexdonn...@ieee.org wrote: Liam

[android-developers] Field Test App - How does it get its data?

2009-06-16 Thread Ne0
Hi All, I am interested in finding out how the field test app gets hold of its information, i have the android source, but the field test app does not appear to part of it ( If i'm being blind, please guide me ;-) ). Does anyone know how to get access to the sort of information that field test

[android-developers] Re: FakeDev

2009-06-16 Thread Ne0
Have you tried looking at FakeDev.h and FakeDev.c ? just had a quick look and there appears to be lots of info about it! Liam On Jun 16, 12:42 am, Junior Oyebadejo joyebad...@gmail.com wrote: Hello everyone, I'm sitting here looking at the RIL of Android and have reached a stumbling block.

[android-developers] Re: Android 1.5 SDK, Release 2 -- TelephonyManager

2009-06-16 Thread Ne0
Yes it does, though you have make sure that you are building your app for 1.5 versions only, this is done when setting up your project using Eclipse, thats how i do it anyway. I have yet to test my code on an actual phone, though there is one thing you may be clear up for me, its been many years

[android-developers] Re: How to add a new library to android source

2009-06-16 Thread Ne0
Do you mean you want to Edit/Add Android source code, build the android library with your custom API and use it to feed your app? On Jun 16, 12:21 pm, Desu Vinod Kumar vinny.s...@gmail.com wrote: HI add a folder name lib and keep the jar  file into it and got to [project setting add that

[android-developers] Cell Selection Parameters

2009-06-10 Thread Ne0
Hi, I am new to developing apps for android and i am need of some assistance. I need to be able to get at the Cell Selection parameters of the serving cell, i have had a look at android.telephony and it appears that i can get Cell ID, LAC, MCC, MNC, power and some neighbour cell Cell ID and

[android-developers] Cell selection parameters

2009-06-10 Thread Ne0
Does anyone know how to get hold of the cell selection parameters C1 and C2? also the channel number? Cheers Liam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,