[android-developers] Re: Got the Bluetooth blues: Service Discovery Failed

2011-09-11 Thread gjs
Hi,

Very good !
& you're welcome :-)

Regards

On Sep 12, 4:43 am, darrinps  wrote:
> That did it!
>
> I am going to write the authors and ask them to put this in their
> errata as it may save others a LOT of wasted time (been working on
> this off and on for days).
>
> Thanks!
>
> On Sep 11, 2:35 am, gjs  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > Sort of, there is a common UUID used most for 'serial devices', this
> > is mentioned in the docs -
>
> > 'Hint: If you are connecting to a Bluetooth serial board then try
> > using the well-known SPP UUID 1101--1000-8000-00805F9B34FB.
> > However if you are connecting to an Android peer then please generate
> > your own unique UUID.'
>
> > Seehttp://developer.android.com/reference/android/bluetooth/BluetoothDev...)
>
> > Give it a try with your device. I find it works it most bluetooth GPS
> > devices, laser range finder and other BT serial devices on Android. I
> > only use a random UUID if I am connection to another Android device
> > using BT.
>
> > Regards
>
> > On Sep 11, 1:44 am, darrinps  wrote:
>
> > > I have two text books that cover Bluetooth and have read multiple
> > > articles and not one has mentioned the need to do that.
>
> > > What I read in the documentation is that the UUID is random:
>
> > > "A Universally Unique Identifier (UUID) is a standardized 128-bit
> > > format for a string ID used to uniquely identify information. The
> > > point of a UUID is that it's big enough that you can select any random
> > > and it won't clash. In this case, it's used to uniquely identify your
> > > application's Bluetooth service. To get a UUID to use with your
> > > application, you can use one of the many random UUID generators on the
> > > web, then initialize a UUID with fromString(String)."
>
> > > Are you saying that there is some sort of table that exists that
> > > specifies my exact device?
>
> > > On Sep 8, 10:45 pm, gjs  wrote:
>
> > > > Hi,
>
> > > > Are you sure you are using the correct UUID value for your device ?
>
> > > > The default UUID in bluetoothchat usually needs to be changed, see the
> > > > Android bluetooth docs.
>
> > > > Regards
>
> > > > On Sep 8, 2:45 pm, darrinps  wrote:
>
> > > > > I've been fighting this for a long time now and thought I'd ask the
> > > > > group.
>
> > > > > I have a Samsung Galaxy S running 2.2. I am trying to connect to a
> > > > > Bluetooth device (Free2move dongle).
>
> > > > > I can get up to the point where I do the
> > > > > createRfcommSocketToServiceRecord  and then I get Service Discovery
> > > > > Failed.
>
> > > > > Here is what my app (VERY closely based on BluetoothChat) is telling
> > > > > me:
>
> > > > > 09-07 23:41:09.582: DEBUG/BluetoothChatService(11472): Paired device
> > > > > found: Free2move WU
> > > > > 09-07 23:41:09.582: DEBUG/BluetoothChatService(11472): Found Free2move
> > > > > device: 00:0B:CE:03:35:49
> > > > > 09-07 23:41:16.644: DEBUG/BluetoothChatService(11472): Will try to
> > > > > connect to: 00:0B:CE:03:35:49
> > > > > 09-07 23:41:28.637: DEBUG/BluetoothChatService(11472): BluetoothSocket
> > > > > created for device: Free2move WU
> > > > > 09-07 23:41:28.641: INFO/BluetoothChatService(11472): BEGIN
> > > > > ConnectThread
> > > > > 09-07 23:41:28.656: INFO/BluetoothChatService(11472): Using socket to
> > > > > connect now...
> > > > > 09-07 23:41:30.621: DEBUG/BluetoothChatService(11472): setState()
> > > > > STATE_NONE -> STATE_CONNECTING
> > > > > 09-07 23:41:34.695: ERROR/BluetoothChatService(11472): Connection
> > > > > failed
> > > > > 09-07 23:41:34.711: DEBUG/BluetoothChatService(11472): setState()
> > > > > STATE_CONNECTING -> STATE_LISTEN
> > > > > 09-07 23:41:34.730: WARN/BluetoothChatService(11472): Connection
> > > > > failed with exception: Service discovery failed
> > > > > 09-07 23:41:34.730: WARN/BluetoothChatService(11472): With cause:
> > > > > class java.io.IOException
> > > > > 09-07 23:41:34.742: WARN/BluetoothChatService(11472):
> > > > > android.bluetooth.BluetoothSocket$SdpHelper.doSdp: 377
> > > > > 09-07 23:41:34.742: WARN/BluetoothChatService(11472):
> > > > > android.bluetooth.BluetoothSocket.connect: 201
> > > > > 09-07 23:41:34.762: WARN/BluetoothChatService(11472):
> > > > > com.standardandroid.speedpro.bluetooth.BluetoothChatService
> > > > > $ConnectThread.run: 569
>
> > > > > The code that dies looks like this:
>
> > > > > private class ConnectThread extends Thread
> > > > >         {
> > > > >                 private final BluetoothSocket mmSocket;
> > > > >                 private final BluetoothDevice mmDevice;
>
> > > > >                 public ConnectThread(BluetoothDevice device)
> > > > >                 {
> > > > >                         mmDevice = device;
> > > > >                         BluetoothSocket tmp = null;
>
> > > > >                         // Get a BluetoothSocket for a connection 
> > > > > with the
> > > > >                         // given BluetoothDevice
> > > > >                         try
> > > > >      

[android-developers] Re: Get views and widgets of activities in a default android applications (Settings, contacts etc)

2011-09-11 Thread ajay
Hi Thanx for the response.

Can I open the main/default activity of the Settings application from
the onCreate() event of my Activity?

On Sep 11, 2:36 am, rich friedel  wrote:
> AFAIK you cannot do what you describe with the standard Android SDK.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Hide Phone Number in the Dialer

2011-09-11 Thread mwllace
Thanks Chris, I will try this method.


On Sep 11, 12:09 pm, Jens  wrote:
> Have you tried supplying your own account manager implementation,
> adding a contact with the display name "My SpecialNumber" and then
> sending your dialer Intent?
>
> Since you cannot override (afaik) the dialer from appspace that'd
> pretty much be the only way of doing it.
>
> On 11 Sep, 01:44, mwllace  wrote:
>
>
>
> > Im using  and intent to invoke the default dialer and automatically
> > call  phonenumberstored in my application. Everything works fine,
> > but thenumberis visible in the default dialer UI. I need to display
> > something else in place of thenumberlike "My SpecialNumber". The
> > behavior would be much like when a user dials anumberalready stored
> > in contacts, where the name of the person is visible and not the
> > underyingphonenumber.
>
> > I am able to update the call logs so they read "My SpecialNumber"
> > when my app dials thisnumber, but this is only after thephoneis
> > hung up.
>
> > This is the way I update the Call Log:
>
> > values.put(CallLog.Calls.CACHED_NAME, "My SpecialNumber");
>
> > Is there a similar method for writing to the default dialer when the
> > call is initiated?
>
> > Thanks for any pointers you can provide!-Hidequoted text -
>
> - Show quoted text -

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to deal with expensive view height calculation?

2011-09-11 Thread Adam Ratana
On Friday, September 9, 2011 4:48:51 PM UTC-4, Ted Hopp wrote:
>
> I keep running into a sizing and layout problem for custom views and I'm 
> wondering if anyone can suggest a "best practices" approach. The problem is 
> as follows. Imagine a custom view where the height required for the content 
> depends on the width of the view (similar to a multi-line TextView). 
> (Obviously, this only applies if the height isn't fixed by the layout 
> parameters.) The catch is that for a given width, it's rather expensive to 
> compute the content height in these custom views. In particular, it's too 
> expensive to be computed on the UI thread, so at some point a worker thread 
> needs to be fired up to compute the layout and when it is finished, the UI 
> needs to be updated.
>
> The question is, how should this be designed? I've thought of several 
> strategies. They all assume that whenever the height is calculated, the 
> corresponding width is recorded.
> From the docs, it's clear that onMeasure might be called several times 
> during the course of a single layout. It's less clear (but seems likely) 
> that onSizeChanged might also be called several times. So I'm thinking that 
> putting the logic in onDraw might be the better strategy. But that seems 
> contrary to the spirit of custom view sizing, so I have an admittedly 
> irrational bias against it.
>
> Other people must have faced this same problem. Are there approaches I've 
> missed? Is there a best approach?
>

(shortened above)

Hi Ted, I have experienced the need to know the height/width of the view for 
the sizing of many components which I draw on the screen that are all 
relative to the view size.  I have found in my experience that using 
onSizeChanged is what seems to be the best approach.  It can be called 
several times (possibly even initially with 0,0 as values, unless I am 
mistaken), and each time it is called I update some variables which I then 
use to size/scale/place components.   Previously I had used onMeasure, but 
this did not seem to work as well or as cleanly.  Hopefully others can weigh 
in as I'm curious what others have done in this regard.  

This is all done outside of onDraw, though, as you do not want onDraw to do 
anything unnecessary or intensive.  The number of times onDraw is going to 
be called far exceed that of onMeasure or onSizeChanged, so keep that in 
mind - remember that it can be called many times per second, so that 
anything calculation wise or creation wise that can be cached, should be. 
 If you have elements which may involve intense calculations to scale and 
compose, then using a separate thread is desirable instead of doing it on 
the main thread.  You can perhaps take the strategy of always using values 
you have "published" and cached in your onDraw call, meanwhile calculating 
new values in a separate thread, and then publishing them when ready (with 
some synchronization/locking here - kind of a double buffering/swap effect). 
 Carefully profiling any approach will be key for performance.

Adam

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] scrollTo not working on Samsung Galaxy browser

2011-09-11 Thread Novice Developer
 We use JQuery plaugin 'scrollTo' to navigate to different parts of a
big document, or for navigating using thumbnails.
Although 'scrollTo' works fine on all desktop browsers and on iPhone
and iPad, it's not working on the android browser on Samsung Galaxy
tablet.
Anyone any clue?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] need help with weird table

