[android-developers] ADB over WiFi

2012-02-22 Thread Bret Foreman
I'm considering running ADB over a WiFi connection rather than via the USB cable. I've read a lot of blog posts about it but I want to verify a few things: 1) Is it true that the phone must be rooted? If so, is SuperOneClick the preferred tool to use for rooting? 2) Once I can connect with

[android-developers] Re: Poll: how many of you use a backend service or roll your own

2012-02-03 Thread Bret Foreman
I use QuickBase in one instance and Pachube in another. It's nice to use a back end that comes with a pre-built application-specific schema and there are quite a number of them out there for media, documents, collaboration, gaming, GIS, and so on. -- You received this message because you are

[android-developers] Calling startService from inside a BroadcastReceiver

2012-02-03 Thread Bret Foreman
I'm getting the following message in the logcat when I try to call startService (for an IntentService) inside a BroadcastReceiver: 02-03 15:50:02.944: E/AndroidRuntime(530): FATAL EXCEPTION: main 02-03 15:50:02.944: E/AndroidRuntime(530): java.lang.RuntimeException: Unable to instantiate service

[android-developers] Re: Calling startService from inside a BroadcastReceiver

2012-02-03 Thread Bret Foreman
I found the problem. The IntentService constructor cannot have an argument. -- 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

[android-developers] Re: Possible to protect settings menu with an android app?

2012-01-23 Thread Bret Foreman
I would put the settings you want to protect in an encrypted file on the phone. Then your IT department can generate and distribute a new file when they want to update everyone's settings. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Using multiple API versions

2012-01-23 Thread Bret Foreman
I've got a library built by another developer. I have the source, but I'd rather not hack it up in case he releases any updates that might over-write my changes. But he's got some problematic code in it. Namely: public BluetoothSocket createSocket(final BluetoothDevice device)

[android-developers] Re: Using multiple API versions

2012-01-23 Thread Bret Foreman
On Jan 23, 2:20 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Jan 23, 2012 at 5:09 PM, Bret Foreman bret.fore...@gmail.com wrote: But if I build with API 10 on run on Android 2.2.2 then my MainActivity throws a ClassNotFoundException. Something in the Activity constructor

[android-developers] Re: Using multiple API versions

2012-01-23 Thread Bret Foreman
Here's the exception I'm getting: 01-23 15:11:07.436: E/ AndroidRuntime(5677): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.sensor2cloud.raisin/ com.sensor2cloud.raisin.RaisinMainActivity}: java.lang.ClassNotFoundException: com.sensor2cloud.raisin.RaisinMainActivity

[android-developers] Re: Using multiple API versions

2012-01-23 Thread Bret Foreman
I made an exact copy of the project under a new name, did a rebuild, and the ClassNotFoundException went away. Chalk it up to another weird artifact of the Android build system. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Android VS Embedded Linux

2012-01-05 Thread Bret Foreman
On the outside chance that your set-top box uses the ATMega chip, Android has been ported: http://www.amarino-toolkit.net/index.php/home.html -- 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] Re: How to get technical support from Google?

2012-01-03 Thread Bret Foreman
I have yet to see a well formed Android question come up in this forum and not be discussed exhaustively by world-class experts. The only thing you don't get here is timely attention. But if you can wait a day or two for a response then this forum is as good as it gets. If you have very little

[android-developers] Re: Converting to string warning in preferences

2011-12-21 Thread Bret Foreman
OK, I'll ignore them. Probably some sort of legacy thing that nobody has the time to correct. -- 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

[android-developers] Converting to string warning in preferences

2011-12-20 Thread Bret Foreman
I'm getting the following warnings in the logcat when I start my PreferencesActivity. It looks like I've got some data-type issues in my preferences.xml file. I'm guessing I could hunt in R.java somewhere but I took a look and nothing stands out. How do I interpret these warning messages to find

[android-developers] Re: VerifyException with Android library project

2011-12-09 Thread Bret Foreman
then the resulting build is non-functional. On Dec 8, 5:03 pm, TreKing treking...@gmail.com wrote: On Thu, Dec 8, 2011 at 6:05 PM, Bret Foreman bret.fore...@gmail.com wrote: I'm looking for ideas of what else I might try. Some stuff I'd try. 1 - Add a new class to the library and try

[android-developers] Re: VerifyException with Android library project

