[android-developers] No onEditorAction on Xperia Tablet

2014-08-26 Thread Jan Burse
Dear All, I am testing some code on a sony xperia z2 tablet. I am having some problems with the sony software keyboard. Its not calling onEditorAction(). I don't think its a problem with my code. Since when I switch the keyboard, to for example the hackers keyboard app, my code receives

[android-developers] Re: .apk File Link

2014-06-17 Thread Jan Burse
Hi, Some mobiles do not always send cookies, especially when switching from the mobile web browser to the download manager. So if your JSP assumes a session, this might fail. I even tried the ;jsessionid= trick, but this confused the download manager. Dunno if this has been fixed. Bye Rahul

[android-developers] Re: ContentResolver obtaining java.io.File instead java.io.FileDescriptor

2014-03-09 Thread Jan Burse
Hi, Yes, this is exactly the problem I am facing. Maybe I should request multiple columns when starting the intent. One column with some timedate, and another column with the data blob. Still not sure how to fabrikate the intent and how to obtain the result, so that I get both the data and the

[android-developers] ContentResolver obtaining java.io.File instead java.io.FileDescriptor

2014-03-08 Thread Jan Burse
Dear All, I am using an intent to invoke a file chooser. Some of the file chooser applications return an Uri of scheme file others return an Uri of scheme content. I need to obtain the last modified date of the chosen object. How do I do that? I didn't find an appropriate API. There is some API

[android-developers] Network Class Loader

2013-01-08 Thread Jan Burse
Dear All, I am just read: Provides a simple ClassLoader implementation that operates on a list of files and directories in the local file system, but does not attempt to load classes from the network. Android uses this class for its system class loader and for its application

[android-developers] Who is plusing an App?

2012-11-08 Thread Jan Burse
Dear All, Is there a way to browse who is plusing an app? Bye -- 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-developers] Re: Override OnKeyPreIme of an EditText getted from a View

2012-10-30 Thread Jan Burse
tete schrieb: I want to override the OnKeyPreIme method of a EditText got from a findByView(int id), to make the activitiy finish() when user press back key. You can override the back key of your activity(*), and make the finish call dependent on the focused view, i.e. check whether the user

[android-developers] Re: Performance analysis of Android...

2012-10-27 Thread Jan Burse
ehsan azimzadeh schrieb: Feel free to contact me if you have any questions. Any free preprint available? -- 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

[android-developers] Re: Does an onDraw() get called if I don't do invalidate() but did the requestLayout()?

2012-10-21 Thread Jan Burse
Satya Komatineni schrieb: For a UI action in the same thread: //On my view I call requestLayout() ViewRoot schedules a traversal //I don't call invalidate() on my view So, no rectangle is invalid (I am assuming that is the assertion because I didn't call invalidate) Is it possible that the

[android-developers] Changing a CharacterStyle

2012-10-18 Thread Jan Burse
Dear All, I am using a single character style in multiple text locations. I simply did the following: output = new ForegroundColorSpan(OUTPUT_COLOR); And then whenever a portion of my text has to have the above character style, I simply use the wrap() method to share the style:

[android-developers] Re: Changing a CharacterStyle

2012-10-18 Thread Jan Burse
Mark Murphy schrieb: On Thu, Oct 18, 2012 at 5:35 AM, Jan Burse janbu...@fastmail.fm wrote: How can I change the color? Use getSpans(), find all occurrences of your span, remove the old span, and replace it with a span with the new color. It's possible that there is a more efficient

[android-developers] Re: Changing a CharacterStyle

2012-10-18 Thread Jan Burse
Mark Murphy schrieb: SuggestionSpan), meaning that creating your own equivalents would be at least partially ignored by the rendering code. I'm glad to hear that this works at least for foreground colors, though. It works, since characterstyle is supposed to be extensible in that the method

[android-developers] Re: Does Android cache http-requested data?

2012-10-14 Thread Jan Burse
Keith Wiley schrieb: I am quite flummoxed. I am aware that Android is requesting and receiving a GZipInputStream, and I can see the input stream's type in the debugger, but that seems irrelevant to my issue. Caching of web server chains can be very elaborate. See for example here:

[android-developers] Issues with local/device concerning return key