2011-09-11 Thread bob
I need help creating a weird table.  Basically, the table is a sports
stats table with player names in the first column and some stat in the
first row.  So, here's an example:


Touchdowns  Yards   Rushing 
Yards Passing
Dan Marino  2   200 
55
Chad Henne  8   700 
53
Brett Favre 7   300 
44
Emmitt Smith4   400 
108

Anyway, the thing about it is it's WAY too big to fit on the screen.
So, if it's scrolled the player name or stat name may be off the
screen.  So, the weird thing about it is that the player name and stat
name must be visible at all times.  So, I think it's kind of like a
spreadsheet.  As far as I know, there is no widget that does anything
like this.

Anyone have any ideas about how to implement 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 this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to transfer images from App to Java Server?

2011-09-11 Thread TreKing
On Sun, Sep 11, 2011 at 10:20 PM, pranay  wrote:

> Do we have some ready API or a simple way..?
>

No. The specifics of this have nothing to do with Android. It will depend on
standard Java networking and how your server receives requests.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: OutOfMemory exceptions

2011-09-11 Thread Christopher Van Kirk
The best strategy here is to figure out why you're running out of memory 
and re-architect your code so you don't even come close. This is a cell 
phone and tablet OS, not a surface to air missile OS. There's no need to 
be writing code that pushes the hardware to its absolute limits.


On 9/12/2011 6:42 AM, Nick Risaro wrote:



On Sun, Sep 11, 2011 at 4:11 AM, gjs > wrote:


These are typically OutOfMemory errors (not exceptions) which you can
catch in a try catch block, you can then hide these errors from the
user or display a friendly message.


In general you can't do that. If you have an OutOfMemoryError the JVM 
can't allocate more memory and then you can't show a message or 
something because there is no memory to build the objects.

--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 


--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Too may error log output

2011-09-11 Thread Hiko
Hi,all

Below logs are taken by my Optimus Bright by LG which is based on
Optimus Black.
(the version is 2.3.3)

a usual behavior seems to be strange( it take a few seconds to move to
the next behavior).
Therefore, I took the log with logcat.