2011-12-09 Thread Bret Foreman
kris, You're right, a bug is not an accurate way to describe a hard-to- diagnose failure mode that may be due to a possible platform misconfiguration. Perhaps we should call it job security for Android developers. My main point was to document a possible workaround in the forum in case others

[android-developers] VerifyException with Android library project

2011-12-08 Thread Bret Foreman
I have some Java code that I ported to Android. I created an Android project and imported the source files and also set the is library flag. Then, in the project that uses the new library, I added the appropriate imports, added the library project to the build path, and added the library to the

[android-developers] Re: VerifyException with Android library project

2011-12-08 Thread Bret Foreman
Here's an example of what I see in the logcat: 12-08 11:04:01.119: W/dalvikvm(949): VFY: unable to find class referenced in signature (Lcom/pachube/jpachube/Feed;) 12-08 11:04:01.139: E/dalvikvm(949): Could not find class 'com.pachube.jpachube.Data', referenced from method

[android-developers] Re: VerifyException with Android library project

2011-12-08 Thread Bret Foreman
No, the classes are wrappers around a web service. Nothing to do with Android system components. On Dec 8, 2:48 pm, TreKing treking...@gmail.com wrote: On Thu, Dec 8, 2011 at 4:40 PM, Bret Foreman bret.fore...@gmail.com wrote: However, at runtime I'm getting a VerifyException for each

[android-developers] Re: VerifyException with Android library project

2011-12-08 Thread Bret Foreman
directories. On Dec 8, 3:00 pm, TreKing treking...@gmail.com wrote: On Thu, Dec 8, 2011 at 4:54 PM, Bret Foreman bret.fore...@gmail.com wrote: No, the classes are wrappers around a web service. Nothing to do with Android system components. Is there a need for a Library Project

[android-developers] Re: VerifyException with Android library project

2011-12-08 Thread Bret Foreman
I guess I could just create a Java project rather than an Android project and then include the external jar in the Android project build. This might make debugging rather tricky, though. I'm not sure the debugger will know where to find the sources. -- You received this message because you are

[android-developers] Re: Android emulator is crashing upon startup

2011-12-08 Thread Bret Foreman
I've seen a problem similar to this after I updated my dev environment. I solved it by deleting and recreating the AVD, which is really a 30 second process. I'd start with that and see if it fixes your problem. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: VerifyException with Android library project

2011-12-08 Thread Bret Foreman
Kostya, That seems possible. The Java code was written without any idea that it would ever run on Android. But how would I tell from the logcat what standard Java API it might be using that is unsupported by Android? So far, I only see the VerifyException for the actual classes I'm trying to

[android-developers] Re: VerifyException with Android library project

2011-12-08 Thread Bret Foreman
kris, Then we're back to the project/library setup. The project builds without errors or warnings, yet fails at runtime. But as far as I know, there are very few steps in setting up and using an Android project and I've gone through the ones described in my OP. I'm looking for ideas of what else

[android-developers] Re: C/C++ struct in android

2011-11-24 Thread Bret Foreman
If the OP is really concerned about performance he can create an array of objects and implement his own protocol for reusing them. Then after the initial creation of the array, no objects need to be either created or destroyed. -- You received this message because you are subscribed to the

[android-developers] Re: C/C++ struct in android

2011-11-24 Thread Bret Foreman
On Nov 24, 11:44 am, Lew lewbl...@gmail.com wrote: Bret Foreman wrote: If the OP is really concerned about performance he can create an array of objects and implement his own protocol for reusing them. Then after the initial creation of the array, no objects need to be either created

[android-developers] Extreme battery life

2011-11-22 Thread Bret Foreman
I'm looking to put a phone in a remote location off the grid to report back some sensor data once a day. I can buy after-market extended-life batteries for many popular phones and I'm wondering what kind of life I might get from this arrangement. The big batteries hold about 4000mAh. I'd like the

[android-developers] Re: Extreme battery life

2011-11-22 Thread Bret Foreman
On Nov 22, 1:44 pm, Mark Murphy mmur...@commonsware.com wrote: If your CPU is in sleep mode except during a small window to gather and upload your data (e.g., using AlarmManager) maybe you could get this sort of life, but I'm dubious it can make it 4 months. After all, the battery loses power

[android-developers] Re: Extreme battery life

2011-11-22 Thread Bret Foreman
A little research found that my Samsung Droid Charge uses the ARM Cortex A8. Here's the datasheet for the Freescale version of that chip: http://cache.freescale.com/files/32bit/doc/data_sheet/IMX50CEC.pdf Note that the top of page 24 describes a Stop Mode with a maximum power draw (at 25 degrees

