That is a very bad way of doing it. What if the user presses the HOME
button? What if the user goes to a different activity using the
notification bar? The camera button? What if it's a device that allows
switching activities using a custom button?
Relying on a button press to detect the
Any tools in java/android sdk to unescape a escaped xml string?
--~--~-~--~~~---~--~~
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
That sounds dangerous to me (depending on such implementation details). If
you need to keep the data around, just copy it into another array you have
to hold it.
On Fri, Sep 18, 2009 at 8:56 PM, Rud rudmerr...@gmail.com wrote:
I can understand the reasoning. My Galactic Guardian game breaks a
Resources.getDimensionPixelSize
(android.R.attr.listPreferredItemHeight) does not work.
So how to?
And any other way to specify resolution independent dimension values
in Java code?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Under Games: Arcade/Action submitted for ADC2
World of Bombs (http://www.zeugame.com/wob2)
This Game offers the first Clounding Multiplayer game available on
Android
and computers
It allows you to play easy and fast battles to up 4 players. with any
kind
configuration whatever you use Android
Carmen Delessio wrote:
Watch this video:
http://code.google.com/events/io/sessions/TurboChargeUiAndroidFast.html
Check Mark Murphy's book http://commonsware.com/Android/index.html
Read several posts here:
http://www.androidguys.com/2008/07/14/fancy-listviews-part-one/
Short answer:
Hello,
i tried an old(er) example / tutorial to capture a picture from the
camera.
But android.hardware.CameraDevice; cannot be resolved. Has the name
changed or have somebody a good tutorial for android 1.6 and the
camera??
Thanks,
Stefan
PS: If I press a button, I want to open the Camera and
Stefan wrote:
Hello,
i tried an old(er) example / tutorial to capture a picture from the
camera.
But android.hardware.CameraDevice; cannot be resolved. Has the name
changed or have somebody a good tutorial for android 1.6 and the
camera??
Thanks,
Stefan
PS: If I press a button, I
Entertainment.
What's Shakin'
http://whatsshakin.codejanitor.us/
What's Shakin' is a percussion instrument that feels sounds like an
acoustic shaker (shake your phone!) - so good, you can play to LIVE
music or songs on your phone. Settings include: sensitivity, number of
beads, visualization,
I got a issue with DisplayMetrics.
DisplayMetrics dm = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);
Log.d(TEST, dm.widthPixels + x + dm.heightPixels);
If I do not specify the uses-sdk android:minSdkVersion=4 / or
supports-screens
Test on HTC GPhone, android sdk version is 1.5
Uri uri = Uri.withAppendedPath(Phones.CONTENT_URI, 25); // 25 is
known as id of one phone
this.getContentResolver().delete(uri, null, null);
with exception:
09-19 17:48:35.543: ERROR/JavaBinder(117): *** Uncaught remote
exception! (Exceptions
Thanks, your Activity is great and I might just use it (I have to
speak with a manager - the reason why I used quotes is because he's
actually my brother :P). Still, I think an application would be more
'polished' if it was able to launch the standard YouTube application
(I'm all for
But it's still made by Google, isn't it? So it's standard across all
devices?
On Sep 19, 2:43 am, Mark Murphy mmur...@commonsware.com wrote:
Felix Oghina wrote:
How can I get the YouTube application in the emulator? I want to
create an application that launches YouTube clips and I need to
This ADC2 entries list is updated and moved to 'Android Discuss' group
at:
http://groups.google.com/group/android-discuss/browse_thread/thread/b0111088236fb0a3#
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups
thanks a lot,
the example work fine!!
Greets,
Stefan
On Sep 19, 11:31 am, Mark Murphy mmur...@commonsware.com wrote:
Stefan wrote:
Hello,
i tried an old(er) example / tutorial to capture a picture from the
camera.
But android.hardware.CameraDevice; cannot be resolved. Has the name
I would imagine they have to follow the GSM spec for GSM networks..
Fred Grott
http://mobilebytes.wordpress.com
On Sep 17, 6:43 pm, AndroidKing rbasso...@gmail.com wrote:
can you tell me if the MEID which is the device ID on the Hero phone
is going to be 15 digits
is it hex or decimal???
Felix Oghina wrote:
But it's still made by Google, isn't it? So it's standard across all
devices?
Only those devices that license it.
For example, it is unclear if the Archos 5 Android devices have YouTube.
I rather doubt they do, as Al Sutton has indicated they do not have the
Android
Hello,
i need to store data securely. So can some one tell me what should be
the best way to store it on device. Is there something like registory
in android.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android
HI all
Is Zoom in out possible in Gallary View to do
if yes any body give me some ideas.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Sorry about the naming of this topic, I couldn't think of something
more suited. I have a simple EditText View (single line) and want to
perform a certain action when the user presses Enter while it is
focused. Also, I would like to make it so that the virtual keyboard
says Go instead of Done and
Thanks.. this is really helpful article. can i send a sms from my own
application and receive it by the same emulator in its existing
messaging application? In that case shall I need to do any kind of
settings external to my application? currently my sms sending
application sends it fine. But I
Hmm this is not working..
Got error, probably problem with tabonchangelistener..
Can you post an example of that?
On 18 sep, 22:44, nEx.Software email.nex.softw...@gmail.com wrote:
Well, I'm not sure why you would get the TabSpec there, but I
personally would replace:
return;
with
Do you know a solution?
On 18 sep, 19:00, Wouter wouterg...@gmail.com wrote:
This is the function:
public View getView(int position, View convertView, ViewGroup parent)
{
int sectionnum = 0;
for(Object section : this.sections.keySet()) {
I am new to Android Development.
can u tell anybody. how can i retrieve data from mysql database and
display in Checkbox.
Thanks in Advance.
With regards,
Raghav.S
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Good work..
Its also nice to see my first contributions starting to show up in
the SDK versions..:) I look forward to making more contributions..
Fred Grott
http://mobilebytes.wordpress.com
On Sep 15, 5:22 pm, Xavier Ducrohet x...@android.com wrote:
You have been posting this since December..
Soome better details might help get the position filled..
On Sep 18, 10:15 am, J Kral jdk@gmail.com wrote:
A startup company with a proven management team in the Northern Virginia
area is seeking Java/Android senior and mid-level developers
Thank you Carmen Delessio for replying. This is helpful!
On Sat, Sep 19, 2009 at 4:34 AM, Mark Murphy mmur...@commonsware.comwrote:
Carmen Delessio wrote:
Watch this video:
http://code.google.com/events/io/sessions/TurboChargeUiAndroidFast.html
Check Mark Murphy's book
Hi guys
I'm working on android emulator, how can i execute dd command?
I try with:
dd if=/dev/block/mtdblock1 of=/sdcard
but i have thìs error: I/O error...why?
Thanks,
Francesco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Yep, I noticed this too.
Very annoying when you're working on an app primarily in landscape
mode and using trackball/pad input.
On Sep 16, 12:13 pm, Robert Green rbgrn@gmail.com wrote:
Oh I'm certainly crazy. :)
On Sep 16, 12:07 pm, Mark Murphy mmur...@commonsware.com wrote:
Xavier
Hey,
I am working on a new project now and I want to use a method as above.
But I hadn't used this anymore, because it doesnt worked for me..
I have this: http://snapplr.com/tp7p
So i have different widgets (TextView, ImageView) and this all in a
scrollview (because otherwise window doesnt
Thank you everyone for the helpful information.
What I have learned so far:
* Android devices are limited in speed and power, so don't expect all
the same functionality of a computer.*
I understand this concept, and my initial suspicion is that this is
not the issue. I have one (1) slider on
Wouter wrote:
Hey,
I am working on a new project now and I want to use a method as above.
But I hadn't used this anymore, because it doesnt worked for me..
I have this: http://snapplr.com/tp7p
So i have different widgets (TextView, ImageView) and this all in a
scrollview (because
I found how to resume the download without reading the previous data
using an HTTP Range request. For others that need to do this, the
modified code is:
URL url = new URL(mInternetUrl);
HttpURLConnection connection =
(HttpURLConnection)url.openConnection
();
good point!!!
On 9月19日, 上午1时50分, Marco Nelissen marc...@android.com wrote:
Sure you can, you just need a phone.
On Fri, Sep 18, 2009 at 9:21 PM, !oEL runzhou...@gmail.com wrote:
So there is no way I can really test it?
On 9月18日, 下午1时07分, Roman ( T-Mobile USA) roman.baumgaert...@t-
ebisudave wrote:
Is there no reference that outlines any special considerations for how
JavaScript runs on Android?
Not that I have seen.
Is Android *supposed* to run JavaScript
like any other JavaScript capable browser?
On the whole, yes. Bear in mind that Android uses WebKit, so where
On Thu, Jul 23, 2009 at 6:34 PM, Dianne Hackborn hack...@android.com wrote:
It sounds like you are abusing toasts. How about just showing your own
dialog that is set up to not get focus or be touchable? You can use this
background to make it look like a toast:
Hey Mark,
The Demo from SackOfViewsAdapter looks really nice and i think this is
it what i am looking for.
But i have a layout xml file where i declarate all the widgets (yes
its a lot).
Do i have to put this layout file in seperate file (so for all that
has to come above the review list) and
Hi,all.
I met a very strange problem.And I can not understand the
reason of this happening.Recently I just create an app(that is using
mediaplayer ) to play the rtsp Streaming.At the beginning,I use the
sim card to connect to the internet.I try to let the app play for many
times .But it
Wouter wrote:
But i have a layout xml file where i declarate all the widgets (yes
its a lot).
Do i have to put this layout file in seperate file (so for all that
has to come above the review list) and then do like this:
View v = LayoutInflater.from(this).inflate(your_layout_xml,..);
Ok thank you i will try putting them in seperate layout files now!
Will let you know if this all worked ;)
On 19 sep, 18:28, Mark Murphy mmur...@commonsware.com wrote:
Wouter wrote:
But i have a layout xml file where i declarate all the widgets (yes
its a lot).
Do i have to put this
I am close to sorting this out ... I will post my code when I know I got it.
There are a few threads on this topic that offer advice where an
example would be more useful (IMHO).
j
On Sat, Sep 19, 2009 at 12:11 PM, Jason Van Anden
jason.van.an...@gmail.com wrote:
On Thu, Jul 23, 2009 at 6:34
Wouter wrote:
Isn't this the right way to inflate?
LayoutInflater inflater = (LayoutInflater)this.getSystemService
(Context.LAYOUT_INFLATER_SERVICE);
View filmLayout = inflater.inflate(R.layout.filmdetail_layout,
null);
plot = (TextView)
Isn't this the right way to inflate?
LayoutInflater inflater = (LayoutInflater)this.getSystemService
(Context.LAYOUT_INFLATER_SERVICE);
View filmLayout = inflater.inflate(R.layout.filmdetail_layout,
null);
plot = (TextView) filmLayout.findViewById(R.id.plot);
Ok but is the MergeAdapter not better for adding a listadapter to the
listview? or how can i do that too with SackOfViewsAdapter?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to
My debug.keystore certificate has expired. Does anyone know how to
force Android to regenerate either certificate or the whole directory
under
C:\Documents and Settings\Admin\Local Settings\Application Data
\Android
I have tried deleting the file then recompiling and switching SDK's
but nothing
My debug.keystore certificate has expired. Does anyone know how to
force Android to regenerate either certificate or the whole directory
under
C:\Documents and Settings\Admin\Local Settings\Application Data
\Android
I have tried deleting the file then recompiling and switching SDK's
but nothing
Yes you are correct about the activity stack, with the following
caveats. The activity that you call may not be designed perfectly for
your use case. For example, YouTube is all about viral promotion of
videos, and if you don't want your user wandering off, or perhaps want
the activity to
I have this now:
private void setupViews()
{
MergeAdapter adapter=new MergeAdapter();
LayoutInflater inflater = (LayoutInflater)this.getSystemService
(Context.LAYOUT_INFLATER_SERVICE);
View filmLayout =
Wouter wrote:
Ok but is the MergeAdapter not better for adding a listadapter to the
listview? or how can i do that too with SackOfViewsAdapter?
The MergeAdapter uses the SackOfViewsAdapter. If you wish to use
MergeAdapter, feed it the inflated views and your other adapters, as per
the demo:
Thank you so much for your help!
It worked great and fast with MergeAdapter..
Preview: http://snapplr.com/803q
Very nice :)
On 19 sep, 19:16, Mark Murphy mmur...@commonsware.com wrote:
Wouter wrote:
Ok but is the MergeAdapter not better for adding a listadapter to the
listview? or how
Hmm it seems that i cannot click on the list items.. how can i enable
that?
On 19 sep, 19:23, Wouter wouterg...@gmail.com wrote:
Thank you so much for your help!
It worked great and fast with MergeAdapter..
Preview:http://snapplr.com/803q
Very nice :)
On 19 sep, 19:16, Mark Murphy
On Sat, Sep 19, 2009 at 9:47 AM, Jason Van Anden
jason.van.an...@gmail.comwrote:
There are a few threads on this topic that offer advice where an
example would be more useful (IMHO).
I post to this list in my (oh so copious) spare time; I can either post
answers that I can do quickly, or just
That is intentional. If you haven't said you support other densities than
the framework runs you in a compatibility mode to make it look like you are
on a medium density device. By saying that you work with SDK 4, you are
also implying that you understand how to deal with densities.
On Sat, Sep
Android doesn't have a registry. Please read the documentation on security:
http://developer.android.com/guide/topics/security/security.html
http://developer.android.com/guide/topics/security/security.htmlAnd data
storage, which operates within the uid constraints:
You are trying to retrieve an attribute identifier as a dimension, which is
incompatible. If you want to get the value of an attribute in the theme,
you can use the Theme class (though typically you will use
declare-styleable to define a set of attributes you are interested in and
retrieve them
Also you can check isFinishing() in onDestroy() to find out of the activity
is actually being finished. This is described in the onDestroy()
documentation:
http://developer.android.com/reference/android/app/Activity.html#onDestroy()
Edit: got it, thankx
On 19 sep, 19:25, Wouter wouterg...@gmail.com wrote:
Hmm it seems that i cannot click on the list items.. how can i enable
that?
On 19 sep, 19:23, Wouter wouterg...@gmail.com wrote:
Thank you so much for your help!
It worked great and fast with MergeAdapter..
Wouter wrote:
Hmm it seems that i cannot click on the list items.. how can i enable
that?
To quote from my copious documentation:
You are welcome to override other methods as well, since this is just
an Adapter. In particular, if all rows are not enabled for selection,
you will want to
Dear Dianne et al,
My feedback was meant as constructive criticism in general -
definitely not as a dis directed at you. I believe that an example is
worth a thousand words - it works or it don't.
I appreciate the time you spend with the board. I make it a point to
star pretty much anything
On Thu, Sep 17, 2009 at 06:35:43AM -0700, QF wrote:
Yes, source code is there, but there is not git TAG (something like
android-sdk-1.6_r1) in the repo. Is the tree going to be taged soon?
The tags are there now. Thanks guys!
--
Tom Rini
Is there a way to recognize that the Notification window is open?
My current app plays a ringtone for text messages, but doesn't
override their messaging notifications, so the user has to actually
make it into the messaging app before the sound stops. I would like it
to stop if the user pulls
You are making a theme, which is a kind of style that applies to an entire
context, but just a UI element. You need to use it as the theme for an
activity take or the second argument to the Dialog constructor, however you
are creating the window.
On Sat, Sep 19, 2009 at 11:26 AM, Jason Van Anden
(Btw, Api demos has one or two examples of creating custom themed dialogs, I
believe in the app section.)
On Sat, Sep 19, 2009 at 12:07 PM, Dianne Hackborn hack...@android.comwrote:
You are making a theme, which is a kind of style that applies to an entire
context, but just a UI element. You
I don't believe there is. But I don't really understand the problem --
notification sounds should be short. If you are playing a sound that goes
on for a long time, I think that would be the problem.
On Sat, Sep 19, 2009 at 11:52 AM, Tydiz tydiz...@gmail.com wrote:
Is there a way to
Is Android *supposed* to run JavaScript
like any other JavaScript capable browser?
On the whole, yes. Bear in mind that Android uses WebKit, so where you
see browser-specific instructions for Javascript libraries, follow those
for iPhone, Safari, or perhaps Chrome.
If only Chrome were
In a word: YES!
Implementations of JavaScript vary across all the major platforms, you
have to be very careful about testing, test and more testing each time
you make a change to any code on a web page. The worst offenders are
IE6 and IE7. Safari has plenty of quirks and as the iPhone is a
Thanks Mark, that was the hint I needed.
What I really wanted to know was whether or not the battery was
currently in use, and for anybody else following this thread, here's
the method I came up with:
/**
* Is the battery currently discharging?
*
* @return True if our
I see. It seems rather peculiar to me that such a powerful platform
with so much accent on freedom and sharing between applications lacks
this particular, very useful, feature. dadical, thank you very much
for your Activity, I will surely use it as an example for writing my
own (I'm new to both
Its set to play however long they want it to(1-60 seconds or however
long the ringtone is) or until they read the any of their unread
messages.
I didn't think there was a way but I thought I would check, in case
someone happened to know.
Thanks for the quick response :)
On Sep 19, 1:09 pm,
What do you mean by in use? You can find out whether you are attached to
a power source with the plugged field (0 means not plugged in / on
battery, non-zero is the power source), which is generally what things use
to determine whether the device is plugged in (so it is okay to do more
power
what code do you have in onResume() ?
On Sep 18, 6:40 pm, Agus agus.sant...@gmail.com wrote:
Hi all,
I need to open a progress dialog on the onResume() method. But no dialog is
opened.
Any solutions for this?
Agus.
--~--~-~--~~~---~--~~
You received this
On Sep 18, 5:49 pm, fadden fad...@android.com wrote:
I don't know anything about how Maps works, so I can't offer any
specific advice there. Something is using lots of memory, and until
it stops, this will be a problem. :-(
I understand Andy, I was just wondering if you could answer my
Tell the Android team to add Wifi support in the emulator ...
--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile
I think I already know the answer to these, but I'm going to ask
anway:
1) Is there a straightforward way to set the background color of a tab
in its unselected state?
2) Is there a simple way to align the text on a tab?
--~--~-~--~~~---~--~~
You received this
The idea is to allow developers to access a remote database provided
by google. In android the developer will need a special permission to
be set at the manifest file. This could allow applications to keep a
backup of users application data without having to sign in ever,
seamless.
Users could
Where can I find default styles for my widgets? Let me give you an
example. In the Contacts application, when adding a new contact, at
the very bottom there are two buttons that have a particular
background. I have traced that to here:
With the 1.6 SDK you have full contol of the look of the tab since you
can set the tab to be any view you provide. Previous versions of the
SDK required considerable work to do the same.
On Sep 19, 2:29 pm, polyclefsoftware dja...@gmail.com wrote:
I think I already know the answer to these, but
Naturally, you've got the right idea - and the elements are (almost)
in place today. There's probably more legwork needed than a nicely
wrapped framework would require, and there's a security concern that
you need to cover yourself. What can be done today:
- On the server side, you can use
ebisudave wrote:
On the whole, yes. Bear in mind that Android uses WebKit, so where you
see browser-specific instructions for Javascript libraries, follow those
for iPhone, Safari, or perhaps Chrome.
If only Chrome were available on Linux... but that's another issue.
I'm reading this
I have an application in the market and I tried to post an update, but
it says that The apk must be signed with at least one certificate in
common with the previous version. I don't have the previous
certificate and I can't simply create a new project since my app is a
paid app and I don't want
How can I find a contact enrty given a phone number?
--~--~-~--~~~---~--~~
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
Yeah. It's easy.
Override onCreateDialog() - have it create your dialog.
Override onResume() - call showDialog(id).
It's the same as any creation of a dialog.
I like to declare a constant for each dialog id. The ID you pass from
showDialog gets passed into onCreateDialog(int id). So just
I see, but I am not initializing a custom view. Is there any simple
way to retrieve a predefined attribute value as whatever proper type?
On Sep 20, 2009, at 1:33 AM, Dianne Hackborn wrote:
You are trying to retrieve an attribute identifier as a dimension,
which is incompatible. If you
I have 3 different Activities that user navigates between in no
particular order. My goal it twofold:
1. When user switches to something else when app is resumed I want
to start where user left even if app was terminated. Specifically I
want to display last viewed activity, not the default
My problem is that data I'm loading/reloading into WebView takes long
time to process since it's full blown HTML + JS + CSS. I noticed that
when cached, same code loads way faster.
What I'm trying to do is to minimize loading hiccup when user reloads
already cached content
On Sep 3, 4:42 pm,
Indra - I would suggest asking separate question. It's hard to answer
2 questions on a single thread however related these may be
On Sep 18, 4:10 am, indra indrad...@gmail.com wrote:
Hi Guys,
I am doing google search and I want to receive the data without
loading the webView.
Just like a
Hi,
* http://www.nanaze.com/2009/01/debugging-javascript-on-android.html *
Thank you for the link, however, that article went way, way over my
head, at commercial airliner altitudes.
Maybe not.
Just:
1) get the sdk http://developer.android.com/sdk/1.6_r1/index.html
2) set your path
I'm just saying you need to retrieve it from the theme, and the custom view
Api demo is one example I know of doing so.
On Sat, Sep 19, 2009 at 6:26 PM, an0...@gmail.com wrote:
I see, but I am not initializing a custom view. Is there any simple way to
retrieve a predefined attribute value as
R.style contains all of the public styles. If it isn't in there, it isn't
public.
On Sat, Sep 19, 2009 at 4:07 PM, Felix Oghina felix.ogh...@gmail.comwrote:
Where can I find default styles for my widgets? Let me give you an
example. In the Contacts application, when adding a new contact, at
Here's what I have learned so far:
The following scripts all behave the same on my Android device:
http://developer.yahoo.com/yui/examples/slider/slider-ticks.html
http://developer.yahoo.com/yui/examples/slider/slider_dual_thumb_clean.html
Shawn,
This is much easier than the stuff I know you fiddle with in you linux
box
No... no it's not. Let's not get into broad statements about what my
environment is like or how I handle it. Linux is fine, it's me who has
different abilities, so please leave it for me to decide what I can
and
91 matches
Mail list logo