---
09-11 23:55:44.148: ERROR/ActivityThread(6250): Failed to find
provider info for com.spritemobile.lg.online
09-12 00:30:52.476: ERROR/ActivityManager(1329): heap conf. property
name string trimmed: hs.com.google.android.apps.maps
09-12 00:30:54.039: ERROR/ActivityManager(1329): heap conf. property
name string trimmed: hs.com.google.android.apps.maps
09-12 08:38:48.343: ERROR/StatusBarPolicy(1423): prev. level 4 new
level 2
09-12 08:38:48.343: ERROR/StatusBarPolicy(1423): adjust. level 3
09-12 08:38:53.640: ERROR/StatusBarPolicy(1423): prev. level 3 new
level 1
09-12 08:38:53.640: ERROR/StatusBarPolicy(1423): adjust. level 2
09-12 08:47:59.796: ERROR/StatusBarPolicy(1423): prev. level 2 new
level 4
09-12 08:47:59.796: ERROR/StatusBarPolicy(1423): adjust. level 3
09-12 08:51:44.523: ERROR/ActivityManager(1329): heap conf. property
name string trimmed: hs.jp.takke.android.tkmixiviewe
09-12 08:55:36.828: ERROR/StatusBarPolicy(1423): prev. level 4 new
level 2
09-12 08:55:36.828: ERROR/StatusBarPolicy(1423): adjust. level 3
09-12 08:55:38.796: ERROR/StatusBarPolicy(1423): prev. level 3 new
level 1
09-12 08:55:38.796: ERROR/StatusBarPolicy(1423): adjust. level 2
09-12 09:05:55.835: ERROR/StatusBarPolicy(1423): prev. level 2 new
level 4
09-12 09:05:55.835: ERROR/StatusBarPolicy(1423): adjust. level 3
09-12 11:41:46.843: ERROR/ActivityThread(14829): Failed to find
provider info for com.spritemobile.lg.online
09-12 11:41:49.515: ERROR/StatusBarPolicy(1423): prev. level 3 new
level 1
09-12 11:41:49.515: ERROR/StatusBarPolicy(1423): adjust. level 2
09-12 11:41:55.617: ERROR/StatusBarPolicy(1423): prev. level 1 new
level 3
09-12 11:41:55.617: ERROR/StatusBarPolicy(1423): adjust. level 2
09-12 11:47:05.195: ERROR/ActivityManager(1329): heap conf. property
name string trimmed: hs.com.google.android.apps.maps
09-12 11:53:07.476: ERROR/StatusBarPolicy(1423): prev. level 4 new
level 2
09-12 11:53:07.476: ERROR/StatusBarPolicy(1423): adjust. level 3
09-12 11:57:43.929: ERROR/StatusBarPolicy(1423): prev. level 2 new
level 4
09-12 11:57:43.929: ERROR/StatusBarPolicy(1423): adjust. level 3
09-12 12:19:08.734: ERROR/AudioFlinger(1252): Request requires
android.permission.MODIFY_AUDIO_SETTINGS
09-12 12:19:13.000: ERROR/AudioFlinger(1252): Request requires
android.permission.MODIFY_AUDIO_SETTINGS
09-12 12:19:15.976: ERROR/AudioFlinger(1252): Request requires
android.permission.MODIFY_AUDIO_SETTINGS
09-12 12:19:27.304: ERROR/StatusBarPolicy(1423): prev. level 2 new
level 4
09-12 12:19:27.304: ERROR/StatusBarPolicy(1423): adjust. level 3
09-12 12:19:33.070: ERROR/dalvikvm-heap(15521): Creating VM heap of
size start:2097152 max:16777216 base:0x40021000
09-12 12:19:34.859: ERROR/LGEHome RJ(1726): [HLog.java:33:e()]
[LauncherModel.java:1199:run()] START DB REFRESH
09-12 12:19:35.250: ERROR/ActivityManager(1329): heap conf. property
name string trimmed: hs.com.google.android.partnerse
09-12 12:19:35.390: ERROR/ActivityManager(1329): heap conf. property
name string trimmed: hs.com.google.android.googlequi
09-12 12:19:37.000: ERROR/WifiInfo(1329): [WifiInfo.java:94:getSSID()]
getSSID null
09-12 12:19:41.117: ERROR/WifiInfo(1329): [WifiInfo.java:94:getSSID()]
getSSID null
09-12 12:19:55.281: ERROR/StatusBarPolicy(1423): prev. level 2 new
level 4
09-12 12:19:55.281: ERROR/StatusBarPolicy(1423): adjust. level 3
09-12 12:20:17.625: ERROR/MPEG4Extractor(1252): both mdat,ftyp not
found
09-12 12:20:17.656: ERROR/MPEG4Extractor(1252): both mdat,ftyp not
found
09-12 12:20:17.695: ERROR/Omap3ALSA(1252): Why are we routing to a
device that isn't supported by this object?!?!?!?!
09-12 12:20:17.695: ERROR/MPEG4Extractor(1252): both mdat,ftyp not
found
09-12 12:20:17.703: ERROR/MPEG4Extractor(1252): both mdat,ftyp not
found
09-12 12:24:17.234: ERROR/ActivityManager(1329): heap conf. property
name string trimmed: hs.com.google.android.apps.uplo
09-12 12:24:22.617: ERROR/ActivityThread(15723): Failed to find
provider info for com.spritemobile.lg.online
09-12 12:24:25.132: ERROR/VDM(1802): Could not rename tree_new.xml:
Cross-device link
09-12 12:24:25.132: ERROR/VDM(1802): fchmod failed
09-12 12:24:28.484: ERROR/VDM(1802): Could not rename tree_new.xml:
Cross-device link
09-12 12:24:28.484: ERROR/VDM(1802): fchmod failed
09-12 12:24:28.507: ERROR/VDM(1802): [00] c/vdm_mq_scheduler.c.  591:
09-12 12:24:28.507: ERROR/VDM(1802): TRG_RDM_run for
(RDM_TRG_COMM_RECVD) returned (0x6017) >>==>>
09-12 12:24:33.929: ERROR/StatusBarPolicy(1423): prev. level 2 new
level 4
09-12 12:24:33.929: ERROR/StatusBarPolicy(1423): adjust. level 3
09-12 12:24:42.875: ERROR/WifiInfo(1329): [WifiInfo.java:94:getSSID()]
getSSID null
09-12 12:26:47.781: ERROR/MPEG4Extractor(1252): both mdat,ftyp

[android-developers] Re: Custom LayoutParams

2011-09-11 Thread Zsolt Vasvari
Ok, thanks.  I've was missing generateLayoutParams(), had the other 2.



On Sep 12, 10:35 am, Romain Guy  wrote:
> You need to override the method 
> generateLayoutParams():http://developer.android.com/reference/android/view/ViewGroup.html#ge...)
> and 
> checkLayoutParams():http://developer.android.com/reference/android/view/ViewGroup.html#ch...)
> and 
> generateDefaultLayoutParams():http://developer.android.com/reference/android/view/ViewGroup.html#ge...()
>
>
>
>
>
> On Sun, Sep 11, 2011 at 7:29 PM, Zsolt Vasvari  wrote:
> > I created my own Layout, let's callit MyLayout and the corresponding
> > LayoutParams class:  MyLayout.LayoutParams.
>
> > But when I am inflating my view from XML, it creates the child views
> > using ViewGroup.LayoutParams instead of MyLayout.LayoutParams.
> > Obviously, I am missing something in the XML definition where I tie my
> > MyLayout.LayoutParams to MyLayout.
>
> > Anyboyd knows what I am doing wrong here?
>
> > --
> > 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+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com- Hide quoted text -
>
> - Show quoted text -

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to transfer images from App to Java Server?

2011-09-11 Thread pranay
I have a Java server. I would like to know the mechanism for sending
images (which I will be getting from the camera) to the server? Do we
have some ready API or a simple way..?
Any help would be appreciated..
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 this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Custom LayoutParams

2011-09-11 Thread Romain Guy
You need to override the method generateLayoutParams():
http://developer.android.com/reference/android/view/ViewGroup.html#generateLayoutParams(android.util.AttributeSet)
and checkLayoutParams():
http://developer.android.com/reference/android/view/ViewGroup.html#checkLayoutParams(android.view.ViewGroup.LayoutParams)
and generateDefaultLayoutParams():
http://developer.android.com/reference/android/view/ViewGroup.html#generateDefaultLayoutParams()



On Sun, Sep 11, 2011 at 7:29 PM, Zsolt Vasvari  wrote:

> I created my own Layout, let's callit MyLayout and the corresponding
> LayoutParams class:  MyLayout.LayoutParams.
>
> But when I am inflating my view from XML, it creates the child views
> using ViewGroup.LayoutParams instead of MyLayout.LayoutParams.
> Obviously, I am missing something in the XML definition where I tie my
> MyLayout.LayoutParams to MyLayout.
>
> Anyboyd knows what I am doing wrong here?
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Custom LayoutParams

2011-09-11 Thread Zsolt Vasvari
I created my own Layout, let's callit MyLayout and the corresponding
LayoutParams class:  MyLayout.LayoutParams.

But when I am inflating my view from XML, it creates the child views
using ViewGroup.LayoutParams instead of MyLayout.LayoutParams.
Obviously, I am missing something in the XML definition where I tie my
MyLayout.LayoutParams to MyLayout.

Anyboyd knows what I am doing wrong here?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Dynamically loading code in Android application

