The API Demos has examples. Checkout StatusBarNotifications and
NotifyingService.
For your example
Vibrating:
// if vibrate on- after a 100ms delay, vibrate for 200ms, pause for
150
// ms and then vibrate for 500ms.
notification.vibrate = new long[] { 100,200,150, 500 };
if you are not
I figured out what was causing my particular problem. Both the method
that draws the SurfaceView and the method that handles the touch
events were synchronized with the same object. I'm guessing the
delays were caused because the touch event handler method couldn't
access this object while the
Hi, sorry for asking some questions that might seem stupid to some - i
don't have a G1, only the emulator: if in an app i use let's say
HttpUrlConnection to send some stuff to a server, and then i don't
need it any more (basically i don't use it anymore):
1) Does Android know i'm needing the
Romain Guy wrote:
Please, please don't use private APIs, it only hurts the users :(
Got to admit my local doctor rarely sees people complaining about
injuries caused by private API usage, but I haven't checked with the ER
yet ;).
Al.
--
==
Funky Android Limited is registered in
Maybe an API compliance test should be run as part of any app build.
Does an API usage checking tool exist? and is it publicly available?
Al.
Jean-Baptiste Queru wrote:
Even worse, it hurts the entire ecosystem, by making users believe
that plaftorm upgrades have bugs when in fact the
That's the whole point of the SDK. It does NOT let you use private
APIs since they are stripped out of the SDK. If you compile your app
against the git tree or a custom SDK, there's not much we can do. It's
also up to the developers to be reasonable.
On Sun, Feb 8, 2009 at 1:43 AM, Al Sutton
Is checking API usage in a apk feasible? That way problems could be
picked up at distribution or installation time?
Al.
Romain Guy wrote:
That's the whole point of the SDK. It does NOT let you use private
APIs since they are stripped out of the SDK. If you compile your app
against the git
It would be way too costly to do it at install time (both in CPU and
disk space.) We could do the check during the upload to Market but
that wouldn't solve the issue with apps installed through other means
(especially alternatives to Market.) I'd rather trust the developers
to do the right thing.
That said, it could be interesting to flag bad apps on Market and
warn the user that the app he's about to download might break with a
future update of the system :))
On Sun, Feb 8, 2009 at 2:06 AM, Romain Guy romain...@google.com wrote:
It would be way too costly to do it at install time (both
I'd rather trust the developers to do the right thing.
That's probably how Microsoft felt about Windows developers before the
first virus came along.
With APK API checking at point of distribution (AndAppStore, Market,
SlideME, etc.), we could cover most user installs. I fully agree that
I'm not sure if it should be part of the sdk. any app created with the
sdk already would pass this check.
It should more be a tool built into the normal make process so you get
warnings like you get right now if you change the api.
Additionally it could notify the developer and maybe show him a
I agree it's not necessary if you're building apps with the SDK, but I
see it's primary usage as being by developers wanting to check an apks'
compliance level and its' results would be firmly tied to the android
version and thus the SDK version, so an API checker from the 1.0 SDK may
Thanks for the response!
It'll be nice to be able to make a custom DTMF dialer.
Too bad about not being able to send a signal to bring up the dialer
for an existing call. My convenience app will only be able to solve
one issue instead of two...
Thanks,
Steve
On Feb 2, 3:08 pm, David
Hi,
I'm a little confused by what I'm seeing with regards to phone state
transitions via the PhoneStateListener.
When I receive a call, this is what happens:
(call comes in)
RINGING - IDLE
(I pick up)
OFFHOOK
(I hang up)
IDLE
It's that first transition from RINGING to IDLE without any
Also, adding/receiving other calls while on an existing doesn't seem
to send any new events.
On Feb 8, 3:21 am, songs coca.c...@gmail.com wrote:
Hi,
I'm a little confused by what I'm seeing with regards to phone state
transitions via the PhoneStateListener.
When I receive a call, this is
Hi,
I'm trying to figure out a way to display different option menu groups
at a time based on various events.
For instanece, if the click listeners on certain views have been
triggered, the activity should bring up a specific option menu. On the
other hand if they are not on focussed, by pressing
Dianne,
In this particular case, the SlidingDrawer class is not private, it
is public but it is in the
package com.android.internal.widget package. This .internal. (and
the lack of official documentation on it) is the only clue you get
that this class is probably not intended to be used
OK. I found it faster than I thought or I would have waited to make
that last reply.
You have two options:
1.) put the parcelable in an intent, then get it back out.
-- this would be instead of calling the Creator yourself. This is
actually where I saw the call to setDataPosition(0), in the
we had something similiar in an older release of openintents,
called alerts. never got around to test it on the current
release, but if there is interest we could revive it, shouldn't be
to diffcult.
zero
openintents.org
On Feb 7, 9:57 pm, Christoph Studer chstu...@gmail.com wrote:
Sweet!
Any ideas? Anyone?
--~--~-~--~~~---~--~~
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
Building apps with the SDK is apparently NOT enough to insure API
compliance
as the example with the SlidingDrawer showed - the app was build with
the latest SDK
1.0 r2 and without using reflection or any other funky access.
I firmly believe that we as developers, have the most vested interest
Hi Karl,
If you just care how to set command line option in Eclipse, you can
set it in run configuration.
It's under the Target tab-Additional Emulator Command Line Options.
On 1月20日, 下午10时42分, Karl Ostendorf chicagok...@gmail.com wrote:
This is also my experience. For example, setting the
Hi,
When I want to get a GPS fix as quickly as possible do I need to add
this permission:
uses-permission
android:name=android.permission.ACCESS_ASSISTED_GPS /
Or is it the same if I already ask for the following:
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION /
Or do I
Hi, I am doing this using the following method:
- Declare int constants which will be unique to each button
- After initializing button variables via findViewById, use
View#setTag to set the unique ID to that button, and the
onClickListener to 'this'
- Declare another int variable which will
Hi, I am doing this using the following method:
- Declare int constants which will be unique to each button
- After initializing button variables via findViewById, use
View#setTag to set the unique ID to that button, and the
onClickListener to 'this'
- Declare another int variable which will
Hi, nice solution, I'll try do adapt it for my case. Thanks!
On Feb 8, 3:32 pm, Al alcapw...@googlemail.com wrote:
Hi, I am doing this using the following method:
- Declare int constants which will be unique to each button
- After initializing button variables via findViewById, use
HI ,
Did u change partition table in mtd files in kernel? i think file name is
mtdblock.c
U need to update u r MTD partion tables in this file, when u boot up u r
system try to capture u r hyperterminal messages , u find a partion table
which mentions u r blocks of devices , there u update
Huh what do you mean by that:
When I want to get a GPS fix as quickly as possible
You always get it as quickly as possible.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to
With AGPS the GPS unit is informed of the latest positions of the
satellites from a website (or something).
This allows the GPS to get a fix quicker than if it would not know the
latest positions of the satellites.
So when using AGPS you get a fix more quickly than without.
Cheers,
Willem
On
That is a good news. May i ask a request, since you guys making a
public widget , could you provide little bit flexibility where this
widget ca attached to . For example there are cases when i want to
attach this to the top ( currently we're using custom widget based on
SlidingDrawer ). And
That is a good news. May i ask a request, since you guys making a
public widget , could you provide little bit flexibility where this
widget ca attached to .
Won't happen for cupcake.
And ability to change drawable of the handle would be
nice as well.
You already can. The handle is any
How do I get the source for stock android apps. I specifically want
the source for the music app and the dialer. I have tried downloading
from the git repository but every attempt complains about not being
able to find it. What is the correct procedure for accessing the
source for the stock
A private API does not necessarily mean the class or method has the
private Java keyword on it. Actually there are many Java-public
classes and methods that are part of the private APIs. Normally these
are stripped from the SDK. I don't know why the internal package is
still in the SDK but
I want to send a Bitmap to Server and I want to use Socket .
This is my code in the Class Client::: This code save the Bitmap
compressed in Jpeg in the phone , after I want send it.
ContentValues values = new ContentValues(3);
how?
On Feb 1, 5:54 pm, Mark Roberts snappe...@gmail.com wrote:
Are you using Eclipse? You can load directly onto the G1 using
eclipse.
On Feb 1, 4:58 pm, solid young...@gmail.com wrote:
I am new to developing android apps. I have been writing java webapps
for years and decided to
This should do it ... http://source.android.com/download.
If you are having trouble downloading it, please check
http://groups.google.com/group/repo-discuss to see if your question
has already been answered, else, post a question in that forum.
-Ravi
On Feb 8, 1:49 pm, solid young...@gmail.com
I have a properly functioning service that registers a
locationlistener for GPS updates. It's registered to wake up every 30
mins (even if the object moved 0 meters).
The problem is that everytime the screen wakes up (from standby), it
fires the onStatusChanged, followed by onLocationChanged
Someone on another forum, was thinking that dasher would not be able
easily allow abbreviations and informal typing that is common with
cell phone text entry.
I made this video to demonstrate that dasher adapts to however you
type, and how it can handle any kind of language or abbreviations
too bad . shouldn't be a complicated change. well for time being i'll
continue to use that
http://code.google.com/p/android-misc-widgets/source/browse/trunk/android-misc-widgets/src/org/miscwidgets/widget/Panel.java
Any chance to see a kind of home screen container widget where you can
drop
Hi Dianne,
I am afraid I don't understand how that would help. I am implementing
an image distortion algorithm. It takes in a source Bitmap and output
a distorted Bitmap.
Can you elaborate?
On Feb 7, 8:15 pm, Dianne Hackborn hack...@android.com wrote:
How about this:
I recently upgraded to RC33 on my G1 and when I uploaded an
application from within eclipse, I received a message warning that the
SDK version on the phone was 1.1, which did not match the SDK version
of 1.0 I am using.
I was wondering when the 1.1 SDK will be available for developers.
I'm not
Hey guys,
I am trying to define a view with the following requirements:
1. the view should occupy the entire screen, except the notification area
(the top small bar)
2. The view should be even split into three parts, the top and bottom are
two huge buttons, and the middle is a scrollable list.
Any chance to see a kind of home screen container widget where you can
drop your views and flip through them ? Right now we're using extended
( so now it' can accept any view(s) with in itself ) code from
workspace for that, but it'll be nice to see this sometime in the
future as official
Thank you very much, this was very helpful. My apologies for jumping
to conclusions! I'm usually suspicious of the way corporations involve
themselves with with F/OSS, but this seems to be entirely on the
level. Good show.
Thanks again!
Rich
On Feb 7, 10:03 pm, Dianne Hackborn
Thanks for the details.
I did think that the disparity might be the result of a unoptimized code
paths, but my understanding of how the Shader integrates into the rendering
implementation as a whole was too sketchy to know whether this would be an
optimization that one might reasonably expect to
Is there a SVN or other respository for the Example code? Drilling down
through the web site is tedious.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email
Michael Caughey wrote:
Is there a SVN or other respository for the Example code? Drilling down
through the web site is tedious.
If you mean the ApiDemos, they are installed with your SDK. Look in the
samples/ directory underneath the directory where your SDK resides.
--
Mark Murphy (a
I was sondering the same.
It's not that my application won't work, but it would be nice to get the SDK
updated.
On Sun, Feb 8, 2009 at 3:17 PM, clark clarkd...@gmail.com wrote:
I recently upgraded to RC33 on my G1 and when I uploaded an
application from within eclipse, I received a message
James,
Thank you.
On Sun, Feb 8, 2009 at 5:09 AM, James jw.ma...@gmail.com wrote:
OK. I found it faster than I thought or I would have waited to make
that last reply.
You have two options:
1.) put the parcelable in an intent, then get it back out.
-- this would be instead of calling
In short, Android developers made it hard to customize TabActivity.
All previous attempts don't work with the latest API release.
If you've been thinking about it but couldn't figure out the right
way, here's one of the solutions:
Hi,
I have the following test case which tests context.sendBoardcast() function:
public void testInstallFavorite() {
Context context = getContext();
IntentFilter filter = new IntentFilter();
Any one has some clue about this? Thanks!
On Feb 6, 11:45 am, Eckel zhangjin...@gmail.com wrote:
Hi,
I try to create a mini player view on home screen and still use the
music mediaplayback service by putting a IMediaPlaybackService aidl in
home directory. the mini player can normally
Hi,
I am getting the Cannot delete that URL exception(see below):
java.lang.UnsupportedOperationException: Cannot delete that URL:
content://contacts/phones
at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:130)
at
I made my simple, custom rows and listviews. Right now, only clicking
on the text of the row is valid selection area. I want the entire
row, even the no-text area to be selectable. Where do I modify? Am I
looking for focusing or selecting?
My row xml:
Dear all:
As you know,i started the monkey tool at adb shell,and run a
script file to send a series of commands including key and mouse
events,But sadly to see that when i close the adb DOS window,Monkey
just terminates,
I wonder why should this happen,and Will it do the same to a real
device
Um, don't close the shell you are running the monkey on. The monkey command
prints its result data there so it would be pretty pointless to run it and
close its shell, anyway.
On Sun, Feb 8, 2009 at 7:43 PM, Ashrotronics 030440...@163.com wrote:
Dear all:
As you know,i started the monkey
Yes, this is standard Java stuff. Compiling happens with the standard
javac, so you get all of its regular features.
On Sun, Feb 8, 2009 at 7:44 PM, gsmd gsm...@gmail.com wrote:
For example, will this result in any performance gain:
--
public static final boolean DEV_MODE = false;
If you are doing your own build of the platform, please ask your questions
on android-platform or android-framework. This will reduce the noise on
this list, and help people understand the context in which to answer your
question. Thanks.
On Sun, Feb 8, 2009 at 6:43 PM, HelloWorld
Still only selects the text. Any workarounds?
On Feb 8, 7:27 pm, Chander Pechetty cspeche...@gmail.com wrote:
You need to tell your ListView that the list items are focusable.
ListView.setItemsCanFocus(true).
--~--~-~--~~~---~--~~
You received this message
So,according what u said,if i modify the monkey source code to be no
outputs,and recompile it in android source code ,then the generated
new monkey tool can continue running after i close the shell,am i
right ??
On Feb 9, 12:15 pm, Dianne Hackborn hack...@android.com wrote:
Um, don't close the
Hi,
My objective:
I want to develop two .apks as .apk#1 and .apk#2. My .apk#1 has one serice
as serv#1 and .apk#2 has serive as .serv#2. I wanna to invoke the serv#1
of .apk#1 in serv#2 of .apk#2. For time being i have created two .apks
and thinking how to commucate between them, i mean how
If you launch it as a background process it may, it depends on what the
shell is set up to do when it gets closed.
On Sun, Feb 8, 2009 at 9:11 PM, Ashrotronics 030440...@163.com wrote:
So,according what u said,if i modify the monkey source code to be no
outputs,and recompile it in android
I'll try myself,
and Thanks for your advice !
On Feb 9, 1:45 pm, Dianne Hackborn hack...@android.com wrote:
If you launch it as a background process it may, it depends on what the
shell is set up to do when it gets closed.
On Sun, Feb 8, 2009 at 9:11 PM, Ashrotronics 030440...@163.com
I have one android application, which can run well in android sdk 1.0 R2.
I also rebuilt android platform in my Ubuntu, at last, the emulator can run
successfully, but when I try to install the application into the emulator,
following errors came:
Dianne,
I tried going down the 'declare-styleable' route as you suggested. I'm
a bit stuck because 'declare-styleable' needs to be placed in a
'attrs.xml' file, which gets compiled to R.java in the package
specified by the 'package' attribute in AndroidManifest.xml.
But I am creating a View for
I have a subclass of android.app.Dialog and because I am using a light
theme, the dialog title comes out as Black on a dark background which
is hardly readable.
This leads me to the question: how do I change the Dialog title
background or foreground colors? Can I do this via a theme? Which
now i have a ExpandListActivity,now i want to change it's background color
,when i change the color to White,i can not see the font.just focus the item
that can see it!why?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
How do we define enum?
--~--~-~--~~~---~--~~
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
now i have a ExpandListActivity,now i want to change it's background color
,when i change the color to White,i can not see the font.just focus the item
that can see it!why?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hi.
I would like to detect changes to a Contact. Registering a
ContentObserver correctly notifies when a change occures, but does not
tell where. Registering Contacts.CONTENT_URI will report a change on
Contacts.People or Contacts.Phones, but will not say which record or
which table. I could get
Hi
Currently I am using Absolute layout for my root layout. In this
Absolute layout, I have one Absolute layout on the top, followed by a
linearlayout. I want to put my viewlist in the linear layout. so it
goes l ike this
?xml version=1.0 encoding=utf-8?
AbsoluteLayout
android:id=@+id/widget0
Is it possible to have a vertical SeekBar? I would want this for a
tilt control slider.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
How can I get a development kit from HTC? I can buy phones from many
different sources but I want a development kit directly from HTC - any
ideas
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android
Below is a link to a blog with some preliminary ideas for promoting
Android in the mobile OS market. There are developers out there with
much greater knowledge of Android and their competitors; so, I
encourage these developers to respond to my blog here, at blogspot, or
perhaps develop your own
Play video on android
-
I'm trying to play video files on android...can anyone please help
me...
I'm not able to see the video but audio works fine... here is the code
PLEASE HELP ME... BY GUIDING ME.. BY CORRECTING THE CODE
OR WITH ANY NEW CODE
package
Does anyone know If I can specify for an Android application to have
the main window and all its children draw upside down on the phone.
I'm looking for something similar to portrait and landscape
orientation but more like portrait_upside_down and
landscape_upside_down.
Thanks
I want to create a map off-screen, so I can load it as a texture in
OpenGL. So, of course I'm not putting the MapView on the main screen,
which means I'm manually forcing the layout through the layout()
function, and then using the drawCanvas() method to write out the
screen content into a
I wanna ask a simple question to all android developers~
What is the optimized environment to develop or modify an application
in Android platform?
How are you developing an application now?
Google provided several excellent tools to develop an application such
as Emulator, Dalvik Debug Monitor,
Hi, i found some reference to the sliding drawer but could'nt find the
code to use it..
http://groups.google.com/group/android-developers/browse_thread/thread/5d735511a2de5137/422eea2daef3dbb4?hl=enlnk=gstq=SlidingDrawer#422eea2daef3dbb4
any help will be appreciated.
thanks
On Jan 16, 3:10 pm,
I can no longer view XML pages (T-Mobile web2go). Has anybody seen
the same issues? I am using android.webkit.Webview in my application
and it isn't working either.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups
Hi,
I had posted this question earlier in the Android-Beginners list but
didn't get any response :(
Saw this thread here and thought of trying my luck again!
Can someone help me with the steps to export a service to another
android application?
I have created a service and defined an interface
It still doesn't work for me~ :-(
It gives me the same error message~
[2009-02-09 10:01:22 - Mms] W/ResourceType( 3244): Unable to get
buffer of resource asset file
[2009-02-09 10:01:22 - Mms] (skipping index file 'D:\Project
\cupcake_20090129.tar\packages\apps\Mms\res\drawable\Thumbs.db')
hi,
even i am getting same problem.if u get it solved plz send me to
swapna.annaman...@gmail.com
On Jan 17, 4:27 pm, jalandar jagtap...@gmail.com wrote:
emulator browser gives error secure connection could not be
established
is it the case that emulator browser don't have certificates, is
New join
--~--~-~--~~~---~--~~
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
Hi,
Using a DEV phone, seems I can not make calls to numbers containing
extra digits (i.e. pauses - either 'hard' or 'timed'). They are
stripped.
If I start the call from the built-in contacts app using the
ACTION_VIEW
intent and then tapping a phone field with, say - *151,#,1 it is
dialed
hello everybody
I am capturing Image from app using :
the image captured using Intent i = new Intent
(android.media.action.IMAGE_CAPTURE);
but it is very small (25*50)
Why this is happening; will anybody suggest me solution?
thank you
--~--~-~--~~~---~--~~
You
Hello!!!
this source code is no problem!
but just only Url is incorrect.
mp.setDataSource(http://asx.skypro.ch/radio/internet-64/
drs3.asx);
you should choice correct Url ( for down load file).
mp.setDataSource(http://amnhac.timnhanh.com/player/getsong/down
somebody will tel me the command for checking sdcard of device
what is command to check SDCARD is present ?
or in other words how to appl the sdcard is there or not?
thank you
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
88 matches
Mail list logo