[android-developers] Re: Extreme battery life

2011-11-22 Thread Bret Foreman
On Nov 22, 2:52 pm, Mark Murphy mmur...@commonsware.com wrote: If you want, give me an idea of what sort of device you'd want to be running, and I can try to find something roughly equivalent here in my Secret Mountain Lair. I'll charge it up, put it on airplane mode, and let it sit for a

[android-developers] Re: Galaxy Nexus can't go in USB Host mode, no mouse no usb stick.

2011-11-22 Thread Bret Foreman
What does the logcat say? On Nov 22, 2:24 pm, sblantipodi perini.dav...@dpsoftware.org wrote: As title. Is there some android engineer here who can explain me why galaxy nexus isn't able to go into usb host mode please? I connected mouse, keyboards, usb stick, nothing works. WHy? Thanks.

[android-developers] Re: Extreme battery life

2011-11-22 Thread Bret Foreman
On Nov 22, 3:33 pm, Tommy Hartz droi...@gmail.com wrote: Have you considered a solar phone charger? The environment is too dirty for a solar charger. It doesn't take much dust to cut the panel efficiency down to almost nothing. -- You received this message because you are subscribed to the

[android-developers] Setting the Java build path in imported project

2011-03-25 Thread Bret Foreman
I imported a project from another developer and I'm trying to get it to build. I'm getting the following error: The type java.lang.Enum cannot be resolved. It is indirectly referenced from required .class files From this code: public enum ChartType { DEFAULT_READING_CHARTS,

[android-developers] Re: Setting the Java build path in imported project

2011-03-25 Thread Bret Foreman
So I found the setup problem, but that leads to another error. When I try to add the Android 2.2 library to the project I get the error unable to get system library for project. I'm guessing there is some path set somewhere in the project setup that is supposed to point to the Android library and

[android-developers] handling the results of the DatePickerDialog

2011-03-17 Thread Bret Foreman
I have a set of buttons (in TableRows), each showing a date on its face. When one of those buttons is pressed, it calls ShowDialog, which creates a DatePickerDialog with the data from the button loaded into the picker. This all works great. The problem arises when I want to update the text on the

[android-developers] Re: handling the results of the DatePickerDialog

2011-03-17 Thread Bret Foreman
The buttons are generated on the fly so they do not have IDs. However, I can use setTag to tag them with unique numbers when they are created. However, I'm not sure how I would find the button from within the onDateSet. I'd need to get the content View of the activity from which the dialog was

[android-developers] Bundling two apps in the Marketplace

2011-03-01 Thread Bret Foreman
I've built a ContentProvider app that wraps up a set of web services and presents them for use by other apps. If other developers decide to use my ContentProvider app, what is the simplest business model for selling it? I'd like to avoid complex licensing and reselling agreements with the

[android-developers] ContentProviders and authentication

2011-02-25 Thread Bret Foreman
I'm making a ContentProvider that is really a wrapper around some web services. The web services have the notion of a token, where you pass the server some authentication credentials and it passes back a token good for a period of hours. The authentication takes some time so you don't want to do

[android-developers] Re: ContentProviders and authentication

2011-02-25 Thread Bret Foreman
So what I'm thinking of doing is to have two ContentProviders in one project that share token storage. One CP is just for authentication and the other is for access. The auth CP just implements an insert call that takes the credentials as arguments. All the other calls go through the second CP

[android-developers] An interesting architecture question for xml resources

2011-02-24 Thread Bret Foreman
I've created a set of handy xml parsers for the preferences file (R.xml.preferences) and created a class called PrefrencesHelper. This worked fine when the class was in the main project. But I want to share PrefrencesHelper as a library. In the non-lib version, I instantiate the parser like this

[android-developers] Re: An interesting architecture question for xml resources

2011-02-24 Thread Bret Foreman
Actually, Xavier's method works great and makes the code pretty simple. Just as he predicted, R.xml.preferences gets overridden. This would not be a good choice if people used preference files with different names, but as far as I can tell, that never happens. -- You received this message

[android-developers] Verify runtime exception

2011-02-22 Thread Bret Foreman
I'm getting runtime verify exceptions of the following form: 02-22 10:38:47.411: ERROR/dalvikvm(27888): Could not find class 'com.mylib.MyClass', referenced from method com.myproject.MyActivity.onCreate I can move MyClass from the Android library project into the main project, in which case the

[android-developers] Re: Implement Progress Bar for File Download

2011-02-22 Thread Bret Foreman
Check this out: http://developer.android.com/reference/android/app/ProgressDialog.html -- 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,

[android-developers] New to Ant build and I think my project setup has problems

2011-02-22 Thread Bret Foreman
I'm new to building my Android projects with Ant. The first thing I did was export my Eclipse projects to build.xml files. Then I did an ant clean and an ant build. I'm getting errors concerning the R class: [javac] Compiling 17 source files to C:\Users\Bret\workspace2\QuickDroid\bin

[android-developers] Re: New to Ant build and I think my project setup has problems

2011-02-22 Thread Bret Foreman
I've been browsing through the build.xml files of different examples found online and there does not appear to be any consistent standard for how the build environment is organized. The android tool appears to manage/modify part of the build.xml file and then other parts are intended to be

[android-developers] Re: Incorrect RowId with SQLite using FTS3 on Android 2.2

2011-02-22 Thread Bret Foreman
According to my reading of the SQLite docs, the rowid is guaranteed to be monotonically increasing but NOT sequential. And I would be suspicious that your export is renumbering the rowids as part of the export process. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: ClassNotFoundException when using Android libraries

2011-02-21 Thread Bret Foreman
I should mention that this is using 2.2. I'm going to switch to 2.3 and see what that does. On Feb 21, 2:51 pm, Bret Foreman bret.fore...@gmail.com wrote: I recently moved some code into libraries and I'm now getting the following runtime error. I rebuilt everything from the ground up

[android-developers] Re: ClassNotFoundException when using Android libraries

2011-02-21 Thread Bret Foreman
Identical results with 2.3. -- 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] ClassNotFoundException when using Android libraries