2011-09-11 Thread Kristopher Micinski
On Sun, Sep 11, 2011 at 3:35 PM, Raffaele Sgarro
 wrote:
> Is it possible to run code downloaded ar runtime? Something like
> new URLClassLoader(myURL).loadClass("MyClassName")
> The class code will be in a JAR archive. The question is how do I compile
> and package that code? I think Dalvik cannot executes plain Java bytecode,
> so I'll have to postprocess the JAR with dx tool. Is is right? But
> unfortunately dx is not documented, so I really need more information on
> this topic
>

http://developer.android.com/reference/dalvik/system/DexClassLoader.html

???

Kris

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: BufferedReader hangs on readline

2011-09-11 Thread Nick Risaro
On Sun, Sep 11, 2011 at 5:54 PM, petter  wrote:

> Are end of line characters handled differently in Android?


Probably, the EoL is encoding dependent. Try forcing the encoding to
something like UTF-8 in both ends of the socket.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: OutOfMemory exceptions

2011-09-11 Thread Nick Risaro
On Sun, Sep 11, 2011 at 4:11 AM, gjs  wrote:

> These are typically OutOfMemory errors (not exceptions) which you can
> catch in a try catch block, you can then hide these errors from the
> user or display a friendly message.
>

In general you can't do that. If you have an OutOfMemoryError the JVM can't
allocate more memory and then you can't show a message or something because
there is no memory to build the objects.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android menu items centered?

2011-09-11 Thread bob
Anyone know how to make Android menu items centered?

Right now, they are pushed vertically to the top.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Webview UTF-8 broken?

2011-09-11 Thread IcedNet
did you try "utf-8" (ie lowercase) ?

Peace,
Dan

On Sep 11, 4:28 pm, bob  wrote:
> I made a simple test to see if the Webview correctly supports UTF-8:
>
> wv.loadData("%E2%80%91", "text/html", "UTF-8");
>
> If it did support UTF-8 correctly, the preceding code should load a
> single long hyphen.  Instead, it loads three weird characters.  Did I
> do this right or am I missing something?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: character replace

2011-09-11 Thread bob
This seems close to what I'm looking for, but not quite it.  I don't
want a single replacement char for all weird chars.  I want weird
hyphens replaced with normal hyphens, weird single quotes replaced
with normal single quotes , weird double quotes replaced with normal
double quotes, weird apostrophes replaced with normal apostrophes,
etc.



On Sep 11, 2:39 am, Kostya Vasilyev  wrote:
> Use CharsetEncoder:
>
> http://developer.android.com/reference/java/nio/charset/CharsetEncode...
>
> Specify onUnmappableCharacter(REPLACE) and set your own replacement with
> replaceWith()
>
> http://developer.android.com/reference/java/nio/charset/CharsetEncode...)
> 
>
> http://developer.android.com/reference/java/nio/charset/CharsetEncode...[])
> 
>
> -- Kostya
>
> 11.09.2011 7:37, bob пишет:
>
> > How do I tell Java what to replace a special UTF-8 character with when
> > converting to US-ASCII?
>
> --
> Kostya Vasilyev

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: BufferedReader hangs on readline

2011-09-11 Thread petter
It seem to work if I use read instead of readline like:


char[] buf = new char[8192];
int charsRead;
charsRead = d.read(buf,0,buf.length);

Are end of line characters handled differently in Android?


-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: BufferedReader hangs on readline

2011-09-11 Thread petter
Are the end of line characters treated differently?

It seem to work fine if I use


char[] buf = new char[8192];



On Sep 11, 7:14 pm, petter  wrote:
> I'm trying to read a response from a server and
> BufferedReader.readline will block and never return.
>
> If I run the exact same code from the command line on my Linux host it
> works, but it will hang when run on my emulator or device.
>
> Here's the code
>
>         try {
>             System.out.println("will call socket!");
>             mysocket = new Socket(hostname, portno);
>             System.out.println("Connected to " +
> mysocket.getInetAddress() + " on port "
>                                + mysocket.getPort() + " from port " +
> mysocket.getLocalPort() + " of "
>                                + mysocket.getLocalAddress());
>
>             DataOutputStream os = new
> DataOutputStream(mysocket.getOutputStream());
>             DataInputStream is = new
> DataInputStream(mysocket.getInputStream());
>
>             BufferedReader d = new BufferedReader(new
> InputStreamReader(is));
>
>             if (mysocket != null && os != null && is != null) {
>                 os.writeBytes(command + "\r\n");
>                 String line;
>                 System.out.println("calling readline after command:" + 
> command);
>                 line = d.readLine();
>                 System.out.println("got: " + line);
>                 return line;
>             }
>         }
>         catch (UnknownHostException e) {
> ...
>
> What I see on android is:
>
> I/System.out(  644): will call socket!
> I/System.out(  644): Connected to /192.168.1.109 on port 4998 from
> port 52695 of /10.0.2.15
> I/global  (  644): Default buffer size used in BufferedReader
> constructor. It would be better to be explicit if an 8k-char buffer is
> required.
> I/System.out(  644): calling readline after command:getversion
> D/dalvikvm(   98): GC freed 2313 objects / 133904 bytes in 67ms
> W/KeyCharacterMap(  644): No keyboard for id 0
> W/KeyCharacterMap(  644): Using default keymap: /system/usr/keychars/
> qwerty.kcm.
>
> On Linux (OpenJDK) I get what I expect:
>
> Connected to /192.168.1.109 on port 4998 from port 33097 of /
> 192.168.1.104
> calling readline after command:getversion
> got: 710-1001-04
> getversion returned: 710-1001-04
>
> Any ideas? Is the BufferedReader different on Android?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Odp: SoundPool and DualCore (Samsung Galaxy S2) : Random Crashes ingame

2011-09-11 Thread Morpheo
Daniel, can you confirm the crashes are gone with your workaround (two
months ago from your post)?

Thanks!

On Jul 28, 12:16 am, Daniel  wrote:
> FYI, i just finished implementing a replacement sound player with OpenSL ES
> using the NDK, and preliminary testing reports indicate that the crashes on
> the S2 have gone, so it sounds like the problem is with soundpool, and not
> at a lower level.
> I used a dynamically linked shared library since OpenSL is only supported on
> 2.3 and above, and i did the resource loading (.ogg) myself (you can get
> OpenSL to load/decode the resources from the apk but there were some
> limitations with switching data sources in the audioplayer that i didn't
> want to work around)

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Webview UTF-8 broken?

2011-09-11 Thread bob
I made a simple test to see if the Webview correctly supports UTF-8:

wv.loadData("%E2%80%91", "text/html", "UTF-8");

If it did support UTF-8 correctly, the preceding code should load a
single long hyphen.  Instead, it loads three weird characters.  Did I
do this right or am I missing something?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Flash Nexus One with Gingerbread, from scratch

2011-09-11 Thread JP
I've regularly flashed my Nexus One with the various updates, GRJ22-
from-GRI40, GRI40-from-FRG83G etc.
It is my understanding these are all updates that build on previously
installed versions of Android?
If so - is there a full stock Android Gingerbread ROM for the Nexus
One that flashes a version of Android from scratch, without any prior
version of Android required? This is intended as a restore path after
flashing some custom ROMs...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Dynamically loading code in Android application

2011-09-11 Thread Raffaele Sgarro
Is it possible to run code downloaded ar runtime? Something like

new URLClassLoader(myURL).loadClass("MyClassName")

The class code will be in a JAR archive. The question is how do I compile 
and package that code? I think Dalvik cannot executes plain Java bytecode, 
so I'll have to postprocess the JAR with dx tool. Is is right? But 
unfortunately dx is not documented, so I really need more information on 
this topic

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: External images in the notification area.

2011-09-11 Thread b_t
Nobody can help me?


> The external storage is available, device is not plugged at all.
>
> As I wrote external images is displayed in appwidgets but not in the
> notification area.
>
> I call:
>
> Uri imageUri = Uri.fromFile(file);
> remoteViews.setImageViewUri(imageViewId, imageUri);
>
> I haven't seen it before but now I can see that I got an exception:
> java.io.FileNotFoundException:  (Permission denied)
>
> The file has the following permission:
>
> rwxr-x    1 system   sdcard_r      8204 Aug 29 21:45 time.png
>
> And every parent directory:
>
> d---rwxr-x    3 system   sdcard_r
>
> Any process should be able to read it, shouldn't?
>
> Tamás
>
> On Sep 7, 10:06 pm, rich friedel  wrote:
>
>
>
>
>
>
>
> >http://developer.android.com/guide/topics/data/data-storage.html#file...
>
> > How are you gaining access to the external images?
>
> > Are you sure that the files and storage actually are available to your
> > application?
>
> > Before you do any work with the external storage, you should always call
> > getExternalStorageState()
> >  to
> > check whether the media is available.
>
> > If not, is the device plugged in with USB?
>
> > Caution: External files can disappear if the user mounts the external
> > storage on a computer or removes the media...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Manilpulating Wlan settings from within an activity

2011-09-11 Thread Ben
perfect thx :)

