It couldn't have been working before 1.5. The only way to safely
convert an object to a String without a NullPointerException is to use
a StringBuilder/StringBuffer or use a String concatenation:
String imageFileName = + myFile.imageFileName;
Or better yet, explicitly check for null :)
On
And if you do anyway, don't complain if your app breaks in a future release :)
On Fri, May 15, 2009 at 9:56 PM, Dianne Hackborn hack...@android.com wrote:
Yeah that seems fine. Just stay away from internal/private APIs (and
reflection tricks to get to them!).
On Fri, May 15, 2009 at 9:54
Thank you for your answer, Dianne. Problem however is, that even the
new Dialog themed activity won't adapt to an orientation change if the
parent activity is fixed to portrait or landscape mode. It seems the
reason is the transparent/transluscent background of it. Once I create
an activity with
- Send Lucky Draw - SMS Competition [Pakistan
Only...http://apnaapaisa.blogspot.com/2009/05/send-lucky-draw-sms-competition.html
- The World's Billionaires Women
2009http://apnaapaisa.blogspot.com/2009/05/worlds-billionaires-women-2009.html
- The Pakistan's Billionaires
http://filmi4u.blogspot.com/2009/05/kareena-kapoor-cover-girl-of-filmfare.html
- Sushmita Sen in Good Housekeeping Magazine - May
2...http://filmi4u.blogspot.com/2009/05/sushmita-sen-in-good-housekeeping.html
- Esha Deol Provogue Hot
I'm trying to use a managed dialog from inside a tab in a TabActivity and it
is not behaving as I expected. The dialog is still being killed when I flip
the screen. If I create the dialog from the TabActivity instead of its child
(using getParent().showDialog() ) it is handled correctly.
Is
Have you tried connecting an Android 'phone and using adb?
I've never been able to get it adb to a device working on Vista, and despite
moving from SP1 to SP2 RC, re-installing the driver, and everything else all I
ever get is The device cannot start (Code 10) in device manager, so I'd be
Hi all,
The question of mine is about the behavior of indication bar.
When you download some files in the browser,
you can see the indication bar is showing downloading icons.
When I tap the downloading icon after pulling down the indication
bar,
it's just closed and nothing
Hi friends,
I have written a small app which plays video well.
Its working fine for some video files, for some files the app is
unable to play. I got the log as follows:
W/PlayerDriver( 542): Using generic video MIO
E/PlayerDriver( 542): Command PLAYER_PREPARE completed with an error
or info
Thanks, thats a real HELP,
- Roman Guy.. I like your Info, but please its not enough to know that
a bug,
would be great you all help us with Turnarounds.
Now Jeff, one Question, i did not implemented you code right now.
But does this remove still the Problem, that the broadcasts are still
firing
This problem is baffling me, I cannot work out why a call to
startActivity() from the subclass of the running Activity causes this
error. If I call startActivity() from the Activity itself, not the
subclass of the Activity, it works fine.
Any ideas? I've spent too long on this problem now ;)
On
OK. Thanks all for the replies.
2009/5/13 Qcshz Ihnus qcshzih...@googlemail.com
On Mon, May 11, 2009 at 10:39 AM, moontain chen.worksp...@gmail.com
wrote:
Hi,
When I get code with following repo init command to get the official
android
1.5 code, I can't find the PinyinIME project,
I want to receive an intent describing the status whether SMS sent or
failed. I have following code to send SMS:
/**
* MainActivity is my activity class, MessageAlertReceiver is a
broadcast Receiver registered through manifest
*/
Intent intent = new Intent(MainActivity.this,
Euhm.. Then tell me why this class exists:
http://developer.android.com/reference/android/view/animation/CycleInterpolator.html
An i just follow the documentation for specifying interpolators:
http://developer.android.com/guide/topics/resources/available-resources.html#animation
By the way, i
Nope
On 10 mei, 05:49, Vincent Chan venc...@gmail.com wrote:
Open Source?
Vincent Chan
On Sun, May 10, 2009 at 03:06, TjerkW tje...@gmail.com wrote:
Hello Everybody!
For anyone that is interested in following the development of my
Android Game: AirAttack,
i have started a blog
This problem is related to my problem:
http://groups.google.com/group/android-developers/browse_thread/thread/4b39da63e56fb7e8/d89d4ab8e4462f2f?lnk=gstq=interpolator#d89d4ab8e4462f2f
It seams that android:interpolator=@android:anim/
linear_interpolator is not public...
On 22 apr, 14:35,
thanks
but what is this extras.getInt when I copy your code extras is
not defined
maybe you have a short workaround for that:
@Override
public void onUpdate(Context context, AppWidgetManager
appWidgetManager,
int[] appWidgetIds) {
ok.. i am a bit further (extras = Bundle extras = intent.getExtras
();) :)
but as i understood, So i just can handle when a widget come deleted.
But that doesnt change anything in the fact, that the internal
int[] appWidgetIds
still list them all. Could I delete the deleted Widget from that
Hi:
Not sure if anyone has same problem:
When one person debugging android application on a PC,
emulator-5554 === DDMS A === Eclipse A
can communicate well.
When the second person want to debug application on another emulator
on the same PC
emulator-5556 === DDMS B Eclipse B
The DDMS B
In the application gps points(lat, lon) are collected while device is
moving.
I am showing them as travel path on map with overlays.
Now the problem is when showing the path between the two points
which are at two road cross, it does not show path exactly on road, if
the distance between two
I've looked through a lot of the Android code and I can't find a
method to get the hardware id of the device where our app is
installed. How do we access it from our apps?
Thanks,
Jade
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
I've looked through a lot of the Android code and I can't find a
method to get the hardware id of the device where our app is
installed. How do we access it from our apps?
Try getDeviceId() in TelephonyManager:
http://developer.android.com/reference/android/telephony/TelephonyManager.html
Hi,
I am attempting to animate an ImageView using frame-by-frame
animation. I am using the following code:
ImageView pacImageV = (ImageView) findViewById(R.id.pacAnim);
pacImageV.setBackgroundResource(R.anim.pacanim);
pacManCharAnim = (AnimationDrawable) pacImageV.getBackground();
How can I help you if I have no idea what your code is doing? It might help
to see the lines of the code in the exception. I certainly can't see how
this has anything to do with being in a subclass -- like I said, you are
calling this on a Context that isn't initialized, such as what would
I'm trying to set the cell line color of GridView.
But I can't find the option from reference of GridView.
Is there any ideas to specify the cell line color of GridView?
Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hey!
Thank you very much for sharing this great code!
It helped me a lot!
But I have on problem! I have created a ruby on rails webapp where I
want to upload my image.
On the website I can upload a image without a problem but when I want
to upload the image with Android, the image cannot be
:) now step by step i come closer.
I can catch when a widget come deleted
but still the phantom widgets are in the appWidgetIds listed
Is there any way to delete this phantom widgets from my list
or get a working list of the active installed widgets?
or is the only way to make my own list of
No :)
On Sat, May 16, 2009 at 9:55 AM, awwa awwa...@gmail.com wrote:
I'm trying to set the cell line color of GridView.
But I can't find the option from reference of GridView.
Is there any ideas to specify the cell line color of GridView?
Thank you.
--
Romain Guy
Android framework
Euhm.. Then tell me why this class exists:
http://developer.android.com/reference/android/view/animation/CycleInterpolator.html
The class exists yes, but not its equivalent XML tag.
An i just follow the documentation for specifying interpolators:
The developer blog suggests that one might ask the user for a custom
widget update interval:
Consider updating as infrequently as possible, or letting your users
pick a custom update frequency.
http://android-developers.blogspot.com/2009/04/introducing-home-screen-widgets-and.html
It's not
Letting the user select a frequency can be done by not specifying
an updatePeriodMillis for the widget, but instead registering a broadcast
receiver with the AlarmManager that pushes updates through the
AppWidgetManager.
It's not possible to change the size of a widget from that defined in its
xml
Thanks for the info,
figured it out myself by now :-)
Nice to see you working on android, i followed your weblog a time ago
(a year or so) about
Swing and cool UI stuff (i think you worked @ sun then)!
Greetings,
Tjerk
On 16 mei, 20:44, Romain Guy romain...@google.com wrote:
Euhm.. Then
There are basically two ways to end up with phantom widgets being supplied
to your WidgetProvider.
In the first instance, its because the user chose to add a widget, but then
cancelled its configuration. To partially overcome this problem, you can
keep a list of all the widgets you know have been
No problem, i got to tell you it means a lot that you guys responding
to the questions. Thanks. See you at I/O.
On May 15, 5:59 pm, Romain Guy romain...@google.com wrote:
Sorry for that :(
On Fri, May 15, 2009 at 3:21 PM, Alexey Volovoy avolo...@gmail.com wrote:
Romain, thanks for the
OK, I have been looking into this some more, and it seems that the
reference to my ImageView is null.
My code is organised as follows:
Activity onCreate sets an onClick event
when the onClick event is activated, setContentView(layout_01) is
executed (this is the xml file which contains the
Btw, in the meantime you can set any interpolator you want using Java
code. I know it's not as nice as XML, but it helps. Also, you can
create your own linear_interpolator.xml in your application's res/anim
directory. You can copy this file:
Hi all,
I´ve created two AVD´s to test my application.
So I have two emulators running in port 5554 and 5556.
But the LogCat view shows the messages from both emulators. Even if
you select just the process you desire in the Devices View, the LogCat
still shows both messages..
is it a bug ?
Actually it did work prior to 1.5, it appears it has been fixed. You
should give it a
whirl! Thanks for the heads up on that.. Trying to make the migration
from .NET to
Java and some things that appeared like they would work apparently
have changed
some.
Thanks again!
Chris
On May 16, 1:02 am,
Are you talking about the DDMS perspective or the standalone DDMS?
If you use eclipse, do not use the standalone DDMS program, use the
DDMS perspective from within Eclipse.
If you do that you do not need to manually select the program in the
DDMS process list, the Eclipse plugin can
Once again: the ability to mount the SD card as a drive as nothing to
do with debugging over ADB or requesting the ADB driver.
The only thing that matters for ADB is whether you enabled Home
Settings Applications Development USB debugging. Did you?
R/
On Fri, May 15, 2009 at 5:26 AM,
Oops, looks like the menud is not declared correctly. I filed
http://b.android.com/2687 for it.
In the mean time, you can achieve the same by using the New Android
XML File icon in the toolbar.
R/
On Fri, May 15, 2009 at 10:29 PM, Makeable m...@makeable.co.uk wrote:
I am trying to create a
Hi folks.
I have two adjacent imagebuttons, I assign a custom OnTouchListener()
to both of them. When a touch event occurs the OnTouchListener returns
the view on which the touch event took place. My problem is that when
a user touches one imagebutton then moves to another imagebutton, the
I hadn't even noticed the button was there!
Thank you kindly :)
On May 16, 11:04 pm, Raphael r...@android.com wrote:
Oops, looks like the menud is not declared correctly. I
filedhttp://b.android.com/2687for it.
In the mean time, you can achieve the same by using the New Android
XML File
I've started building a Widget for an app that is mostly map centric,
i.e. consists of a screen-filling subclassed MapView, Overlay and so
forth. The relevant information that is displayed by the map overlay
actually fits into a Widget that uses one of the standard sizes, so it
would make sense
I suppose a simpler way of putting this is how can identify which
View objects a user passes through in a single motion
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group,
You can't directly, this is how event dispatching in the hierarchy works
(the view under the down event remains the target for the remainder of the
motion). You might be able to do something with some custom dispatching
code in the layout containing them, but exactly what you do will depend a
lot
Seriously, this never ever worked:
String imageFileName;
String theString = imageFileName.toString().
Calling toString() on a null object has always and will always result in a
NullPointerException.
On Sat, May 16, 2009 at 2:41 PM, chrispix chris...@gmail.com wrote:
Actually it did work
You probably shouldn't be doing this at all. Certainly, you shouldn't be
touching the view hierarchy from another thread. I would expect what you
are saying to actually work (and that you would get much more subtle
errors), but it's hard to say without seeing the code and considering that
there
Right, there is a specific list of framework views that can be used
when building widgets:
http://groups.google.com/group/android-developers/msg/a5247467151f5e3a
And subclasses of those views aren't allowed, since you could include
any arbitrary code in your subclass. (Because the widget's
Hi,
I've just spent a long time trying to figure out why my SD card has
not been mounting in the new 1.5 SDK emulator.
The cause was that I made a setting when I was using the 1.1 SDK in
the project debug startup to have the -sdcard option with the emulator
which over wrote the 1.5 AVD
Hello everybody !!! I'm learning Android and i want develope game Tic
tac toe ( multiplayer and network ) ! But I don't know the best method
to construct UI with large columns and row , play multiplayer on
network !
Some body can help me ? merci d'avance !
I got the same emulator: ERROR: the user data image is used by
another emulator. aborting message, albeit in a different context. I
had an emulator instance running, and then hibernated my Win XP
laptop. When I rebooted next, the laptop hung while restoring the
hibernated image. So I had to force
This works like a charm :) for internet site ...But Intranet site stop
working not able to browse internal sites.
What to do?
On Apr 30, 5:24 pm, Xeros zerosuni.sams...@gmail.com wrote:
Hello, Mallikarjuna
There's many of solution. (inserthttp_proxyinto settings.db, use -
http-proxy option
I'm running into the same problem, but when I make this change
(webview to webkit) I get a compile error saying it cannot be
resolved. Ctrl-Shift-O doesnt bring in any new imports, so I'm at a
loss as to how to get the compiler to recognize this.
Can you shine some light?
Many thanks. SJ
On
The green plane is shown on the golden-brown surface but when I press
a key nothing happens.
I want eventually be able to move the plane pressing 4 different keys
+ another one for shooting but that's easy if I can just get the thing
moving in the first place.
When I press a key in the emulator,
Is it possible to draw on the incoming call screen? I know that a few
of the whitepages apps do it, but I would like to know how.
Thank you for your time
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android
I want use the methods in android.graphics to draw one board (board
chess , ) Some body can help me ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
same problem is here , i have on my emulator a nice map, but when i
deploy my application
it keeps giving me this white bad grid
i have no idea why is that contradiction,
PS . i have checked my mapapi key,
i have checked the internet connection
i have checked the FINE access for location
Hello Group,
I'm working on Linux (Ubuntu if it matters, latest kernel).
When I start the emulator I get the following message (without the
quotes).
emulator: warning: opening audio output failed
I am unable to play any sound on my emulator - though doing so, does
NOT cause the emulator to
Hi,
I have developed a ListActivity where each row of the list contain a
drawable (downloaded from an url, cached locally and in memory). So, I
use a custom SimpleAdaptor to fill the list.
My problem is that the list is very slow.
It seems like the component try to reuses a small number of row
HI,
Anybody can send the link how to install Android SDK 1.5 on windows
XP. I have install many times according to this link.
http://www.buildcontext.com/blog/2008/11/21/android-sdk-browser-test-emulator-pc-google/
It is not displaying the simulator.
Please suggest.
I'm in the same boat here, I can get the phone mounted as a drive but
not as a device to test my
apps on. I've tried all sorts to install the usb driver that came with
the sdk perhaps it's G1 only.
If anyone manages to get an htc magic listed under 'adb devices' plz
let me know.
I'm Vista 64 bit
I have two cursor, one of them from contact content provider, other one from
database. id fields are sycnhorinzed.i want to show them in same column with
two row in list.
i m think that i have to use simpleCursorAdapter, because arrayadapter and
other adapters can not show two cursor in a list.
guys i am just following a simple example here where i need to get my
location lat and longitude but its not working although its so simple i cant
find where i fall
but here is my code
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Hi there,
I need to capture an image from camera and display on surfaceview for
my project. I am trying to obtain bitmap from data in onPreviewFrame
method of previewCallback and display on surface using canvas.
Can someone please help me?
Following steps were done:
- created a Preview class
Hi android developers,
I'm new to the great android platform, trying to get into RPC with
aidl and services.
I didn't find a sufficient answer to my problem in any posts, if there
already is one, please excuse and point me to it, thanks.
I made 2 projects.
project 1 hast an activity that
I have just found the same issue (issue #2 in the above post), but
maybe I can add some more insight.
If I include this code in my ContentProvideer query method:
snip /
SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
snip /
String _query = qb.buildQuery(projection, selection,
Hi group.
I have a standard dialog with a headline, a label, a text field,
another label and a DatePicker. They are laid out using a vertical
LinearLayout. When the user slides the keyboard open, the dialog is
rotated. Now, the dialog does no longer fit on the screen, it is to
tall.
Hello all...
I want to develop aplication for push mail, application server and client in
android.
How is the arsitecture? and Is there any kind tutorial for this case?
On 5/16/09, mathiastck mathias...@gmail.com wrote:
If the issue is you want portions of text to wrap with images in
Amigos, (FOR BRAZILIAN)
O que vocês acham de criarmos um group de sobre desenvolvimento de Android para
brasileiros em português.
Caso haja interessados eu mesmo crio o grupo.
Obrigado.
Gustavo
São Paulo / Brasil
--~--~-~--~~~---~--~~
You received this message
You could try using a different layout for landscape mode, where instead of:
label
textfield
label
datepicker
you make it:
label textfield
label datepicker
Would that work for your particular layout?
On Sat, May 16, 2009 at 9:18 AM, Thomas kuenne...@googlemail.com wrote:
Hi group.
I
+1
On Mar 30, 10:19 am, cannehal tomasz.l...@gmail.com wrote:
I have similar issue. Cannot retrieve image from database (BLOB). As
far as I know it should work without writing your own ViewBinder,
because setImageView is doing all the work. Can someone help us with
this issue?
On 25 Mar,
Your TableLayout has height=fill_parent, it's therefore as tall as its
parent, so there's no more room left on screen to show the TextView.
On Sat, May 16, 2009 at 2:58 PM, efan e...@efansoftware.com wrote:
I need show some text description after a TableLayout but it is not
shown.
Layout
Could you show the code of your adapter?
On Fri, May 15, 2009 at 5:09 PM, OTB erwan.allia...@gmail.com wrote:
Hi,
I have developed a ListActivity where each row of the list contain a
drawable (downloaded from an url, cached locally and in memory). So, I
use a custom SimpleAdaptor to fill
Can you explain how it worked up until now? Maybe the file naming on
the camera has changed?
On May 16, 8:12 pm, Dianne Hackborn hack...@android.com wrote:
Seriously, this never ever worked:
String imageFileName;
String theString = imageFileName.toString().
Calling toString() on a null
On Sat, May 16, 2009 at 8:59 PM, Romain Guy romain...@google.com wrote:
Your TableLayout has height=fill_parent, it's therefore as tall as its
parent, so there's no more room left on screen to show the TextView.
and to fix that add an android:layout_wheight=0 to the table layout
and a
On Fri, May 15, 2009 at 5:09 PM, OTB erwan.allia...@gmail.com wrote:
Hi,
I have developed a ListActivity where each row of the list contain a
drawable (downloaded from an url, cached locally and in memory). So, I
use a custom SimpleAdaptor to fill the list.
My problem is that the list is
On Sat, May 16, 2009 at 9:25 PM, Raphael r...@android.com wrote:
On Sat, May 16, 2009 at 8:59 PM, Romain Guy romain...@google.com wrote:
Your TableLayout has height=fill_parent, it's therefore as tall as its
parent, so there's no more room left on screen to show the TextView.
and to fix
On Sat, May 16, 2009 at 9:35 PM, N V nithi...@gmail.com wrote:
HI to all
i am recorded a video with .mp4 format... and try to play on
emulator through
sdcard as well as streaming... But i will give error like cannot play
the video I am
using sdk 1.5... Can anyone help me what is
Thanks for reply...
But i tried another video i e test.mp4 through sdcard...
But it works fine
May emulator support all .mp4 files...?
Thank You
Nithin N V
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups
The official install instructions are here:
http://developer.android.com/sdk/1.5_r1/installing.html
Please describe what you did and what doesn't work as expected.
Installing under XP is generally straightforward:
- Check this is not an XP 64-bit (does that even exist?)
- Install Eclipse for
Create a custom view, override onDraw and draw on the canvas.
Look at the LunarLander sample for an example of custom view.
R/
On Sat, May 16, 2009 at 12:44 PM, VREAUF51 v.r.e.au...@gmail.com wrote:
I want use the methods in android.graphics to draw one board (board
chess , ) Some body can
Make sure your view has the focus:
http://developer.android.com/reference/android/view/View.html#requestFocus()
R/
On Sat, May 16, 2009 at 4:46 AM, klirr haskell...@gmail.com wrote:
The green plane is shown on the golden-brown surface but when I press
a key nothing happens.
I want
Anyone can help me on this?
I installed android sdk 1.5, but in no where I can find the geo
command. Where should I get one?
Thanks very much.
Dalvik
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android
If you install via an ADT zip file, make sure you get the latest (0.9.1).
Rather than using the zip file, use the update size in Eclipse to
automatically get the latest version
(https://dl-ssl.google.com/android/eclipse/). Remember that for most
people this fails via https so just use the http
HI..
I installed 1.5sdk successfully... First remove older ADT
files... And download the 0.9 ADT.. Its zip file.. After removing the
old ADT following steps
i followed... In eclipse
1- Help
2- Software updates
3- Available Software
4- Add site
5- Archive(add the ADTzip file located in your
86 matches
Mail list logo