2011-02-21 Thread Bret Foreman
I recently moved some code into libraries and I'm now getting the following runtime error. I rebuilt everything from the ground up but the error persists. Any ideas about what might be wrong? I haven't changed the code from when it worked in the monolithic form, just moved some classes into

[android-developers] Re: ClassNotFoundException when using Android libraries

2011-02-21 Thread Bret Foreman
I think I found the source of the trouble, but I'm not sure how to fix it. During the course of building the project from scratch, I changed its name. Somehow, there is an auto-generated java file in the gen folder by the old name. So the next question is, where are the settings that tell Eclipse

[android-developers] Re: ClassNotFoundException when using Android libraries

2011-02-21 Thread Bret Foreman
Aha! Eclipse automagically stuck in an import com.old_package_name.R into all the project files. -- 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

[android-developers] imports not working with Android libraries

2011-02-21 Thread Bret Foreman
So after rebuilding all my library projects and main project from the ground up, it's still clear that classes in Android libraries are not being properly imported. There are no build errors, but at runtime I see errors like this: 02-21 15:53:43.042: ERROR/dalvikvm(26040): Could not find class

[android-developers] Re: imports not working with Android libraries

2011-02-21 Thread Bret Foreman
Well, I wanted to take one more try at getting things to work with Eclipse. But building it up from scratch very carefully has convinced me that Eclipse can't handle Android library projects. This is probably why I've never seen a working example of one. Moving even one class into an Android

[android-developers] Android library projects in Eclipse

2011-02-18 Thread Bret Foreman
It looks as if Android library projects simply don't work in Eclipse. On my first try, I got everything to build but then got runtime errors from Verify Exceptions. Bad bytecodes in other words. So I reconstructed the main project and library projects from scratch. Half-way through that process,

[android-developers] Eclipse - ANT tutorial?

2011-02-18 Thread Bret Foreman
I've reached the limits of what Eclipse can do as far as building my projects so I need to switch my projects to ANT. Is there a tutorial for this somewhere? I've heard that Eclipse can generate ANT scripts, which would be a good place to start with my existing projects. -- You received this

[android-developers] Diagnosing build path errors

2011-02-17 Thread Bret Foreman
I'm getting the message The project cannot be built until build path errors are resolved, and then it shows one of my libraries as the offending resource. The problem is that I don't know the exact build path problem. Is there a log file somewhere with a more detailed message? -- You received

[android-developers] Re: Diagnosing build path errors