On 11 Sep., 20:18, Kostya Vasilyev  wrote:
> Please see this, starting with:
>
> http://developer.android.com/reference/android/provider/Settings.Syst...
>
> and up through:
>
> http://developer.android.com/reference/android/provider/Settings.Syst...
>
> ( Android versions prior to 3.0 )
>
> -- Kostya
>
> 2011/9/11 Ben :
>
>
>
>
>
>
>
> > Hi!
>
> > I need a way to manipulate theWlanSettings from within my Activitys,
> > for example set a statsic IP + Netmask and reset it back to normal
> > when the activity is destroyed -> Any help would be greatly
> > appreciated =)
>
> > --
> > 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+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Hide Phone Number in the Dialer

2011-09-11 Thread Jens
Have you tried supplying your own account manager implementation,
adding a contact with the display name "My Special Number" and then
sending your dialer Intent?

Since you cannot override (afaik) the dialer from appspace that'd
pretty much be the only way of doing it.

On 11 Sep, 01:44, mwllace  wrote:
> Im using  and intent to invoke the default dialer and automatically
> call  phone number stored in my application. Everything works fine,
> but the number is visible in the default dialer UI. I need to display
> something else in place of the number like "My Special Number". The
> behavior would be much like when a user dials a number already stored
> in contacts, where the name of the person is visible and not the
> underying phone number.
>
> I am able to update the call logs so they read "My Special Number"
> when my app dials this number, but this is only after the phone is
> hung up.
>
> This is the way I update the Call Log:
>
> values.put(CallLog.Calls.CACHED_NAME, "My Special Number");
>
> Is there a similar method for writing to the default dialer when the
> call is initiated?
>
> Thanks for any pointers you can provide!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Got the Bluetooth blues: Service Discovery Failed

2011-09-11 Thread darrinps
That did it!

I am going to write the authors and ask them to put this in their
errata as it may save others a LOT of wasted time (been working on
this off and on for days).

Thanks!

