[android-developers] illegal/unsupported escape sequence

2016-06-23 Thread 'alex b' via Android Developers
I'm getting the error in the subject line using Android studio 2.1.2 on Win7 x64, on the following lines: String sep = "\\"; also with Character sep = '\\'; very strange. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] resizing a webview dynamically

2013-08-14 Thread alex b
I'm trying to resize a webview in a relativelayout when a user clicks a button but it's proving to be quite difficult. Here's what I've tried. In every case the webview simply repositions itself but never resizes. *protected* *void* toggleMap(){ ... lp*=new*

[android-developers] Re: activity looses ArrayList items

2012-07-05 Thread alex b
it. On Monday, July 2, 2012 8:52:46 PM UTC+1, alex b wrote: I have an activity that contains a private Vectormyobject, thread safe version of ArrayList. The activity adds items to the ArrayList, and in onSaveInstanceState() I save the data (see code below). The problem is that it looses

[android-developers] Re: activity looses ArrayList items

2012-07-05 Thread alex b
onSaveInstanceState()/onRestoreInstanceState() code isn't working correctly. On Thursday, July 5, 2012 1:35:07 PM UTC-7, alex b wrote: I saw the notice about the syncronization of the Vector type, but it didn't help me find a solution to the problem. What I believe i need to do is... lock

[android-developers] Re: Cannot Find create new android project in ecllipse

2012-07-02 Thread alex b
Here's a link to the first android tutorial that covers creating a project and building a hello world app: http://developer.android.com/training/basics/firstapp/creating-project.html If you have a problem with the installation that is preventing the new project wizard from lauching, I would

[android-developers] Re: Share to unlock functions

2012-07-02 Thread alex b
it doesn't sound like such a new idea, i.e. i think a lot of apps already do that. So i would guess it's OK to do. On Thursday, June 28, 2012 7:57:59 AM UTC-7, Oliver wrote: Hi, So I have an idea for making my app more popular. It's a free app, but some functions are not available by

[android-developers] Re: TO COMPARE TWO BITMAP FILES AND SHOW RESULT USING BUTTON

2012-07-02 Thread alex b
Developer forums are for getting help with code that you have ALREADY written. It's generally frowned upon to ask the forum to write the code for you. What you want to do doesn't sound trivial, but i would guess you'll need to compare each bit of each bitmap and come up with some kind of

[android-developers] activity looses ArrayList items

2012-07-02 Thread alex b
I have an activity that contains a private Vectormyobject, thread safe version of ArrayList. The activity adds items to the ArrayList, and in onSaveInstanceState() I save the data (see code below). The problem is that it looses items and it seems to have after the GC runs. So what am I

[android-developers] GridLayout cannot be found after installing android support package

2012-06-14 Thread alex b
I'm trying to use the Android Support package in my Android 2.3.3 eclipse app. I've downloaded the package, created the \libs folder, copied 'android-support-v7-gridlayout.jar' into that folder, and added it to the build path, however when I attempt to add a GridLayout tag to my layout I get

[android-developers] Re: understanding unique visitors on mobiles

2012-06-14 Thread alex b
'more precise' is a matter of what you want to know. Do you care about how many users are using your app (unique visitors), or how much your users are using the app (visitors)? I can see both numbers being important under differenct scenarios. I noticed your android app has twice the number

[android-developers] Re: about the communication channels between android apps

2012-06-14 Thread alex b
I don't know of any way that an application can communicate with another app outside of the OS. It's my understanding that in order for an app to communicate with another app it has to call startActivityForResult() and then it would get the result of the activity that it started. It can also

[android-developers] Re: E/dalvikvm: Could not find class 'xxx', referenced from method yyy

2012-05-22 Thread alex b
It's looking like the latest android upgrade is causing this I'm getting the error with com.google.gson, after I upgraded the android sdk too. I upgraded gson after i began getting this error but that didn't help. On Apr 5, 1:48 pm, Jens Axelsson jens.axels...@gmail.com wrote: I have

[android-developers] could not find class 'com.google.gson.GsonBuilder' after upgrading android sdk

2012-05-22 Thread alex b
I received a message yesterday indicating that I had to upgrade to android sdk v 17+. So I downloaded the latest version (v18) and installed it. After some pain, I'm now getting the error in the subject line with com.google.gson. Upgraded gson to v 2.2.1, but that didn't help. -- You

[android-developers] Re: Is there a way to get character density from a HTML or CSS file?

2012-05-15 Thread alex b
The WebView control already does that. I believe if you set the width of the control to fill_parent all of the html content should fit the screen. On Monday, May 14, 2012 12:00:05 PM UTC-7, nmoe wrote: I'm trying to split a HTML file to fit a specific screen and would like to somehow

[android-developers] Re: Navigation Directions from 3rd side Application

2012-05-15 Thread alex b
Apparently the word on the net is that Navigation is no longer supported in the Android sdk (sounds like a plot by Google to maintain an unfair advantage). You can use the Directions service in the Google Maps javascript api, though. On Sunday, May 13, 2012 1:51:18 PM UTC-7, tal wrote:

[android-developers] webview and javascript in android 2.3

2012-05-15 Thread alex b
Been going round and round with a webview and javascript in android 2.3. I understand the javascriptinterface doesn't work in this version of android, fine. Are there also issues with javascript? I can get the webchromeclient to return alerts from the page using .LoadUrl() pointed to a local

[android-developers] javascript in webview on android 2.3 fires only once

2012-05-11 Thread alex b
I've got the following test.htm in the assets directory: input type=*checkbox* value=check me / input type=button value=Say hello onClick=showAlert('Hello Android!') / script type=text/*javascript* function showAlert(t) { alert(t); } /script which I'm loading like so...

[android-developers] Re: How to know the request is from Android 4.0 phone or Android 4.0 Tablet?

2012-05-11 Thread alex b
I believe you can check the screen size, i.e. if it's greater than 450x600 or something than it's a tablet. I'm not exactly sure where you find that but it must be passed by the browser because I've seen analytics from google that show the screen size of the device hitting the site. On

[android-developers] xml ok - same android code fails

2012-04-05 Thread alex b
This xml in my layout file displays a line... ImageView android:layout_width=320dp android:layout_height=2dp android:background=@drawable/bg_line/ This code in my activity fails (notice the similarity to the xml above) ImageView lbl=new

[android-developers] Re: Hide the virtual keyboard

2009-06-23 Thread Alex B
Thanks Lexxuz. The solution you provided works only in the sense that it prevents the soft keyboard from revealing itself - but it is still a hack. Here's why: I have a hint in each of my text fields (EditText input fields). When I *press* into the fields (i.e. focus them), the hints disappear -

[android-developers] Re: Hide the virtual keyboard

2009-06-02 Thread Alex B
I'm still trying to figure out how to suppress the soft keyboard from showing because I have my own custom buttons for input. I have several EditText input fields, and all of them get filled by the custom on- screen buttons. I don't want the soft keyboard to show up at all. Could someone please

[android-developers] Re: Hide the virtual keyboard

2009-06-01 Thread Alex B
Anyone know how to suppress the soft keyboard? On May 29, 8:59 am, Alex B alexba...@gmail.com wrote: Actually, there's still a problem. I only want suppress the softkeyboardfrom showing up -- because I have a custom on-screen keypad. Consuming the touch event suppresses the softkeyboard

[android-developers] Re: Hide the virtual keyboard

2009-06-01 Thread Alex B
to suppressing the soft keyboard is a kind of hack. Is there a graceful way of suppressing the soft keyboard? On Jun 1, 7:38 am, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: arent u able to use setfocus to give ur keypad the focus??? On Mon, Jun 1, 2009 at 8:03 PM, Alex B alexba

[android-developers] Re: Hide the virtual keyboard

2009-05-29 Thread Alex B
Indeed, Sujay, thank you! This will disable (suppress) the soft keyboard: editText_input_field.setOnTouchListener(otl); private OnTouchListener otl = new OnTouchListener() { public boolean onTouch (View v, MotionEvent event) { return true; // the listener has

[android-developers] Re: Hide the virtual keyboard

2009-05-29 Thread Alex B
two text fields, and I want to suppress the keyboard on both, but of course both fields must still be touchable. Any idea how to suppress the soft keyboard, but not have the above mentioned negative side effect? On May 28, 11:19 pm, Alex B alexba...@gmail.com wrote: Indeed, Sujay, thank you

[android-developers] Re: Hide the virtual keyboard

2009-05-28 Thread Alex B
Hi Dianne, How to eat it? I too want to prevent the soft keyboard from showing when the EditText is touched. private OnClickListener ocl = new OnClickListener() { public void onClick(View v) { // how to eat the event? } }; On May 13, 9:36 am, Dianne

[android-developers] Re: Regarding LBS - MASF client

2009-03-15 Thread Alex B
Hi, Kumar. See: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=location/java/com/android/internal/location/LocationMasfClient.java The comment there says: Service to communicate to the Google Location Server (GLS) via MASF server and according to a quick web search,

[android-developers] Re: remote service process persists (i.e. won't disappear from process table)

2009-02-24 Thread Alex B
Google employees... any ideas about this? 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@googlegroups.com To unsubscribe from

[android-developers] remote service process persists (i.e. won't disappear from process table)

2009-02-21 Thread Alex B
Hello service developers! At a certain point in my program, when I'm completely done with my service, my activity executes unbindService() and stopService() -- yet the process persists. I can tell that it persists because I run ps in adb -e shell: USER PID PPID VSIZE RSS WCHANPC

[android-developers] Re: docs/reference/keywords.html

2009-02-18 Thread Alex B
Initially I went to the issues tracker, but the New Issue Description says NOTE: This form is only for reporting bugs. For questions, comments, or advice please visit: http://groups.google.com/group/android-developers;. As this is not a bug, I posted here. I'm hoping that a Google employee will

[android-developers] docs/reference/keywords.html

2009-02-15 Thread Alex B
It seems that keywords.html has been removed from the docs as of 1.1_r1. Even if the developer docs search box was case insensitive (which it isn't), it would not live up to keywords.html. I found keywords.html incredibly useful and would like to request that it gets reincorporated with the

[android-developers] remove|delete res/raw files

2009-02-12 Thread Alex B
Is it possible to remove files from res/raw once the program is running? I'd like to include some mp3s in the app I'm making, but if the user doesn't like them, I'd like to provide the option to delete those files. Is there a way to delete files from res/raw once the app is running? How are you

[android-developers] Re: remove|delete res/raw files

2009-02-12 Thread Alex B
Marco, I'm really grateful for your reply because you've saved me from spending any more time trying to figure this out. Is this mentioned in the docs? If so, I missed it. If not, it should be mentioned as explicitly as you did. This is a minor set back, but an acceptable one given the reasoning.

[android-developers] Re: G1 activation problem

2008-12-17 Thread Alex B
Vladimir, you only need data access for the 5 minute activation process. Beyond activation, the data plan is only necessary for always-on-networking; however, if you do not care for always-on- networking, you can definitely just use Wi-Fi networking intermittently -- that is, whenever you obtain

[android-developers] input configuration changed (when keyboard revealed or hidden)

2008-12-17 Thread Alex B
Hi! I am having trouble finding the API call to obtain information about whether the keyboard is revealed or not. When I am in portrait mode (keyboard hidden), and I slide the screen out (to reveal the keyboard), the following line is printed: I/WindowManager( 51): Input configuration

[android-developers] Re: G1 activation problem

2008-12-16 Thread Alex B
Solution! I was able to connect via the *new* Fido SIM cards using the following APN settings: Name: Fido APN: internet.fido.ca Username: fido Password: fido MCC: 302 MNC: 370 * The new SIM cards (3G) use code 370 (three-seven-zero). The old Fido SIM cards (2G) use mobile network code 37

[android-developers] G1 activation problem

2008-11-24 Thread Alex B
Has anyone been able to surf the web from their G1 *strictly* via Wi- Fi? ... how about, the wifi network created by their Mac laptop's Airport Internet Sharing? Has anyone in Canada been able to successfully connect via Fido (or any other carrier)? I am a developer in Canada -- and we don't

[android-developers] Re: get position of cursor in EditText

2008-11-22 Thread Alex B
Thank you so much! That is indeed the way to do it! --~--~-~--~~~---~--~~ 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

[android-developers] get position of cursor in EditText

2008-11-18 Thread Alex B
Hi! How does one determine the cursor position in an android.widget.EditText text view? Example: User types: quick browm fox. User realizes the typo (browm). User touches the text view just after the m, thereby positioning the cursor there. Now the view looks like this: quick browm| fox --

[android-developers] get position of cursor in EditText

2008-11-17 Thread Alex B
Hi! How does one determine the position of the cursor in android.widget.EditText? I am dealing with a situation where the user should be able to touch the text view, positioning the cursor where their finger touched, and then be able to press a virtual backspace button (on the screen),

[android-developers] Re: Issue with Calendar APIs

2008-10-24 Thread Alex B
In your Android SDK directory, look inside: tools/lib/res/default/xml/ time_zones_by_country.xml --~--~-~--~~~---~--~~ 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: Determining size of SD Card?

2008-10-22 Thread Alex B
This is indeed a significant issue. We should be able to check for space availability -- this is one important source of error information that we could be passing on to the user. Supposedly the media is mounted: android.os.Environment.MEDIA_MOUNTED.equals(mounted) Supposedly I can write to the

[android-developers] MapActivity onTouchEvent

2008-04-02 Thread Alex B
Hi, Has anyone managed to override onTouchEvent within MapActivity? I know that overriding onTouchEvent in MapView is possible, and I have done that, but I need to do it in MapActivity. I see it in the API in the section Methods inherited from class android.app.Activity. I have written the

[android-developers] Re: MapActivity onTouchEvent

2008-04-02 Thread Alex B
Indeed, you are right. Using dispathTouchEvent worked. Thank you kindly! --~--~-~--~~~---~--~~ 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: MapActivity onTouchEvent

2008-04-02 Thread Alex B
Sorry, I meant dispatchTouchEvent. I'm correcting it in case anyone searches for that keyword. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to