1300ms ahead sounds odd. If it was behind I'd say it was just a reporting
delay as part of the usual message processing, but ahead is weird.
It's not GPS, but if you have an Internet connection, what about querying
an NTP server?
--
You received this message because you are subscribed to the Goo
I've not looked at the relevant Android API before, but I would imagine
that if you get a GpsStatus object from the LocationManager, then check
each satellite for hasAlmanac(), then you might be more likely to have the
correct GPS/UTC offset. It is still possible to have received the almanac
data f
any comms
protocol that includes this info, not NMEA, not SiRF.
Android limits your options. There is simply no way to be *sure*. The best
I could come up with was listening to the raw data, but you can't do that
on Android.
--
Andrew
--
You received this message because you are subscribed t
, there is no way of doing that on Android, so for truly accurate
times your best bet is to leave the GPS on for 12.5 minutes before reading
the time, and hope that it has successfully received the clock correction.
--
Andrew
--
You received this message because you are subscribed to the Go
test for these things?
Thanks! I've googled around and found literally no mention of similar
problems, so I'm stumped.
-- Andrew G
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to a
thanks!
On Sunday, March 25, 2012 1:08:52 PM UTC+6, Andrew Demidenko wrote:
>
> hi guys.
> is there any way to develop (compile and then run) android applications
> from android device.
> for example, i haven't got laptop or any other mobility pc and i want to
> implem
hi guys.
is there any way to develop (compile and then run) android applications
from android device.
for example, i haven't got laptop or any other mobility pc and i want to
implement some feature for my application while busyness trip. Can i do it
from my android device?
--
You received this
demo of the emulator running with x86
> and OpenGL ES 2.0 at the GDC in San Francisco a couple of weeks ago.
>
> On Thu, Mar 22, 2012 at 5:56 AM, Andrew Demidenko
> wrote:
> > any news?
> >
> > On Saturday, May 21, 2011 3:22:53 AM UTC+6, David Turner wrote:
> >
any news?
On Saturday, May 21, 2011 3:22:53 AM UTC+6, David Turner wrote:
>
>
>
> On Fri, May 20, 2011 at 6:07 PM, Thomas wrote:
>
>> I'm wondering if Google has any plans to include OpenGL ES 2 support
>> in the Android emulator at some point in the future?
>
>
> Yes, we're working on it. No ETA
Hey folks,
I'm planning on writing an app and building against 2.2 Froyo (API
Level 8). However, I want app users of 4.0 ICS to experience the app
with the ICS user interface.
Currently my approach is to have the default activity of my app sense
the version of the Android device.
If it is less t
roper
implementation (and I would love to understand it better!). My gut wants to
use a bitmap cache, but you made it sound like with the hardware
acceleration pipeline you shouldn't have to?
Thanks,
Andrew
On Sat, Jan 21, 2012 at 12:14 PM, Andrew Hughes wrote:
> Thanks.
>
> It does
ty region in onDraw() (with hardware
acceleration enabled) but then I was *only* seeing the dirty region being
drawn each time...as if the Canvas was being cleared by the framework each
time (that's what I meant by a "blank Canvas" in one of my previous posts).
Thanks,
Andrew
On Fri,
ration so I can take advantage of
the rendering framework and not have overlapping or parent/child View's
invalidated as well, while still only invalidating and updating part of my
View using a Bitmap cache?
(Please let me know if there's still something I'm not understanding
correctly
I am misunderstanding?
Thanks,
Andrew
On Fri, Jan 20, 2012 at 12:55 PM, Romain Guy wrote:
> invalidate(Rect) works just fine with hardware acceleration. What it
> does not do (and what it was never documented to do) is force parents
> of the invalidated View to re-executed their draw() meth
Hello,
I'm trying to launch a Gallery Intent to allow the user to select an
image. The issue is that the code works on 2.x but fails occasionally
on 4.x (I haven't tested 3.x). I've narrowed it down to issues
specific to Picasa-sourced images. For example, from my google+ posts
(still in the Galle
hmm, can't you just do SetTitle("") on the ActionBar?
On Dec 19, 1:56 pm, Nathan wrote:
> I looked here, but I didn't find it. I could have missed it:
>
> http://developer.android.com/intl/de/guide/topics/ui/actionbar.html
>
> In ICS, they can't display my entire app name anyway.
>
> I'd like to
have "always" set for showAsAction.
Is this the expected behavior?
I was expecting all the actions on the split action bar to appear at
the top action bar when in landscape mode.
Thanks,
Andrew
--
You received this message because you are subscribed to the Google
Groups "Android D
RP layer) values like destination address, smsc
addressI'm newbie in Android programming so if I can advise me
some program/tutorial/code where I can change sm-RP-OA I will be very
grateful...
THANKS
Andrew
--
You received this message because you are subscribed to the Google
Groups &qu
ally know what an active pen is, even if
they don't have one).
All that said, I had not considered iterating through the current input
devices using getDeviceIds(). This should help a lot, so thank you Diane
for that suggestion.
Andrew
On Fri, Nov 11, 2011 at 5:14 PM, Dianne Hackborn wrote:
So there's no way to even programmatically check if a devices supports the
pen? Are there plans to add this capability? It would be really useful to
know this. Active pens allow for an alternative workflow (not just a more
precise, pressure sensitive input device) due to their ability to have side
Alright. Thank you. I'm not sure if it's something that could be enforced by
the CTS, but it would be nice if it was :)
I want to be able to draw things in real world units (such as a measurement
ruler or lines of binder paper that are *actually* college or wide ruled,
etc). Do you have any sugges
Any way to clear all message notifications at once in actual messaging
app, without reading them. I would like to remove the number signaling
in the stock messaging app so I don't have to click on each individual
text to dismiss the notifications.
If there is a better forum please redirect. I have
Is there anyone who met this issue?
On Sep 22, 1:32 pm, Andrew wrote:
> I got an exception from Android Market recently for many times. I
> tested my application on several devices, and cannot reproduce this
> exception. I have no idea about that.
I got an exception from Android Market recently for many times. I
tested my application on several devices, and cannot reproduce this
exception. I have no idea about that. Need help!
---
Use a GradientDrawable:
int[] colors = new int[] { 0xFFB3ADAD, 0xFF858080 };
GradientDrawable drawable = new
GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, colors);
drawable.setShape(GradientDrawable.RECTANGLE);
drawable.setGradientType(GradientDrawable.LINEAR_GRADIENT);
On Aug 25, 7:2
Yes, usually AsyncTask is only able to be run once. Restarting the same task
may give you a little trouble though due to this. If you have something that
needs to run over and over again I would suggest that you look into starting
a service and loop the task you need to keep running in its own thre
To end an app without the use of the back button you could try to go into
your app drawer and select settings->applications->manage applications and
from there you can chose to see what apps are running and then select them
and make them force close or even uninstall.
On Thu, Aug 18, 2011 at 1:41
Are you trying to pause a media player that you have created, or are you
trying to pause any media player that may be running or started by another
application?
On Thu, Aug 18, 2011 at 8:27 AM, oliverorav wrote:
> I'm making an application and I want to know how to pause Android's
> default musi
I have no logcat for the devices that it does not work on. Program works on
the emulator so the logcat does not show anything. I do not have the app on
the market yet so I am not getting any debugging data from the Optimus V or
the Galaxy S. Would the logcat from the emulator tell whats going on? I
Are you sure that area is part of your listview, and not the layout
that contains it due to the list view height being determined by it's
contents?
I.e. I am not sure listview has any "unused area"
If so, change the background color of layout containing the list view
to match the list view color.
To post to the "stream" (wall) you will need a valid auth token. So a
dialog (once) will be difficult to avoid.
After that you will have to use the FB REST API and do the requests
yourself.
See docs on developer page at Facebook.com
--
You received this message because you are subscribed to the
In my app I am sending an html email using this code
i.setType( "message/rfc822" ); // I have also tried using text/
html and text/plain and text/message with no luck
i.putExtra( Intent.EXTRA_SUBJECT, so.getSubject() );
i.putExtra( Intent.EXTRA_TEXT, Html.fromHtml( html here ) );
When the u
In my application, I have specified a second activity that can be
launched form the launcher, using this manifest entry:
Let's say I have the app open at the "main" activity then press the
home key. It
OK, thanks for that. I'll leave the managed dialog as-is. Thanks to everyone
who replied here and directly to me.
Andrew
On 26 Jun 2011 14:32, "TreKing" wrote:
> On Sat, Jun 25, 2011 at 7:56 PM, andrewg_oz wrote:
>
>> It seems,
>> though, that calling show() pau
I'm not at my pc right now, so I can't check, but have you added the acra
jar to the build path? It's in the instructions, so perhaps you missed that
bit?
Andrew
On 24 Jun 2011 19:40, "Raghav Sood" wrote:
> Thanks.
>
> I did look at there example code. As far
I think with Google "Tags" app it only readd one Ndef message (one
smart poster with url) - tbc
Also many tags are small and it might be tough to get two messages on
them...
If you host the apk or have a url on your server that has a link or
redirects to the apk in the market, then if you form th
In my Android app I ofter don't create a View's on-click handler in
code, but rely on the ability to specify it in the XML layout file,
like this:
And then have the method in the Activity like this:
public void onSearchClicked( View v ) {
}
Meaning there is no reference to t
I thought I read somewhere that it was possible to password protect an
app on Android Market and use this as a way to run a private Beta of
your app, but using Android for distribution and update.
I have prepared an app for publishing, and explored all the
documentation I could find, plus the Deve
orried it would reduce the life of the internal storage, on the other
hand it would be good if it saved the data should the battery run out
mid game.
So I'm thinking I should make it autosave every X amount of time, I'm
just not sure what a reasonable value for X is.
Thanks,
Andrew
--
Conclusion, in case of use for others:
I have my own ant build file that calculates and sets the
"version.code" property used by the standard Android build, from SVN
Info of the working-version/revision/tag.
(for anyone interested in this, let me know). I invoke this ant target
from the "-pre-buil
I was exploring performance recommendations on Android and read this
page: http://developer.android.com/guide/practices/design/performance.html
I note that it only partially covers use of the "final" Java construct
(specifically for constants), which is covered in generic Java
discussions on perfo
Reading build.xml it suggests copying the targets from mail_rules.xml
(found in $android_home/tools/ant) into build.xml.
Reading mail_rules.xml it seemed I can define a property called
"version.code" in my build before main_rules.xml defines it
(properties can only be written once in ant) and mayb
On May 16, 9:12 pm, Dianne Hackborn wrote:
> You can use --version-name and --version-code arguments to aapt to supply
> these values at build time.
Thanks for the hint Diane.
Should I understand that that means I cannot reference the Integer
resource I generate for versionCode in the manifest?
I guess this is an old post. The follow up is that it was a problem with the
specific device that I was testing on. I got a new device and the problem is
a non-issue.
On Apr 24, 2011 4:07 PM, "Moose" wrote:
> I just tried using phonegap as a front for it, however I have exactly the
> same problem.
In my Android app I:
- generate an incrementing build number (integer) using a script as
part of my build (uses Integer from SVN revision)
- I generate an Android resource file with it defined as an integer:
399
- I show that on the UI using the resource generated above
- I reference the integer
I have a similar case, and I think I know why it happens, even if the
API is not ideal for handling it:
If could be that your tag already has data written to it and that data
is locked or write-protected.
This happens in a tag I have that is a 1K tag, but I cannot write a
small Ndef to it.
I susp
Apart from the obvious of starting your own app from scratch, you could try
searching for an open source Android project and fix some bugs or add a
feature.
Andrew
On 15 May 2011 11:19, "Adam Ratana" wrote:
> This is a great thread. I'd like to add to the below points:
>
Another way is to make your images have 256 color at most. You can do
this in Gimp by changing the mode to indexed in the image menu, and
setting the maximum color.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send
Actually that didn't went well.
I downsampled my images to 256 colors in gimp, and they displayed
correctly afterwards. Even 4096 colors was giving me trouble.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send ema
w us to specify a url filter for the http scheme. so there is
no way to specify a link that will work on both platforms?
Aaaarrrggg
Andrew
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send e
In my Android App I send email messages with images attached.
Using the Intent system to send it, I can do one of the following two
things:
1) Specify type as "message/rfc822" so that ONLY email applications
are shown in the Chooser.
Inconvenience: I cannot specify the mime type of the image I a
I gave up trying to solve the problem. My current solution is to use a
small patch of the color that I want to use as the background to make
a tiled background.
On Apr 26, 5:38 pm, Mark Wyszomierski wrote:
> >> Not all devices use 24-bit color buffers. Some are 16-bit
>
> Good point. I saw this o
I get a NullPointerException when I try to invoke openFileOutput() on
the instrumentation context for an InstrumentationTestCase. Is this
by design? I am able to use the target context.
public class ImageUtilTest extends InstrumentationTestCase
{
/** the instrumentation context */
private Co
I've noticed that when working with a high density device,
BitmapDrawable(String) automatically scales a bitmap down by a factor
of 160/240. I'm able to get the bitmap to not be scaled by using
BitmapDrawable(Context, String), but I don't understand why the image
would be automatically scaled *dow
So after further looking exhaustive searching I found a question on
stackoverflow that kind of answered my question. I slightly adapted the
code. The web page loads fine and logcat gives no erros, however after a
delay, a message pops up (for maps.google.ca) that says "Your location could
not be de
I just commented out the line. It didn't make a difference as far as I can
tell. I may go back and change it though.
On Apr 20, 2011 10:42 PM, "Edison" wrote:
> I looked into the ADW Launcher donut version,
> It simply change SearchManager.SOURCE to "source".
>
>
> On Apr 13, 3:11 pm, Moose wrote
Specify a RGB, i.e, #ff292728.
Use the a Color Meter tool on Windows or Mac to sample the color in
the Layout Preview screen. You'll see that it renders the correct
value of 292728.
Sampling the same color in the emulator would return a different
value, #282329.
This is causing us some seriou
Well, I don't have problems with any of the other emulators at all, so I
can't think of a reason for my system to be the problem. I would be
interested to hear how you fair running the 3.0 emulator.
--
You received this message because you are subscribed to the Google
Groups "Android Developers"
I have also been experiencing issues with the honeycomb emulator (Ubuntu
10.10). I am just hoping that the source gets released soon so I can build
it from scratch and load that image into the emulator...
In the mean time, I suggest using 2.2 or 2.3 for developing, then move it
over once the 3.
And actually, those errors are the same as the ones I was getting when
compiling the AOSP. It could be the problem with it was just the additional
package it was trying to build that had an error. I will try compiling the
AOSP version without the problematic package and see if it makes a
differ
Thanks for that suggestion. I downloaded and compiled Cyanogenmod's tree and
it compiled the first time no problem. Now when compiling the application I
am trying to test and modify (ADWLauncher), I get the following errors
packages/apps/android_packages_apps_Launcher/gen/com/android/launcher/Ma
Yes, I did install all of the items from that website. (That is the tutorial
I used to set it up initially). There error with make -j4 seams to have
fixed itself - whether it was downloading a fresh repo or installing the
extra libraries or both, I don't know
I left it running before I hit the
Well that does make more sense. I guess the point at which lunch stopped
working was when I restarted the shell. So I then when and installed lunch,
which then overrode and use of the lunch script from then on.
Any thoughts on the linking error when compiling using -j4? (That being
said, having
ge portion of
the work is linking and not actual compiling).
Addititonally, while I was able to run 'lunch' the first few times, it
seems to have broken since, and now when I run lunch it says:
Using lunch master without the GUI.
No such file: /home/andrew/.lunchrc.
I have redownlo
I was trying to register a broadcastreceiver with the code below but I
always get a null when I return from registerReceiver.
public class ReceiverTest extends Activity
{
private IntentFilter intentFilter = new
IntentFilter(Intent.ACTION_CAMERA_BUTTON);
private BroadcastReceiver r
n used as a random number generator at times), but
doesn't repeat until the entire sequence has been used (maximal length).
--
Andrew
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to andro
"""
Is it even possible to build an app against a different API than the
target API?
Isn't it necessary to target Android 3.0 (SDK 11) to get a holographic
theme in the first place?
Thanks for your help,
Andrew
--
You received this message because you are subscribed to the Goo
I know this is an old thread, but I was wondering if MonkeyRunner has
the capability to read screenshots from the file system yet. I
couldn't find any info on it.
Cheers,
Andrew
On Feb 15, 4:11 pm, Bill Napier wrote:
> Hi Christopher,
>
> Being able to load an image into MonkeyR
I've updated my installation of the SDK. Doing this moves the "adb"
executable from the "tools" folder to the "platform-tools" folder.
This breaks my Android Eclipse plugin because the plugin is hard coded
to look for adb in the "tools" folder.
No problem. I'll update my Android Eclipse plugin...
ndroid:layout_height="fill_parent">
It isn't *exactly* what I wanted (which was for the "id/comments" TextView
to shrink when there was less text), but it's now as close as makes no
difference. Thanks for your help - the layout is much better now.
--
Andrew
ot;top down". Once
the TextView has been sized, it won't be shrunk to allow the RelativeLayout
to fit. At least I just haven't been able to get a working "flexy-size" view
anywhere other than as the last view.
Maybe there's some magic in the layouts somewhere, but
Hi I have a HTC Desire with Android 2.2 firmware on it. I'm developing
an app that needs to use the accelerometer when the phone screen turns
off. I realise that this can't be done in standby as the CPU turns
off, but using a partial wakelock keeps the CPU running.
But as soon as the screen turns o
TopTunniste for tags for example
On Feb 7, 10:09 pm, Mark Murphy wrote:
> Have you examined an Intent sent out when an NFC tag is encountered?
> Perhaps the path is part of the Intent and can be filtered upon with
> the element in your .
>
> Touchatag is sold out of their kits -- anyone know wh
Yes, I second this post. Battery usage is a huge concern of mine as I
want to learn to program games, and I don't want my games draining a
phone in 2 hours like Dungeon Defenders can.
On Jan 26, 2:00 am, Dillon Yang wrote:
> Are their currently any API's that can allow developers to track what
>
Rotation causes a complete teardown and recreate of your Activity, as you
have already learned.
So here are some options to consider:
- overide onSaveInstanceState(), and place your info into a Bundle, and
pull it back out in onCreate()
- Application instance (android.app.Application)
- Singl
e maintaining a fast and intuitive user interaction.
So:
- use other NFC device
- wait for API support
- start hacking android as mentioned
Let us know how it goes
Andrew
On Jan 26, 5:24 am, Zsolt Vasvari wrote:
> Thanks. What's missing from the Android SDK?
>
> Does anybody
again
parentActivity.finish();
}
});
It will also work if you make parentActivity a global variable (if it
is global, then you do not need to make it final).
-Andrew
On Jan 21, 1:29 pm, LenseOnLife wrote:
> Hi,
>
> Please bear with me, I am
Hi Dianne, all dialog is good.
I wonder if could bring our needs/ideas to the attention of who does
has the NFC area?
There is a community of NFC developers out there who have years of
experience (mainly on J2ME) with NFC using the Contactless JSR.
They are familiar with how it works, its positi
I think question #2 refers to a problem with NFC PushRegistry and Tag
reading on the current J2ME NFC Phones like the Samsung.
In those devices, an application can be automatically started by the
phone on a tag (PushRegistry), and that event arrives to the Midlet
via the Contactless API BUT...
It looks like Google should evolve the Intent and Intent Filter
methods of Android to cover some of that useful PushRegistry
functionality, so that you can only listen for particular NDEF message
types, including custom defined "external_rtd" methods.
As the standard RTD's are MIME type based (vCa
I think he only wants his activity started by the NFC intent, if the
tag has a specific type of indefinite message.
I.e. he wants to be able to specify an intent filter for his activity
by indefinite message type and not be started on all tag discoveries.
On Jan 18, 4:19 am, Ajith Kamath wrote:
wrote:
> That not a solution or even a band aid: I absolutely wouldn't want my
> app to be installed on the SD card by default due to its use of
> widgets and it being a BOOT_COMPLETED receiver.
>
> On Jan 17, 8:55 am, Andrew Smith wrote:
>
> > The INSTALL_FAILED_INSU
The INSTALL_FAILED_INSUFFICIENT_STORAGE error is the bane of every
Android developer's life. It happens regardless of app size, or how
much storage is available. Rebooting the target device fixes the
problem briefly, but it soon comes back. There are hundreds (if not
thousands) of message board pos
genpfault on StackOverflow.com pointed out that you need to use a
value of 65536 with glClearDepthx to get the result you expect from a
value of 1. I have confirmed that this is correct. So this is more a
case of incorrect documentation, rather than a bug as such.
--
You received this message bec
I've wasted around 30 hours this week writing and re-writing code,
believing that I had misunderstood how the OpenGL depth buffer works.
Everything I tried, failed. I have now resolved my problem by finding
what may be an error in the Android implementation of OpenGL.
See this API entry:
http://w
fined list of
things, not contacts calendar)?
Any recommendations for libraries (tolerant, Apache-style license)?
thanks in advance.
Andrew
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to and
>From what I understand, AT&T uses GSM and Verizon uses CDMA, which are
different technologies. So it is some what carrier specific only
because each US carrier offers a different technology.
Andrew
On 11 January 2011 14:50, Tommy wrote:
> Very cool. That makes sense.
>
> Are y
hen
> automatically that textbox is chaged according to check box
>
>
>
>
>
>
>
>
>
> On Mon, Dec 27, 2010 at 11:13 AM, Andrew wrote:
> > if (isChecked) {
> > editText.setFocusable(false);
> > editText.setEnabled(false);
> >
if (isChecked) {
editText.setFocusable(false);
editText.setEnabled(false);
} else {
editText.setEnabled(true);
editText.setFocusable(true);
}
So this is called after a checkbox is clicked on. When it's checked
the textbox
I am attempting to get Android Referral tracking to work. I am
following the only documentation I have found here
http://code.google.com/mobile/analytics/docs/android/#referrals
I have the following in my android manifest file
inally basic coding error.
Basically I had a class definition that was creating an object of that
class, which in turn created another, etc, etc. I'm afraid the
crashing was nothing more mysterious than a stack overflow.
I bow my head in shame!
Thank you,
Andrew
--
You received this message bec
Dear all,
First time posting here, and I write in severe desperation! :-)
I'm using Eclipse. Today I made an error when adding a class to my
project. Instead of creating a file called ClassName.java I created it
as ClassName. So I deleted it, created ClassName.java and wrote the
code. When I laun
Hi,
I'm trying to add pictures to a folder and have that folder viewable
in the Gallery app. I've been able to do so, but if I add or remove an
image in the folder, it will not be updated in the Gallery unless I
reset the device. I was wondering if there was a way to force the
Gallery to update th
Hi, is there any where that I am able to download the source of 2.1?
All I've been able to find is 2.2. Thanks.
--
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 unsu
I have figured out how to modify the bootanimation by placing
bootanimation.zip in data/local/ but I was wondering if there is any
way of including sound with this animation. Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post t
Is there anyway to communicate with a PC application over the USB
connection? (Without using adb, I would rather not have to rely on the
user having USB debugging on)
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this
Is there any way to allow communication between a program on a PC and
an app on the Android through USB? I've notied some apps can sync
through USB so I figure there must be a way.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to
This is a ListView, as it is quite easy to have every row different.
But in fact that Activity is most likely a PreferenceActivity[1] that
takes a lot of the hassle out of creating a ListView and simplifies
handling preferences.
Andrew
[1]
http://developer.android.com/reference/android
have not been able to figure out why the ListView is detaching the
SeekBar's view, and this does not seem to happen in my simple ListView
case. I will continue to debug the problem and generate a simple test
case others can use, but I thought I better ask.
thanks for any help on either problems
A
I'm trying to use the following layered drawable:
http://schemas.android.com/apk/res/android";>
It is a semi-transparent gradient over a tile. However, on some
occasions the tile layer doesn't tile. Instead I see the gradient image
streched over the
101 - 200 of 494 matches
Mail list logo