2011-02-17 Thread Bret Foreman
of the library project but I'm not sure where to look for more info. On Feb 17, 9:39 am, Bret Foreman bret.fore...@gmail.com wrote: I'm getting the message The project cannot be built until build path errors are resolved, and then it shows one of my libraries as the offending resource. The problem is that I

[android-developers] Re: Diagnosing build path errors

2011-02-17 Thread Bret Foreman
Besides just adding the library in the Android properties, what else do I need to do to make the main project dependent on the library project? On Feb 17, 10:34 am, TreKing treking...@gmail.com wrote: The log cat should show a more descriptive message of the error (like missing required gen

[android-developers] Re: Diagnosing build path errors

2011-02-17 Thread Bret Foreman
And nothing at all appears in the logcat during the build process. The only error messages I see are in the Problems window. -- 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] Re: Diagnosing build path errors

2011-02-17 Thread Bret Foreman
Tre, I think you're on track with the dependency idea but I'm not sure how to correct it. I notice that the gen folder in the affected library does not get built when I do a clean/rebuild of the project and it's libraries. -- You received this message because you are subscribed to the Google

[android-developers] What causes a java.lang.VerifyError?

2011-02-17 Thread Bret Foreman
After reorganizing my project and moving some code into library projects, I now see the logcat below. Any idea why this might happen? 02-17 12:47:30.668: ERROR/AndroidRuntime(12179): java.lang.VerifyError: com.quickdroid.ThreeLevelListActivity 02-17 12:47:30.668: ERROR/AndroidRuntime(12179):

[android-developers] Re: What causes a java.lang.VerifyError?

2011-02-17 Thread Bret Foreman
has a few different causes, mostly stemming from a bad set of bytecode -- something existed at compile time that does not exist at run time. On Thu, Feb 17, 2011 at 3:52 PM, Bret Foreman bret.fore...@gmail.com wrote: After reorganizing my project and moving some code into library projects, I

[android-developers] Re: What causes a java.lang.VerifyError?

2011-02-17 Thread Bret Foreman
I did a clean rebuild and got the same very uninformative error in the logcat. I'll try stepping through the code and see if I can isolate the call that's causing it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: What causes a java.lang.VerifyError?

2011-02-17 Thread Bret Foreman
Well, the error occurs before OnCreate so it's somewhere in the framework. My only code changes were to move some classes into libraries and change some methods from protected to public. I guess the library setup is causes this somehow. -- You received this message because you are subscribed to

[android-developers] Re: What causes a java.lang.VerifyError?

2011-02-17 Thread Bret Foreman
no choice now, I need to share some code among apps. On Feb 17, 1:55 pm, TreKing treking...@gmail.com wrote: On Thu, Feb 17, 2011 at 3:49 PM, Bret Foreman bret.fore...@gmail.comwrote: My only code changes were to move some classes into libraries and change some methods from protected to public. I

[android-developers] Re: What causes a java.lang.VerifyError?

2011-02-17 Thread Bret Foreman
Yeah, JARing things up might be my best option. I tried the Android lib stuff when it first came out and I couldn't get the examples working. Now I've spent serious time on it and it fails with a completely useless error message. This is a sign of features that are not yet ready for prime time.

[android-developers] Re: What causes a java.lang.VerifyError?

2011-02-17 Thread Bret Foreman
I looked farther up the logcat from the exception and saw messages like this: 02-17 16:39:57.841: WARN/dalvikvm(15019): VFY: unable to find class referenced in signature (Lcom/preferenceshelper/PreferenceHelper;) 02-17 16:39:57.849: ERROR/dalvikvm(15019): Could not find class

[android-developers] Getting the application icon to show in the launcher

2011-01-24 Thread Bret Foreman
I created a simple app with a single activity and a 64X64 pixel png icon. But I'm seeing the default Android icon instead of my drawable. The icon is in res/drawable/icon.png and the manifest is as shown. I also tried adding an icon attribute to the activity but that didn't change - it's still

[android-developers] Re: Getting the application icon to show in the launcher

2011-01-24 Thread Bret Foreman
It didn't help. I resized the image, un-installed the app, did a clean build, and re-installed. Still getting the default icon. -- 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] Re: Getting the application icon to show in the launcher

2011-01-24 Thread Bret Foreman
That was it! I knew it had to be something simple. A bunch of default icons in the drawable-resolution folders. -- 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

[android-developers] Re: SQLite Issues - Database seems to be corrupt on occasions. Missing tables etc.