2012-09-28 Thread Jan Burse
Dear All, Has somebody observed that the return key on the soft keyboard does something else emit than: KeyEvent.ACTION_DOWN and KeyEvent.KEYCODE_ENTER. But nevertheless cause a text component to go to the next line? Could this be device/local dependent? Bye -- You received this message

[android-developers] Re: runtime compilation of dalvik bytecode

2012-09-28 Thread Jan Burse
Ross Bamford schrieb: No, it goes directly to Dex. The original interpreter runs on any Java platform (Deelang was originally intended as a generic scripting language for embedded devices) but the compiler is strictly Dalvik. It wouldn't be difficult to transform the Dee VM bytecode to Java

Re: [android-developers] Key, Gesture, Menu, etc.. für History Up/Down

2012-09-28 Thread Jan Burse
Jan Burse schrieb: Dear All, Assume I have a terminal app for Android. How would I implement history up/down? (*) On the classical PC one would use the up arrow and the down arrow, but on Android. Hints welcome. Bye (*) The up and down already works under the hood, question is what

[android-developers] Re: runtime compilation of dalvik bytecode

2012-09-27 Thread Jan Burse
Ross Bamford schrieb: You'll find the project at http://deelang.googlecode.com/ . To get the native compiler, you'll need to check the DEXCOMPILER branch out of subversion (a file release is planned soon, but not yet). Does it take a detour over Java bytecode? If yes, is this bytecode also

[android-developers] Key, Gesture, Menu, etc.. für History Up/Down

2012-09-22 Thread Jan Burse
Dear All, Assume I have a terminal app for Android. How would I implement history up/down? (*) On the classical PC one would use the up arrow and the down arrow, but on Android. Hints welcome. Bye (*) The up and down already works under the hood, question is what in the GUI should signal an

Re: [android-developers] Key, Gesture, Menu, etc.. für History Up/Down

2012-09-22 Thread Jan Burse
Harri Smått schrieb: While struggling with somewhat similar problematics I ended up utilizing long-press triggered menu. Don't know if this is an option for you though. Not sure whether I can use this inside a text component. Doesn't it trigger the copy/paste function? Bye -- You received

Re: [android-developers] Key, Gesture, Menu, etc.. für History Up/Down

2012-09-22 Thread Jan Burse
Mark Murphy schrieb: Volume up/down. Sound good! -- 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-developers] Re: print integer value in logcat.

2012-09-11 Thread Jan Burse
Raghav Sood schrieb: Why would you use that when you have a perfectly working LogCat class? What's wrong with Log.i(value = + intName);? Raghav Sood Sent from my Galaxy Nexus Nothing wrong, except that it will not compile. I guess you would need to put: Log.i(TAG, value = +

[android-developers] Re: print integer value in logcat.

2012-09-11 Thread Jan Burse
Lew schrieb: That is not an advantage, and the concomitant loss of information is a disadvantage. Oh, you made it from comp.lang.java.programmer to here? Not enough troll opportunities anymore there? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Question about SurfaceView and Threads

2012-09-10 Thread Jan Burse
Harri Smått schrieb: That's not true. Android supports basic Java Threads and there's no reason for not to use them when appropriate. But the thing is, you can not alter UI components outside of UI Thread. In your case it would be updating the textual contents of TextView. See method named

[android-developers] Re: print integer value in logcat.

2012-09-10 Thread Jan Burse
Most simple approach: int x; System.err.println(x=+x); Will show in LogCat. mohammed Nuhail schrieb: How to print integer value in LogCat ? -- 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] Re: ANN: Jekejeke Prolog 0.9.5 (runtime console, google play)

2012-09-08 Thread Jan Burse
Jan Burse schrieb: - Runtime Library (free) III: The Android version is now also available on Google Play. Update: Since now, also live on Amazone Appstore for Android. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] ANN: Jekejeke Prolog 0.9.5 (runtime console, google play)

2012-09-02 Thread Jan Burse
: The Android version is now also available on Google Play. But the Development Environment and the Minlog Module are currently not on Google Play. - Minlog Module (Chart Parser, CLP(FD)): There is now an Android version. Happy coding! http://www.jekejeke.ch/ Jan Burse Sep 3. 2012 -- You received

