[android-developers] Re: Android download library does not find the remote expansion/.obb file if it's large

2014-11-02 Thread Mathias Lin
I tried another large upload today, and the remote file was found. So the issue is resolved for some reason. No changes to the code, just uploaded another version of apk and obb (without other changes). On Sunday, 2 November 2014 00:51:21 UTC+1, Mathias Lin wrote: I am implementing an app

[android-developers] Android download library does not find the remote expansion/.obb file if it's large

2014-11-01 Thread Mathias Lin
I am implementing an app with an expansion file, and as recommended in the Android Developer docs, I am also doing a manual check when the app starts, whether the expansion file exists, and if not, download it manually via the Download Library, that comes with the Android SDK samples.

[android-developers] localStorage html5 feature not working in WebView on Android devices of some manufacturers

2014-09-30 Thread Mathias Lin
I have a html5 application that I wrap in a WebView. To store and retrieve user input values between pages, I use the *localStorage* html5 feature. It works fine on my Nexus 4 (Android 4.4.4), but it does not work on Samsung Galaxy Tab 2 (Android 4.3.x) (= nothing happens, but also no error

[android-developers] Re: localStorage html5 feature not working in WebView on Android devices of some manufacturers

2014-09-30 Thread Mathias Lin
it anymore (on LG and Samsung device). Works fine on Nexus 4 though. What is the reason for the different behaviour? Different WebKit version, different Android version, vendor? On Tuesday, 30 September 2014 11:56:11 UTC+2, Mathias Lin wrote: I have a html5 application that I wrap in a WebView

[android-developers] sqlite3 on Android fails with: syntax error: unexpected “(”

2012-12-03 Thread Mathias Lin
I pushed sqlite3 (from my Android SDK tools folder) to my rooted device (*Galaxy S III, 4.0.3*), since it wasn't on there. But executing any query or even just entering sqlite3 fails with an error. via adb shell: ~ # sqlite3/system/xbin/sqlite3: line 1: syntax error: unexpected ( ~ #

[android-developers] Re: Turn off screen but not hardware keys, catch input with screen off

2012-06-02 Thread Mathias Lin
I 've seen apps locking the hard keys and not the touchscreen but Do you mean the apps turn off the screen but still enable it to listen to touch events? Can you point me to the apps that you have seen? Because I am actually looking for a way to implement such. Thanks. On Friday, 1 July

Re: [android-developers] Setting screen on/off

2012-06-02 Thread Mathias Lin
Why does the SDK not allow that for third party apps? Also, why does turning the brightness to 0 entirely turns the screen off and lock it? Why is there no way to just turn the screen off (entirely dim) without locking it, and also keep it listening to touch events? (So many limitations in the

[android-developers] Video (VideoView) flickering and/or doesn't display on ICS (but works fine on Android = 2.x)

2012-05-07 Thread Mathias Lin
I have an app with a VideoView, which works fine on all Android devices up to 2.x (Gingerbread), but has problems with devices running ICS. On some devices, the videos don't play, on other devices the video doesn't play when rotating the device. Instead, the screen starts flickering. (tested

[android-developers] Where did canvas.setViewport(int, int) go since ICS?

2012-03-04 Thread Mathias Lin
Where did method Canvas' method public void setViewport(int width, int height) go since ICS? I used the method before prior to ICS, now when I use it, the method can't be resolved. And it's not mentioned nor marked as deprecated at

[android-developers] VideoView doesn't start when invisible

2011-11-27 Thread Mathias Lin
I have an AsyncTask, where I hide a video view, start the video playback, and show the video view when the video is playing. But the video would just not start when the video view is set to invisible, the async task keeps hanging in onBackground. If I comment out this line (or set it to

Re: [android-developers] Proguard causes problems with SSL keystore on Android

2011-11-18 Thread Mathias Lin
I removed -repackageclasses and -allowaccessmodification, but no difference - getting the same error. On Friday, 18 November 2011 13:20:21 UTC+8, Nikolay Elenkov wrote: On Fri, Nov 18, 2011 at 2:05 PM, Mathias Lin ma...@mathiaslin.com wrote: In an Android app, I fetch content from a https

Re: [android-developers] Proguard causes problems with SSL keystore on Android

2011-11-18 Thread Mathias Lin
) at java.lang.Thread.run(Thread.java:1019) On Friday, 18 November 2011 17:08:45 UTC+8, casantos wrote: On Fri, Nov 18, 2011 at 3:05 AM, Mathias Lin ma...@mathiaslin.com wrote: In an Android app, I fetch content from a https url; in order to avoid SSL cert verification errors, I add

Re: [android-developers] Proguard causes problems with SSL keystore on Android

2011-11-18 Thread Mathias Lin
I was using the latest httpclient 4.1.2. Now when I switch back to 4.1.1, the problem is gone. Also see: http://comments.gmane.org/gmane.comp.apache.httpclient.user/262 On Friday, 18 November 2011 17:21:15 UTC+8, Mathias Lin wrote: This is the complete stacktrace: 11-18 17:17:39.403: ERROR

[android-developers] Proguard causes problems with SSL keystore on Android

2011-11-17 Thread Mathias Lin
In an Android app, I fetch content from a https url; in order to avoid SSL cert verification errors, I add the SSL public key to my keystore, which then resides in my res/raw folder of the app. Following the instructions as on

[android-developers] Sent/delivered SMS: how do you identify to which SMS the broadcast belongs?

2011-05-07 Thread Mathias Lin
In thread http://stackoverflow.com/questions/4639778/how-to-monitor-each-of-sent-sms-status it is described how you can monitor the status of a sent/delivered SMS via broadcast. However, I haven't found: how do you identify to which SMS the broadcast belongs? There doesn't seem to be any

[android-developers] Re: Sent/delivered SMS: how do you identify to which SMS the broadcast belongs?

2011-05-07 Thread Mathias Lin
Found the solution, using extras. When passing along extras to the pending intent, it's important to add the flag FLAG_UPDATE_CURRENT. Intent sendIntent = new Intent(SMS_SENT); sendIntent.putExtra(message, formattedMessage); sendIntent.putExtra(number, phone); PendingIntent

[android-developers] Re: What does this mean: Failure [INSTALL_FAILED_CONTAINER_ERROR] ?

2011-04-22 Thread Mathias Lin
Turns out I need to mount the sdcard and remove the file ~/.android_secure/smdl2tmp1.asec via pc, then it works again. On Apr 21, 11:14 pm, Mathias Lin m...@mathiaslin.com wrote: I can avoid the error when not allowing the app to be installed on sdcard, setting     android:installLocation

[android-developers] What does this mean: Failure [INSTALL_FAILED_CONTAINER_ERROR] ?

2011-04-21 Thread Mathias Lin
I try to deploy my app and sometimes get this error: Failure [INSTALL_FAILED_CONTAINER_ERROR] I tried to google it but don't find what the error means or what it's caused by. I deploy via IDE (IntelliJ) the file gets copied to the device to the /data/local/tmp (unrooted Huawei Ideos, running 2.2),

[android-developers] Re: How to develop a wheather forcast application for android

2011-04-21 Thread Mathias Lin
I agree with Marcin, especially as you would expect faster and better replies in the pro forum - why would a newbie ask a newbie - well of course some pros might also be happy to answer and mingle in the newbie forum maybe. More helpful would it be if people would just learn to be a bit more

[android-developers] Re: What does this mean: Failure [INSTALL_FAILED_CONTAINER_ERROR] ?

2011-04-21 Thread Mathias Lin
. How to ever be able to install it on the external memory without rooting the device (since this is the only way I could delete /mnt/ secure/asec/smdl2tmp1.asec afaik, which seems to be one solution as well as mentioned in some forums). On Apr 21, 8:41 pm, Mathias Lin m...@mathiaslin.com wrote: I

[android-developers] Re: QSB (Quick Search Bar): make suggestions editable

2011-02-02 Thread Mathias Lin
(); SearchManager searchManager = (SearchManager)getSystemService(Context.SEARCH_SERVICE); Bundle b = intent.getBundleExtra(SearchManager.APP_DATA); searchManager.startSearch(query, true, this.getComponentName(), b, false); } } On Feb 2, 2:30 pm, Mathias Lin m

[android-developers] QSB (Quick Search Bar): make suggestions editable

2011-02-01 Thread Mathias Lin
How to make the suggestions in the QSB editable when the user clicks on it, instead of triggering the actual search? I.e. via an edit icon on the right, like on the Google Search app. See screenshot: http://i.imgur.com/M1C6a.png Is there a standard way to do it, or does it require to implement

[android-developers] Re: motion effect in Rubber Band

2011-02-01 Thread Mathias Lin
You could probably use a TranslateAnimation with a BounceInterpolator http://developer.android.com/intl/fr/reference/android/view/animation/BounceInterpolator.html On Feb 2, 3:20 pm, Honest honestsucc...@gmail.com wrote: hello, I am creating Rubber Band effect in my ListView. So for that i

[android-developers] How to get a contact's facebook id or url from native contacts / content resolver?

2010-12-21 Thread Mathias Lin
How to get the facebook id or url of a contacts that's been synced to the native contacts app via Facebook sync adapter? I went through different urls, but didn't see any info regarding facebook. I tried ContactsContract.Data.CONTENT_URI ContactsContract.CommonDataKinds.Email.CONTENT_URI

[android-developers] Re: Twitter Integration with Android app

2010-11-30 Thread Mathias Lin
I agree with Kumar, try Twitter4J. And you can check this blog post for a sample reg. OAuth authentication: http://consultingblogs.emc.com/nileeshabojjawar/archive/2010/03/18/twitter4j-oauth-generating-the-access-token.aspx On Nov 30, 11:48 pm, Kumar Bibek coomar@gmail.com wrote: Try

[android-developers] Re: Twitter QuickActions Missing

2010-11-09 Thread Mathias Lin
I don't know why they changed the behaviour in the twitter app, just want to point you to an open source project for such component http://code.google.com/p/devoquickaction/ since you're looking into that topic. I recently looked into the same patterns. On Nov 9, 9:53 am, Alex awis...@gmail.com

[android-developers] Re: Launch twitter Homepage

2010-11-09 Thread Mathias Lin
With Twitter4J you basically access the twitter service API, but not *launching* a twitter application/site, for example the native Twitter app for Android, nor the twitter website. Code sample for Twitter4J are here: http://twitter4j.org/en/code-examples.html -- You received this message

[android-developers] Re: Where is the UI state information (used in super.onCreate(Bundle savedInstanceState)) stored ?

2010-11-08 Thread Mathias Lin
afe0da04 S com.android.browser [*** ... and the UI still shows values from the activity in the previous #2307 process *** ] On Nov 8, 8:19 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Nov 8, 2010 at 1:37 AM, Mathias Lin m...@mathiaslin.com wrote: That's what I thought

[android-developers] Re: Where is the UI state information (used in super.onCreate(Bundle savedInstanceState)) stored ?

2010-11-08 Thread Mathias Lin
of a special use-case I'm having here... still trying to find a good solution hopefully without needing to force a reboot. I appreciate your input or any other ideas for such scenario. Thanks. On Nov 9, 1:14 am, Mark Murphy mmur...@commonsware.com wrote: On Mon, Nov 8, 2010 at 11:38 AM, Mathias Lin m

[android-developers] Re: CameraPreview example distorted with samsung galaxy s

2010-11-08 Thread Mathias Lin
I had some issues with the SGS and cam as well, see my post at stackoverflow here: http://stackoverflow.com/questions/3213741/camera-preview-on-android-strange-on-samsung-galaxy-s and another post is here: http://stackoverflow.com/questions/3282238/camera-preview-on-galaxy-s/3282662#3282662 On

[android-developers] Where is the UI state information (used in super.onCreate(Bundle savedInstanceState)) stored ?

2010-11-07 Thread Mathias Lin
Where is the UI state information (used in super.onCreate(Bundle savedInstanceState)) stored and how can it be deleted from another app or command line on a rooted phone? I need to delete the user data (username, password) of both the native Facebook app (com.facebook.katana) and the stock

[android-developers] Re: Where is the UI state information (used in super.onCreate(Bundle savedInstanceState)) stored ?

2010-11-07 Thread Mathias Lin
anywhere persistent.  It is only kept in RAM, and only for as long as that particular activity instance may need to be launched again.  (That is, if you call finish(), that activity instance is gone, and any saved state no longer needs to be kept.) On Sun, Nov 7, 2010 at 8:52 PM, Mathias

[android-developers] Re: Where is the UI state information (used in super.onCreate(Bundle savedInstanceState)) stored ?

2010-11-07 Thread Mathias Lin
That's what I thought. But why is the UI state then not entirely cleared? But I found the following difference though doing some more testing - I found there's a difference whether the activity is in the foreground or not when I do the kill: Case 1) I start the facebook app, I am on the login

[android-developers] How to protect video/audio content (OMA DRM on Android)

2010-11-05 Thread Mathias Lin
I'm looking for a way to protect video and audio content (around 2GB) from being copied / played on other devices than the one where the app has initially been bought and installed on. What's currently the best approach? I try to research on the web but can hardly find any up-to-date

[android-developers] Re: ContextMenu/AlertDialog with footer view (to add checkbox for 'make default' option)

2010-11-04 Thread Mathias Lin
. Would be great though if a standard context menu would also offer this by default already. On Nov 4, 1:48 pm, Mathias Lin m...@mathiaslin.com wrote: Is there a standard way to add a footer to a context menu, in which I can add a checkbox to make the selected option the default one? Similar

[android-developers] Re: onConfigurationChanged not being invoked

2010-11-04 Thread Mathias Lin
How do you know that onConfigurationChanged is never called? Are you overriding it and logging something there? Can you post the code of that. Did you make sure you're using the correct method signature / using @Override ? On Nov 4, 10:45 am, darrinps darri...@gmail.com wrote: I have an

[android-developers] Re: Device name ?

2010-11-04 Thread Mathias Lin
You could use the SubscriberId / IMSI, but it cannot be detected with all SIM cards, depends on the SIM card. Or you can use the IMEI, the device id: TelephonyManager mTelephonyMgr = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); String imei = mTelephonyMgr.getDeviceId();

[android-developers] ContextMenu/AlertDialog with footer view (to add checkbox for 'make default' option)

2010-11-03 Thread Mathias Lin
Is there a standard way to add a footer to a context menu, in which I can add a checkbox to make the selected option the default one? Similar to the context menu that comes up when choosing the default home screen for example. http://i.imgur.com/B2wvC.png From the Api docs for ContextMenu I

[android-developers] Re: Drag and Drop List Simple Example

2010-10-31 Thread Mathias Lin
Thanks for sharing. Can also look at http://stackoverflow.com/questions/2909311/android-list-view-drag-and-drop-sort http://github.com/commonsguy/cwac-touchlist for another example On Nov 1, 8:33 am, ericharlow eric.b.har...@gmail.com wrote: I struggled with finding and using a simple drag and

[android-developers] Width of LayoutParams for the outer ViewGroup ignored when set in java code (instead of xml layout)

2010-10-28 Thread Mathias Lin
I created a very simple activity where I create and set the views in java code instead of xml. The width I pass to the outer LinearLayout though has no effect at all (200px). The view is displayed across the entire width of the screen, no matter what value I pass here. (Note that this is just

[android-developers] Re: OMA DRM forward lock

2010-10-27 Thread Mathias Lin
Do you have any further information in general about DRM implementation? The Android developer docs don't mention any DRM methods at all, nevertheless, when I google, I find these package and classes mentioned a lot: android.drm.mobile1.DrmConstraintInfo android.drm.mobile1.DrmException

[android-developers] TranslateAnimation doesn't animate straight (X-only) but also in Y-direction (diagonal)

2010-10-26 Thread Mathias Lin
I have a TranslateAnimation that shall animate a LinearLayout (isScrollContainer) to the left and to the right along the x-axis. The animation to the left works and the animation is straight - means that the view is animated horizontally only. But the animation left to right doesn't work:

[android-developers] Re: TranslateAnimation doesn't animate straight (X-only) but also in Y-direction (diagonal)

2010-10-26 Thread Mathias Lin
Better read the api doc more carefully... I just see that I switched the params by mistake, it's not x,y,x,y but x,x,y,y On Oct 26, 5:12 pm, Mathias Lin m...@mathiaslin.com wrote: I have a TranslateAnimation that shall animate a LinearLayout (isScrollContainer) to the left and to the right

[android-developers] Re: Wrong latitude/longitude points received by Emulator with new version of Android SDK

2010-10-24 Thread Mathias Lin
The map data in the Google Maps app and the maps that are available for developers to use via API (i.e. a MapView in Android SDK) come from different providers/sources, therefore the geo coordinates differ and the same lat/lng pair might pinpoint another location on both maps. You can see my post

[android-developers] gmail.com not working on webview (after login)

2010-10-23 Thread Mathias Lin
I have a webview in my app that generally works fine for loading websites. But I cannot get www.gmail.com to work: when I open www.gmail.com I see the login page, try to login, afterwards the screen goes black and my app/process is killed. I don't see much in my logcat, just some strange

[android-developers] Re: gmail.com not working on webview (after login)

2010-10-23 Thread Mathias Lin
/issues/detail?id=12097 it seems to be related but not 100% identical to: http://code.google.com/p/android/issues/detail?id=11655 therefore new report. I also added a sample project / src to the bug report that allows to reproduce the crash. On Oct 23, 10:54 pm, Mathias Lin m...@mathiaslin.com wrote

[android-developers] Re: using instrumentation testing framework if there is more than one activity

2010-10-18 Thread Mathias Lin
Hi Andrei, not directly answering your question, but just want to point you to www.robotium.org, which is a testing framework and does tests across multiple activities. On Oct 18, 11:02 am, Andrei gml...@gmail.com wrote: How do I use instrumentation testing framework to test flow between

[android-developers] Re: Googlenav package

2010-10-15 Thread Mathias Lin
Hi Steve, if you don't provide real-time turn-by-turn directions (which is not allowed for gps powered devices due to license issues as Mark already mentioned) but just want to provide the route and directions which you calculate in advance, you can fetch the kml dataset from the google maps web

[android-developers] Re: QuickContact works fine on 2.2 but not on 2.1

2010-10-10 Thread Mathias Lin
Nevermind, I just see I was using an insert-uri instead of a lookup. Nevertheless, despite the wrong uri, it worked ok in 2.2 before. On Oct 10, 11:08 am, Mathias Lin m...@mathiaslin.com wrote:   I have a ListView where I want to show the QuickContact (like in the default Contacts android app

[android-developers] QuickContact works fine on 2.2 but not on 2.1

2010-10-09 Thread Mathias Lin
I have a ListView where I want to show the QuickContact (like in the default Contacts android app when you click on the photo of a contact). It works fine on my Nexus One 2.2 or the emulator with avd 2.2, but doesn't work on my Samsung Galaxy S 2.1update1 or emulator 2.1. On 2.1, I'm

[android-developers] Re: How to display route on Google map in Android

2010-09-08 Thread Mathias Lin
Here's a complete code sample: http://stackoverflow.com/questions/3109158/how-to-draw-a-path-on-a-map-using-kml-file/3109723#3109723 HTH On Sep 8, 9:19 pm, cool.manish mannishga...@gmail.com wrote: Hi All, How to display route on Google map in Android in between two lat long value? Does

[android-developers] Re: How to display route on Google map in Android

2010-09-08 Thread Mathias Lin
MapView only displays a map, no method do draw a route is explicitly in there. You use your custom method. Please see my link earlier in this thread, it gives you a complete code sample. On Sep 8, 11:42 pm, cool.manish mannishga...@gmail.com wrote: Hi Victor, Isn't Android Map display only

Re: [android-developers] Re: How does Android determine whether to move the layout up when showing the softkeyboard?

2010-09-07 Thread Mathias Lin
. You'd need to set your view hierarchy to not correctly resize to adjust to its window, which is... questionable. On Mon, Sep 6, 2010 at 7:57 PM, Mathias Lin m...@mathiaslin.com wrote: Hi Ed, On Sep 7, 6:25 am, Ed edscha...@gmail.com wrote: Instead of View.INVISIBLE try View.GONE

[android-developers] Re: How does Android determine whether to move the layout up when showing the softkeyboard?

2010-09-07 Thread Mathias Lin
On Sep 8, 8:58 am, Dianne Hackborn hack...@android.com wrote: You make a broken view hierarchy that uses fixed sizes, so doesn't adjust to the actual window size. Again, not something I would recommend. I don't see how non-fixed sizes make a difference here in my case. I have two activities

[android-developers] How does Android determine whether to move the layout up when showing the softkeyboard?

2010-09-06 Thread Mathias Lin
How does Android determine whether to move the layout up when showing the softkeyboard? Note: I am aware that the activity property android:windowSoftInputMode=adjustResize|adjustResize| adjustUnspecified exists, as described here

[android-developers] Re: How does Android determine whether to move the layout up when showing the softkeyboard?

2010-09-06 Thread Mathias Lin
ScrollView/LinearLayout, where layout remains fix by the softkeyboard On Sep 6, 8:48 pm, Mathias Lin m...@mathiaslin.com wrote: How does Android determine whether to move the layout up when showing the softkeyboard? Note: I am aware that the activity property android:windowSoftInputMode

[android-developers] Re: How does Android determine whether to move the layout up when showing the softkeyboard?

2010-09-06 Thread Mathias Lin
that uses the *ListView* to stay fixed as well when I press the search button. I also already tried to set android:isScrollContainer=false to the list view, but it makes no difference either. (ListView doesn't have a fillViewport attribute) Mathias Ed On Sep 7, 12:03 am, Mathias Lin m

[android-developers] Re: cannot get my location to work on android 2.2

2010-09-05 Thread Mathias Lin
It's a known issue with the emulator, see the bug report here: http://code.google.com/p/android/issues/detail?id=8816 Works fine on real device. On emulator, use an older version (7 should work). On Sep 6, 10:07 am, sunny menon1...@gmail.com wrote: Hi Folks, my app which was working on 2.1 and

Re: [android-developers] Re: Statistics on Rooted Phones

2010-09-05 Thread Mathias Lin
But, I am wondering how will this number help anyone.On 06.09.2010 13:36, Tez wrote: This number can be quite interesting (together with the reasons why users root - obviously due to limitations, but which are the main...?!); if somebody roots a phone, even though they lose guarantee by

[android-developers] Re: Enable usb debugging (under settings/applications/development) programatically from within app

2010-08-13 Thread Mathias Lin
to the customer? - Kostya 12.08.2010 5:37, Mathias Lin : Thanks for the info. But as I understand it, the settings are read only: Secure system settings, containing system preferences that applications can read but are not allowed to write. These are for preferences that the user must explicitly

[android-developers] Re: about handle the home key

2010-08-13 Thread Mathias Lin
way to kick the goal. 2010/8/12 Mathias Lin m...@mathiaslin.com I do the same on a Samsung Galaxy S with 2.1update1 and 2.2 without a problem. The approach you described is correct. My intent filter looks similar:             intent-filter                action android:name

[android-developers] Question about purpose of CALL_PRIVILEGED permission (not working as stated in the docs)

2010-08-11 Thread Mathias Lin
Hi Dianne (and anbody else), on http://developer.android.com/reference/android/Manifest.permission.html I read CALL_PRIVILEGED: Allows an application to call any phone number, _including emergency numbers_, without going through the Dialer user interface for the user to confirm the call

[android-developers] Enable usb debugging (under settings/applications/development) programatically from within app

2010-08-11 Thread Mathias Lin
Is it possible to enable usb debugging (under settings/applications/development) programatically from within my app? I was looking at Permission.WRITE_SETTINGS and http://developer.android.com/reference/android/provider/Settings.System.html but couldn't find any appropriate setting there. --

[android-developers] Re: about handle the home key

2010-08-11 Thread Mathias Lin
I do the same on a Samsung Galaxy S with 2.1update1 and 2.2 without a problem. The approach you described is correct. My intent filter looks similar: intent-filter action android:name=android.intent.action.MAIN/ category

[android-developers] Re: Location from cell site or from Triangulation

2010-08-11 Thread Mathias Lin
Hi, you can find sample code here: http://stackoverflow.com/questions/3145089/what-is-the-simplest-and-most-robust-way-to-get-the-users-current-location-in-an/3145655#3145655 Cheers, Mathias On Aug 11, 1:00 pm, Ajmer singh ajmer.si...@evontech.com wrote: Hi Coryat Thanks for your reply.However

[android-developers] Re: Enable usb debugging (under settings/applications/development) programatically from within app

2010-08-11 Thread Mathias Lin
/Settings.Secu... On Aug 11, 5:39 am, Mathias Lin m...@mathiaslin.com wrote: Is it possible to enable usb debuggi... I was looking at Permission.WRITE_SETTINGS andhttp:// developer.android.com/reference/android/provider/Settings.Syst... but couldn't find any appropriate setting

[android-developers] Re: Strange out of memory issue on Nexus One

2010-08-05 Thread Mathias Lin
Alex, see this: http://stackoverflow.com/questions/3238388/android-out-of-memory-exception-in-gallery/3238945#3238945 On Aug 5, 2:54 pm, Alex Xin xinxi...@gmail.com wrote: Hi, I'm using DDMS to track my app's allocation event and heap memory size. I found that my app only use 2M-4M heap

[android-developers] Re: join android google group

2010-08-05 Thread Mathias Lin
Nice, welcome to the group. So, while I'm talking to a Samsung Android dev... why not take the chance...: Can you please have the unnecessarily introduced Task Manager button removed from the 'recent apps' menu that comes up on long-pressed home button. It's been there only since recently (2.1

[android-developers] Cannot playback video from internal storage (/data/data/com.myapp/some/folders/video.mp4)

2010-08-04 Thread Mathias Lin
I have an application with a lot of media data (images and videos) that were previously stored on the sdcard. With that, images and videos are displayed fine in my app. Now, in order to secure the content more, I wanted to move the content to the internal storage / data dir of the app, which

[android-developers] Re: Internal Storage

2010-08-04 Thread Mathias Lin
The assets folder would probably be suitable for your case, see http://thedevelopersinfo.com/2009/11/17/using-assets-in-android/ On Aug 4, 11:44 am, Dosa dosa1...@gmail.com wrote: I am writing a app that reads a file from the internal storage on startup. I have followed the guildelines

[android-developers] Re: Cannot playback video from internal storage (/data/data/com.myapp/some/folders/video.mp4)

2010-08-04 Thread Mathias Lin
hint but didn't find anything there either. Any hint on this is much appreciated. Thanks a lot! Mathias On Aug 4, 5:21 pm, Mathias Lin m...@mathiaslin.com wrote: I have an application with a lot of media data (images and videos) that were previously stored on the sdcard. With that, images

[android-developers] Re: How to capture long press of menu button

2010-08-01 Thread Mathias Lin
; } else return super.onKeyDown(keyCode, event); } On Jul 27, 11:46 pm, Mathias Lin m...@mathiaslin.com wrote: Thanks for your reply. Not sure though what you mean with compatibility reasons - in fact all phones handle it differently anyways? Why wouldn't it be wise to allow developers

[android-developers] Re: Nexus One for developers

2010-07-29 Thread Mathias Lin
It's already on the market long time ago. You can buy it regardless if you're a developer or not. I.e. http://www.expansys.com/d.aspx?i=193858 Maybe not in local stores in your country, but definitely alternative online markets than the Google N1 website itself. Where are you based? On Jul 29,

[android-developers] How to capture long press of menu button

2010-07-27 Thread Mathias Lin
How can I capture a long press of the device menu button in my application? I thought of an intent filter, but there's only an action called android.intent.action.SEARCH_LONG_PRESS, but nothing for the MENU button. I found that long press of the menu button actually does different things on

[android-developers] Re: How to capture long press of menu button

2010-07-27 Thread Mathias Lin
it. On Jul 27, 12:18 pm, Mathias Lin m...@mathiaslin.com wrote: How can I capture a long press of the device menu button in my application? I thought of an intent filter, but there's only an action called android.intent.action.SEARCH_LONG_PRESS, but nothing for the MENU button. I found

[android-developers] GpsStatusListener: no satellites used in fix although status is GpsStatus.GPS_EVENT_FIRST_FIX

2010-07-20 Thread Mathias Lin
I added a gps status listener to my location manager in order see when I get the first fix. When I receive the GPS_EVENT_FIRST_FIX I then loop through all the satellites, but why is none of them used in the fix? (usedInFix()). My log says 'false' for all satellites? final class

[android-developers] Google Maps apps with mapview have different current positions

2010-07-20 Thread Mathias Lin
I have a mapview where I want to track the user's current location. GPS as well as 'use wireless networks' is activated in my phone settings. Nevertheless, since I'm indoor I don't get a GPS fix, therefore the location is determined via network; wifi spot is available. I have the Google Maps

Re: [android-developers] Google Maps apps with mapview have different current positions Options

2010-07-20 Thread Mathias Lin
api / tiles. See this screenshot for an example, where I pinned the same geo point. http://img339.imageshack.us/i/gmaps2.png/ The map using the public map api is off a few hundred meters. Seems that we just have to live with it. On Jul 20, 6:32 pm, Mathias Lin m...@mathiaslin.com wrote: I

[android-developers] Selection list cut off in AutoCompleteTextView in Dialog

2010-07-17 Thread Mathias Lin
I have a dialog window that covers 1/3 of the entire screen height and is displayed on top of my activity. The dialog holds two AutoCompleteTextView fields. The problem I'm facing is that when the user starts typing something into the AutoCompleteTextView, the list with all suggestions only

[android-developers] ProgressDialog: Progress indicator not centered if no title/text is passed as parameter

2010-07-13 Thread Mathias Lin
When calling progressDialog = ProgressDialog.show(this, null, null, true); usually the developers wants to only show the progress indication image, and usually would it expect to be centered within the window (at least from regular UI design point of view). However, the image is too far left,

[android-developers] Video playback (mediaplayer) always logs ERROR/OsclAsyncFile(12290): OsclAsyncFile::ConstructL!! on Samsung Galaxy S

2010-07-13 Thread Mathias Lin
I'm using a mediaplayer (http://developer.android.com/reference/android/media/MediaPlayer.html) to playback a video. Everything works fine actually but I noticed that on a Samsung Galaxy S, despite that everything seems to run ok, I still see errors in the log, which I don't get on Nexus One

[android-developers] Re: Camera preview - strange on Samsung Galaxy S (2.1update1)

2010-07-10 Thread Mathias Lin
@Dan: version is [ro.build.fingerprint]: [Samsung/GT-I9000/GT-I9000/GT-I9000:2.1- update1/ECLAIR/I9000XXJF3:user/release-keys] @blindfold: yes, after commenting out the parameter p.set(ROTATION, 90) it looks ok now, thanks. I just need to rotate the image afterwards manually then, since it's in

[android-developers] Camera preview - strange on Samsung Galaxy S (2.1update1)

2010-07-09 Thread Mathias Lin
In my activity I show the camera preview on a surfaceView. It works perfectly fine on Nexus One (2.1update1, 2.2) and HTC Desire (2.1update1), but on Samsung Galaxy S (2.1update1) I see strange lines, weird proportions and everything three times. see the screenshot

[android-developers] Re: paypal mobile payment allowed?

2010-07-05 Thread Mathias Lin
The Android Market is bothering lots of developers, but Google doesn't seem to change anything about it or at least communicate anything about it. Hoping for an alternative market like slide.me to catch on and become an alternative de-facto standard and vendors would eventually pre-install it on

[android-developers] Re: Emulator 2.1 2.2 reverse geocoding not available

2010-07-02 Thread Mathias Lin
I confirm the same issues on the emulator with API 2.2 and API 2.1 level 8, but it works ok with API 2.1 level 7. -- Mathias On Jun 27, 4:30 am, Malcolm malcolm.mur...@gmail.com wrote: Richard, Joining this discussion late. I hit a similar problem when developing on a Mac using Eclipse and

[android-developers] Re: PNG quality in WebView based app

2010-06-29 Thread Mathias Lin
I experienced the same problem, but in my case I don't load the the image remotely. I load the image locally from the sd card. The original image is very clear and uncompressed. I tried different formats as well (png, jpg). The only solution I found was to divide the large image into multiple

[android-developers] Question about .asec (encryption) on Froyo 2.2 (Emulator)

2010-06-29 Thread Mathias Lin
Hi, can somebody please explain how asec exactly works? I couldn't find much info about it on the mailing list or elsewhere. I installed my app on the emulator with 2.2 and onto the sdcard. When I browse via adb shell, I can see that the encrypted app file lies under

[android-developers] WebView memory leak

2010-06-28 Thread Mathias Lin
I have an activity using an xml layout where a WebView is embedded. I am not using the WebView in my activity code at all, all it does is sitting there in my xml layout. Now, when I finish the activity, I find that my activity is not being cleared from memory. (I check via hprof dump). The

[android-developers] Re: Android paid apps in Ireland

2010-06-28 Thread Mathias Lin
Don't expect an answer from Google, cause they won't. Just move to another market platform. Google has no interest to offer paid apps model in too many countries, as they heavily rely on advertisement income. On Jun 28, 3:15 pm, skooter500 skooter...@gmail.com wrote: This is a disgrace! And I

Re: [android-developers] WebView memory leak

2010-06-28 Thread Mathias Lin
a bug report at: http://code.google.com/p/android/issues/detail?id=9375 On 29.06.2010 12:55 PM, Mathias Lin wrote: I have an activity using an xml layout where a WebView is embedded. I am not using the WebView in my activity code at all, all it does is sitting there in my xml layout.Now, when I

[android-developers] Re: Strange behaviour with mediaplayer and seekTo (on start-up)

2010-06-16 Thread Mathias Lin
); vidView = (VideoView) findViewById(R.id.vidView); vidView.setVideoPath(/sdcard/myapp/main/videos/main.mp4); vidView.seekTo(16000); vidView.start(); } } On Jun 16, 12:53 pm, Mathias Lin m...@mathiaslin.com wrote: I'm implementing a custom video player because I

