[android-developers] WebView visited links

2009-04-25 Thread Mattaku Betsujin
Hello, Is there a way to programatically tell a WebView that certain links have been visited, and thus should be displayed using dark blue instead of bright blue? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: SharedPreferences got deleted! - What could be the problem?

2009-04-23 Thread Mattaku Betsujin
I found that the preferences XML will break very easily if you store some Strings containing 'special' characters. I am not sure what exactly those are, but when I stored things like putString(someurl, http://xyz/?a=bc=d;) the preference file becomes empty next time I try to open it. My

[android-developers] Re: SharedPreferences got deleted! - What could be the problem?

2009-04-23 Thread Mattaku Betsujin
. On Apr 23, 7:09 pm, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: I found that the preferences XML will break very easily if you store some Strings containing 'special' characters. I am not sure what exactly those are, but when I stored things like putString(someurl, http

[android-developers] Re: WebView and https post problem

2009-04-19 Thread Mattaku Betsujin
Have you tried dumping the String that you sent to the WebView into a file? Try loading that on desktop mozilla. If you still see problems there that would mean your extraction code definitely has bugs. On Sat, Apr 18, 2009 at 11:18 PM, Evgeny V evgen...@gmail.com wrote: Thank you very much for

[android-developers] Re: WebView and https post problem

2009-04-17 Thread Mattaku Betsujin
What error do you see? On Fri, Apr 17, 2009 at 12:28 PM, EvgenyV evgen...@gmail.com wrote: Hi all! I'm trying to get PayPal web page with requested donation parameters. It works within IE or Firefox. Can anyone advise whether I'm running some wrong code? Layout main.xml:

[android-developers] Re: WebView and https post problem

2009-04-17 Thread Mattaku Betsujin
If you're missing images, etc, you should call loadDataWithBaseURL(). On Fri, Apr 17, 2009 at 1:13 PM, Evgeny V evgen...@gmail.com wrote: I just tried following code. For some reason simple request don't work when I'm calling loadData. But loadURL( ) is OK private void ZZZ() {

[android-developers] Re: One line causing lots of garbage collection. String.format with float. Help?

2009-04-14 Thread Mattaku Betsujin
How long is your list? And how often does the list items themselves change? Instead of reformatting the same numbers again and again every time the list is repainted, how about formatting them once into a list of Strings, and reuse these strings? On Tue, Apr 14, 2009 at 2:29 PM, DavidG

[android-developers] Re: How to remove the WebView top/left 8-pixel inner margin?

2009-04-13 Thread Mattaku Betsujin
I think the margin is probably implemented in C code inside WebKit. I looked at this in the past as well and couldn't find any Java options to configure the margins. What do you mean by accuracy? Do you mean finding the exact position of your HTML objects inside the WebView? On Mon, Apr 13, 2009

[android-developers] How to improve your ratings

2009-04-13 Thread Mattaku Betsujin
Not that I do this intentionally :-) Usually people give ratings only after they use your app. Now, after running the app, giving ratings is a hassle. The user needs to go into Market, find your app, and rate it. But if you push a new update, those users who like your app enough will

[android-developers] Re: Webview questions

2009-04-13 Thread Mattaku Betsujin
You need to do this: a href=javascript:window.jsinterface.mymethod('parameter') xxx /a In Java code: intf = new Object { public void mymethod(String param) { } } myWebView.addJavascriptInterface(intf , jsinterface); On Mon, Apr 13, 2009 at 6:13 AM, Roy M

[android-developers] Re: Showing/hiding dynamically the title bar

2009-04-13 Thread Mattaku Betsujin
If you want the title most of the time, and only hide it temporarily, you can use a PopupWindow. On Mon, Apr 13, 2009 at 7:24 AM, Streets Of Boston flyingdutc...@gmail.comwrote: Write your own title-bar. It's a hassle, but this is a way to do it. Create a View that looks like a title-bar

[android-developers] Re: How to remove the WebView top/left 8-pixel inner margin?

2009-04-13 Thread Mattaku Betsujin
There is a hack to do what you want -- make your WebView into a width of 336 -- that way you will have extra 8 pixels on each side. Then, put in somewhere off screen (use absolute layout), and get a drawing cache from it. That way, you can use the drawing cache bitmap, and draw that onto the real

[android-developers] Re: How to remove the WebView top/left 8-pixel inner margin?

2009-04-13 Thread Mattaku Betsujin
, you have the visible areas of the WebView to extend exactly to where you want it. On Mon, Apr 13, 2009 at 2:25 PM, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: There is a hack to do what you want -- make your WebView into a width of 336 -- that way you will have extra 8 pixels on each

[android-developers] Re: When will google post official cupcake SDK

2009-04-13 Thread Mattaku Betsujin
official pre release, that is :-) On Mon, Apr 13, 2009 at 6:18 PM, Eric Wong (hdmp4.com) ericwon...@gmail.com wrote: Official SDK 1.5 is OUT NOW. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: sdcard

