No idea about the MODE_PRIVATE stuff, but I use
PreferenceManager.getDefaultSharedPreferences() and it works fiine.
Why do you need to control the file name?
On Apr 23, 12:15 pm, roschler robert.osch...@gmail.com wrote:
I am using the following code to save data to my Android application's
You know what they say -- it's not the heap size, but how you use it.
On Apr 23, 4:30 am, Fabio Yasusi Yamamoto fabi...@gmail.com wrote:
Hi
I'm trying to understand why the heap size of a single application is
so small.
I mean, there are phones with limited RAM, and the heap size is about
Robert,
Do you start the emulator with Wipe data option, by any chance?
If you are, that explains it, as wiping the data means well, wiping
the data.
The preferences are stored in the file system of the emulated Android
device, just like on a real phone, not directly within the host
-- Forwarded message --
From: Me tonasirin...@gmail.com
Date: Wed, Apr 20, 2011 at 6:11 PM
Subject: Handle Multi Screen
To: android-developers@googlegroups.com
Hi Community I am using smack for a chatting module in my application …
Now there is need to handle the multi chat
On 23 April 2011 07:24, hoss7 hoss...@gmail.com wrote:
php and c++ and c#
Learning java would possibly make your development easier though.
Regards,
Marcin Orlowski
*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
*Date In Tray* http://bit.ly/dateintraypro - current
48MB is (or better should be) good enough memory for any app. What do
you want to keep in memory? The world map with a rich set of POIs?
On Apr 22, 10:30 pm, Fabio Yasusi Yamamoto fabi...@gmail.com wrote:
Hi
I'm trying to understand why the heap size of a single application is
so small.
I
Well, I think C# and Java are quite similar, maybe I would start by doing
some examples in pure Java (J2SE) just to feel comfortable with the syntax
and then try following some Android examples.
You could also tru monodroid if you want to develop just one particular app
:)
Good luck!
El
I think (as in I'm not sure at all xD) it's for saving memory, I mean:
48Mb sounds enough for almost everything and if it used more, will be
draining battery I need to make it to the end of the day :P
El 23/04/2011 12:13, Ali Chousein ali.chous...@gmail.com escribió:
48MB is (or better should be)
Hi,
I'm using a ListActivity, with onConfigurationChanged. I'm doing this
because I don't want onCreate to be called so i don't have to reload
data in the list view every time I change orientation.
I've found that when I call setListAdapter in the onCreate method of
my ListActivity , after a
Run:
android update project -p .
from the directory containing AndroidManifest.xml -- this will
generate default.properties for you. Most likely, it'll complain about
not having a target, which means you'll need to also add the -t switch
with an appropriate build target API level.
On Fri, Apr
Thank you!
Actually, my tabActivity was not complete, my mistake.
Problem solved.
On 23 avr, 00:35, Mark Murphy mmur...@commonsware.com wrote:
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and look at the stack trace associated with your error.
On Fri, Apr
On Sat, Apr 23, 2011 at 6:55 AM, Taf neild...@gmail.com wrote:
I'm using a ListActivity, with onConfigurationChanged. I'm doing this
because I don't want onCreate to be called so i don't have to reload
data in the list view every time I change orientation.
That is a poor rationale. Use
On Fri, Apr 22, 2011 at 11:46 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
However, I notice this does not work (returns false) for some devices that
definitely do have telephony (e.g. HTC Legend and Motorola Milestone). In
both cases, they are running SDK 7, so I wonder whether this particular
Your question is ambiguous. Please state the problem you have and what you have
tried to solve 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'd suggest you get a decent book on Java and play around with it a
bit before tackling Android. Shouldn't take a lot with your
background, but a few days doing that would be time well spent.
(Trying to think of an application to implement, but nothing coming to
mind at present. Maybe someone
Hi Mark,
Yes, I think I'll have to look at using the the way you've suggested.
It was just that
onConfigurationChanged seemed like a really nice and simple way of
achieving what I wanted. Though
it does say somewhere in the docs that it should be used as a last
resort. Not sure why? I guess it
OK, color me confused. Why are you expecting to do this with PorterDuff?
PorterDuff works on images (or colors) with alpha to combine them. The alpha
controls how they combine.
I don't see any way to get information from the color channels to the alpha
channel via PorterDuff. The output alpha
On Sat, Apr 23, 2011 at 7:19 AM, Taf neild...@gmail.com wrote:
Hi Mark,
Yes, I think I'll have to look at using the the way you've suggested.
It was just that
onConfigurationChanged seemed like a really nice and simple way of
achieving what I wanted. Though
it does say somewhere in the docs
I've experienced this with the following devices:
Motorola Milestone (7), Spice Mi-310 (8), HTC Desire (7), Samsung Galaxy
Apollo (7), T-Mobile myTouch 3G Slide (7), ZTE Racer (7), Nokia N90 (10),
Taiwan Mobile T2 (7), Samsung Galaxy 5 (7), HTC Legend (7)
I expect some more devices will pop up
WIth those 3 languages you should be good. I had trouble wrapping my
head around the Android Activity Lifecycle. Suggest you read the
following and reference often:
http://developer.android.com/guide/topics/fundamentals.html
http://developer.android.com/guide/topics/fundamentals/activities.html
Well I would put the names into a table that you can read (and maybe
some descriptive info too) but you didn't look far to find your
answer.
A quick google for sqlite select tables found:
http://www.sqlite.org/sqlite.htmlin there is a section Querying
the database schema go read that and
What we do with students is implementing a common command-line database (of
employees, cars etc) or a sudoku solver/generator. Practices most of the
basic Java stuff, not bad for a beginner. And I'm pretty sure there are a
lot of other options (possibly more interesting), although these are easy
I'm trying to use the accelerometer sensor for a game.
1) I am currently ignoring the magnetometer and using a static value
for the magnetic field vector. My reasoning is that the magnetometer
is subject to interference and will likely give more varied values
than the accelerometer, so I'd like
Looks like the know issue in android.
http://code.google.com/p/android/issues/detail?id=14772q=exifcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Hi Marcin,
For the In-flight entertainment kind of device. When ever there is
any accoutrement to be made, the android based unit must get muted and all
key ( mounted on the device + external key pad ) must get disabled for that
much time.
Any effective solution?
Regards,
Pratik Prajapati
On
Hi,
The widget frame PSDs found in Widget Design Guidelines are outdated as the
style has been changed since Android 2.X. Where can I obtain those Android
2.X style PSDs like the one below? Thanks.
Regards,
Eric
On Sat, Apr 23, 2011 at 9:51 AM, Pratik Prajapati
pratik.prajap...@gmail.com wrote:
For the In-flight entertainment kind of device. When ever there is
any accoutrement to be made, the android based unit must get muted and all
key ( mounted on the device + external key pad ) must get disabled
On Thu, Apr 21, 2011 at 3:50 PM, Peter Webb r.peter.w...@gmail.com wrote:
You can't plug your droid into your home Windows network and use
Windows networking to access file systems (as far as I know);
presumably because it is either very difficult or impossible.
Sure you can. Most file
1. Yes, there are a lot of issues related to the magnetic sensor but people
still use it for thousands years so the real question is do you need it or
not.
2. I don't know what does it mean baseline values. Accelerometer always
returns noise values (as well as any other sensor) - this is a
No offense, Bob (and I do mean that, I value your posts on this forum), but
I think we can safely assume that the OP knows how to calculate times of
sunrise and sunset. He's already showing that in his app, from the sound of
things, and is probably doing OK with that aspect.
The issue at hand
I have a question over at StackOverflow that's been sitting there for
over a month, and wondered if maybe someone here (or a Googlite) could
answer it.
http://stackoverflow.com/questions/5149739/android-problem-setting-file-permissions-when-filename-has-a-space
I have an app where I store .png
I have put an answer in the SO question. In a nutshell, don't put them
in the cache dir. Use openFileOutput() and set MODE_WORLD_READABLE.
On Sat, Apr 23, 2011 at 11:43 AM, Paul pmmen...@gmail.com wrote:
I have a question over at StackOverflow that's been sitting there for
over a month, and
Have you tried escaping the space?
path/to/file\ name.png
-John Coryat
--
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
Users are reporting a unique bug in my Remote Control App that when
they manually turn off wifi, their phone locks up, and requires
battery removal.
While I will work to fix this bug within my own App (Songbird
Remote), I would think this is a bug in the Android OS, and there
should be no way a
Yes, something to become familiar with SQL would be good, though the
Android interfaces differ significantly from vanilla Java's. And any
sort of puzzle solver would exercise the basics.
On Apr 23, 8:10 am, Filip Havlicek havlicek.fi...@gmail.com wrote:
What we do with students is implementing
Jake,
I have a vb project that auto detects Time Zone and Day Light Savings Time..
I found these JS files online and they seem to work great..
TimeZoneDetection.js :
//Provided by
http://www.michaelapproved.com/articles/timezone-detect-and-ignore-daylight-
No shell commands are part of the SDK. Using shell commands is likely to
result in your app breaking randomly across devices and platform versions.
The recommended way to do this is to write a content provider, which the
other app can call ContentResolver.openFileDescriptor() etc. It is
Cris,
FWIW -
I've never seen this particular problem, but have seen WiFi get into a
state where it's technically enabled, and yet does not function at all
(i.e. no scans, no connectivity).
-- Kostya
23.04.2011 20:10, Cris94107 пишет:
Users are reporting a unique bug in my Remote Control
I was looking into a simple way to get the (small) ProgressBar to spin
counterclockwise, and it seems to come down to the class
AnimatedRotateDrawable, which looks to be hard-coded to spin clockwise
- it sets the angle increment to 360/framesCount, with no apparent
option to change the sign of the
Forgot to mention. I'm not sure if you are already using this but the Navy
has a nice pearl script you can POST to and retrieve a good bit of Sun/Moon
data. They have to forms one allows you to enter the city name and state to
get the data (not all cities are listed) the other allows you to
Hello,
I added an E-Mail Developer button to my application and ever since I
get random e-mails throughout the day that either have an empty
message body or just one or two words in a different language (looks
like Russian or something similar, sometimes an Asian language).
Occasionally I get one
Here's what I mean by a baseline value: I'm using
SensorManager.getOrientation() to determine the device's orientation.
I am only concerned with the difference in orientation relative to a
static orientation (which I'm referring to as the baseline value) at
any given time. The baseline value could
Yeah, I see it happen with my applications as well.
One user was nice enough to send me emails asking who the hell I was.
Several of them, actually (guess my email address was somehow added to their
contact list).
In recent versions of my apps I removed my email from one place and changed
it
I was able to get it to work with the following code:
final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
final int transparentColor = Color.parseColor(# + imageTrans);
Xfermode mode = new AvoidXfermode(transparentColor, 0, Mode.TARGET);
paint.setXfermode(mode);
You could not use a ProgressBar, but rather your own Drawable resource
(e.g., a PNG file) and a RotateAnimation.
Or, you could use a pair of AnimationDrawables, each referring to the
same set of underlying PNG files, just in the opposite sequence.
On Sat, Apr 23, 2011 at 12:51 PM, B Lyon
Thanks Mark,
BTW I found the command android update project -p: @ directory:
C:\Users\JH\Desktop\Android
2.2\android-sdk_r06-windows\android-sdk-windows\tools
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send
On Apr 23, 2011 1:20 PM, J Handal jhand...@gmail.com wrote:
Thanks Mark,
BTW I found the command android update project -p: @ directory:
C:\Users\JH\Desktop\Android
2.2\android-sdk_r06-windows\android-sdk-windows\tools
--
You received this message because you are subscribed to
in my app when i click a button it goes on to a url and it returns back an
xml file. The xml file recieved is opened in a new activity called B as a
list view. The xml file is as follows
Search
Searchdata
id1/id
First_nameRaj/First_name
This is basically a special class for that progress spinner design. Which
is now old. In HC the spinner looks different. If you try to hack on
whatever spinner you happen to get from the platform you are running on to
do something different, you will probably fail in one way or another as you
thanks Dianne - yeah I expected someone asking that
custom seems to be where I need to go if this is to be messed with at
all, and that's what I needed to know
On Sat, Apr 23, 2011 at 1:45 PM, Dianne Hackborn hack...@android.com wrote:
This is basically a special class for that progress spinner
pass values through bundle and intent
On Sat, Apr 23, 2011 at 11:11 PM, Siva Kannabiran sivasanka...@gmail.comwrote:
in my app when i click a button it goes on to a url and it returns back an
xml file. The xml file recieved is opened in a new activity called B as a
list view. The xml file is
OK, that's a fair point. I've changed my code to use
onRetainNonConfigurationInstance now, and this seems to work nicely.
Thanks.
On Apr 23, 12:28 pm, Mark Murphy mmur...@commonsware.com wrote:
On Sat, Apr 23, 2011 at 7:19 AM, Taf neild...@gmail.com wrote:
Hi Mark,
Yes, I think I'll have
:-(. I dont think it will be good workaround. I need to make my
application compatible to different form factor and in case of tablet
it is coming in one line. So I can't put new line character.
On Apr 22, 3:10 pm, Kostya Vasilyev kmans...@gmail.com wrote:
Manish,
As far as I can tell, when
I have contact form built-in (so you type there and the it launches MUA for
sending). Former versions had no message length check. This resulted in
flood of empty mails as these users (to not offend them more :) most
likely found sending empty mail accurate entertainment. In later revisions I
thanks for the tips, Mark. I'll play with it. It might need to be an
animation list or whatever
btw - RotateDrawable would be a two-line way to do it (custom little
icon seems to get animated fine) to replace the indeterminate
drawable, but RotateDrawable seems to insist on rotating clockwise,
I don't know off-hand if progress bar has an API to set the drawable. If
so, just use that. If not you'll need to roll your own. It would probably
be easy to copy the code out of the framework.
On Sat, Apr 23, 2011 at 12:52 PM, B Lyon bradfl...@gmail.com wrote:
thanks for the tips, Mark.
ProgressBar lets you change the drawables (setProgressDrawable()).
On Sat, Apr 23, 2011 at 12:59 PM, Dianne Hackborn hack...@android.comwrote:
I don't know off-hand if progress bar has an API to set the drawable. If
so, just use that. If not you'll need to roll your own. It would probably
Diane
it does have a public setIndeterminateDrawable - I can set it with a
RotateDrawable and it works to spin whatever I want there... which is
cool and easy... it just apparently does it clockwise only... I just
need to replace it with something that can spin stuff backwards
and I need to
Um, the platform documentation?
http://developer.android.com/intl/de/guide/appendix/media-formats.html
Your specific device documentation, from the manufacturer, if you're
interested in what additional formats are supported?
Really, you kind of lost me when you start talking about people
Hi,
I was thinking of buying a new phone for development and zeroed in on Samsung
Galaxy Pro
B7510http://www.samsung.com/in/consumer/mobile-phone/mobile-phone/smartphone/GT-B7510LKAINU/index.idx?pagetype=prd_detail.
I wanted to know if this is a good choice and if any of you have used it how
is
I use a link and most of the time the contact e-mails are legit.
Sometimes, I get those odd character ones and of course the empty ones
as well. I would say for every odd one I get twenty good ones so I'm
happy with the current state of affairs.
-John Coryat
--
You received this message because
All,
Is there a way to connect to the Android emulator (I am on Windows 7)
with Putty? I did a search and tried connecting to ports 5554 and
on the localhost, but that didn't work.
--
David Williams
Check out our
I have been attempting for a few days now to get a webview to work with a
location based service. Every post I can find seems to say the same thing -
create a webchromeclient and override onGeolocationShowPrompt().
I have gone as far as directly creating a copy of this and running it.
Code:
By default, the sqlite3 database is stored at /data/data/package
name/databases/database name
Is it possible to change the storage location to a path on the sd card
for example?
If Yes, would this be something like overriding something like the
sqliteopenhelper, setting some global parameter?
You may have to change it anyhow, as any database you in the package is
readonly. You can place the database onto SD card but be aware that the
card may be removed by the user.
eventually you can use a simple buffer copying
private void copyDataBase() throws IOException {
// Open your
It's a database design question, not an Android question. That's not evading
answering you -- it's probably the most helpful thing I'll tell you!
Understanding that your question really has nothing in it related to Android
will help you find the information you need, beyond anything I can tell
why not simply transform the view of the progressbar, with a scale transform
along the center vertical?
--
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
Generally speaking, if you need to query the schema at runtime, you're
probably not making good use of SQL -- unless you're making some sort of
schema-agnostic general tool.
Creating a table per project is not generally a good approach. It really
doesn't let the database be a database, and may
Make sure you are using telnet, not SSH or another protocol. Putty works
fine for me, with telnet on 5554, on Vista.
On Sat, Apr 23, 2011 at 5:49 PM, David Williams
dwilli...@dtw-consulting.com wrote:
All,
Is there a way to connect to the Android emulator (I am on Windows 7) with
Putty? I
Have you considered using Android code to write your own location
service? You have a lot more options doing it this way.
-John Coryat
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
@Kostya, no I don't use Wipe Data.
I don't know what the exact underlying problem was at this point but I
managed to fix things by manually deleting the sharedpreferences file
from the emulator's shared_prefs folder while in the ADB shell, and
then recreating it as an empty file using echo -n
hey Zsolt Vasvari
can you please explain in detail? and any code or example would be great
help for me.
Thanks
On Fri, Apr 22, 2011 at 8:52 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
I messed around this for a long time in my app and finally I decided
that the simplest way was to have a
My purpose in developing this app is to enable access to a webapp. A
particular tool in this webapp using google maps. The webapp also needs to
function on a browser.
I am confused by the lack of functioning samples and the unhelpful
documentation available.
If anyone has any experience
On Sat, Apr 23, 2011 at 7:19 PM, Moose coatedmo...@gmail.com wrote:
My purpose in developing this app is to enable access to a webapp. A
particular tool in this webapp using google maps. The webapp also needs to
function on a browser.
Either write an HTML5 offline-cached Web app, or use
the initial values are not inaccurate, they are just not what you think
they should be. Define lying flat on the table - are you sure the table is
level? in both dimensions? Etc.
Instead of fighting the sensor you could include a calibration function in
the app that accepts the user's
Thanks for the suggestion, I will definitely be looking into phonegap - I
have seen it mentioned a lot lately.
I added the call to enable geolocation - the link to the sample code I
posted isn't actually my own stuff.
It still doesn't make any sense that this functionality doesn't work as is
thx
Are you referring to the setScaleX/Y new in SDK 11, which seems to be
certainly the way to try there?
On Sat, Apr 23, 2011 at 6:23 PM, lbendlin l...@bendlin.us wrote:
why not simply transform the view of the progressbar, with a scale transform
along the center vertical?
--
You received
On Sat, Apr 23, 2011 at 3:23 PM, lbendlin l...@bendlin.us wrote:
why not simply transform the view of the progressbar, with a scale
transform along the center vertical?
You don't know what it actually does. If the original poster for some
reason actually needs some animation that rotates
no need for that . Use a simple Canvas scaling during dispatchdraw. That is
supported all the way down to API3
@Override
protected void dispatchDraw(Canvas canvas) {
canvas.save(Canvas.MATRIX_SAVE_FLAG);
canvas.scale(-1f,1f, getWidth() * 0.5f, getHeight() * 0.5f);
I have just about 0% spam rate from contact e-mails. Actually, I
don't remember receiving a single non-legitamate e-mail. I guess it
depends on the kind of user base your app attracts.
On Apr 24, 5:25 am, Maps.Huge.Info cor...@gmail.com wrote:
I use a link and most of the time the contact
Greets,
I finally jumped the shark and got the G-Slate and all my 3D demos
from the simplest to the much more complex result in a blank screen. I
just got the G2x too and have the Nexus S, N1, G1, Droid, etc. and my
engine / platform works great on every OS 1.5+... Auriga3D flies (old
build too).
Now who would commit such a user experience continuity* atrocity?
* yes, I made that up.
--
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
Hi All,
Does any one has the answer for VP8 GB support spec. like version, max bit
rate support and max frame rate (ex. nexus one or nexus S based)?
Regards
SCS
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send
While one hopes he does, it's not always a good assumption. But that aspect
wasn't the intended focus of my remarks.
The point is -- the timezone SHOULD have absolutely ZERO impact on the
actual calculated times.
There are really only three ways to get an error here that I can see. (Chime
in if
that is pretty simple and seemed to work (I needed to put it in an
overridden onDraw in this case)
well, there *was* a reason I was curious to see about getting it to go
counterclockwise -
and I am curious to go look at the HoneyComb one now
thx again all
On Sat, Apr 23, 2011 at 9:36 PM,
I am not aware of any existing GL applications that completely break like
this. I have run lots and lots of the top applications on Xoom without
trouble. Applications also haven't generally broken on previous platform
releases, and I am pretty sure there are many applications on Market that
Yes apologies and thanks for your quick reply. You provide great info
and are timely which is appreciated.. I'd be glad to buy a round for
the Android team... um how large is it again? Android graphics team?
um the really cool graphics folks? at I/O ;) I should not be allowed
to post on the
So I might have discovered my problem.
I borrowed a friends phone and tested my app on it. It works.
The device I had been testing it on was the motorola xoom (wifi only).
By logcat, it seems that on the phone (CM6), does make the call to
onGeolocationPermissionsShowPrompt, while the tablet
What exactly doesn't work in your application? We have tested many OpenGL
applications and games from Market, found and fixed bugs. We also sometimes
found issues that were in the apps themselves but nothing as dire as what
you are describing (although I couldn't really parse what your problem is
Hi Android Dev group members,
I've been searching high and low about installing Sense UI into my HTC
Magic (the one that is loaded with Google ION) but couldn't find any
relevant search results. This is the closest I could find:
http://developer.htc.com/google-io-device.html
There are several
90 matches
Mail list logo