I'm working on an application which loads some data from the net in a
thread.
However when something goes wrong (no internet connection or sth) I'dd
like to create a dialog to show an error message to the user.
However my code works fine not using threads but creating a dialog
from my thread makes
creation? :s Still don't really get the
reason why...
Anyway thx in advance for giving me a possible working solution, and
I'll certainly keep you informed if it did the job for me (later this
evening).
On 21 jan, 19:47, TreKing treking...@gmail.com wrote:
On Thu, Jan 21, 2010 at 12:28 PM, Dirk
was set or
not!
Thx for your help! (If you get me some advanced explanation on why
dialogs cannot be created from within a thread plz let me know!)
On 21 jan, 20:47, Dirk Vranckaert dirkvrancka...@gmail.com wrote:
I certainly will try it out later this evening (studying for my
certification right
Hi all there,
I'm trying to use a ListView but can't get it to work. Is there any
good example?
I get some data from the web and then want to parse it into the
ListView. The way I tried it was with a custom written ArrayAdapter
but I then get some rendering issues, for example no data is shown
Some extra help:
watchlist.xml = http://pastebin.com/f738bc9d6
episode_row.xml = http://pastebin.com/f27442ce7
the activity: http://pastebin.com/f53a0df
kind regards,
Dirk
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
Here is an excerpt from one of my books that discusses the process:
http://commonsware.com/Android/excerpt.pdf
I tried the examples coming with the SDK in combination with some more
advanced stuff I found online but didn't work.
I now had a look at Mark's PDF and modified some things and found
Hey all,
I've been working on an application lately that is using GMaps to
display a location that is stored in the devices database. However
when no location is available (no GPS signal is available) the user
can go through an edit wizard and at a certain point he can add a
location himself. I
I recently (yesterday in fact :)) started creating widgets. So my
first widget I want to create is something like:
* A 2x2 widget
* Containing 2 buttons
* Button 1: Register current time and location
* Button 2: Open up an activity where configuration can be
modified, registered times and
Sorry all for bothering.
I didn't look well enough in this group, now I found the answer:
http://groups.google.com/group/android-developers/browse_thread/thread/8ac30e3b1870fb98/1cc71bab92a7ff97?lnk=gstq=Starting+activity+without+layout#1cc71bab92a7ff97
:)
On 17 apr, 18:45, Dirk Vranckaert
On my widget I'm having a button and a textView. When clicking that
button some data is registered and I want the TextView to be updated.
However I can't get to the TextView instance from within my Activity
it seems.
Any ideas?
--
You received this message because you are subscribed to the
Thx Mark, that did it for me :)
On 17 apr, 19:18, Mark Murphy mmur...@commonsware.com wrote:
Dirk Vranckaert wrote:
On my widget I'm having a button and a textView. When clicking that
button some data is registered and I want the TextView to be updated.
However I can't get to the TextView
Hey,
I'm walking around with a little idea for a new Android app although I
have my doubts weather it's possible or not. So that's why I came
here.
What I want to do is this: A users uses his phone and suddenly he
wants to open his messaging application. Now instead of opening that
application I
} }
So there is the action and category of the intent, but I should be
able to use the 'comp' part (what does 'comp' mean?) to get my
activity launced. But how?
Dirk
On Sep 23, 1:54 pm, Dirk Vranckaert dirkvrancka...@gmail.com wrote:
Hey,
I'm walking around with a little idea for a new Android
/com.android.mms.ui.ConversationList} }
So I can use the action and category part of the intent (which is not
surprising the same same for any application) but I should also be
able to use the comp part in order to know which application is
launching. Is there anyway to achieve this?
Dirk
On Sep 23, 1:54 pm, Dirk Vranckaert
asking to choose netween
your app and the messaging app.
The user can choose to set your app as default handler.
On Sep 23, 1:54 pm, Dirk Vranckaert dirkvrancka...@gmail.com wrote:
Hey,
I'm walking around with a little idea for a new Android app although I
have my doubts weather it's
Hey everyone,
I was searching for a calendar widget to use in one of my
applications. It seems there currently isn't any calendar widget
available in the SDK (android.widget.*), is that correct?
Are there any good other implementations that I could use?
Cause I searched all over internet but
Hey everyone,
In my application I wanted to include a calendar view. However when I
was searching for a calendar widget to use it seems there currently
isn't any calendar widget available in the SDK (android.widget.*), is
that correct?
Are there any good other implementations that I could use?
Hey all,
I'm currently developing an Android widget but I am experiencing some
issues.
So when I added the widget to my desktop (both on emulator and real
devices) the first time it always works. However sometimes it stops
working, sometimes when you remove it and add it again it doesn't work
to make sure that each RemoteViews update specifies complete state,
including all pending intents.
So in this case, just create only one remote views object per update, and
use it to push both pending intents and current data.
27.05.2010 22:02 пользователь Dirk Vranckaert dirkvrancka
Hey all,
For the current application/widget I'm creating I have not set any
permissions yet, altough the apk files I have already generated (for
example this one:
is written also for 1.5 and higher and
suddenly more access is requested upon install (access that is not
specified in the manifest and not used!).
Any explanation how this may be possible?
On 27 mei, 23:15, TreKing treking...@gmail.com wrote:
On Thu, May 27, 2010 at 2:37 PM, Dirk Vranckaert
I think String is right about that. I wouldn't do that either just to
save battery life!
However I think it is better to set the update interval of the applet
to a high enough amount of time (like 24 hours or sth) and just update
the widget manually. I'm currently working on a widget to and in my
Hey all,
I'm currently working on a widget/application and I have an issue with
that.
Before I get into the issue you could check out the code which is
available just over here:
http://code.google.com/p/workregistrationwidget-android/source/browse/
So my issue... :)
The widget contains two
:03 am, Dirk Vranckaert dirkvrancka...@gmail.com wrote:
Hey all,
I'm currently working on a widget/application and I have an issue with
that.
Before I get into the issue you could check out the code which is
available just over
here:http://code.google.com/p/workregistrationwidget-android
Anyone?
Cause I'm really stuck on this issue! Can't find out what I did wrong!
Dirk
--
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,
James,
To modify the widget layout from an activity or service you should use
some could like this:
RemoteViews rv = new RemoteViews(context.getPackageName(), WIDGET);
rv.setTextViewText(R.id.label1, text for label1);
rv.setTextViewText(R.id.label2, text for label2);
am sending intents back
to widget).
After that, there was no more problems with orientation change -
buttons were reacting every time. Maybe you can do something similar?
On May 29, 11:03 am, Dirk Vranckaert dirkvrancka...@gmail.com wrote:
Anyone?
Cause I'm really stuck on this issue
changes - there is no onUpdate(), just
the mechanism described above.
-- Kostya
2010/5/29 Dirk Vranckaert dirkvrancka...@gmail.com
I think String is right about that. I wouldn't do that either just to
save battery life!
However I think it is better to set the update interval of the applet
Hey,
I'm currently trying to create some wizard-like layout for some edit/
add views in my Android application.
Therefore I use only one activity and different layout files which I
load.
Altough there is something wrong with my layout files. The layout
files can be found here:
Hi all,
I'm having an issue with the ListView in Android.
So I have an activity extending the ListActivity, in the activity I
have an innerclass for my adapater.
Now both on my device and the emulator some entries appear 2 or 3
times in the list (not always the same items) although the size of
, Dirk Vranckaert пишет:
Hi all,
I'm having an issue with the ListView in Android.
So I have an activity extending the ListActivity, in the activity I
have an innerclass for my adapater.
Now both on my device and the emulator some entries appear 2 or 3
times in the list
View.OnClickListener()
{
public void onClick(View view) {
deleteLabel(label, true);
}
});
Log.d(LOG_TAG, Done rendering row + position);
return row;
}
}
On Feb 6, 11:39 pm, Dirk Vranckaert dirkvrancka
All,
For the app i'm currently writing I needs some help.
My activity structure when launching the app with the launcher:
HomeActivity = ListActivity
On the listActivity I've put a home button with a clear top flag
(intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);)
So pressing the home button
Anyone? Can't figure out why it isnt working... :s
On Feb 9, 8:19 pm, Dirk Vranckaert dirkvrancka...@gmail.com wrote:
All,
For the app i'm currently writing I needs some help.
My activity structure when launching the app with the launcher:
HomeActivity = ListActivity
On the listActivity
I'm trying to create a custom dialog in my application to show an
about window but it ain't working. Maybe one of you knows a solution?
So I have an activity with the onCreateDialog(int id) overriden in it:
@Override
protected Dialog onCreateDialog(int id) {
Thx for the quick response but doesn't change a thing, it gives me
exactly the same exception!
On 15 mrt, 21:58, Kumar Bibek coomar@gmail.com wrote:
Try getBaseContext();
Thanks and Regards,
Kumar Bibek
On Mar 16, 1:50 am, Dirk Vranckaert dirkvrancka...@gmail.com wrote:
I'm trying
, 2010 at 10:05 PM, Dirk Vranckaert
dirkvrancka...@gmail.comwrote:
Thx for the quick response but doesn't change a thing, it gives me
exactly the same exception!
On 15 mrt, 21:58, Kumar Bibek coomar@gmail.com wrote:
Try getBaseContext();
Thanks and Regards,
Kumar Bibek
All,
For my current project I'm having an issue with images that I have
never seen before on Android.
I have an image (link at bottom) that I use in my application and as
you can see in the screenshot (screenshot of HTC Hero, running 2.2, at
the bottom) and the background is a little gray while
I have an issue with writing on external SD...
Writing on the external SD as Google puts it is not difficult
with Environment.getExternalStorageDirectory().
However I want to make a difference for my users so they can choose to
either backup their data to the 'on device' external memory and the
I'm testing my application with Android Instrumentation tests.
So I have a test-class extending ActivityInstrumentationTestCase2 which
contains multiple tests. The code looks like this:
http://pastebin.com/0Di3Hwug
So the activity which is under test has a list of projects. The list of
UTC+1 schreef Dirk Vranckaert het
volgende:
I'm testing my application with Android Instrumentation tests.
So I have a test-class extending ActivityInstrumentationTestCase2 which
contains multiple tests. The code looks like this:
http://pastebin.com/0Di3Hwug
So the activity which is under
!= null) {
try {
out.close();
} catch (IOException e) {
Log.e(LOG_TAG, Could not close the writer, e);
}
}
}
Is there anything else that I can do to optimize my code to support those
languages?
Kr,
Dirk Vranckaert
--
You received this message because you are subscribed to the Google
:25,Dirk Vranckaert dirkvrancka...@gmail.com写道:
In my application users can export their data (or a subset of it) to a
CSV file (to be used in Excel or any other spreadsheet app).
However some of my users are reporting that if they export some that
contains non-western characters (like chinese
Why are you using FileOutputStream AND OutputStreamWriter AND
BufferedWriter?
I need the OutputStreamWriter to specify the encoding, however that doesn't
seem to work...
What is the type of result? How did you put content in it?
The result is a CSV file, I just loop over some DB
Ok. But then why also a BufferedWriter?
The BufferedWriter is indeed obsolete but leaving it out doesn't change
anything...
so of what type is result in result.toString()?
Result is of type StringBuilder.
Do characters like ö, é come through ok?
These do indeed come through
Oups, forgot the file ;)
But update:
I was wrong, ö ë é
are not working either!
File is now attached! :)
--
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
);
out.write('\ufeff');
out.write(result.toString());
out.flush();
Op donderdag 29 maart 2012 14:11:01 UTC+2 schreef Dirk Vranckaert het
volgende:
Oups, forgot the file ;)
But update:
I was wrong, ö ë é
are not working either!
File is now attached! :)
--
You received
Ooh yeah, I will have a look tomorrow for the UTF-8.
But the question marks in the in the file i attached are because google
groups did not get it right the document... Locally it works and I can send
it through mail without issues.
Kr,
Dirk
Op donderdag 29 maart 2012 14:43:33 UTC+2 schreef
I did specify the type of result ;) It's a StringBuilder and does indeed
not support the toString(UTF-8)
What I did now:
FileOutputStream fos = null;
byte[] byteResult = Charset.forName(UTF-8).encode(result.toString())
.put(0, (byte) 0xEF)
.put(1, (byte) 0xBB)
.put(2, (byte) 0xBF)
Sadly there is no insert and indeed the put overwrites the bytes.
The charset.encode(...) gives me a ByteBuffer that I cannot retrieve
'empty'...
Adding (put) the BOM first should be ok, but then adding all the test-bytes
will not work. Then again I have to loop over all the bytes...
Op
Ooh great, didn't think about that.
Now it works perfect! Thanks for all the support with this issue!
Kr,
Dirk
Op vrijdag 30 maart 2012 11:55:34 UTC+2 schreef Remote Red het volgende:
Looping?
byte[] bom = {(byte)0xEF, (byte)0xBB, (byte)0xBF };
byte[] byteResult =
If you'dd like to test something yourself, the code is available at
http://code.google.com/p/worktime/source
Op donderdag 5 april 2012 07:24:52 UTC+2 schreef Dirk Vranckaert het
volgende:
In my application I use RoboGuice and the configuration for RoboGuice
requires to add an Application
I've been looking into this issue some more and still cannot find out how
to fix it.
But one thing is for sure, the libraries for my app (which are in the
'libs' directory) are not included in the ant-build for testing.
Here are two screenshots of a decompile.
The first screenshot shows you a
I'm trying to build an activity on which the user can change a certain
date and time.
So I created an activity and a layout file, in the layout file
(containing more than just the date and time picker, you can see it
beneath) i define the date and time picker.
The application android 2.1
Thanks for the help Matt! I implemented a CustomDatePicker and
CustomTimePicker, for both classes have overriden the
onInterceptTouchEvent method and works like a charm now! :)
On 16 dec, 16:47, Matt H mjholg...@gmail.com wrote:
Hi Dirk,
I had the same problem (noticed it yesterday, too,
First of all happy holidays and happy 2012 for all of you!
I'm trying to write something to my SD-card, It works in 2.x. But in
the 4.0 emulator I cannot write anything to internal memory or SD-
card.
In the AVD settings I added a 50MB SD card.
But my code already returns false for
AM, Dirk Vranckaert
dirkvrancka...@gmail.com wrote:
But my code already returns false for
Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);
When going in the android settings of the emulator I cannot see the SD
memory, only internal memory...
Add a virtual SD card
...@commonsware.com wrote:
On Thu, Jan 5, 2012 at 9:25 AM, Dirk Vranckaert
dirkvrancka...@gmail.com wrote:
That's what I did. In the SD Card part of the add/edit AVD screen
I've entered the size (100MB). I even tried added the hardware
parameter hw.sdCard: yes.
But none of these things
that for launching he should also
look at D:\DVRANCKA?
On Jan 5, 3:42 pm, Dirk Vranckaert dirkvrancka...@gmail.com wrote:
I did the check and am running on the latest versions.
But I noticed something strange. When I open my AVD manager and want
to create a new AVD it's not created on disk
\avd
\...However when I want to launch an AVD it's looked for in the C:
\user
\DVRANCKA\.android\avd\...
Is there somewhere I can configure that for launching he should also
look at D:\DVRANCKA?
On Jan 5, 3:47 pm, Mark Murphy mmur...@commonsware.com wrote:
On Thu, Jan 5, 2012 at 9:42 AM, Dirk
I'm developing the WorkTime application for Android and I am
expieriencing some strange behaviour with my widget.
SO I have a widget on which basically 3 parts are clickable:
1) The header = opens a selection dialog
2) A button = starts an activity to start a new time registration
3) The rest of
Yes ok but it doesn't make much sense that I should set the export-
property for 2 of my 3 activities that I'm calling from my widget,
certainly not that it worked before... The android:exported property
is only ment to be set to true if other components (so from other
applications) must be able
, its intent will not be
delivered to the activity.
-- Kostya
10 января 2012 г. 10:30 пользователь Dirk Vranckaert
dirkvrancka...@gmail.com написал:
Yes ok but it doesn't make much sense that I should set the export-
property for 2 of my 3 activities that I'm calling from my widget
the getPreferenceManager() is null...
What am I doing wrong?
Kr,
Dirk Vranckaert
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android
, Jan 31, 2012 at 9:22 AM, Dirk Vranckaert
dirkvrancka...@gmail.com wrote:
I'm trying to implement a fragemented preferences activity.
This is only the first part of my activity where it already fails:
public class PreferencesICSActivity extends PreferenceActivity {
@Override
)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1929)
... 11 more
for tablet: same crash as before...
How should I apply this layout file to my fragment activity...? Or
should I create a new layout file?
Kind regards,
Dirk Vranckaert
--
You received this message because you
I have a problem when I try to write a file to the device's SD-card.
It's an export in CSV format that I save to the directory /Android/
data/eu.vranckaert.worktime/files/worktime/ and the name of the file
is export.csv in this case.
File exportDir = ctx.getExternalFilesDir(null);
it wrong?
Any help welcome!
Dirk
On Feb 8, 10:32 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
On Wed, Feb 8, 2012 at 4:53 PM, Dirk Vranckaert
dirkvrancka...@gmail.com wrote:
I have a problem when I try to write a file to the device's SD-card.
6) Samsung Galaxy Nexus (running 4.0
...@gmail.com wrote:
On Thu, Feb 9, 2012 at 12:51 AM, Dirk Vranckaert
dirkvrancka...@gmail.com wrote:
Nikolay,
Thanks for the help but my problem is not to write the file or read
the file from my device. With code from above I can write the file to
the internal memory. But when my device (galaxy
As continious integration server I'm using Jenkins.
But when I'm locally on my pc building my Android application, the
ant-build fails when one of my unit tests fails.
However when I build the app on my continious integration server ant does
not fail when one of my tests is failing.
Both
I have an issue with one of my applications that is using a PendingIntent
to launch an activity from a widget...
This is the piece of code that does the trick:
PendingIntent pendingIntent = PendingIntent.getActivity(ctx, widgetId,
intent, PendingIntent.FLAG_UPDATE_CURRENT);
again that
button on the widget my activity is no longer executed. Or should I do this
another way...?
Op dinsdag 17 juli 2012 21:14:18 UTC+2 schreef TreKing het volgende:
On Tue, Jul 17, 2012 at 8:35 AM, Dirk Vranckaert dirkvrancka...@gmail.com
wrote:
However if I start
It always worked find to just pass the extras (in fact it's not only the
widget ID that i'm passing, there is some other stuff in there to..). It
since the launced activity starts another activity for result it doesn't
work anymore... So I guess using the extras or the data element won't make
And also.. If I do not use FLAG_UPDATE_CURRENT, then what flag(s) should I
define?
Op woensdag 18 juli 2012 09:23:57 UTC+2 schreef Dirk Vranckaert het
volgende:
It always worked find to just pass the extras (in fact it's not only the
widget ID that i'm passing, there is some other stuff
FLAG_ACTIVITY_NO_HISTORY it works
perfect...
Thanks for the help anyway (and sorry for my mistake ;) ) and happy coding!
:)
Kr
Dirk
Op woensdag 18 juli 2012 09:25:14 UTC+2 schreef Dirk Vranckaert het
volgende:
And also.. If I do not use FLAG_UPDATE_CURRENT, then what flag(s) should I
define?
Op woensdag
75 matches
Mail list logo