On Sep 11, 2:35 am, gjs  wrote:
> Hi,
>
> Sort of, there is a common UUID used most for 'serial devices', this
> is mentioned in the docs -
>
> 'Hint: If you are connecting to a Bluetooth serial board then try
> using the well-known SPP UUID 1101--1000-8000-00805F9B34FB.
> However if you are connecting to an Android peer then please generate
> your own unique UUID.'
>
> Seehttp://developer.android.com/reference/android/bluetooth/BluetoothDev...)
>
> Give it a try with your device. I find it works it most bluetooth GPS
> devices, laser range finder and other BT serial devices on Android. I
> only use a random UUID if I am connection to another Android device
> using BT.
>
> Regards
>
> On Sep 11, 1:44 am, darrinps  wrote:
>
>
>
>
>
>
>
> > I have two text books that cover Bluetooth and have read multiple
> > articles and not one has mentioned the need to do that.
>
> > What I read in the documentation is that the UUID is random:
>
> > "A Universally Unique Identifier (UUID) is a standardized 128-bit
> > format for a string ID used to uniquely identify information. The
> > point of a UUID is that it's big enough that you can select any random
> > and it won't clash. In this case, it's used to uniquely identify your
> > application's Bluetooth service. To get a UUID to use with your
> > application, you can use one of the many random UUID generators on the
> > web, then initialize a UUID with fromString(String)."
>
> > Are you saying that there is some sort of table that exists that
> > specifies my exact device?
>
> > On Sep 8, 10:45 pm, gjs  wrote:
>
> > > Hi,
>
> > > Are you sure you are using the correct UUID value for your device ?
>
> > > The default UUID in bluetoothchat usually needs to be changed, see the
> > > Android bluetooth docs.
>
> > > Regards
>
> > > On Sep 8, 2:45 pm, darrinps  wrote:
>
> > > > I've been fighting this for a long time now and thought I'd ask the
> > > > group.
>
> > > > I have a Samsung Galaxy S running 2.2. I am trying to connect to a
> > > > Bluetooth device (Free2move dongle).
>
> > > > I can get up to the point where I do the
> > > > createRfcommSocketToServiceRecord  and then I get Service Discovery
> > > > Failed.
>
> > > > Here is what my app (VERY closely based on BluetoothChat) is telling
> > > > me:
>
> > > > 09-07 23:41:09.582: DEBUG/BluetoothChatService(11472): Paired device
> > > > found: Free2move WU
> > > > 09-07 23:41:09.582: DEBUG/BluetoothChatService(11472): Found Free2move
> > > > device: 00:0B:CE:03:35:49
> > > > 09-07 23:41:16.644: DEBUG/BluetoothChatService(11472): Will try to
> > > > connect to: 00:0B:CE:03:35:49
> > > > 09-07 23:41:28.637: DEBUG/BluetoothChatService(11472): BluetoothSocket
> > > > created for device: Free2move WU
> > > > 09-07 23:41:28.641: INFO/BluetoothChatService(11472): BEGIN
> > > > ConnectThread
> > > > 09-07 23:41:28.656: INFO/BluetoothChatService(11472): Using socket to
> > > > connect now...
> > > > 09-07 23:41:30.621: DEBUG/BluetoothChatService(11472): setState()
> > > > STATE_NONE -> STATE_CONNECTING
> > > > 09-07 23:41:34.695: ERROR/BluetoothChatService(11472): Connection
> > > > failed
> > > > 09-07 23:41:34.711: DEBUG/BluetoothChatService(11472): setState()
> > > > STATE_CONNECTING -> STATE_LISTEN
> > > > 09-07 23:41:34.730: WARN/BluetoothChatService(11472): Connection
> > > > failed with exception: Service discovery failed
> > > > 09-07 23:41:34.730: WARN/BluetoothChatService(11472): With cause:
> > > > class java.io.IOException
> > > > 09-07 23:41:34.742: WARN/BluetoothChatService(11472):
> > > > android.bluetooth.BluetoothSocket$SdpHelper.doSdp: 377
> > > > 09-07 23:41:34.742: WARN/BluetoothChatService(11472):
> > > > android.bluetooth.BluetoothSocket.connect: 201
> > > > 09-07 23:41:34.762: WARN/BluetoothChatService(11472):
> > > > com.standardandroid.speedpro.bluetooth.BluetoothChatService
> > > > $ConnectThread.run: 569
>
> > > > The code that dies looks like this:
>
> > > > private class ConnectThread extends Thread
> > > >         {
> > > >                 private final BluetoothSocket mmSocket;
> > > >                 private final BluetoothDevice mmDevice;
>
> > > >                 public ConnectThread(BluetoothDevice device)
> > > >                 {
> > > >                         mmDevice = device;
> > > >                         BluetoothSocket tmp = null;
>
> > > >                         // Get a BluetoothSocket for a connection with 
> > > > the
> > > >                         // given BluetoothDevice
> > > >                         try
> > > >                         {
>
> > > >                                 tmp = 
> > > > device.createRfcommSocketToServiceRecord(MY_UUID);
>
> > > > I've seen some reports that this might be a bug in Android 
> > > > itself:http://groups.google.com/group/android-platform/browse_thr

[android-developers] Re: Hide Phone Number in the Dialer

2011-09-11 Thread Chris Stratton

On Sunday, September 11, 2011 1:44:54 AM UTC-4, mwllace wrote:
>
> Im using  and intent to invoke the default dialer and automatically 
> call  phone number stored in my application. Everything works fine, 
> but the number is visible in the default dialer UI. I need to display 
> something else in place of the number like "My Special Number".


That should not be permitted - if an application without permission to dial 
the phone uses an intent to do so, the user needs to know what number they 
are dialing, in order to make an informed choice if they want to dial it or 
not.


-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Manilpulating Wlan settings from within an activity

2011-09-11 Thread Kostya Vasilyev
Please see this, starting with:

http://developer.android.com/reference/android/provider/Settings.System.html#WIFI_STATIC_DNS1

and up through:

http://developer.android.com/reference/android/provider/Settings.System.html#WIFI_USE_STATIC_IP

( Android versions prior to 3.0 )

-- Kostya

2011/9/11 Ben :
> Hi!
>
> I need a way to manipulate the Wlan Settings from within my Activitys,
> for example set a statsic IP + Netmask and reset it back to normal
> when the activity is destroyed -> Any help would be greatly
> appreciated =)
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] my_activity -> brower-activity (How can I go back to my activity)??

2011-09-11 Thread Kristopher Micinski
On Sun, Sep 11, 2011 at 1:05 PM, Satya Komatineni
 wrote:
> My Activity A  starts BrowserActivity with a URL. (No flags)
>
> I press BACK button while in the browser
>
> Browser follows its own history back and not come back to my activity A.
>
> Because I am starting the browser activity (I do realize it is a
> singletask) is there any flag I can set to have the browser honor the
> activity that is invoking it?
>
> Appreciate your help
>
> Satya
>

Afraid this kind of thing doesn't exist.  You really don't have a way
to know what will even be used to process the ACTION_VIEW intent, and
there's no extra (that I know of at least) that you can use to make
this kind of thing happen.  Any``browser'' you will activate will have
the same properties as any other application, and there isn't any way
to specify this in other apps either.  (I would suppose that you would
model this as passing a continuation to the called app as code for
onBack? ...,)

tl;dr:  no, no flag.

Kris

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Textview from thread

2011-09-11 Thread nadam
I would use an AsyncTask for that, but Handler works too. Both are
explained with examples here:
http://www.vogella.de/articles/AndroidPerformance/article.html#concurrency

On 10 Sep, 12:23, Kristoffer  wrote:
> Hello.
>
> I have been searching for answer how to update a textview from another
> thread, i have found several answer that point to using "Handler" but
> i dont know how i should implement that in my code, maybe you could
> point it out for me.
>
> Iam checking if the user is logged in or not to Twitter,
> here is my code.
>
> SettingsActivity.java
>
> public void updateLoginStatus() {
>                 Thread f = new Thread() {
>                 public void run() {
>
>                         final TextView loginStatus = (TextView)
> findViewById(R.id.loginstatus);
>                         loginStatus.setText("Logged into Twitter : " +
> TwitterUtils.isAuthenticated(prefs));
>
>                 }
>
>             };
>             f.start();
>         }
>
> and here is the code in TwitterUtils.java
>
> public static boolean isAuthenticated(SharedPreferences prefs) {
>
>                 String token = prefs.getString(OAuth.OAUTH_TOKEN, "");
>                 String secret = prefs.getString(OAuth.OAUTH_TOKEN_SECRET, "");
>
>                 AccessToken a = new AccessToken(token,secret);
>                 Twitter twitter = new TwitterFactory().getInstance();
>                 twitter.setOAuthConsumer(Constants.CONSUMER_KEY,
> Constants.CONSUMER_SECRET);
>                 twitter.setOAuthAccessToken(a);
>
>                 try {
>                         twitter.getAccountSettings();
>                         return true;
>                 } catch (TwitterException e) {
>                         return false;
>                 }
>         }
>
> any good idees?
> 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 this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Tieto - Hiring Android & CORE JAVA Developers

2011-09-11 Thread Md Aariff - Recruiter - TIETO CORPORATION
Hi
This is Md Aariff from Tieto.
We are hiring professionals on the below skills:

1-> CORE JAVA DEVELOPERS (3-6yrs) - MobileTelecom domain preferred

2-> J2ME Professionals (3-5yrs)

3-> Mobile Application developer with middleware (2-4yrs)

Share resumes on aariff.ha...@tieto.com
Can call me on 8095588006

Visit on www.tieto.in

Regards
Aariff

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] BufferedReader hangs on readline

2011-09-11 Thread petter
I'm trying to read a response from a server and
BufferedReader.readline will block and never return.

If I run the exact same code from the command line on my Linux host it
works, but it will hang when run on my emulator or device.

Here's the code

