crashed because its controlling software used both
metric and imperial units, and someone forgot to add conversion. A good
reason for the US to go metric.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
04.09.2010 17:48 пользователь Churky chu...@gmail.com написал:
I was like to make a small
Without the angle brackets, right?
adb uninstall com.shootingrange
Like that?
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
03.09.2010 18:09 пользователь kingh32 horaceb1...@gmail.com написал:
Yes that is definately what iI did, replace package with
com.shootingrange
On Sep 3, 3:03 pm
Agreed, but shouldn't it be: the only thing that's *supposed* to swap
buffers?
Clearly *something* causes the objects drawn with color for hit testing to
be visible...
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
05.09.2010 0:59 пользователь Robert Green rbgrn@gmail.com написал
Might want to also check for last forward slash, in case the path portion of
the filename contains a dot.
E.g.:
/sdcard/.myapp/cachefile
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
05.09.2010 21:53 пользователь Filip Havlicek havlicek.fi...@gmail.com
написал:
Well, you got it wrong i
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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
06.09.2010 2:59, JimBadger пишет:
What about part 2? I want a visual refresh of Activity A when
returning to it from Activity B (or C, or even G), that reflects how
the game data that affects Acitivty A has changed since the user left
it...
Override onResume or onStart
--
Kostya Vasilyev
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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
I do to always detect Connection Reset by Peer exception?
Thanks for any help,
Android 2.1
HTC Desire
Cédric
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups Android Developers
is connected to
Wifi.
Make sure your network code handles connectivity going away and resumes
downloads as necessary.
Memory cards use fat32 file system, which does not support Unix permissions,
so check for files still being there upon startup.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
Take a look at include in the resource layout XML spec.
Alternatively, you could manage visibility of the variable parts of your
layout from code. Look up view.setVisibility. Or use a ViewFlipper to switch
the varying views.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
07.09.2010 0:57
in the framework layer rather than application specific by
using the singleInstance theme in the launchMode in AndroidManifest
file.
Please help me in this regard as this is really urgent for me.
Any inputs will be really valuable for me.
Thanks in advance.
Regards,
Revathi K J Ramanan
--
Kostya
/android-developers?hl=en
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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
the sort.
You can throw a subclass of RuntimeException, even if the method
signature doesn't allow it.
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups Android Developers group
this result?
Oh, also ... this listview is in a dialog and the listener is in the
activity that builds the dialog.
Hope to hear from you soon. Thanks,
Gabriel Simões
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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
that builds the dialog.
Hope to hear from you soon. Thanks,
Gabriel Simões
--
Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed
´s
view but it still doesn´t work.
Any tips here? Can I archive this result?
Oh, also ... this listview is in a dialog and the listener is in the
activity that builds the dialog.
Hope to hear from you soon. Thanks,
Gabriel Simões
--
Kostya Vasilyev -- WiFi Manager + pretty widget --http
results. The Resource Not Found
error persists, even if the ArrayAdapter is created in the main thread
and then filled in the Async Thread. Anyone have any ideas for other
things to try?
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received
it's not our code leaking it (but I could be wrong).
And even if it was a leak in our code, the explicit recycle() should
have sorted it out.
On Sep 7, 1:08 pm, Romain Guyromain...@android.com wrote:
It could also be a memory leak in your application.
--
Kostya Vasilyev -- WiFi Manager + pretty
source line number that was executing at the time?
I've been able to find the error message, which often leads me to the
general area of the faulty code, but it would be nice to get an actual
line number (sometimes TMI in the Eclipse windows when I'm looking for
the basic facts!).
--
Kostya Vasilyev
Try calling startActivity first, then finish. Both are processed
asynchronously (afaik), after the calling method returns control to the
framework.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
08.09.2010 23:51 пользователь OldSkoolMark m...@sublimeslime.com
написал:
I've been using code
...especially if the already installed version was signed with a different
(debug) key, as can easily happen during development.
Perhaps it would make sense to try uninstalling first, and repeating the
test with the web site.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
09.09.2010 2:00
Matrix transformation methods are cumulative. If you wish to apply absolute
transformation values, you need to reset the matrix to identity first.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
08.09.2010 15:19 пользователь dadada ytbr...@gmail.com написал:
hello all,
i used matrix
://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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
09.09.2010 8:32, chetan пишет:
Now my question , would the set alarm persist after reboot of
phone ?
Thanks
Chetan Chauhan
No, it won't. The way handle it is to implement code to receive
BOOT_COMPLETED broadcast, and start the alarm (and perhaps the service)
then.
--
Kostya Vasilyev
of a
notification to two lines instead of 1? The text I am trying to put is
too long and it goes over the visible area?
Will try something like (text+/n+restOfText) tomorrow but I don't
think it's going to work...
Thanks,
Alberto
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message
Home screen Widgets are laid out on a grid, so no matter how compact you
make your layout, it won't get any closer to other widgets.
Also, you should not be using pixel dimensions in the layout - use
device-independent do units.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
09.09.2010 23
I don't think you can push views to the bottom of a LinearLayout, either
with XML or from code.
I'd recommend you try a RelativeLayout, use its LayoutParams class. Set the
first button as parent bottom, and others to above the previous one, one
by one.
--
Kostya Vasilyev -- http
) is a better, perhaps only
option.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
10.09.2010 0:31 пользователь TreKing treking...@gmail.com написал:
2010/9/9 Kostya Vasilyev kmans...@gmail.com
I don't think you can push views to the bottom of a LinearLayout, either
with XML or from code
Hi,
I have a widget that displays detailed WiFi state (SSID, signal, etc).
It registers in the manifest to receive various android.net.wifi.*
notifications. So far so good.
However, these notifications are not sent if the home screen is side-
scrolled, or phone is locked. This is good - Android
.
The code works fine on the HTC Hero 1.5.
I converted the layout to avoid using AbsoluteLayout and using FrameLayout
instead.
Evrything looks good to me, and still, no updates. Any thoughts on this?
Thanks,
-- Kostya Vasilyev
--
You received this message because you are subscribed
Nine-patch described here:
http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch
-- Kostya
Alok Kulkarni kulsu...@gmail.com писал(а) в своём письме Wed, 05 May
2010 12:25:11 +0400:
For 9 patch images i suppose they need to be stored under drawable
folder. I
need
works fine if i have only one image for a
Widget.But
in case of button i have three images which is not working 1.6 onwards..
Thanks,
Alok.
2010/5/5 Kostya Vasilyev kmans...@gmail.com
Nine-patch described here:
http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch
Answering my own question.
I had two emulators running side by side (1.6 QVGA and 2.1 WVGA800).
Closing one of them gets rid of the problem, and my widget updates just
fine.
I submitted an issue about this:
http://code.google.com/p/android/issues/detail?id=8160
-- Kostya
Kostya Vasilyev
Aren't they in the .img files - inside the respective avd directory?
Now, the file format of those .img files is another matter.
saify.zeenwala saifyzeenw...@gmail.com писал(а) в своём письме Wed, 05
May 2010 13:17:28 +0400:
use ddms tool to check create files and dir.
On Tue, May
.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group
athttp://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilyev - WiFi Manager
, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilyev - WiFi Manager + pretty widget -
http://kmansoft.wordpress.com/sw
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group
+0400:
In my case the checkboxes do not show up at all. (Attaching the
screenshot)
Should I uninstall ADT plugin and install again. Would that seem to help.
- Harjeet.
2010/5/5 Kostya Vasilyev kmans...@gmail.com
Ok, so you do have SDKs installed.
Back to project creation - after selecting
://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilyev - WiFi Manager + pretty widget -
http://kmansoft.wordpress.com/sw
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android
wrote:
On May 5, 11:30 am, Kostya Vasilyev kmans...@gmail.com wrote:
Alok,
Found this discussion about creating nine-patches programmatically.
Hope
this is useful.
also NinePatchDrawable sources will be useful, see inflate() method
http://www.netmite.com/android/mydroid/donut/frameworks
, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group
athttp://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilyev - WiFi Manager + pretty widget
Regular Android devices (not emulator) have a setting to never lock the
screen if the phone is charging. I use it on my development phone, it works.
I believe emulators make it look like the emulated phone is charging.
Perhaps this setting would work there, too? It's under developement
settings,
Just a wild guess. Could be wrong.
Perhaps when Android views are instantiated from XML, there is a parser
involved, and at construction time it is positioned at that view's XML tags.
Then it's time to instantiate the view's children, and they are in turn
passed bridge XML parsers that appear to
Hello all,
I've written a simple HowTo on supporting devices with different
resolutions.
All the information is available elsewhere, still, I put it all together
in one place for convenience.
Posted here: http://kmansoft.wordpress.com/
Hope this might be useful.
--
Kostya Vasilyev
--
Kostya Vasilyev - WiFi Manager + pretty widget -
http://kmansoft.wordpress.com/sw
--
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
com.myappname.*:V *:S
to no avail.
I have a feeling I might have to log in a more constant fashion. Or I
might just use log4J.
Any help/suggestions appreciated - perhaps you use a static log class?
Let me know,
Cheers,
~redders
--
Kostya Vasilyev - WiFi Manager + pretty widget -
http
Just add transparent areas at the top and bottom of your progress image.
This way, when it's scaled, it will appear shorter than the thumb.
7 мая, 2010 12:46 AM пользователь cvance383 cvance...@yahoo.com написал:
Ok so I am getting a huge headache trying to do a pretty simple thing,
I want to
Google use it's own APIs? Or is
there an additional bug on the Droid/Milestone?
--
Kostya Vasilyev - WiFi Manager + pretty widget -
http://kmansoft.wordpress.com/sw
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group
.
http://steven.bitsetters.com/articles/2007/11/20/android-password-safe/
Does anybody know how to encrypt/decrypt password using Android
supporting secure algorithm?
--
Kostya Vasilyev -- WiFi Manager + pretty widget --
http://kmansoft.wordpress.com/sw
--
You received this message because
27.06.2010 21:25, Streets Of Boston пишет:
Wow, do you have a big screen TV capable of displaying 8192*8192 pixel
images!?
I doubt it:-)
If you have an HDTV of 1080p, then the max resolution is 1920*1080
(about 2MPixels). There's no need to go larger.
Besides, the phone's real output
28.06.2010 9:56, sagare пишет:
Also i want to know is motorola droid a good device to be
selected for android application testing?
Yes, it works (I have the Milestone). Had to install their own driver in
Windows 7 instead of the one that comes with Android SDK.
Not sure if
Can you post your manifest file?
29.06.2010 0:45 пользователь TreKing treking...@gmail.com написал:
On Wed, Jun 23, 2010 at 6:59 PM, SilverStr d...@vulscan.com wrote:
Anyone have any ideas?
The log also says:
Make sure to create a MAIN intent- filter for the corresponding activity
or...
Yeah, I noticed this too.
However, I would like to suggest that uninstall notices go to a separate
comment thread, available only in the Developer Console.
As far as responding to comments - I am with everyone on this one 1000%.
Would be great to have two ways to respond - to the same
Or else they tried it for a bit then disabled, thinking it was a bad idea.
-- Kostya
30.06.2010 20:59, TreKing ?:
On Wed, Jun 30, 2010 at 11:48 AM, String
sterling.ud...@googlemail.com mailto:sterling.ud...@googlemail.com
wrote:
Didn't make myself clear, apparently... I'm seeing
/forum/p/Android+Market/label?lid=6c2f25659505b63dhl=en
On 30 June 2010 19:12, Kostya Vasilyev kmans...@gmail.com
mailto:kmans...@gmail.com wrote:
Or else they tried it for a bit then disabled, thinking it was a
bad idea.
-- Kostya
30.06.2010 20:59, TreKing пишет:
On Wed
In
your sdk root\platforms\android-platform id\data\res\values
styles.xml
-- Kostya
30.06.2010 21:45, paladin пишет:
Where can I see what typeface, size, color, etc. are used for
Android's pre-defined text styles? Like the default text style or
textAppearanceMedium, for example?
--
Joe all,
Yes, very much true that user comments are not the same as a support forum.
Still, very often users express their wishes for application features
and/or tweaks. Such comments are directed not only at the app author,
but also at other users. This has a community feel, which I think
Marco,
Do you have enough physical memory in your computer?
-- Kostya
02.07.2010 17:15, MarcoAndroid пишет:
Small update: I even created a new 1.6 avd, but that starts up as slow
as the old one.
Then I finally did a reboot of my machine -- all ran fine again for a
few hours. So apparently
02.07.2010 18:37, B Woods пишет:
What are the differences between drawable-hdpi, drawable-ldpi, and
drawable-mdpi? Do I need to place my graphics in each of these folders?
They are versions of the same graphics files for different screen
resolutions.
If you don't provide hdpi and ldpi
Hello,
I ran into what seems to be a memory management issue in my app.
After running for a while, dalvik gc is triggered, but never finishes. I
get an endless stream of these messages in logcat:
D/dalvikvm(24822): GC freed 22018 objects / 528920 bytes in 49ms
D/dalvikvm(24822): GC
error which relates to handler in a
looping condition. During destroy the the handler has to be freed of
messages and set to null. I found this using MAT.
---
*
On Fri, Jul 2, 2010 at 10:00 AM, Kostya Vasilyev kmans...@gmail.com
mailto:kmans...@gmail.com wrote:
Hello,
I ran into what
Roman,
Thanks. Great to know these objects are not using up precious heap space.
-- Kostya
02.07.2010 20:33, Romain Guy пишет:
Every Android app is spawned from a process called zygote. In this
process we preload the most commonly used classes and resources. Those
preloaded chunks of memory
Well, at least they are taking up physical ram just once - if they did
it in every app, it would be really sad.
Is this preload set dependent on the actual firmware?
-- Kostya
02.07.2010 20:47, Romain Guy пишет:
That said, it's probably still counted towards the max heap limit of your app
Stephen,
There is a whole bunch of qualifiers for resource folder names,
described here:
http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources
You can do things like
res/drawable-large, which should match both 480x800 and 480x854.
-- Kostya
If you allow the user to configure individual widgets, then you need to
store settings separately for each widgetId.
I recently implemented this for my widgets, here is how:
http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-widgets/
-- Kostya
04.07.2010 21:22, Premier пишет:
In my experience, when a user has left a negative comment AND emailed me,
Unfortunately, that and is a big if ...
-- Kostya
05.07.2010 15:36, Mark Carter пишет:
In my experience, when a user has left a negative comment AND emailed
me, then after a (polite :) ) response from me, they have
:45, Kostya Vasilyev kmans...@gmail.com
mailto:kmans...@gmail.com wrote:
In my experience, when a user has left a negative comment
AND emailed me,
Unfortunately, that and is a big if ...
-- Kostya
05.07.2010 15:36, Mark Carter пишет:
In my
Gulfam,
This is kind of non-obvious to get right, although really pretty simple.
When home screen orientation is changed (is this a Moto Droid /
Milestone, by any chance?) Android uses the most recent RemoveViews
object to recreate widgets, since there is no onCreate() equivalent.
If the
As a follow-up:
I also have some info about this in my blog.
http://kmansoft.wordpress.com/2010/05/23/widgets-and-orientation-changes/
05.07.2010 19:18, Gulfam пишет:
Hi Mark thanks for your reply,
I have developed a home screen widget.its working fine. When i touch
items on widget like
Jul,
Parcelable implementation looks good, except for the questionable cast
to ArrayListRestaurant, but that shouldn't have any effect.
What error are you getting, exactly?
-- Kostya
05.07.2010 20:20, jul пишет:
Hi,
I want to save a list of Parcelable Restaurant objects on
Jul,
This is the heart of the problem in logcat:
07-05 19:34:28.647: ERROR/AndroidRuntime(808): Caused by:
java.lang.ClassCastException: java.util.LinkedList
07-05 19:34:28.647: ERROR/AndroidRuntime(808): at
org.digitalfarm.atable.Atable.onSaveInstanceState(Atable.java:254)
My guess is
Jul,
What is the code around line 254 in Atable.java?
07-06 16:09:30.066: ERROR/AndroidRuntime(930): at
org.digitalfarm.atable.Atable.onSaveInstanceState(Atable.java:254)
And, what does restaurantList.getRestaurants() really return, when
called from onSaveInstanceState ?
-- Kostya
Jul,
The definition in your class only says that the restaurant list is a
ListRestaurant.
List is an interface:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/List.html
Actual implementations are, among others, ArrayList and LinkedList. The
only thing they have in common is that they
Exporting Android app to a .jar will never work, since .jars run in a
different environment.
The emulator is just like a phone - it runs Android, which runs your app
packaged as an .apk. If you just use run or debug commands in
Eclipse, it will run your app in the emulator, if there is no
Tudor,
You can use RelativeLayout, and set
android:layout_alignParentRight=true in the image.
-- Kostya
07.07.2010 20:05, Tudor Tihan пишет:
Hi guys and gals,
I am having a very difficult time with making complex listview items
show properly.
I am using the following layout xml for the
Tudor,
You should try using a RelativeLayout as the only Layout tag in the list
item. It's certainly powerful enough to arrange both text and image the
way you intend.
Off top of my head:
For the TextView -
layout_alignParentLeft=true
layout_width=wrap_content
and margins, if any
For the
Jags,
I am also using a Moto Milestone. Getting it to work requires two things:
1 - Set connection mode to Portal Tools in the phone, besides
enabling usb debugging
2 - Install a Motorola driver
-- Kostya
08.07.2010 17:33, Jags пишет:
Hi all I am trying to add my motorola milestone device
Alex,
If you mean 3G vs. Wifi - I think the answer is no.
I believe Android maintains only one data connection option at a time,
although it can be either Wifi, or, in its absence, cellular (HSDPA / 3G
/ EDGE / GPRS, depending on the phone and the network).
-- Kostya
08.07.2010 19:34,
You can achieve this by using a RelativeLayout:
http://groups.google.com/group/android-developers/browse_thread/thread/f88b83d3b453a981/db595fb356a92467
(substitute height / bottom for width / right in the thread above)
-- Kostya
09.07.2010 13:35, Jeruliu пишет:
I will have a list view on
Second that.
What's weird, is that defective light sensors get confused in _bright_
light.
http://kmansoft.wordpress.com/2010/05/16/motorola-milestone-light-sensor-problems/
-- Kostya
09.07.2010 18:32, Alain пишет:
This issue is not caused by your app but instead is a Milestone
problem and
Kenneth,
Does your app have WRITE_EXTERNAL_STORAGE permission?
-- Kosyta
12.07.2010 13:21, Kenneth WON пишет:
Dear all,
I want to create a database storing on the SDCard, but there is error
occurred.
The following is the error:
ERROR/Database(605): sqlite3_open_v2(/sdcard/LyodsGPS.sqlite,
Conny,
The first line should have android:id, yours has android.id. The
symbol between android and id should be :, not ..
But wouldn't it be better to use a ListView - it recycles item views, so
as not to hog memory?
-- Kostya
12.07.2010 14:15, Conny пишет:
TextView android.id=@+id/price
It is possible to check if Wifi is enabled, and if so, wait a few
seconds for it to connect (or time out) before initiating a network
connection.
-- Kostya
12.07.2010 15:36, Mark Murphy пишет:
Be careful of connectivity changes. If you woke up the device, WiFi
will be off, and so if you try
Jags,
Try this:
http://developer.motorola.com/docstools/USB_Drivers/
-- Kostya
12.07.2010 14:46, Jags пишет:
where do i get a motorola driver from ? the usb_driver in sdk does not
work, and my packet did not come with a cd !
On Jul 8, 7:00 pm, Kostya Vasilyevkmans...@gmail.com wrote:
Is debugging enabled in your application's manifest? You can only debug
applications that are marked for debugging.
-- Kostya
13.07.2010 11:44, MB пишет:
Hi,
Is there some way to attach debugger to a process running in the
emulator via eclipse?
I am trying to debug the following scenario.
I believe this:
new ComponentName( com.example.test, TsandCs.class )
is supposed to be either:
new ComponentName( context, TsandCs.class)
or
new ComponentName( com.example.test, TsandCs)
Use the first case if the activity is in the same application as the
service, the second case if not.
Boozel,
The second parameter should be without quotes - i.e. a reference to the
actual Java class object of your activity.
new Intent(BbService.this, TsandCs.class);
startActivity(intent);
If specifying class name by string, the .class should not be there,
since you're not making a
To original poster:
I am guessing you are already using reflection to use Android 1.5
Bluetooth APIs vs. 2.0 APIs, similar to this:
http://code.google.com/p/backport-android-bluetooth
If that's the case, seems like you don't have to rely on Market to only
make your app available to phones
Are you calling updateAppWidget from the worker thread?
If so, don't. UI calls can only be made from the UI thread.
Use a Handler / Runnable to post data calculated by the worker thread to
the UI thread and call updateAppWidget from there.
-- Kostya
14.07.2010 12:37, TjerkW пишет:
But what about the thread?
14.07.2010 14:09, TjerkW пишет:
B.t.w it worked fine on the Emulator intially (no widget where loaded
previously)
On Jul 14, 10:44 am, Kostya Vasilyevkmans...@gmail.com wrote:
Are you calling updateAppWidget from the worker thread?
If so, don't. UI calls can
From what thread are you ultimately calling
AppWidgetManager.updateAppWidget
?
It has to be the UI thread, I think you should check to make sure.
-- Kostya
14.07.2010 16:35, TjerkW пишет:
Works on the emulator.. but on my nexus one i still get the nasty
nullpointerexception deep inside the
Mark,
AFAIK, all UI methods are supposed to be called from the UI thread, are
widget calls an exception to this rule?
-- Kostya
14.07.2010 17:12, Mark Murphy пишет:
On Wed, Jul 14, 2010 at 9:01 AM, Kostya Vasilyevkmans...@gmail.com wrote:
From what thread are you ultimately calling
Right, actual views live in a separate process altogether and
RemoteViews is marshalled to this process... That's understood.
But an AppWidgetProvider is a broadcast receiver, and its methods are
called on a certain thread within the containing process. Is it safe to
call updateAppWidget and
... which is in turn caused by a crash:
07-14 10:30:36.796: ERROR/AndroidRuntime(12077): FATAL EXCEPTION:
Thread-16
07-14 10:30:36.796: ERROR/AndroidRuntime(12077):
java.lang.NullPointerException
07-14 10:30:36.796: ERROR/AndroidRuntime(12077): at
android.widget.RemoteViews
It does -
07-14 10:30:36.796: ERROR/AndroidRuntime(12077):
java.lang.NullPointerException
How more specific can you get?
-- Kostya
14.07.2010 19:42, TjerkW пишет:
Thanks... it was not a threading issue... i was calling
views.setImageViewBitmap(R.id.profile_image, icon);
with a null
And when is that? Any info?
15.07.2010 10:50 пользователь Ignas ignas.limanaus...@gmail.com написал:
According to Motorola support, the problem will be gone once 2.2
update kicks in.
On Jul 14, 3:44 pm, Ignas ignas.limanaus...@gmail.com wrote:
I have heard rumors that this prob...
--
You
Google groups doesn't send a posted message back to sender.
So you kind of have to go on faith :)
15.07.2010 12:30, hat...@gmail.com пишет:
how come I can never see my questions in any emails from this group?
is the group email filtered me or my gmail hate this group? --
You received this
Have you created an emulator?
Installing Android tools doesn't create any, you are supposed to create
them yourself, with the specific options you require for development
(Android version, screen size density, etc.)
http://developer.android.com/guide/developing/eclipse-adt.html#AVD
--
Does it show up in AVD Manager in Eclipse?
If not, what happens when you try to create a new one, either there or
with android avd create?
Also, have you tried doing the magic thing - avd kill-server
followed by avd start-server?
-- Kostya
15.07.2010 20:08, Harsha пишет:
Yes i have. i
201 - 300 of 3910 matches
Mail list logo