[android-developers] Strange behaviour with mediaplayer and seekTo (on start-up)

2010-06-15 Thread Mathias Lin
I'm implementing a custom video player because I need custom video controls. I have an app with only one activity, which on start-up shall starts playing a video right away. Now, the problem I have (on my Nexus One): I don't want the video to start from the beginning, but from a later position.

[android-developers] Position of builtInZoomControls in WebView and MapView

2010-06-15 Thread Mathias Lin
://www.google.com/search?ie=UTF-8oe=UTF-8sourceid=navclientgfns=1q=mathias+lin+builtInZoomControls -- 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

[android-developers] Position of builtInZoomControls in WebView and MapView

2010-06-14 Thread Mathias Lin
I noticed that the default position of the builtInZoomControls in WebView (bottom, horizontal right) is not consistent with the default position in the MapView (bottom, horizontal center). Why is the position not consistent in these two views? (In the Google Maps app the zoom control is also only

[android-developers] Re: Application Crash Reporting made easy - needs testers

2010-05-24 Thread Mathias Lin
Hi Kevin, I tried to include acra v2 following the HowTo2, but get a NullPointerException when acra tries to read the crash data. I filed a bug report here: http://code.google.com/p/acra/issues/detail?id=2 (I just tried to use the default silent mode for now.) Regards, Mathias On May 20, 8:35 

[android-developers] Re: where is the sdcard in emulator 2.2?

2010-05-24 Thread Mathias Lin
There is no (virtual) sdcard in the emulator. You need to create it via http://developer.android.com/guide/developing/tools/othertools.html#mksdcard On May 21, 7:40 pm, coolbanana ralf...@web.de wrote: Hi, i am working with eclips with the new SDK2.2. i cannot find the sdcard in emulator

[android-developers] Re: Read local XML file

2010-05-24 Thread Mathias Lin
You could use sax parser to read the xml: http://developer.android.com/reference/org/xml/sax/XMLReader.html A tutorial is here: http://www.anddev.org/parsing_xml_from_the_net_-_using_the_saxparser-t353.html What's the best way to store your data depends on what you want to do with it afterwards.

[android-developers] Signal strength icon in Android status bar - what does it represent and how?

2010-05-20 Thread Mathias Lin
I want to show a signal strength icon in my application with the same logic as the icon is doing in the standard Android status bar. But I am wondering, what exactly does this icon represent and what kind of scale is it using? Does it represent the gsm signal strength as of

[android-developers] Re: How to find memory leak?

2010-05-20 Thread Mathias Lin
Yourkit, http://yourkit.com/overview/index.jsp, is another profiler tool that could be used. In sdk2.1, you can also do it on a non-rooted device - you can create a hprov from within the app and write it to sdcard. Debug.dumpHprofData(/sdcard/myapp.hprov); At least in v2.1, possible that this

[android-developers] Re: Android Dev Phone with 2.x?

2010-05-20 Thread Mathias Lin
Yes, you can just use the nexus one with 2.1, is SIM-unlocked. See here: http://developer.android.com/guide/developing/device.html If you want a SIM-unlocked phone, then you might consider either an Android Dev Phone or the Google Nexus One. Both are SIM-unlocked so that you can use them on any

  1   2   >