2009-04-11 Thread Mattaku Betsujin
Do you have a real phone? If so, have you tried installing a video player app (from the Market) and play your videos? If you only have emulator, then probably it won't work. I had a video that worked fine in a real G1 phone, but shows up as black in the emulator, and the sound only played for a

[android-developers] Re: Conversion to Dalvik format failed with error

2009-04-10 Thread Mattaku Betsujin
Did you try on SDK/emulator, or on real HTC G1? As far as I have tried, I never got video to work on the emulator. On Thu, Apr 9, 2009 at 9:34 PM, Nithin Varamballi nithi...@gmail.comwrote: Thank you sir.. Can you know how live video streaming can be done... I tried demo sample But i give

[android-developers] What happened to the HOME button in cupcake

2009-04-10 Thread Mattaku Betsujin
I tried the 'unofficial' cupcake SDK and found that the hardware HOME button doesn't bring me back to the home screen anymore. Is this a conscious UI decision? What's the reason behind it? Also, long-press on the HOME button doesn't bring up the task manager anymore. So, if I am in the browser,

[android-developers] Re: What happened to the HOME button in cupcake

2009-04-10 Thread Mattaku Betsujin
it is not actually a working SDK. If you really want to play around with it, please don't assume that any random thing you happen to experience is actually correct. :} On Fri, Apr 10, 2009 at 12:24 PM, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: I tried the 'unofficial' cupcake SDK

[android-developers] Re: What happened to the HOME button in cupcake

2009-04-10 Thread Mattaku Betsujin
to experience is actually correct. :} On Fri, Apr 10, 2009 at 12:24 PM, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: I tried the 'unofficial' cupcake SDK and found that the hardware HOME button doesn't bring me back to the home screen anymore. Is this a conscious UI decision? What's

[android-developers] Re: Problem with writing to SD card / deleting files on it. Number of files relevant?

2009-04-09 Thread Mattaku Betsujin
I don't have an answer :-( but for a time my sdcard refuse to mount rw, so all the RSS apps that I run which need to write into sdcard will fail to start. However, the sdcard can be happily written into by Windows (via USB). This is the first instance that I ever observe that Windows is superior

[android-developers] When will google post official cupcake SDK

2009-04-09 Thread Mattaku Betsujin
Even a beta SDK would be helpful. There are lots of app developers who don't necessarily know how to build cupcake from the GIT. Given that HTC Magic (based on cupcake, I heard) is rolling out real soon now, wouldn't it be nice to give the app developers a chance to test if their app is compatible

[android-developers] Re: When will google post official cupcake SDK