2011-01-24 Thread Bret Foreman
I've seen this exception when one thread is adding a table to the schema and another thread is accessing a different table at the same time. This is because SQLite maintains a master list of tables, which is locked for both read and write access by all threads while any thread is doing a table

[android-developers] Re: Passing parameters during installation

2011-01-21 Thread Bret Foreman
You could give your users a registration button that exchanges data with your server. This would allow you almost infinite options for doing unique setup for each user. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] SIGSTKFLT from DefaultHttpClient

2011-01-20 Thread Bret Foreman
I run a set of AsyncTasks that are using the DefaultHttpClient to access a server. From time to time, I'm seeing the following error, which appears to be due to some sort of lock contention. This only happens when I'm driving the system hard (15 AsyncTasks at once). Is it possible that the client

[android-developers] Re: Scanner USB and android tablet

2011-01-12 Thread Bret Foreman
It's much simpler to get open source barcode image reader Java classes and have the user snap a picture of the barcode. On Jan 12, 9:07 am, Marcin Orlowski webnet.andr...@gmail.com wrote: On 12 January 2011 17:59, Lewis lewisandrewba...@googlemail.com wrote: I highly doubt such a thing exists

[android-developers] Re: Solution for P2P messaging on Wifi LAN

2011-01-11 Thread Bret Foreman
This looks interesting: http://wlan-lj.net/wiki/Podrobnosti/MeshApp -- 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] Re: List adapter listview

2011-01-11 Thread Bret Foreman
The SQLite query has a sort field. That's the way to go. On Jan 11, 7:01 pm, fourhend...@gmail.com fourhend...@gmail.com wrote: Is it possible to order the results of a listadapter from a database? Or do I need to change the sql query to somehow sort it? -- You received this message because

[android-developers] Android SDK and AVD Manager - permission denied: connect

2010-12-29 Thread Bret Foreman
I'm getting the following message from the version 8 Android SDK and AVD Manager when I try to refresh the sources: Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason: Permission denied: connect I have no trouble browsing to the URL shown above. I am not using

[android-developers] Re: Android SDK and AVD Manager - permission denied: connect

2010-12-29 Thread Bret Foreman
I also tried the CLI version android.bat update sdk and got the same results. -- 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

[android-developers] Re: How to store date and time in database

2010-12-29 Thread Bret Foreman
Without even considering the computational aspects of this issue, there are at least 3 definitions of noon depending on how you measure a day: http://en.wikipedia.org/wiki/Earth%27s_rotation On Dec 28, 7:41 pm, Bob Kerns r...@acm.org wrote: The Wikipedia article on Unix time indicates that

[android-developers] Re: CPU cost of a semi-infinite loop

2010-12-29 Thread Bret Foreman
This is very similar to a problem I solved when I was testing disk I/O subsystems and needed to generate I/O requests at fixed intervals of a few hundred per second. What I did was to take a timestamp at the beginning of the test and set up a loop with a sleep in it. The initial sleep value was

[android-developers] Instructions to manually install an SDK

2010-12-29 Thread Bret Foreman
For reasons that I cannot discover, on my Windows Vista platform, the version 8 Android SDK Manager cannot access the repository URL at https://dl-ssl.google.com/android/repository/repository.xml nor the alternate directory at http://dl-ssl.google.com/android/repository/repository.xml. However,

[android-developers] Re: How to store date and time in database

2010-12-27 Thread Bret Foreman
Here's a handy reference article: http://en.wikipedia.org/wiki/Unix_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 To unsubscribe from this group, send email to

[android-developers] Re: store string array in database

2010-12-27 Thread Bret Foreman
I would use an enum for the Weekdays like this enum Weekdays { SUNDAY , MONDAY, TUESDAY, ...} And then store the ordinal in the DB like this: int ordinal_to_store_in_DB = weekday.SUNDAY.ordinal() And retrieve the values from the DB like this: Weekdays day =

[android-developers] Re: Generating a unique widget ID

2010-12-27 Thread Bret Foreman
You could use a static value in your widget class. Increment the static value in the constructor and use that to initialize an ID that is local to the instance. Basically the classic singleton pattern. You can add serialization for the static if you plan to support multi- threading but that's not

[android-developers] Re: Generating a unique widget ID

2010-12-27 Thread Bret Foreman
The view ID is intended to be used inside the scope of an onClick() or some other onEvent() method. In that case, the onEvent method was set in the initialization for the widget, which will be unique to your widget. In other words, it's always one of your custom widgets. I wouldn't use a view ID

