We can work out ways to deal with this question, but I would ask
first: How restrictive are you trying to be?
For example the user might have a Gmail account set up, and both
platform Email and K9 installed configured.
Are you sure you want to restrict them to Email only?
The user experience
It's actually quite useful and doable to write pure unit tests
within the InstrumentationTestRunner framework.
For a working example, please take a look at ApiDemos, in the tests/
directory, and look for classes that extend the TestCase class.
Benefits of doing it this way:
1. Although you
You'll probably get better results asking this question on the
android-platform mailing list, as the gallery is part of the platform
distribution, and folks on that mailing list are working on apps like
that.
On Sun, Mar 22, 2009 at 4:01 PM, yves...@gmail.com yves...@gmail.com wrote:
I just
Portakai-
One of the specific goals of the ADP was to provide developer phones
in countries where the G1 was not available. As you know, the G1
originally shipped in just one country (U.S.) while the ADP (if I
recall correctly) shipped in 18 countries.
We included as much software as we could,
Have you looked at storing your files in the assets folder?
You can then use getContext().getAssets().openFd(filename) to open
them by name.
On Sat, Mar 7, 2009 at 2:35 PM, Hayden hayden.stew...@gmail.com wrote:
Is there a way to access a raw resource file by having its filename
in a
Larry-
You'll probably do better asking this question on android-platform or
android-porting. The SDK only supports shipping devices with their
screen resolutions.
On Sat, Mar 7, 2009 at 10:47 PM, larry Ming mingla...@gmail.com wrote:
My phone's resolution is QVGA so the buttons of dialer
There are numerous examples of this in ApiDemos - look for AutoCompleteTextView.
On Tue, Feb 24, 2009 at 3:05 AM, manoj manojkumar.m...@gmail.com wrote:
Hi friends,
I would like to enable search functionality to EditText.
my requirement is like this:
when some one types with some
Henry Long-
Please don't send repeated test messages to this mailing list. We
received all of them. You are creating unnecessary traffic for many
subscribers.
On Mon, Feb 23, 2009 at 3:12 AM, Long henry.l...@qisda.com.tw wrote:
test
On Feb 22, 6:53 am, Tote tot...@gmail.com wrote:
Also, make supports multi-threaded compilation, but not by default -
you're probably building with one core and idling the other(s). On
any multi-processor or multi-core system, you can obtain an immediate
speedup by allowing make to use more CPU resources.
Every system is different, so there's
Hello Markus -
I think we have tried to be as clear as we possibly can on this (and
related topics). For application development, we only support the use
of API's, intents, or any other resources that have been provided in
the SDK.
I think that the blog post provided in another message
You might find relevant discussion on this topic (how to start stop
activities) in the android-beginners mailing list.
http://developer.android.com/community/index.html
Good luck and welcome to Android!
Andy
On Fri, Feb 13, 2009 at 6:33 AM, Asif k asifk1...@gmail.com wrote:
include all the
Hello Marty,
Unfortunately, the search dialog was not designed to be extended in
this way. This was not meant to protect it so much as a consequence
of the data-driven design of the Search system.
If you can describe some of the changes you have in mind, perhaps we
can assist with some good
Meryl-
It's hard to say with only a partial snippet, but I'm guessing that
you're using an InstrumentationTestCase or possibly an
ActivityUnitTestCase. You'll be better served here using an
ActivityInstrumentationTestCase, which will start your activity for
you, and then you should be able to
Ron-
This is not comprehensive, but here is one example:
You can create an Activity that serves to accept Intents, process or
react to them in a non-UI way, and then either send a new Intent or a
response.
Here's how: Do all of the work in onCreate(), never call
setContentView(), and on the
Pablo--
There is support within the TestCase subclasses for running all or parts of
your tests on the UI thread - that might solve your issue.
--Andy
On Jan 28, 2009 11:48 PM, J. Pablo Fernández pup...@pupeno.com wrote:
Hello,
At the beginning of my onSaveInstanceState I was calling
Pablo--
Unfortunately, you cannot do this. We've made some improvements in this
area for cupcake, but if you are building against the current sdk, you won't
see them yet.
--Andy
On Jan 29, 2009 1:31 AM, J. Pablo Fernández pup...@pupeno.com wrote:
Hello,
When implementing an
Pablo-
ActivityUnitTestCase is extremely limited in its support for
operations that require interfacing with the rest of the system,
because the Activity is never attached to the Activity Manager or the
rest of the runtime. It may be possible to fix this particular case
(so you can make this
Is there a specific reason you don't want to put your Activity in the
manifest? Understanding that may help provide a better suggestion for
you.
On Fri, Jan 23, 2009 at 5:54 AM, Mark Murphy mmur...@commonsware.com wrote:
AlexKar wrote:
Can I launch unregistered Activity directly from my
Nitichandra-
Congratulations on releasing your application, but unless you're
planning to release and discuss its source code, can you please make
announcements like this in the android-discuss mailing list?
Thanks,
Andy
On Thu, Jan 22, 2009 at 6:34 AM, nitichandra ingle
nitichan...@gmail.com
Wrong list. Please see android-porting, which covers topics such as this.
http://source.android.com/discuss for more information.
On Wed, Jan 21, 2009 at 12:45 AM, Mallesh annya20i...@gmail.com wrote:
Hi All,
I am working on android kernel on
OMAP 2430 board.
After initial display
Wrong list. Please see android-platform, which covers topics such as this.
http://source.android.com/discuss for more information.
On Tue, Jan 20, 2009 at 12:24 AM, Gerald myq...@gmail.com wrote:
Hi,
I want to customize some built-in applications on android, for example
Launcher or
Jalandar-
If you're having trouble operating one of the built-in applications, I
think android-discuss would probably be a better board for asking
about discussing it.
See http://source.android.com/discuss for more information.
Good luck,
Andy
On Tue, Jan 20, 2009 at 4:16 AM, jalandar
Wesley-
There are lots of ways to pause and resume activities. Why don't you
repost with a more comprehensive description of what you're trying to
do (what user experience you are trying to create), and we can go from
there.
--Andy
On Mon, Jan 19, 2009 at 11:46 PM, Wesley Sagittarius
Questions about using K9 are probably better directed to the K9
development team, or on a K9-related discussion list. See
http://code.google.com/p/k9mail/ for more information.
On Mon, Jan 19, 2009 at 10:40 AM, BeWillDir wmmichael...@gmail.com wrote:
This oddly under-informative subject
This is probably better discussed on android-discuss (if interested in
talking about the browser) or android-platform (if you're interested
in trying to fix it...)
See http://source.android.com/discuss for more information.
On Fri, Jan 16, 2009 at 12:44 PM, Chister Nordvik cnord...@gmail.com
Sorry to keep repeating this, but native development is *not*
currently supported by the SDK. This mailing list is for discussion
of application development using the SDK. You may want to try
android-platform or android-discuss.
See http://source.android.com/discuss for more information.
Although there is a long-term goal to move in that direction, not all
of the platform applications can be built in the SDK. Sorry
Andy
On Wed, Jan 14, 2009 at 8:48 PM, Android malapati.raghaven...@gmail.com wrote:
hi all ,
Thanks for your help and valuable comments. here one quick
Don-
Here is one way to do this:
In your activity declaration, add this interface:
MyActivity extends Activity implements OnItemClickListener
Then implement as follows:
/**
* Implements OnItemClickListener
*/
public void onItemClick(AdapterView? parent, View view, int
Morris-
Questions about building Android code from the open source
repositories should be sent to the android-platform mailing list.
This list is for discussion of developing android apps using the SDK.
You can find more information at http://source.android.com/discuss
Thanks
Andy
On Tue,
Hi Atish-
Questions or issues regarding the open source build or debugging
platform applications should be posted to android-platform. This list
is for discussion development of apps using the published SDK.
See source.android.com/discuss for more information
Thanks
Andy
On Tue, Jan 13, 2009
tmat-
You might want to try this:
1. Override your activity's onKeyDown() method.
2. If the KeyEvent is KEYCODE_BACK, display your dialog
3. If your dialog returns YES, simply call Activity.finish()
Remember that when you override onKeyDown(), you must return true if
you handle the key
Hi Amit-
Questions or issues regarding the open source build or debugging
platform applications should be posted to android-platform. This list
is for discussion development of apps using the published SDK.
See source.android.com/discuss for more information
Thanks
Andy
On Tue, Jan 13, 2009
Koert-
Instead of looking at Instrumentation.html, I would recommend focusing
(for now) on the Junit-based test environment that is already set up
for what you are trying to do.
InstrumentationTestCase is a good place for writing tests that work
mainly by manipulating the UI (e.g. when I click
As has been noted before, native code JNI development is not
currently supported on the SDK, and probably is better off discussed
in the android-platform or android-discuss boards.
See http://source.android.com/discuss for more information.
--~--~-~--~~~---~--~~
You're going to have to tell us a bit more about what's happening,
what you expect to see, and what you actually observe
On Mon, Jan 12, 2009 at 11:44 PM, jalandar jagtap...@gmail.com wrote:
email client of my emulator (sdk r2) is not working, account is not
getting created.
what the
Unless an SDK is released with multi-touch support, this discussion is
probably better off in android-discuss or android-platform.
(Just trying to cut down on cross-posting)
On Sun, Jan 11, 2009 at 2:34 PM, luke luke.hu...@gmail.com wrote:
My personal take is that there is a whole lot of
Dan-
When one holds the home key for long key press, it invokes a
notification dialog box with a list of recent applications. Is there a
reason to limit that list to 6 ??
Put simply, it was specified that way in the UI design.
Where in the git repository can I find related to this long
You'll have better luck getting cupcake-related answers on the
android-platforms mailing list. The SDK (which this list covers) does
not support cupcake yet.
On Thu, Jan 8, 2009 at 8:03 PM, Dennis dong...@gmail.com wrote:
Dear all,
I tried to launch IM application on cupcake, but failed...
Mukesh-
You'll probably find more useful information on the android-beginners
mailing list. See http://source.android.com/discuss for more
information.
Good luck!
On Wed, Jan 7, 2009 at 5:13 AM, msmsmukesh msmsmuk...@gmail.com wrote:
Hi
I m new to this android. I know java nly. Anyone pls
Anduzer -
Questions about the internals of the platform source code will
probably better addressed in the android-platform mailing list. See
http://source.android.com/discuss for more details.
Good luck!
On Thu, Jan 8, 2009 at 5:49 AM, Manohar Mahapatra androidu...@gmail.com wrote:
Hi
I
Tyler,
Any time you see a problem like this (where an application stopped
unexpectedly) the most useful thing you can do is monitor the log
output (using adb logcat), capture the stack trace of the actual
crash, and share that. Otherwise there's just no telling what is
going wrong.
--Andy
On
This is a great topic, but is probably more suited to android-platform.
On Wed, Jan 7, 2009 at 11:05 PM, __ luke.hu...@gmail.com wrote:
With the phone sitting *idle*, Dalvik GCs every 3.5sec on average. A
GC usually takes ~260ms. That means that a whole 7.4% of the time it
is garbage
Can you please describe what you're looking for, in a bit more detail,
and perhaps what you're hoping to do with it?
On Sat, Dec 27, 2008 at 1:33 AM, ena enu1...@gmail.com wrote:
Hi All,
How to get Email log???
Please help me out...
Thanks in Advance
Cindy (or April)-
Will finish() be called every time?
As I wrote before, unless you override the key handlers, pressing the
back button *will* call finish().
so current activity will be
totally destroyed (onDestroy() will be called)?
Please refer to the documentation I sent you the link
Unless you've overridden the key handlers, clicking back will call
finish() on your activity, which will cause the activity to exit via
the standard transitions.
The transitions between activities are documented in
http://code.google.com/android/reference/android/app/Activity.html.
It's
can do this ??
Thanks !
On Jan 2, 2:39 pm, Andrew Stadler stad...@gmail.com wrote:
Downloaded apps (such as those developed with the SDK) cannot be
installed into the system directory.
Perhaps if you can better describe what you are trying to do and which
permissions your app
This suggestion is correct- use the intent extras to send your own
data back-and-forth to the sub-launched activity. Here are a couple
of things to consider:
(1) If at all possible, the sub activity should not crash if expected
extras data is not found in the launching intent. (Null pointer
Here is a quick reply of things to look at (not a tutorial):
* See samples/ApiDemos which has examples of different kinds of tests.
*ALWAYS* start here; If you can't get these working, there's no
point in trying to get your own tests working.
* To test standalone code (not Activities) you'll
Dr. Lu:
As you may have seen from other posts, this mailing list is for
developers using the SDK to create applications for Android devices.
Questions about building from open source should be addressed to one
of the open source or platform lists described at
http://source.android.com/discuss.
Moto Mark-
You can also do this at compile time by adding
android:theme=@android:style/Theme.NoTitleBar
to the Activity declaration(s) in your manifest.
Hint: Poke around the ApiDemos sample app, you can find almost may
examples of UI variations, and then check the source code to see how
Sukumar-
The activity manager assumes that your code has died, because it did
not return from the broadcast receiver in a reasonable amount of
time. In general, receivers should execute very very quickly, and any
long-term operations (such as *any* network operations) should be on
their own
The way to send my activity to the background is to send another
activity to the foreground... All you have to do is create an Intent
and call startActivity().
On Thu, Dec 11, 2008 at 3:17 AM, sthustfo [EMAIL PROTECTED] wrote:
Hi,
How do I send my activity to background when user presses a
Ward-
This is not a Dalvik bug. It's a common side-effect of the way Java
inner classes work. Not only will your approach not work properly,
but it will cause significant memory leaks (the back-trail of
outer-class this pointers will prevent the previous Activity from
being GC'd).
If you
David-
This is already supported in both the Email and Gmail apps. Is there
a reason that you believed that it wasn't?
Here is the raw Javadoc straight from Intent.ACTION_VIEW:
/**
* Activity Action: Display the data to the user. This is the most common
* action performed on
Just a reminder, this list is for discussion of Java development using
the SDK. Please move this discussion to one of the open-source
mailing lists described at http://source.android.com/discuss
Thanks,
Andy
On Wed, Dec 10, 2008 at 9:25 PM, Yogi [EMAIL PROTECTED] wrote:
Hi All,
i have
We've been strongly recommending (in other threads here) against
sending email behind a user's back. This has two problems: It
creates a tremendous opportunity for abuse, and it is extremely
difficult to properly configure (do you know the user's credentials
and server?)
A much more
Not at present.
Gmail is not open source, although Email is; It might be helpful if
you can explain what you're trying to do, and the community may be
able to suggest alternative implementations for you.
On Wed, Dec 10, 2008 at 2:31 PM, Nathan Ekstrom [EMAIL PROTECTED] wrote:
Is there a
One reason that you won't find APIs for Gmail, in the SDK, is because
Gmail is not necessarily available on every Android device. Thus, any
use of it cannot be supported on a platform-wide basis.
In general, very few apps are guaranteed to be on any given Android
device, so you'll find little
Hello tanshin07,
On the G1, the Gmail client (and related clients such as calendar)
only support a single Gmail-based account.
If you wish to check additional email accounts, however, you can use
the Email client and configure them using IMAP access. If they are
simple [EMAIL PROTECTED]
Dr. Lu -
This mailing list is primarily for developers who use the SDK to build
Android applications. Your question will probably be better addressed
on one of the open source / platform mailing lists, which you can
learn more about at http://source.android.com/discuss.
On Tue, Dec 9, 2008
Aniruddha -
This seems fragile. Is there a reason that the activities need to be
in separate applications? Will your code do the right thing if the
user deletes one package or the other, but not both? If at all
possible, keeping them together will make things simpler.
If you must separate
Actually, there is a lot of development happening on the client.
Please feel free to file bugs on the public tracker, or ask questions
here about specific issues. I can't guarantee which release any given
fix will appear in, but we are definitely tracking and fixing issues
on it.
On Fri, Dec 5,
On Fri, Dec 5, 2008 at 8:40 AM, [EMAIL PROTECTED] wrote:
So I finally figured out what was going on. It had nothing to do with
HTTP posts,
thankfully. What it did have to do with was Formatter (or String.format). An
innocuous foreground loop using Formatter was taking 10 seconds for about
This is probably a question more suited for android-beginners. That
and other lists are described in more detail at
http://code.google.com/android/groups.html
Welcome to Android app development!
On Tue, Dec 2, 2008 at 8:09 PM, indiabolbol.com [EMAIL PROTECTED] wrote:
I am interested in how
This list is for developers using the Android SDK to develop
applications. For questions regarding accessing, building and using
the open source release, please refer to one of the groups listed at
http://code.google.com/android/groups.html.
Thanks,
Andy
On Tue, Dec 2, 2008 at 11:45 PM,
Yasmin, if you're not sure where the sample apps are, you may want to
jump over to the android-beginners list, described in more detail at
http://code.google.com/android/groups.html. You'll probably find
more useful responses there.
Welcome to Android development!
On Tue, Dec 2, 2008 at
Reminder: android-developers@googlegroups.com is a list for
discussion of application development using the SDK. For questions
about building Android from open source, or about porting to other
hardware, you'll get better responses from one of the lists described
here:
Reminder: android-developers@googlegroups.com is a list for
discussion of application development using the SDK. For questions
about building Android from open source, or about porting to other
hardware, you'll get better responses from one of the lists described
here:
GnuHash-
I'm sorry to be repetitive but as Dianne said:
At this point: no native code is supported in the SDK. Using it may
result in your application breaking when an update to the phone is
delivered. Using C++ APIs will definitely result in you breaking in
the future.
Could this please be
On Tue, Nov 25, 2008 at 3:51 PM, steve_macleod
[EMAIL PROTECTED] wrote:
Oh yeah should also say the example code im working from is in the
Android Essentials book, and its quite outdated now...
Maybe you should use that book for a monitor stand instead of letting
it give you bad advice.
Dianne is absolutely right, Android is an Open Source platform and you
or your partner companies are free to begin working on it immediately.
If you are interested in a more formal relationship with some of the
companies involved in Android, you may also wish to look at
Reminder: android-developers@googlegroups.com is a list for
discussion of application development using the SDK. For questions
about building Android from open source, or about porting to other
hardware, you'll get better responses from one of the lists described
here:
Reminder: android-developers@googlegroups.com is a list for
discussion of application development using the SDK. For questions
about building Android from open source, or about porting to other
hardware, you'll get better responses from one of the lists described
here:
Reminder: android-developers@googlegroups.com is a list for
discussion of application development using features APIs supported
in the Android SDK. For questions about building Android from open
source, or about porting to other hardware, you'll get better
responses from one of the lists
If your code is going to access a site every 10 seconds, the radio is
going to, essentially, stay on continuously. This is going to have
a significant impact on your users' battery life. Is this definitely
what you want to do?
On Mon, Nov 24, 2008 at 5:17 AM, joshv [EMAIL PROTECTED] wrote:
I think that the point Romain is making is that scrolling things (be they
ListView or Scrollview) should not be *embedded* within each other. The
framework was not intended to support this, as it creates all sorts of UI
issues.
Strictly speaking, you *could* put two independent scrolling
Can you clarify what you mean by pulling in imagery?
Or in the immortal words, What are you really trying to do?
On Nov 20, 2008 10:29 AM, Robert [EMAIL PROTECTED] wrote:
I am looking for a way to change which Google server our Android app
will look too when pulling in imagery. We have an
Just as a reminder, this list is for discussion of developing
applications for Android devices using the Android SDK. Please see
http://code.google.com/android/groups.html for other mailing lists
that may be more suitable for your question.
In this case, access to the underlying radio devices
The call log isn't implemented by the system, so its resources (such
as layout) are not in the system. Take a look at
Contacts/res/layout-finger/, which you can obtain from the open source
release.
--~--~-~--~~~---~--~~
You received this message because you are
Imran-
You might take a look at the Google App Engine,
http://code.google.com/appengine/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
If you're unhappy with the Email app (or other apps on the phone) I
strongly suggest a couple of things:
(1) File bugs on the android bug tracker so your comments don't get lost
(2) Contribute! I'm aware of at least two non-Google efforts to
improve the Email client, and I'm sure they could
Hey petunio-
It would be great if you can watch adb logcat and actually let us
know what you see when it crashes. There will probably be a Java
exception (with stack trace) and possibly additional diagnostic
information. You might even figure out the problem once you see that.
On Thu, Oct
Jakob-
It may be possible to do this with the SDK, but I am not enough of an
SDK expert to know for sure.
However, you might find it easier to simply develop/debug your Service
in the same process. Once it's running and is fairly stable, you can
try making it remote.
The calling conventions
Assuming you have downloaded the open source project and you can build
it using the given instructions:
1. Make sure you're cd'd into the android/ directory
2. Type . build/envsetup.sh
3. Type lunch 1
4. Type mmm packages/apps/Email
Exercise left to the reader as to what each of these
[ Note, this mailing list is intended for app development, typically
using the SDK. Questions about building or debugging the open source
release may get better answers discussion in one of
android-platform, android-framework, or android-porting. But since
we're here ]
There is an
This list [android-developers] is intended primarily for app
developers (users of the SDK). You'll probably find more help and
better answers for your question on the [android-porting] mailing
list.
Details here: http://source.android.com/discuss
A lighter-weight solution might be to simply write out a little
first.run.has.happened file, and check for it on subsequent
launches.
For most purposes (e.g. show the welcome page once) the file could
be empty, and a simple existence check is sufficient. If you need
something more strict, you
I assume that the problem you're experiencing is that, when you call
startSearch(), nothing happens? If this is the case, read on. If
this is not the case, please write back with additional information
about what you expected and what actually happened.
From looking at your implementation of
Along with the open source release, some new mailing lists have been
set up which are targeted for questions like this. Take a look at
http://source.android.com/discuss.
In particular, you may want to subscribe to android-porting.
This list (android-developers) is described as Discuss
Billsen -
When the user enters the search UI and types enter or clicks the
search button, the ACTION_SEARCH intent will be sent. At least one
activity within your application must be configured (using an
intent-filter) to receive and handle this Intent.
For more information, please see:
You might have more luck simply storing your object in the extras
structure provided in every Intent. Remember that Intent data must be
parcelable so that it can be transported between processes.
--~--~-~--~~~---~--~~
You received this message because you are
You'll probably find more answers to this question in the
android-internals mailing list.
http://groups.google.com/group/android-internals
On Wed, Oct 15, 2008 at 7:42 AM, Eric Michael [EMAIL PROTECTED] wrote:
Hi all.,
I m porting android to imx31 hardware, kernel is booting well
Ludwig-
I just checked your blog and I'd like to add a couple of notes.
(1) You're right that the tests don't build properly using the
default SDK settings. I don't have the workaround handy, but it is
possible to build the tests. I will see if I can get a writeup on
that, either here or in
Of course, with a system this new, everything's undergoing continuing
development and improvement.
For the most part, tools that report their own help (e.g. emulator
-help or emulator -help-keys) will be fairly current.
Please don't hesitate to file bugs at code.google.com if you find
Mark-
I think it would make sense to start with the ApiDemos tests, so that
you can (at a minimum) start with a known good quantity.
The structure of these is that there are two packages - the Api Demos
package itself (com.example.android.apis), and the package of tests
that goes with it
As you've figured out, both of your problems are related to having one
but not both packages installed. Interestingly, it appears to be the
opposite condition: It sounds as if your ApiDemos *tests* are not
loaded, but your own app is also not loaded.
Yes, you've also figured out that the name
First, boilerplate answer, you can use
$ emulator -help-keys
to get an up-to-date list of hotkeys in the emulator.
You didn't mention if you're on a laptop or mac desktop. I know that
the keyboards are somewhat different. I can only answer for laptops
because I'm using my laptop right now
Are you sure that you really want to do this?
It might make more sense to save each image as a file. If necessary,
you could use a database to store image metadata (depending on the
needs of your application).
On Tue, Sep 30, 2008 at 7:02 AM, Nemat [EMAIL PROTECTED] wrote:
Hi Frnds.
On Wed, Sep 17, 2008 at 2:07 AM, Peli [EMAIL PROTECTED] wrote:
If you want other applications to access your data, the best way is
still to use ContentProviders on top of an sql database.
Just to be clear; I think it's safer to say: ...the best way is
still to use ContentProviders on top of
On Tue, Sep 16, 2008 at 3:52 PM, David Given [EMAIL PROTECTED] wrote:
Ah, I didn't know about state_selected (would you like a bug report on
documentation for this?). Yes, that works fine.
Documentation bugs are *always* helpful. You don't have to ask.
1 - 100 of 104 matches
Mail list logo