2009-04-09 Thread Mattaku Betsujin
Limited, it's associates, or it's subsidiaries. -- *From:* android-developers@googlegroups.com [mailto: android-develop...@googlegroups.com] *On Behalf Of *Mattaku Betsujin *Sent:* 09 April 2009 19:22 *To:* android-developers@googlegroups.com *Subject:* [android

[android-developers] Re: Catch Exception in JavaScript

2009-04-08 Thread Mattaku Betsujin
I think the answer is no. If java JavaScript calls Java, and the Java method throws an uncaught exception, it kills the app process. Your best bet is to put a try-catch block around every Java method that can be called by Javascript. Just curious. What kind of exception are you expecting? I have

[android-developers] How to send mail with pre-populated content?

2009-04-06 Thread Mattaku Betsujin
I know I can specify an e-mail address using the Intent to invoke gmail. But how do I give it the initial content (and allow the user to edit the content if desired)? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Webview question: Is it possible to execute Javascript from Java synchronously?

2009-04-06 Thread Mattaku Betsujin
This doesn't make any sense, though. If you're inside in.read(), you should be sleeping, waiting for the network transfer to complete. So the WebKit thread *should* have some time to process your loadUrl() requests . On Mon, Apr 6, 2009 at 1:21 PM, j jac...@gmail.com wrote: Mark, I have

[android-developers] Bug in WebView highlight (and workaround)

2009-04-03 Thread Mattaku Betsujin
I am seeing an annoying bug in WebView on the G1. I have a WebView that displays an HTML page. When the user clicks on a link, the link's text is highlighted. At this point, I call WebView.clearView(), and then WebView.loadDataWithBaseURL() to load the URL that the user has just clicked on.

[android-developers] Re: Polite discussion of lite/trial vs pro distribution

2009-03-19 Thread Mattaku Betsujin
I think you can make the situation a lot better for yourself by accepting that people generally suck. There are lots of free loaders who don't want to pay for anything. And there are lots of people with lots of free time creating free apps, thus reinforcing the mentality of the free loaders.

[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-19 Thread Mattaku Betsujin
What about only limiting to open-source apps? On Thu, Mar 19, 2009 at 3:58 PM, Ivan Soto ivanso...@gmail.com wrote: If my application sells for like $.99 and the top seller is selling around 600 to 1000 a month, a lot of developer would be spending $1500 just to make themselves to the top.

[android-developers] Re: How Hard Is to Build RSS Feeds App for Android?

2009-03-10 Thread Mattaku Betsujin
There are a few RSS readers on the Market. You can search under the Apps/News category: http://www.cyrket.com/search?t=1c=NEWSs=1 One problem with the generic RSS apps is they can display the text/images in the RSS feed XML file itself, which is all great. However, many RSS feeds only have a

[android-developers] How to do a google search?

2009-03-06 Thread Mattaku Betsujin
I want to do a google search, so I open an HttpURLConnection() to www.google.com. However, I am getting an error: url = http://www.google.com/search?q=123 java.io.FileNotFoundException: http://www.google.com/search?q=123 at

[android-developers] Re: How to do a google search?

2009-03-06 Thread Mattaku Betsujin
the request headers Map map = http.getRequestProperties(); System.out.println(map); It shows an empty collection. What's happening? Does Google really doesn't want me to search? Please, I beg you, let me search On Fri, Mar 6, 2009 at 12:06 AM, Mattaku Betsujin mattaku.betsu

[android-developers] Testing for HTC magic

2009-03-06 Thread Mattaku Betsujin
I am getting user feedback for my app closes a lot on HTC magic, one star Are there any HTC magics out there? Will it be able to get an SDK/emulator for it? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Apache STDCXX library

2009-03-05 Thread Mattaku Betsujin
Hello, Has anyone ported Apache C++ Standard Library (STDCXX) onto Android? Thanks --~--~-~--~~~---~--~~ 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] Launch activity from Web Browser

2009-03-04 Thread Mattaku Betsujin
Hello, Is there a way to launch an activity from the web page? Like a href=dialer:123456Call me /a? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: Launch activity from Web Browser

2009-03-04 Thread Mattaku Betsujin
, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: Hello, Is there a way to launch an activity from the web page? Like a href=dialer:123456Call me /a? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Better JavaScript debugging for a WebView

2009-03-04 Thread Mattaku Betsujin
I just add a logging function to my JavaScript interface object. Something like class JSInterface { public void trace(String s) {System.out.println(s);} } Using this allowed me to develop and debug more than 3000 lines of JavaScript in my app. On Wed, Mar 4, 2009 at 10:18 AM, Miguel Paraz

[android-developers] Re: Better JavaScript debugging for a WebView

2009-03-04 Thread Mattaku Betsujin
, Miguel Paraz mpa...@gmail.com wrote: Hi, On Mar 5, 5:23 am, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: I just add a logging function to my JavaScript interface object. Something like class JSInterface { public void trace(String s) {System.out.println(s);} } Using

[android-developers] Re: HTML login form works in Android browser and fails with WebView ?

2009-03-04 Thread Mattaku Betsujin
Have you looked into android.webkit.CookieManager? On Wed, Mar 4, 2009 at 2:02 PM, Derek cram.de...@gmail.com wrote: Yes, that's I did in the code I've posted before. I don't see the difference ? Could this issue come from Cookie management in WebView ? Is there any option to make sure

[android-developers] Re: TERRIBLE BUG IN MARKET APPLICATION (was Re: Paid apps related questions discussion list?)

2009-02-27 Thread Mattaku Betsujin
I have updated my app about 10 times and I've never run into any problem. Could you send the error messages when the app fails to run after update? I'd like to know what the issues are and want to avoid them :-) Thanks On Thu, Feb 26, 2009 at 11:59 AM, sagesmith sagesm...@gmail.com wrote: I

