[android-developers] Accessing Calendars Synched from MS Outlook

2010-08-15 Thread AuxOne
It's my understanding that the Google Calendar API is yet undocumented, although it's pretty obvious how to get at them if you use the correct query string. When I query content://calendar/events I get access to a ton of Calendars, but I noticed that the Calendar I've synched from my MS Outlook

[android-developers] Android NDK use cases

2010-06-22 Thread AuxOne
It's my understanding that the Android NDK is just a way to achieve increased performance in an application. In .NET development, the word native often means unmanaged which tends to provide a more granular level of control relative to the standard managed APIs. Does the Android NDK also provide

[android-developers] Listening to Clipboard... How to detect a copy

2010-05-27 Thread AuxOne
I'm interested in writing an application that extends the functionality of the Android clipboard. Basically, when the user tries to perform a copy (as in copy-paste) I want my application or Service to perform a function on the copied text. Is this possible? -- You received this message because

[android-developers] Re: No Network Connectivity in Service/AlarmManager Process.

2010-03-29 Thread AuxOne
if the Alarm is registered on BOOT_RECEIVED. On Mar 29, 9:22 am, AuxOne tyler.thack...@gmail.com wrote: I've done extensive tests and realized that the Alarm works perfectly when I install it to my device via Eclipse (then unplug the cable), but when I upload it to Android market the Alarm won't

[android-developers] Re: No Network Connectivity in Service/AlarmManager Process.

2010-03-27 Thread AuxOne
I'm starting the AlarmManager from a BOOT_RECEIVED broadcast and it works like a charm. I've noticed, however, that it requires a restart to take effect because it's triggered from a broadcast. In light of this I also start the AlarmManager from the onCreate() of my activity so that the user

[android-developers] Re: No Network Connectivity in Service/AlarmManager Process.

2010-03-27 Thread AuxOne
It just occurred to me that if I create it from a static context it shouldn't really die with the Activity. That's what I used to be doing, but later I switched it to an instantiated class. I'll see what happens. On Mar 27, 9:12 am, AuxOne tyler.thack...@gmail.com wrote: I'm starting

[android-developers] Re: No Network Connectivity in Service/AlarmManager Process.

2010-03-27 Thread AuxOne
Then maybe it's the Service that is dependent? All I know is it works after reboot, but not after immediately installing (and starting Alarm from Activity). It's a 1 hour+ timer. On Mar 27, 9:18 am, Mark Murphy mmur...@commonsware.com wrote: AuxOne wrote: It just occurred to me that if I

[android-developers] Dev 1 Phone OS Images for SDK 2.0 or 2.1

2010-03-26 Thread AuxOne
I have a Dev 1 Phone which I was able to update from Android 1.0 to 1.6 via an OS Image found online. I did not see an OS Image to update to 2.X. Does that exists? Does the hardware of the Dev 1 even support it? Thanks -- You received this message because you are subscribed to the Google

[android-developers] Re: No Network Connectivity in Service/AlarmManager Process.

2010-03-25 Thread AuxOne
So perhaps it would suffice to just Thread.sleep() for 30 seconds after WakeLock is set, to wait for the Wifi. I'll experiment with that. -- 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] No Network Connectivity in Service/AlarmManager Process.

2010-03-24 Thread AuxOne
I have a Service/AlarmManager set to go off ever hour; as seen at: http://github.com/commonsguy/cw-advandroid/tree/master/SystemServices/Alarm/ The Alarm triggers a Socket connection to communicate with a Web Server. I'm logging the interaction to a file so I can see it later. When I leave the

[android-developers] Re: No Network Connectivity in Service/AlarmManager Process.

2010-03-24 Thread AuxOne
/com/commonsware/android/syssvc/alarm/WakefulIntentService.java Thanks again. On Mar 24, 5:12 pm, nikhil nik...@gmail.com wrote: You need a partial wakelock and internet permission. On Mar 24, 3:56 pm, AuxOne tyler.thack...@gmail.com wrote: I have a Service/AlarmManager set to go off ever

[android-developers] Re: No Network Connectivity in Service/AlarmManager Process.

2010-03-24 Thread AuxOne
the lock into my Thread and release it from there? Your KungFu is the best! On Mar 24, 5:21 pm, Mark Murphy mmur...@commonsware.com wrote: AuxOne wrote: I have a Service/AlarmManager set to go off ever hour; as seen at: http://github.com/commonsguy/cw-advandroid/tree/master/SystemServices

[android-developers] Re: No Network Connectivity in Service/AlarmManager Process.

2010-03-24 Thread AuxOne
= (PowerManager)context.getSystemService(Context.WIFI_SERVICE); lockWifi = mgr.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOCK_NAME_WIFI); lockWifi.setReferenceCounted(true); Thanks On Mar 24, 5:59 pm, Mark Murphy mmur...@commonsware.com wrote: AuxOne wrote: The wi-fi lock sounds interesting

[android-developers] Re: No Network Connectivity in Service/AlarmManager Process.

2010-03-24 Thread AuxOne
If this is something that's supposed to be going on 24x7, since keeping the WiFi radio on all that time will drain the battery pretty good, I think you're more going to need to just hang tight in your doWakefulWork() until WiFi connectivity is restored. It is indeed 24x7. What do you mean by

[android-developers] Re: No Network Connectivity in Service/AlarmManager Process.

2010-03-24 Thread AuxOne
Just to let you know, I experimented with FULL_WAKE_LOCK. Not only did it not turn on the screen as it said it would, which is a good thing I guess, but it also doesn't seem to lock as effectively as the PARTIAL_WAKE_LOCK. Both seem to go into a deep sleep around 15-20 min of use and then WiFi

[android-developers] Re: File operation in Android