try {
System.out.println("will call socket!");
mysocket = new Socket(hostname, portno);
System.out.println("Connected to " +
mysocket.getInetAddress() + " on port "
   + mysocket.getPort() + " from port " +
mysocket.getLocalPort() + " of "
   + mysocket.getLocalAddress());

DataOutputStream os = new
DataOutputStream(mysocket.getOutputStream());
DataInputStream is = new
DataInputStream(mysocket.getInputStream());

BufferedReader d = new BufferedReader(new
InputStreamReader(is));

if (mysocket != null && os != null && is != null) {
os.writeBytes(command + "\r\n");
String line;
System.out.println("calling readline after command:" + command);
line = d.readLine();
System.out.println("got: " + line);
return line;
}
}
catch (UnknownHostException e) {
...

What I see on android is:

I/System.out(  644): will call socket!
I/System.out(  644): Connected to /192.168.1.109 on port 4998 from
port 52695 of /10.0.2.15
I/global  (  644): Default buffer size used in BufferedReader
constructor. It would be better to be explicit if an 8k-char buffer is
required.
I/System.out(  644): calling readline after command:getversion
D/dalvikvm(   98): GC freed 2313 objects / 133904 bytes in 67ms
W/KeyCharacterMap(  644): No keyboard for id 0
W/KeyCharacterMap(  644): Using default keymap: /system/usr/keychars/
qwerty.kcm.

On Linux (OpenJDK) I get what I expect:

Connected to /192.168.1.109 on port 4998 from port 33097 of /
192.168.1.104
calling readline after command:getversion
got: 710-1001-04
getversion returned: 710-1001-04

Any ideas? Is the BufferedReader different on Android?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] my_activity -> brower-activity (How can I go back to my activity)??

2011-09-11 Thread Satya Komatineni
My Activity A  starts BrowserActivity with a URL. (No flags)

I press BACK button while in the browser

Browser follows its own history back and not come back to my activity A.

Because I am starting the browser activity (I do realize it is a
singletask) is there any flag I can set to have the browser honor the
activity that is invoking it?

Appreciate your help

Satya

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Manilpulating Wlan settings from within an activity

2011-09-11 Thread Ben
Hi!

I need a way to manipulate the Wlan Settings from within my Activitys,
for example set a statsic IP + Netmask and reset it back to normal
when the activity is destroyed -> Any help would be greatly
appreciated =)

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Stripe Animation in XML

2011-09-11 Thread Pinheiro
Hi!
I'm trying to do an slide animation but in 4 stripes: 0-25% of the new
image slides from the right to the left, then 25-50% of the image an
so on.

>From what I've read in the SDK this should work but doesn't:


http://schemas.android.com/apk/res/android";>






Anyone knows what's the problem?
Thanks in advance!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] OutOfMemory exceptions

2011-09-11 Thread Greg Donald
On Sat, Sep 10, 2011 at 2:31 AM, Michael Banzon  wrote:
> Do you know what causes the OutOfMemoryException?
>
> My general advise would be to try and avoid that...

Yeah, 'cause apps shouldn't have graphics.


-- 
Greg Donald

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how to learn android?

2011-09-11 Thread blake
Mark has a great list there.  You can find nearly every thing you
need, free, at the android developer site:

http://developer.android.com/index.html

... and, for course, there is:

Programming Android, http://oreilly.com/catalog/0636920010364

of which I am a co-author.

-blake


On Sep 11, 10:19 am, felix  wrote:
> How to learn android well?
> Can you tell me some books  videos or other resource?
>
> 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 this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] URI-escape

2011-09-11 Thread Mark Murphy
http://developer.android.com/reference/java/net/URLEncoder.html

On Sun, Sep 11, 2011 at 1:19 AM, bob  wrote:
> I'm looking at this WebView function:
>
> public void loadData (String data, String mimeType, String encoding)
> Since: API Level 1
> Load the given data into the WebView. This will load the data into
> WebView using the data: scheme. Content loaded through this mechanism
> does not have the ability to load content from the network.
> Parameters
> data
> A String of data in the given encoding. The date must be URI-escaped
> -- '#', '%', '\', '?' should be replaced by %23, %25, %27, %3f
> respectively.
> mimeType
> The MIMEType of the data. i.e. text/html, image/jpeg
> encoding
> The encoding of the data. i.e. utf-8, base64
>
>
> I just noticed the "data must be URI-escaped".  Is there a function
> for this?
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 3.1 Programming Books: http://commonsware.com/books

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] how to learn android?

2011-09-11 Thread Mark Murphy
http://stackoverflow.com/questions/1114287/good-book-for-beginning-android-development
http://stackoverflow.com/questions/4573438/what-are-good-android-books-for-beginners
http://stackoverflow.com/questions/5248552/android-development-books
http://stackoverflow.com/questions/6802260/good-books-for-android-beginner

In the interests of full disclosure, I wrote some of the books
mentioned in the answers.

On Sun, Sep 11, 2011 at 10:19 AM, felix  wrote:
> How to learn android well?
> Can you tell me some books  videos or other resource?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 3.1 Programming Books: http://commonsware.com/books

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to run google map on Emulator

2011-09-11 Thread Mark Murphy
On Sun, Sep 11, 2011 at 1:35 AM, Mohit Agarwal  wrote:
> i tried to run internet in web browser,it still doesn't work

If this occurs consistently, even after restarting the emulator, there
is something with your network that is interfering (e.g., firewall,
proxy server). You will need to contact the people in charge of your
network for assistance.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 3.1 Programming Books: http://commonsware.com/books

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to learn android?

2011-09-11 Thread felix
How to learn android well?
Can you tell me some books  videos or other resource?

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 this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Raw folder

2011-09-11 Thread RichardC
http://developer.android.com/guide/topics/resources/localization.html

On Sep 11, 12:45 pm, ANKUR GOEL  wrote:
> how to add video in raw folder for different language

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Raw folder

2011-09-11 Thread ANKUR GOEL
how to add video in raw folder for different language

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Hide Phone Number in the Dialer

2011-09-11 Thread viktor
I can proportion for you to load instance runntime and find input
field. Then you can manage any data with phone number field.  The same
way for others views.


On 11 сен, 08:44, mwllace  wrote:
> Im using  and intent to invoke the default dialer and automatically
> call  phone number stored in my application. Everything works fine,
> but the number is visible in the default dialer UI. I need to display
> something else in place of the number like "My Special Number". The
> behavior would be much like when a user dials a number already stored
> in contacts, where the name of the person is visible and not the
> underying phone number.
>
> I am able to update the call logs so they read "My Special Number"
> when my app dials this number, but this is only after the phone is
> hung up.
>
> This is the way I update the Call Log:
>
> values.put(CallLog.Calls.CACHED_NAME, "My Special Number");
>
> Is there a similar method for writing to the default dialer when the
> call is initiated?
>
> Thanks for any pointers you can provide!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how to blit a row of a bitmap as fast as possible to the canvas?

2011-09-11 Thread gjs
Hi,

Create a single row bitmap, copy the row of pixels into the single row
bitmap, draw the single row bitmap on the canvas.

See 
http://developer.android.com/reference/android/graphics/Bitmap.html#getPixels(int[],
int, int, int, int, int, int)
and 
http://developer.android.com/reference/android/graphics/Bitmap.html#setPixels(int[],
int, int, int, int, int, int)

Regards

On Sep 10, 7:34 pm, Marco Alexander Schmitz
 wrote:
> Hello,
>
> Id like To take a row of a bitmap and paint IT To The canvas, as fast
> as possible, and over and over again. This is going to be a retro
> effekt... how can this be done? I rather dislike the idea of a for
> loop which paints from the bitmap e.g. 480 times.
>
> Thanks for advice,
> Marco

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] character replace

2011-09-11 Thread Kostya Vasilyev

Use CharsetEncoder:

http://developer.android.com/reference/java/nio/charset/CharsetEncoder.html

Specify onUnmappableCharacter(REPLACE) and set your own replacement with 
replaceWith()


http://developer.android.com/reference/java/nio/charset/CharsetEncoder.html#onUnmappableCharacter(java.nio.charset.CodingErrorAction) 