[android-developers] Re: Google Checkout and charity donation

2009-02-27 Thread Mattaku Betsujin
? On Wed, Feb 18, 2009 at 10:01 AM, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: Hello Google I want to put up a button on my app for people to donate to my favorite charity. I could redirect it to a web page, but it will be really easy it people can just one-click and say donate $5.00

[android-developers] Call the developer!!

2009-02-27 Thread Mattaku Betsujin
Google, please tell me this is a big foul up. Today my phone number appeared in the Market listing of my app, and my answering machine is full of messages by people saying how much they like my app. I though the phone number will never be listed. How dare you!

[android-developers] Re: Call the developer!!

2009-02-27 Thread Mattaku Betsujin
, Jean-Baptiste Queru j...@android.comwrote: http://groups.google.com/group/android-discuss/browse_thread/thread/e3772a897dbb0080/ff4eca3dca2fc7de#ff4eca3dca2fc7de JBQ On Fri, Feb 27, 2009 at 4:59 PM, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: Google, please tell me this is a big foul

[android-developers] Re: Call the developer!!

2009-02-27 Thread Mattaku Betsujin
the thread JBQ has pointed you at. It shows how to remove your 'phone number, and tells you why it's being shown. Al. Mattaku Betsujin wrote: Please take remove the number for ALL apps NOW! Who in their right mind would think of providing phone tech support for a .99 app

[android-developers] Re: Is there a standard list of android icons for our apps?

2009-02-27 Thread Mattaku Betsujin
Download the Android source code and search for *.png. You will find tons of images. On Fri, Feb 27, 2009 at 7:57 PM, Edward Falk ed.f...@gmail.com wrote: From: Anil anil.r...@gmail.com for example: for error dialogs, confirm dialogs, progress... I looked in the res/drawable in the

[android-developers] Re: Call the developer!!

2009-02-27 Thread Mattaku Betsujin
the application profile and entered a number they wanted to be used and those who uploaded their app, published it, didn't check the details, and hence have their number on show? Al. Mattaku Betsujin wrote: I have read his thread and changed my number to that of Paris Hilton. So if anyone wants