2010-03-21 Thread AuxOne
The filepath used for the File class has to include a special prefix. getFilesDir() or Environment.getExternalStorageDirectory() should get it. It's usually data/data/your package name/files/ for the phone memory and sdcard/ for the SDcard. -- You received this message because you are subscribed

[android-developers] How to start Activity from Service (if not already started)?

2010-03-19 Thread AuxOne
I've successfully implemented a BootReceiver, AlarmManager, and Service per the code here: http://github.com/commonsguy/cw-advandroid/tree/master/SystemServices/Alarm Inside the doWakefulWork method of the Service I am instantiating a few classes, but some of them require my Activity to be

[android-developers] Re: How to start Activity from Service (if not already started)?

2010-03-19 Thread AuxOne
On the whole, that's not a good idea. Popping up an Activity in the middle of whatever the user is doing will not be popular. There are certain circumstances where this is appropriate -- incoming VOIP calls, etc. -- but should not be done in general. Users will attack you with sharp pointy

[android-developers] Re: How to start Activity from Service (if not already started)?

2010-03-19 Thread AuxOne
Sorry if I seem confused... Call getContentResolver() in your Service. I'm also doing things like .sendBroadcast() to refresh the photo gallery, .openFileInput() from the Activity. So doesn't that mean GetContentResolver() won't work for me? Your example code has the Alarm scheduled from

[android-developers] Re: How to start Activity from Service (if not already started)?

2010-03-19 Thread AuxOne
Is there any advantages / disadvantages to having the Service start the AlarmManager, as opposed to the AlarmManager starting the Service? I though Services were more robust. On Mar 19, 10:50 am, Mark Murphy mmur...@commonsware.com wrote: AuxOne wrote: Like, what If the phone boots up

[android-developers] Broadcast Receiver / Service will only restart my activity once.

2010-03-17 Thread AuxOne
I have a single Activity application, within it I have a service which creates an AlarmManager and sends a broadcast to a broadcast Receiver. If the activity which starts the services dies, (ie. divide by zero), the broadcast receiver stops the old service which created the AlarmManager. It works

[android-developers] Re: Sending huge files with HttpsUrlConnection???

2010-03-13 Thread AuxOne
. E.g while ((len = is.read(buffer)) != -1){ os.write(buffer, 0, len); os.flush(); } I haven't looked at the underlying implementation of org.apache.http package in Android. But perhaps it is worth investigating if you continue to have problems. Makas On Mar 13, 8:17 am, AuxOne

[android-developers] Re: Sending huge files with HttpsUrlConnection???

2010-03-13 Thread AuxOne
. E.g while ((len = is.read(buffer)) != -1){ os.write(buffer, 0, len); os.flush(); } I haven't looked at the underlying implementation of org.apache.http package in Android. But perhaps it is worth investigating if you continue to have problems. Makas On Mar 13, 8:17 am, AuxOne

[android-developers] Re: Sending huge files with HttpsUrlConnection???

2010-03-13 Thread AuxOne
Sorry for the double post. I reloaded the page -- 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] Issues with Listener, back button, and onDestroy().

2010-03-13 Thread AuxOne
I have an application with a single Activity implemented as a singleton (in the AndroidManifest). It implements a Listener I wrote. When the application is first run the Listener works fine. When I use the home button to minimize it, then open it again it's still fine. But when I press the back

[android-developers] Re: Issues with Listener, back button, and onDestroy().

2010-03-13 Thread AuxOne
Murphy mmur...@commonsware.com wrote: AuxOne wrote: When the application is first run the Listener works fine. When I use the home button to minimize it, then open it again it's still fine. But when I press the back button then run it again from the application icon, the Listener doesn't work

[android-developers] Re: Issues with Listener, back button, and onDestroy().

2010-03-13 Thread AuxOne
, however the problem remains. Thanks! On Mar 13, 1:37 pm, Mark Murphy mmur...@commonsware.com wrote: AuxOne wrote: Shouldn't it suffice to just re-register the listener onCreate()? If you are talking about registering some listener with Android (LocationListener, etc.), then no. Please unregister

[android-developers] Re: Issues with Listener, back button, and onDestroy().

2010-03-13 Thread AuxOne
with. Thanks On Mar 13, 2:13 pm, Mark Murphy mmur...@commonsware.com wrote: AuxOne wrote: I've chosen singletonInstance in hopes of avoiding the problem I have now. It just seems to me from a memory perspective it could be better to have less instances of the application in memory

[android-developers] Contacts 2.0: How to create a Contact without an Account? (Unsynched)

2010-03-12 Thread AuxOne
My application loads/saves contacts, but I am having some confusion regarding the difference between unsynched contacts and those associate with a Google account. In the emulator when I create a contact manually the account it uses is Phone-only (unsynched). When I read the contacts via

[android-developers] Sending huge files with HttpsUrlConnection???

2010-03-12 Thread AuxOne
I have some Android code that can send files to my webserver using an HttpsUrlConnection, but when it tries to send larger files I get an OutOfMemory exception when opening the OutputStream. Can anyone offer some assistance? It looks something like this: httpConn = (HttpsURLConnection) new

[android-developers] How to run background Activites in Android?

2010-03-11 Thread AuxOne
My app runs on a 1 hour timer. I'd like it to run even if it's not in the foreground, and even if the phone is asleep, preferably even if the app isn't even running. I tried to accomplish this via AlarmManager and Services. The AlarmManager just seems to queue the process because nothing happens

[android-developers] How do I create a contact locally??? (no account needed)

2010-03-01 Thread AuxOne
When I create a contact on the emulator manually it says Phone-only in the top because it's creating it locally. When I check the contacts via my application, I see it there. When I create a contact via my application, the only method I've found is via a RawContact which requires an Account name