http://developer.android.com/reference/java/nio/charset/CharsetEncoder.html#replaceWith(byte[]) 



-- Kostya

11.09.2011 7:37, bob пишет:

How do I tell Java what to replace a special UTF-8 character with when
converting to US-ASCII?



--
Kostya Vasilyev

--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Got the Bluetooth blues: Service Discovery Failed

2011-09-11 Thread gjs
Hi,

Sort of, there is a common UUID used most for 'serial devices', this
is mentioned in the docs -

'Hint: If you are connecting to a Bluetooth serial board then try
using the well-known SPP UUID 1101--1000-8000-00805F9B34FB.
However if you are connecting to an Android peer then please generate
your own unique UUID.'

See 
http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#createRfcommSocketToServiceRecord(java.util.UUID)

Give it a try with your device. I find it works it most bluetooth GPS
devices, laser range finder and other BT serial devices on Android. I
only use a random UUID if I am connection to another Android device
using BT.

Regards



On Sep 11, 1:44 am, darrinps  wrote:
> I have two text books that cover Bluetooth and have read multiple
> articles and not one has mentioned the need to do that.
>
> What I read in the documentation is that the UUID is random:
>
> "A Universally Unique Identifier (UUID) is a standardized 128-bit
> format for a string ID used to uniquely identify information. The
> point of a UUID is that it's big enough that you can select any random
> and it won't clash. In this case, it's used to uniquely identify your
> application's Bluetooth service. To get a UUID to use with your
> application, you can use one of the many random UUID generators on the
> web, then initialize a UUID with fromString(String)."
>
> Are you saying that there is some sort of table that exists that
> specifies my exact device?
>
> On Sep 8, 10:45 pm, gjs  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > Are you sure you are using the correct UUID value for your device ?
>
> > The default UUID in bluetoothchat usually needs to be changed, see the
> > Android bluetooth docs.
>
> > Regards
>
> > On Sep 8, 2:45 pm, darrinps  wrote:
>
> > > I've been fighting this for a long time now and thought I'd ask the
> > > group.
>
> > > I have a Samsung Galaxy S running 2.2. I am trying to connect to a
> > > Bluetooth device (Free2move dongle).
>
> > > I can get up to the point where I do the
> > > createRfcommSocketToServiceRecord  and then I get Service Discovery
> > > Failed.
>
> > > Here is what my app (VERY closely based on BluetoothChat) is telling
> > > me:
>
> > > 09-07 23:41:09.582: DEBUG/BluetoothChatService(11472): Paired device
> > > found: Free2move WU
> > > 09-07 23:41:09.582: DEBUG/BluetoothChatService(11472): Found Free2move
> > > device: 00:0B:CE:03:35:49
> > > 09-07 23:41:16.644: DEBUG/BluetoothChatService(11472): Will try to
> > > connect to: 00:0B:CE:03:35:49
> > > 09-07 23:41:28.637: DEBUG/BluetoothChatService(11472): BluetoothSocket
> > > created for device: Free2move WU
> > > 09-07 23:41:28.641: INFO/BluetoothChatService(11472): BEGIN
> > > ConnectThread
> > > 09-07 23:41:28.656: INFO/BluetoothChatService(11472): Using socket to
> > > connect now...
> > > 09-07 23:41:30.621: DEBUG/BluetoothChatService(11472): setState()
> > > STATE_NONE -> STATE_CONNECTING
> > > 09-07 23:41:34.695: ERROR/BluetoothChatService(11472): Connection
> > > failed
> > > 09-07 23:41:34.711: DEBUG/BluetoothChatService(11472): setState()
> > > STATE_CONNECTING -> STATE_LISTEN
> > > 09-07 23:41:34.730: WARN/BluetoothChatService(11472): Connection
> > > failed with exception: Service discovery failed
> > > 09-07 23:41:34.730: WARN/BluetoothChatService(11472): With cause:
> > > class java.io.IOException
> > > 09-07 23:41:34.742: WARN/BluetoothChatService(11472):
> > > android.bluetooth.BluetoothSocket$SdpHelper.doSdp: 377
> > > 09-07 23:41:34.742: WARN/BluetoothChatService(11472):
> > > android.bluetooth.BluetoothSocket.connect: 201
> > > 09-07 23:41:34.762: WARN/BluetoothChatService(11472):
> > > com.standardandroid.speedpro.bluetooth.BluetoothChatService
> > > $ConnectThread.run: 569
>
> > > The code that dies looks like this:
>
> > > private class ConnectThread extends Thread
> > >         {
> > >                 private final BluetoothSocket mmSocket;
> > >                 private final BluetoothDevice mmDevice;
>
> > >                 public ConnectThread(BluetoothDevice device)
> > >                 {
> > >                         mmDevice = device;
> > >                         BluetoothSocket tmp = null;
>
> > >                         // Get a BluetoothSocket for a connection with the
> > >                         // given BluetoothDevice
> > >                         try
> > >                         {
>
> > >                                 tmp = 
> > > device.createRfcommSocketToServiceRecord(MY_UUID);
>
> > > I've seen some reports that this might be a bug in Android 
> > > itself:http://groups.google.com/group/android-platform/browse_thread/thread/...
>
> > > Does anyone know? Android folks?
>
> > > 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 this group, send email to
android-developers+unsubscr...@googlegroups.com
For m

[android-developers] Stats show 5 orders but Orders shows 1 order

2011-09-11 Thread Droid
In two days my market statistics show 5 orders but my orders page
shows only one.
Are orders registered later?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: OutOfMemory exceptions

2011-09-11 Thread gjs
Hi,

These are typically OutOfMemory errors (not exceptions) which you can
catch in a try catch block, you can then hide these errors from the
user or display a friendly message. Most commonly on this list, they
are usually associated with trying to allocate memory for bitmaps that
are too large. If so try using smaller of less images & remember to
recycle bitmaps when done.

Regards

On Sep 11, 7:42 am, Christopher Van Kirk
 wrote:
> Quite right. Sorry, thought this was on a different list.
>
> I still think he (or she) needs to review memory usage. Running into the
> memory limit is a good indicator of a bad design.
>
> On 9/11/2011 3:56 AM, TreKing wrote:
>
>
>
>
>
>
>
> > On Sat, Sep 10, 2011 at 2:36 AM, Christopher Van Kirk
> > mailto:christopher.vank...@gmail.com>>
> > wrote:
>
> >     Check that the pointer returned to you when  you allocate memory
> >     is non-null. If it's null, you're out of memory.
>
> > You don't use pointers or "allocate memory" directly in Java and even
> > if you did you would not be getting back a null pointer - you'll get
> > an OutOfMemoryException as the OP is getting.
>
> > --- 
> > --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices
>
> > --
> > 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+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: character replace

2011-09-11 Thread Miguel Morales
Right, this should be fairly automatic.  Read the file in as a utf-8
stream and output as ascii.
Post some code, and what you're trying to do.

On Sat, Sep 10, 2011 at 11:55 PM, Zsolt Vasvari  wrote:
> How are you trying to do this conversion?
>
> On Sep 11, 11:37 am, bob  wrote:
>> How do I tell Java what to replace a special UTF-8 character with when
>> converting to US-ASCII?
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en