[android-developers] Re: Android random time delayed user abortable infinite loop

2010-12-27 Thread Bret Foreman
Well first, you need a call to finish() somewhere in order to exit the Activty. -- 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

[android-developers] Re: Can't debug/install applications into Tablet with Android 2.1 using ADB commands

2010-12-27 Thread Bret Foreman
This sounds like an issue for the platform (android-platform) group. They'll know more about the quirks of your particular hardware. -- 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] Re: How do you manipulate content in an Activity from an external class or another Activity?

2010-12-26 Thread Bret Foreman
Or you could register a receiver in one activity and post Intents from another. That's how I do it. -- 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

[android-developers] Re: Getting a strange MessageQueue warning w/ DefaultHttpClient in AsyncTask

2010-12-25 Thread Bret Foreman
I found the problem easily after a good night's rest. I was running the AsyncTask inside an IntentService. So the Service exits, thinking it is finished and the AsyncTask's handler goes away. Easy to fix. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Horizontal ScrollView

2010-12-25 Thread Bret Foreman
Use this: http://developer.android.com/reference/android/widget/HorizontalScrollView.html -- 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

[android-developers] Getting a strange MessageQueue warning w/ DefaultHttpClient in AsyncTask

2010-12-24 Thread Bret Foreman
I'm doing a set of HTTP posts (using DefaultHttpClient), each in its own AsyncTask. Functionally, it works fine but I'm getting the warning below in the log. This warning appears for each instance of the AsyncTask. I'm guessing that the HTTP Client in posting a message (to itself?), then the task

[android-developers] Re: XmlSerializer issue

2010-12-24 Thread Bret Foreman
Call XmlSerializer.flush() -- 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...@googlegroups.com

[android-developers] Re: Available databases for Android

2010-12-14 Thread Bret Foreman
http://www.theregister.co.uk/2010/03/24/oracle_berkeley_db_android/ On Dec 14, 8:22 am, Jake Basile jakerbas...@gmail.com wrote: The only built in option is SQLite, available under android.database.sqlite. I'm not aware of anything else but there could be third party ones available. -- You

[android-developers] Re: Available databases for Android

2010-12-14 Thread Bret Foreman
stringent data integrity requirements. Being able to do incremental backups, roll transactions backward and forward, create hot fail-overs...do you really want all that on a phone? On Dec 14, 8:28 am, Bret Foreman bret.fore...@gmail.com wrote: http://www.theregister.co.uk/2010/03/24

[android-developers] Re: Use shared preferences on non-app directory file

2010-12-14 Thread Bret Foreman
You should use Amazon S3 for this purpose. Not only will your data be protected when the user clears data on the phone but the user can access their data on multiple phones. Here's the (beta) library from Amazon: http://aws.amazon.com/sdkforandroid/ -- You received this message because you are

[android-developers] Re: Available databases for Android

2010-12-14 Thread Bret Foreman
Here's a list of the standard DB performance metrics: http://www.tpc.org/tpcc/ Which ones are you interested in? -- 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

[android-developers] Re: Overview for which API calls require which permissions?

2010-12-14 Thread Bret Foreman
Be sure and link your results into here: http://en.wikipedia.org/wiki/Google_android so others can easily find it. Google does not appear to have any facility for organizing community generated documentation. And since we don't want to be re-inventing the wheel, let's keep the community stuff

[android-developers] Re: I need an activity context, but from a class that does not extend Activity

2010-12-14 Thread Bret Foreman
What Activity methods would a Row class want to access? If it doesn't need any, then there's no reason to subclass Activity when you define Row. -- 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] Re: Overview for which API calls require which permissions?

2010-12-14 Thread Bret Foreman
Actually, I think the Android documentation is pretty good. It could be better and I do think Google should put a little more effort into improving it and a little less into developing new features. But that's really a matter of trimming the sails, not a complete change of tack. -- You received

[android-developers] Re: Repeating background does not repeat

2010-12-10 Thread Bret Foreman
This looks like it would be easy to package up a test case and post in the Android bug 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

[android-developers] onActivityResult and back button

2010-12-09 Thread Bret Foreman
If Activity A calls Activity B with startActivityForResult and the user hits the back button in Activity B, will the onActivityResult method in activity A be called? In other words, should I override onBackPressed in Activity B and set a result code? -- You received this message because you are

  1   2   3   4   5   6   >