[android-developers] Re: Multiple Package name in a Single Applicaiton

2012-08-28 Thread Jan Burse
Mark Murphy schrieb: On Tue, Aug 28, 2012 at 8:10 AM, karuna vikas kvk2551...@gmail.com wrote: thanks Murphy,, I got the point what you are saying... In a Single Android Package, we can use multiple java packages ... Right ? You can use 1,000 Java packages within an Android app, if the mood

[android-developers] Re: Multiple Package name in a Single Applicaiton

2012-08-28 Thread Jan Burse
Mark Murphy schrieb: On Tue, Aug 28, 2012 at 8:56 AM, Jan Burse janbu...@fastmail.fm wrote: You can also distribute the 1000 java packages across multiple APK. Then see to it that these APK share process ID and user ID. Then one APK can access the other APK withou getting file read errors

[android-developers] Re: Multiple Package name in a Single Applicaiton

2012-08-28 Thread Jan Burse
Mark Murphy schrieb: custom signature-level permission I was googling a little bit and found the following definition: A permission that the system grants only if the requesting application is signed with the same certificate as the application that declared the permission. If the

[android-developers] Re: Multiple Package name in a Single Applicaiton

2012-08-28 Thread Jan Burse
Jan Burse schrieb: Mark Murphy schrieb: custom signature-level permission I was googling a little bit and found the following definition: A permission that the system grants only if the requesting application is signed with the same certificate as the application that declared

[android-developers] Re: Sharing data between Android framework and app

2012-08-13 Thread Jan Burse
You can store key/value pairs in Accounts, via the Account Manager. I never did it, but I guess it could fit your needs, since you anyway seem to plug-in into some Account validation, right? http://developer.android.com/reference/android/accounts/AccountManager.html See getUserData(),

[android-developers] Re: Cursor Blinking Management (TabHost/ActivityGroup)

2012-02-24 Thread Jan Burse
/android/issues/detail?id=2772 Jan Burse schrieb: The blinker runs in the UI thread. And it is kept alive and it keeps itself aliver in posting delayed messages. You find the source code here: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android

[android-developers] Re: Cursor Blinking Management (TabHost/ActivityGroup)

2012-02-20 Thread Jan Burse
The blinker runs in the UI thread. And it is kept alive and it keeps itself aliver in posting delayed messages. You find the source code here: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/widget/TextView.java#TextView.Blink There is a

[android-developers] Re: Cursor Blinking Management (TabHost/ActivityGroup)

2012-02-20 Thread Jan Burse
Hi, Kostya Vasilyev schrieb: IIRC, view focusing is only applied if the enclosing window is in activated state (not sure about the exact name), you might want to look into this. Well I checked the state of isFocused() of the text view I am interested in and which should blink. I don't see

[android-developers] Re: Cursor Blinking Management (TabHost/ActivityGroup)

2012-02-20 Thread Jan Burse
Hi, Farhan Tariq schrieb: quiet irrelevant though but ... can you please cut out on your 'bye's ... don't know about others but, i'm sure its irritating to them too You should see a mental health professional. Maybe your epilepsy medication doesn't work. Bye -- You received this message

[android-developers] Re: Cursor Blinking Management (TabHost/ActivityGroup)

2012-02-20 Thread Jan Burse
Here is a picture what happens: The two tabs were made via: tabHost.addSpec(spec1); tabHost.clearAllTabs(); tabHost.addSpec(spec1); tabHost.addSpec(spec2); Situation 1: The TabHost: +-+--+ | Tab 1 | Tab 2| +---+ |

[android-developers] Re: Cursor Blinking Management (TabHost/ActivityGroup)

2012-02-20 Thread Jan Burse
Jan Burse schrieb: +-+--+ | Tab 1 | Tab 2| +- P.S.: The tabs do not stretch to the screen width, since I have placed the tabwidget inside a HorizontalScrollView. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Cursor Blinking Management (TabHost/ActivityGroup)