[android-developers] Are there any 5-star apps out there?

2009-02-26 Thread Mattaku Betsujin
It seems like the Market's rating system usings floor() instead of round(), so if you get 1000 FIVE-STAR ratings, and one FOUR-STAR, your app will be 4.5 star. Does this feel kind of silly? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Bitmap Memory

2009-02-26 Thread Mattaku Betsujin
I think the best solution to handle very large bitmaps is to be able to decode only a small chunk of the bitmap at a time and process it. Does anyone know if the existing Android API can support this? If not, probably one solution is to write a smart decoder (in Java, so slow :-( ) that can

[android-developers] Re: Can I pull a paid app from the Android Market?

2009-02-26 Thread Mattaku Betsujin
I wonder about that too. If I purchased an app, and then delete it due to lack of space, I suppose I can come back later and reinstall it for free. But if the publisher pulls the app, I will be out of luck? Now I want my $.99 back! On Thu, Feb 26, 2009 at 1:19 PM, Stoyan Damov

[android-developers] Re: Building multiple app versions for the Market

2009-02-23 Thread Mattaku Betsujin
are using (or post the code somewhere), that would be very helpful. Thanks Jay On Feb 18, 8:57 pm, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: I have two APK files. One in com.foo.appfull package, the other in com.foo.applite package. On Wed, Feb 18, 2009 at 4:36 PM, jarkman jark

[android-developers] Re: TERRIBLE BUG IN MARKET APPLICATION (was Re: Paid apps related questions discussion list?)

2009-02-23 Thread Mattaku Betsujin
This is great! I made a good choice to make my app not only copy-protection free, but also open source :-) On Mon, Feb 23, 2009 at 12:35 PM, Mads Kristiansen mads.kristian...@nullwire.com wrote: Somehow I'm glad I can't offer paid apps. Thanks for sorting out all the quirks, guys.. Really

[android-developers] Why can't I see my own comments?

2009-02-20 Thread Mattaku Betsujin
I tried to give my app a little boost, and gave it 5 stars on my phone. Strangely, I cannot see my own comment, even on cyrket. http://www.cyrket.com/package/com.nubinews.fullreader Does Google use some sort of psychic sensing to filter out comments by the app's writer?

[android-developers] Google Checkout and charity donation

2009-02-18 Thread Mattaku Betsujin
Hello Google I want to put up a button on my app for people to donate to my favorite charity. I could redirect it to a web page, but it will be really easy it people can just one-click and say donate $5.00 to the Church of Nonflammable Hell through Google checkout than pulling out their credit

[android-developers] Re: Google: We need to know how paid app transactions will work!

2009-02-18 Thread Mattaku Betsujin
I though about this: Name your apps FooBar2009, FooBar2010, etc After Dec 31, 2009, FooBar2009 will stop working (you need to put a time-check in your app). Instead, it will put up a dialog for the user to install FooBar2010. If you sign the two apps with the same signature, the new app can

[android-developers] Re: How to tame CPU usage?

2009-02-18 Thread Mattaku Betsujin
Hi Mariano, Not directly related to your question, but how do you use regexp? Do you use the Java API? I am doing a hobby project that's similar to your app. I use regexp to strip all the ads from web pages and reformat them for better display. I actually use a WebView to run the regexp using

[android-developers] Re: Building multiple app versions for the Market

2009-02-18 Thread Mattaku Betsujin
What I did was: Put most of the functionality in a single package, say: com.foo.appcore Then, each version of the app will be in a different package com.foo.applite com.foo.appfull In development, I put the full version in Eclipse (i.e., appcore and appfull), so it's easy to build and debug

[android-developers] Re: Building multiple app versions for the Market

2009-02-18 Thread Mattaku Betsujin
18, 9:36 pm, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: What I did was: Put most of the functionality in a single package, say: com.foo.appcore Then, each version of the app will be in a different package com.foo.applite com.foo.appfull In development, I put the full

