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
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
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
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
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
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)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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,
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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):
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
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,
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
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
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.
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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,
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
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 =
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 515 matches
Mail list logo