2012-02-20 Thread Jan Burse
Jan Burse schrieb: tabHost.addSpec(spec1); tabHost.clearAllTabs(); tabHost.addSpec(spec1); tabHost.addSpec(spec2); More precisely: tabHost.addSpec(spec1); tabHost.clearAllTabs(); tabHost.addSpec(spec1); tabHost.addSpec(spec2); tabHost.setCurrentTab(1

[android-developers] Re: Cursor Blinking Management (TabHost/ActivityGroup)

2012-02-17 Thread Jan Burse
lbendlin schrieb: You could even refine the approach by first taking the focus away and then setting it again. http://developer.android.com/reference/android/view/View.html#requestFocus%28%29 I guess you are not a good listener, didn't grasp how I described my application. Since my

[android-developers] Workaround NullPointerException TabWidget?

2012-02-16 Thread Jan Burse
Dear All, Is there some workaround for a null pointer exception in TabWidget. It basically happens in the following code: tabHost.clearAllTabs(); tabHost.addTab(spec); The clearAllTabs sets the mSelectedTab to -1. The problem is some sloppy code in the Android 2.3.7 version of

[android-developers] Re: Workaround NullPointerException TabWidget?

2012-02-16 Thread Jan Burse
Hi, Just did this. Actually the problem was not a mSelectedTab = -1, but rather a mSelectedTab = 1 and a getChildCount = 1. This problem I do not seen on Android 4.0.3. The workaround code that works for me is: public class TabWidgetFix extends TabWidget { private final View dummy; /**

[android-developers] Cursor Blinking Management (TabHost/ActivityGroup)

2012-02-16 Thread Jan Burse
Dear All, To manage tabs I use the following code: tabHost.clearAllTabs(); tabHost.addTab(spec); /* for multiple specs */ I can add and remove tabs this way. Since the specs contain a tag, sub activities are refound. When I remove a tab, I also call:

[android-developers] Re: Cursor Blinking Management (TabHost/ActivityGroup)

2012-02-16 Thread Jan Burse
lbendlin schrieb: Have you tried setting the focus? -- 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-developers] Re: Cursor Blinking Management (TabHost/ActivityGroup)

2012-02-16 Thread Jan Burse
What do you mean by manually set the focus? For the new tab I call setCurrentTab() when I add it. The old tabs are focused via the TabHost/TabWidget interaction, which I do not intercept. Both the old and the new tab receive the focus. But the cursor is not blinking for the old tab. You can

[android-developers] Re: Cursor Blinking Management (TabHost/ActivityGroup)

2012-02-16 Thread Jan Burse
Mostlikely some pause/resume problem I guess... Jan Burse schrieb: What do you mean by manually set the focus? For the new tab I call setCurrentTab() when I add it. The old tabs are focused via the TabHost/TabWidget interaction, which I do not intercept. Both the old and the new tab receive

[android-developers] Are you kidding me? EMS = LineHeight

2012-02-13 Thread Jan Burse
Dear All, I was using setEms() to set the width of a text field. But the text field looks much to wide for me. So I went into the source code and looked what is really happening there, and it seems that Ems is equated with LineHeight: android.widget.TextView: if (mMaxWidthMode ==

[android-developers] Customizing Select-All / Cut after InputFilter

2012-02-12 Thread Jan Burse
Dear All I have an EditText with an InputFilter. The InputFilter restricts the editable area of the edit text to everything above inputoffset: public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) { if

[android-developers] Re: Customizing Select-All / Cut after InputFilter

2012-02-12 Thread Jan Burse
Jan Burse schrieb: - Cut Action is enabled, even if selection is above input offset. Corr.: - Cut Action is enabled, even if selection is below input offset. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Strange Cipher Result Java SE vs Android

2012-02-02 Thread Jan Burse
Dear All, I see a strange cipher result. I am using the following code with a public RSA key: System.err.println(res = + toHex(res, p, RSA_OUTPUT)); byte[] temp = cipher.doFinal(res, p, RSA_OUTPUT); System.err.println(temp = + toHex(temp, 0, temp.length)); When I run

[android-developers] Re: Strange Cipher Result Java SE vs Android

2012-02-02 Thread Jan Burse
Problem resolved: http://stackoverflow.com/questions/8885261/is-it-possible-for-android-application-to-implement-rsa-none-pkcs1padding-rsa Jan Burse schrieb: Dear All, I see a strange cipher result. I am using the following code with a public RSA key: System.err.println(res = + toHex(res, p

[android-developers] Re: Multiple APKs installed to the same location

2012-02-02 Thread Jan Burse
BT schrieb: Can I create multiple .apk's that install ADDITIVELY to the same /data/ apps/MyApp location? In my particular case I have add-on modules that are built as C++ NDK share objects: Feature1.so, Feature2.so, Feature3.so, etc. I don't know what these will be ahead of time and the user

[android-developers] Re: javax.management

2012-01-25 Thread Jan Burse
. Best Regards Jan Burse schrieb: Mark Murphy schrieb: You are missing the point. If I am understanding the documentation for MemoryPoolMXBean, there cannot be some other lib. I believe that you will be needing to remove the ties to javax.management, not replace them. Since I only need

[android-developers] javax.management

2012-01-19 Thread Jan Burse
Dear All, Just noticed that javax.management is not available on Android. Any substitute recommendation? Bye -- 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

[android-developers] Re: javax.management

2012-01-19 Thread Jan Burse
Jan Burse schrieb: Dear All, Just noticed that javax.management is not available on Android. Any substitute recommendation? Bye I would need: - javax.management.ListenerNotFoundException; - javax.management.NotificationEmitter; - java.lang.management.ManagementFactory

[android-developers] Re: javax.management

2012-01-19 Thread Jan Burse
Mark Murphy schrieb: On Thu, Jan 19, 2012 at 6:42 PM, Jan Bursejanbu...@fastmail.fm wrote: I would need: - javax.management.ListenerNotFoundException; - javax.management.NotificationEmitter; - java.lang.management.ManagementFactory; - java.lang.management.MemoryPoolMXBean; -

[android-developers] Re: javax.management

2012-01-19 Thread Jan Burse
Mark Murphy schrieb: You are missing the point. If I am understanding the documentation for MemoryPoolMXBean, there cannot be some other lib. I believe that you will be needing to remove the ties to javax.management, not replace them. Since I only need the memory threshold functionality I

[android-developers] Honeycomb (Android 3.2) emulator slow

2011-09-05 Thread Jan Burse
Original Title of Thread was: Honeycomb (Android 3.2) emulator slow And it was then hitchhiked by Christopher Van Kirk, maybe unknowingly, i.e. not mastering his mail tool. Dianne Hackborn schrieb: I am an engineer on the core Android frameworks (android.app, -- You received this message

[android-developers] Honeycomb (Android 3.2) emulator slow

2011-09-03 Thread Jan Burse
Dear All, Is it me or is it the system? I just installed the Android SDK and were running a virtual device for Android 3.2. I am using a Windows 7 box. It seems to me that the emulator has some problems in building the screen in time. I didn't have the feeling of smooth interaction. Android

[android-developers] Re: Honeycomb (Android 3.2) emulator slow

2011-09-03 Thread Jan Burse
Mark Murphy schrieb: Set the Device RAM size to 1024. Yes, why not, would it help? Replace the home screen with something faster. What do you mean by that? I tried already window scale 96dpi Which makes the window smaller. But I have the feeling the whole graphics is broken, font look

[android-developers] Re: Honeycomb (Android 3.2) emulator slow

2011-09-03 Thread Jan Burse
Mark Murphy schrieb: I have already 4 cores, and one core goes up with the emulator. The emulator does not use multiple cores. I did not say it uses multiple cores. I said: buy a Core i7 with Turbo Boost to 3.4GHz. Actually I have already turbo boost. Here are the specs: HP EliteBook

[android-developers] Re: Honeycomb (Android 3.2) emulator slow

2011-09-03 Thread Jan Burse
Mark Murphy schrieb: On Sat, Sep 3, 2011 at 7:26 PM, Jan Bursejanbu...@fastmail.fm wrote: Actually I have already turbo boost. Here are the specs: HP EliteBook 8560p Intel® Core™ i7-2620M @ 2.70GHz But it is of absolutely no use here. The emulator just sucks. It would suck worse with a

[android-developers] Re: Honeycomb (Android 3.2) emulator slow

2011-09-03 Thread Jan Burse
Mark Murphy schrieb: It would suck worse with a slower CPU. I find that the emulator works tolerably with the configuration I described, and I have the same CPU in a Dell notebook. It also works ok here for android 2.3. The issue is mainly it does not scale to android 3.2. -- You received