[android-developers] Re: How to tame CPU usage?

2009-02-18 Thread Mattaku Betsujin
in the future. I use Matcher.find() to iterate over the html/stylesheet file. Unfortunately this can lead to 100% CPU indefinitely (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4771934). Cheers, Mariano On Wed, Feb 18, 2009 at 10:18 PM, Mattaku Betsujin mattaku.betsu...@gmail.com

[android-developers] Re: How to tame CPU usage?

2009-02-18 Thread Mattaku Betsujin
on the G1. On Wed, Feb 18, 2009 at 9:11 PM, Tim Bray timb...@gmail.com wrote: On Wed, Feb 18, 2009 at 7:56 PM, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: I am not sure how Java's regexp is implemented. If it's implemented in Java code, that would be quite slow. I'm not sure which java

[android-developers] HttpUrlConnection.disconnect doesn't work

2009-02-15 Thread Mattaku Betsujin
I found out that under certain conditions (slow T-Mobile EDGE network), if I have thread A blocked on an HttpUrlConnection.connect(), and I try to call HttpUrlConnection.disconnect() in thread B, thread A still gets blocked and doesn't return. Has anyone seen this problem?

[android-developers] How to share preference across several Activities?

2009-02-14 Thread Mattaku Betsujin
Hello, I have two activities in two different packages: com.foo.a and com.foo.b. Is it possible to create an PreferenceActivity (with the exact same XML file) so that the preference is shared across the two activies? Thanks --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Attn Google - How does licensing work in transitioning from a free app to a paid app?

2009-02-12 Thread Mattaku Betsujin
How about charging for the apps using a service model You could name you apps like com.foobar.theapp2009q1 com.foobar.theapp2009q2 com.foobar.theapp2009q3 com.foobar.theapp2009q4 When version X expires, the app can launch an Intent to point the user to the newer version. This way it should be

[android-developers] Re: Self-signed app on Market

2009-02-12 Thread Mattaku Betsujin
a CA, the system and user will never know the difference. On Tue, Feb 10, 2009 at 4:53 PM, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: Hi, If I go cheap and don't pay the $xx or so for a real VerifySign certificate, and just use a self-signed certificate to sign my app

[android-developers] Re: Attn Google - How does licensing work in transitioning from a free app to a paid app?

2009-02-12 Thread Mattaku Betsujin
for app licenses. On Feb 12, 12:36 pm, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: How about charging for the apps using a service model You could name you apps like com.foobar.theapp2009q1 com.foobar.theapp2009q2 com.foobar.theapp2009q3 com.foobar.theapp2009q4 When

[android-developers] Re: SDK Network Snifing

2009-02-12 Thread Mattaku Betsujin
What will be good is to have some high-level protocol sniffing as well, built-into the SDK. I am sure most people want to sniff their HTTP traffic, and have no idea how to use a low-level tool such as WireShark. On Thu, Feb 12, 2009 at 2:53 PM, David Turner di...@android.com wrote: not

[android-developers] Re: object serialization ???

2009-02-10 Thread Mattaku Betsujin
The problem is you're trying to serialize an inner class of SerialisiereAndroidActivity, which is not Serializable. To fix this, you can declar the inner class as public static class Serialisiere implements ^^^ - Mattaku On Tue, Feb 10, 2009 at 11:56 AM, dlawogus...@gmail.com

[android-developers] Self-signed app on Market

2009-02-10 Thread Mattaku Betsujin
Hi, If I go cheap and don't pay the $xx or so for a real VerifySign certificate, and just use a self-signed certificate to sign my app, will it appear as a second-class citizen on the Android Market? Specially, will the user get a prompt like this app is signed by a possibly untrustyworthy

[android-developers] Market, Paid Apps and DRM

2009-02-09 Thread Mattaku Betsujin
Will there be a way for a paid app to be forward-locked, so that it cannot be installed on other people's phones? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this