becomes visible, either after side-scrolling, or
after the screen is unlocked?
-- Kostya Vasilyev
-- http://kmansoft.wordpress.com/sw/
--
You received this message because you are subscribed to the Google
Groups Android Beginners group.
NEW! Try asking and tagging your question on Stack Overflow
...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?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 Beginners group
/group/android-beginners?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 Beginners group.
NEW! Try asking and tagging your question on Stack Overflow at
http
://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group
athttp://groups.google.com/group/android-beginners?hl=en
--
Kostya Vasilyev -- WiFi Manager + pretty widget --
http
upon relevant events.
--
Kostya Vasilyev -- WiFi Manager + pretty widget --
http://kmansoft.wordpress.com/sw
--
You received this message because you are subscribed to the Google
Groups Android Beginners group.
NEW! Try asking and tagging your question on Stack Overflow at
http
on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
--
Kostya Vasilyev ~ WiFi Manager + pretty
You can build against 1.6 and set min-sdk to 3, also set supports-screens
for high and low screen support.
There was a topic here recently about properly specifying drawables.
14 мая, 2010 8:47 PM пользователь Stormtap Studios
r...@stormtapstudios.com написал:
I've found the reason this
19.05.2010 22:46, Justin Anderson пишет:
The class I'm using is OpenXWidget, does anyone here have experience
with OpenX or have any ideas as to why a class that extends ImageView
wouldn't work in my Widget?
It seems that OpenXWidget is well, not a widget.
It is a View subclass, and can be
You could port OpenXWidget to work with home screen widgets.
Its code structure is very close to what's needed - it does its work in
a separate thread and updates the UI as needed.
Take a look at Wiktionary sample in Android SDK. It also does an asynch
fetch from the Web and updates the
I also have an HTC Hero... Although I use it under Windows, this might
be useful.
After connecting the phone, it doesn't show up in DDMS until after I've
selected HTC Sync from the phone's status bar. I don't actually have
this installed under Windows, so this fails, but makes the driver see
James,
The 30 minute limit only applies to automatic updates scheduled by
using the widget .xml desciptor.
Your widget provider can update its widgets (using the usual mechanism
of RemoteViews) any time it wants. For example, in response to some
other broadcast. In my application, this
Congratulations, James.
Note: you can merge the broadcast receiver with your AppWidgetProvider,
same one that handles APPWIDGET_UPDATE.
-- Kostya
08.06.2010 15:18, cellurl пишет:
I got it working. I tossed my version and started with a copy of
ApiDemos, adding code below.
One interesting
This is controlled in the manifest file. Just remove launcher categories for
the activity.
09.06.2010 13:47 пользователь Aviral aviral...@gmail.com написал:
I noticed that we can set a view invisible by using setvisibility()
function. Is it possible to do so for drawables also?
I want to hide an
Since I was curious about this as well, I looked at the source you
pointed at.
They use a ViewSwitcher with two (or actually, more, dynamically
created) content views.
This makes sense, since ViewSwitcher animations involve two
representations of content - old and new, hence at least two
Don,
I can recommend running adb logcat from the OS's command line window.
This way, it's always around, you can make it as large as you want, and
can do filtering by piping through grep or find, if necessary.
-- Kostya
22.06.2010 22:02, DonFrench пишет:
I use LogCat a lot when debugging
Jake,
The error is in the way your code instantiates ComponentName.
Instead of:
ComponentName thisWidget = new ComponentName(this, ZMUpdateService.class);
Do this:
ComponentName thisWidget = new ComponentName(this,*ZmanMinderAppWidget*.class);
The error message was trying to convey same
Betty,
Make sure your service calls base class methods in onCreate() and
onStart(). Intents for processing are queued to a worker thread by
IntentService.onStart. The worker thread is set up by onCreate.
class BettysService extends IntentService {
@Override
public void onCreate() {
...
Jake,
onUpdate is passed an explicit list of just the widget ids that need to
be updated. Supposedly, there could be widgets that belong to this
provider but don't need updating (e.g. on a scrolled-off home screen
portion).
Pushing a RemoveViews object to a paricular widget is done by
Jake,
Using a service for a widget that's not doing anything lengthy to
prepare updates seems like a bit of an overkill. Certainly it works, but
probably not necessary.
On the other hand, using a service is definitely the way to go for
widgets that fetch data from the Internet or some other
24.06.2010 10:49, appsgrrl пишет:
Hi -- Okay, I got further! Yay! It turns out that I also had to call
super.onCreate() to avoid the null pointer exception.
So, if I call super.onCreate() and super.onStartCommand(), my
onHandleIntent() does get excecuted.
Great. Both superclass methods
Jake,
There are two scenarios involved:
1. Android calls the widget provider's onUpdate() - when the widget is
first shown and then regularly at updatePeriodMillis intervals, if
specified. Note that automatic updates based on updatePeriodMillis are
limited to once every 30 minutes since
Jake,
There are two issues here:
- Getting notifications when appointment data changes. If the
appointment database is your own, set up an intent to be fired whenever
there is a change. If you are using the built-in calendar, there is got
to be a way, too - I just don't have any pointers not
Jake,
The 30 minute minimum intervals only applies to updates specified in the
widget's XML file (updateTimeMillis).
You can have alarm-driven (or other event driven) updates as often as
you like, so it's only a question of judgement with respect to battery life.
Android 2.x includes
Jake,
PendingIntents are not limited to launching activites. When a
PendingIntent fires, it just fires - the results of it firing depend on
how the PI was created.
If it's a broadcast event, it can be handled anywhere, and depends on
where / how a handler for this broadcast event is
Jake,
01.07.2010 1:04, Jake Colman пишет:
Kostya,
I already start a service to do the initial update of the widget. Do I
just start the same service again from within the appwidget's event
handler for the broadcast event?
If doing this will bring the widget up-to-date, then why not?
Jake,
You can set an on-click PendingIntent on some other View (such as a Layout).
Whether or not it's a good idea - I guess it depends on how pretty you
can make it look :)
-- Kostya
02.07.2010 23:19, Jake Colman пишет:
Is there a way to launch an activity simply
by clicking anywhere in
Tollas,
First of all, there is Activity.finish(), which closes the activity.
But if the way you want your app to interact with the user doesn't fit
the way Activities are managed by Android, perhaps you can consider
switching views inside an Activity?
You can call setContent at any time to
Maybe you could try geo: scheme in the links:
http://developer.android.com/guide/appendix/g-app-intents.html
07.07.2010 19:08, TreKing ?:
On Sun, Jul 4, 2010 at 5:18 PM, jean francois pion
jean.francois.p...@free.fr mailto:jean.francois.p...@free.fr wrote:
I would like to know if
Bret,
Set a breakpoint in the service's onBind method, run the code, see what
happens.
-- Kostya
07.07.2010 19:21, Bret Foreman пишет:
I don't see anything unusual in the log. I've got a few debug messages
and they are printing out fine. I've got a debug message in
onServiceConnected that
Nick,
A Notification's PendingIntent can be anything you want - not
necessarily one that launches an activity.
It can be set up to trigger a BroadcastReceiver or even a Service -
which could clear the notification without being visible to the user.
-- Kostya
13.07.2010 11:12, Nick
If you are catching IOException, a NullPointerException will slip right
through. Happens sometimes (i.e. file open returns null, and subsequent
code tries to write to it).
Have you checked the logcat to see what goes on?
Also note, if a crash happens while debugging, you have to hit Resume
onResume / onPause are called when another activity pops in front, but
your activity stays on the screen. So this is probably a bit much.
You could try onStart / onStop, and move the code that populates views
with database data from onCreate to onStart.
-- Kostya
15.07.2010 18:49, Bender
Jake,
AppWidgetProviders are transient, you can't store any data in these
objects. They are created by Android as necessary and are destroyed,
from what I see with my widgets, quite aggressively.
Canceling an alarm doesn't require the same Java object you used to set
an alarm.
Just create
Jake,
It isn't and it doesn't.
I know it's a little counter-intuitive, but that's the case.
AppWidgetProvider is just a special BroadcastReceiver. It is
instantiated by Android runtime / home screen in response to events
defined in the manifest, and provides a RemoteViews object that defines
Calling the base class is required for IntentService and its subclasses
(such as Mark Murphy's WakefulIntentService).
16.07.2010 1:09 пользователь Justin Anderson janderson@gmail.com
написал:
Jake,
You haven't given enough information to determine if it should be called
before or after your
Just a guess - the menu XML failed to compile because of a string id with a
space in it (Via Bluetooth).
16.07.2010 1:25 пользователь Victoria Busse victoriasarabu...@gmail.com
написал:
Hey Justin, thanks for the reply, I just solved the problem it was within
the xml.file ...instead of
Victoria,
The cause of this exception appears in logcat:
07-16 19:40:45.124: ERROR/AndroidRuntime(225): Caused by:
java.lang.NullPointerException
07-16 19:40:45.124: ERROR/AndroidRuntime(225): at
com.mobilevideoeditor.moved.EditGalleryView
$VideoAdapter.getCount(EditGalleryView.java:73)
the
crash for now, but still - learning how to debug and understand what the
code actually does during execution is instrumental to any further
development work you plan on doing.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
17.07.2010 2:15 пользователь Victoria Busse victoriasarabu...@gmail.com
During compilation, Android tools use standard Java .class format, as
you found out.
However, during application packaging (I think) they are converted into
Dalvik's special format, .dex, which does not use Sun's Java bytecode.
If you list the contents of an .apk file, you will see one .dex
Try removing 'final' from 'final mytitle'.
'final' in Java means you are telling the compiler you are going to assign
the value once, a kind of self-check. Consequent assingments are flagged as
an error.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
20.07.2010 18:26 пользователь nimusi
At this point, let the application run until you get a force close
dialog on the device.
Then check logcat (in Eclipse or adb logcat from the command line) to
find out the cause - it will be in the stack trace, under Caused by:.
The message about JAR means that the crash is somewhere inside
FWIW - the following combo works for me:
- JDK 6 update 20 - 32 bit
- Eclipse for Java, Galileo SR2 - win32
- Windows 7 64-bit
-- Kostya
23.07.2010 21:07, Anil пишет:
I installed Java 1.6.20 which avoids the Eclipse problem.
Did you get it working for 64 bit Windows? I didn't see an update on
Try virtualbox.org
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
24.07.2010 0:31 пользователь Umar ramu.i...@gmail.com написал:
Executive Summary:
* Unable to cross the chasm between Windows 7 to Windows XP, driven by
a business need. (see thread below for details) {what is means for me
Abduaziz,
Does your Windows home directory have non-English characters?
(C:\Users\your name)?
I found that in this case (mine has Russian characters), the emulator
has various problems. I use the command line to create the emulator in
some other directory that has only English characters
25.07.2010 13:01, Abduaziz Hasan пишет:
BTW, can this be related to Windows 7? I mean is there anyone who is
using Windows 7 and not having the problem?
Yes, I don't any problems with the emulator on Windows 7. Maybe there
are others :)
--
Kostya Vasilev -- WiFi Manager + pretty widget --
Maybe...
Why don't you try creating a new AVD using the command line, and make sure
there are no spaces or non-english characters in its pathname?
Also, do you run an antivirus? I use NOD32 and don't have any issues with
it. Just for test purposes, you could try disabling yours.
--
Kostya
Wake locks have to do with CPU state, not with service lifecycle. If you
don't need the service at some point, call stopself or stopservice.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
25.07.2010 19:52 пользователь Bret Foreman bret.fore...@gmail.com
написал:
Well, my understanding from
Sure. Add one or more (repeating) views, make a couple buttons for scrolling
to previous/next positions, and update data item views when these buttons
are clicked.
Press and drag is reserved for home screen switching, anyway.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
25.07.2010 22:30
No problems with NOD32 here either.
Running Windows 7 64bit.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
26.07.2010 1:10 пользователь Sam Hobbs s...@samhobbs.org написал:
Many people have had problems with Norton. It was pre-installed in my system
but I cleared it out of my system
Sam,
According to docs:
http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html
match_parent is introduced in API version 8, that is, Android 2.2
Your project is probably set up to compile against an earlier version of
Android. If that is the case, use
Bret,
You use the same layout XML file names and same widget IDs in both files
- that way, orientation changes (and other alternate resources) are
completely transparent to the application code.
But it's res/layout-land, not res/layout/land.
More info here:
Something's got to be different.
Open R.java and scan for your view id there, check to see if maybe you
have a close sounding ID, or there is a capitalization difference.
-- Kostya
26.07.2010 21:05, Bret Foreman пишет:
I mistyped. The file path is actually res/layout-land. The exception
is
Bret,
Is there really a line break in the failing case? I mean between @+id/
and ViewEvents?
26.07.2010 21:17, Bret Foreman пишет:
Here's a little more detail from layout-land (fails) and layout
(works) respectivley. The fist button causes a runtime exception in
findViewById, the second
Data Execution Protection is not unique to 64 bit.
First appeared in XP, I believe.
In fact, I have it enabled (at default level) and having no problems with
the emulator.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
26.07.2010 23:40 пользователь DanH danhi...@ieee.org написал:
Also, I
Hmm.
Looks good.
What I would do at this point is gradually rebuild the layouts bottom up,
starting with the problem view, and assigning new id tokens.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
26.07.2010 23:27 пользователь Bret Foreman bret.fore...@gmail.com
написал:
No, no line
Also, try removing layout_gravity. Shouldn't matter, but that's the only
difference I am able to see.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
26.07.2010 23:27 пользователь Bret Foreman bret.fore...@gmail.com
написал:
No, no line break. That's just an artifact of the cut and paste
Ah.
Was this a home screen widget?
27.07.2010 0:47, Bret Foreman пишет:
Found the problem. I should have learned my lesson by now. When you do
any substantial resource changes, you have to uninstall the app from
all your targets or you end up with a toxic mix of old and new
resources info.
Shaista,
drawable is the default. If a higher or lower resolution image is
needed, depending on the screen, Android can scale it as appropriate.
However, this automatic scaling doesn't always look that great. In those
cases, you, as the developer, can provide alternate versions of the
same
You could use one image view and several different images with varying
number of flowers.
Or create the required number of image views from code, all using the same
image.
Or declare four image views in your layout and manage their visibility from
code.
--
Kostya Vasilyev -- http
use one image view and several different images with varying
number of flowers.
Or create the required number of image views from code, all using the same
image.
Or declare four image views in your layout and manage their visibility from
code.
--
Kostya Vasilyev --http://kmansoft.wordpress.com
Those fields are new with Android 2.2.
Are you sure you're compiling against Android 2.2?
-- Kostya
28.07.2010 2:38, Doward пишет:
According to the SDK we should be able to read the bootloader and
radio versions, but Eclipse is freaking out about it.
I can read any other Build.whatever
Declare the button in the activity's layout xml, above the ListView.
-- Kostya
30.07.2010 19:20, calmchess пишет:
I'm useing custom list view.which inflates the view..if you put a
button in the XML it will put a button in each cell of the list view
i only want 1 button above the list view
Bret Mark,
Sorry for interrupting, but I also got curious about this. It seems like
a neat way to bring up the About box without making the context menu too
large.
This works, no problems at all:
values/prefs.xml:
.
Preference android:key=aboutPref
android:title=About title
Ditto - I was also about to suggest this.
Base Preference class is quite complete, it handles drawing the title
and summary with proper fonts, and has an onClick() method.
Another way - instead of subclassing Preference, add a bit of code with
setOnPreferenceClickListener.
-- Kostya
The key was having both action and category in the intent filter. Either
one by itself didn't match the intent.
-- Kostya
30.07.2010 21:30, Mark Murphy пишет:
Yes, I think I barked up the wrong tree by suggesting to get rid of
the DEFAULT category. Glad to know this works!
On Fri, Jul 30,
1.6 update 21 indeed has an issue with Eclipse, was discussed recently
either here or on android-developers. Either roll back, or use search.
-- Kostya
03.08.2010 13:19, blindfold пишет:
I'm having the same problem with the latest r06 Android SDK and using
Java SDK 1.6.0_21 (C:\Program
If the other side requires logging in, perhaps you could track usage
there?
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
04.08.2010 0:54 пользователь Kevin Brooks bear35...@gmail.com написал:
The real issue is logging into the network that is on the other side of that
Access Point. I
Then do it the same way web applications do.
Implement login functionality in your application, and you can check
credentials. If the app has a web service-based backend, pass some kind
of login token to the server can track usage.
-- Kostya
04.08.2010 1:09, Kevin Brooks пишет:
My original
Looks like Google has a special process that deals with account
management. Only this process is allowed to get / set account passwords.
It's probably also signed with a special key, which is checked by the
kernel when it's started (guessing here).
If any application was allowed this, think
If there are so many regrets about the closing of this list isn't it
possible for anyone to create a mailing list with Google Groups? Let's call
it android-for-beginners or whatever. Anyone?
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
04.08.2010 20:39 пользователь Alessandro
the service is started.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
06.08.2010 0:49 пользователь Bender abende...@googlemail.com написал:
Thanks for your reply, and sorry for my late answer. :-)
I tried to get it running as a service but I don't really get how I
have to use services
Sure. The service connection callback you seem to already have in your code.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
06.08.2010 12:10 пользователь Bender abende...@googlemail.com написал:
Ok I tried to find out at which point the service is started and when
I can access its database
. Is that wrong?
On 6 Aug., 10:26, Kostya Vasilyevkmans...@gmail.com wrote:
Sure. The service connection callback you seem to already have in your code.
--
Kostya Vasilyev --http://kmansoft.wordpress.com
--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
73 matches
Mail list logo