[android-developers] not able to create image and save resized image except the type Bitmap.Config.RGB_565

2011-09-11 Thread Honest
i have made simple application which load image in canvas scale it according to screen height and width and after that user can write and draw something on it using his finger and once user complete its drawing. He should be able to save it. But i have to save the image as same width and height as

[android-developers] Re: character replace

2011-09-11 Thread Zsolt Vasvari
How are you trying to do this conversion? On Sep 11, 11:37 am, bob b...@coolgroups.com 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.

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 zvasv...@gmail.com wrote: How are you trying to do this conversion? On Sep 11, 11:37 am, bob

[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.

[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

[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

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()

[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

[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 wallace.d.m...@gmail.com wrote: Im using  and intent to invoke the default dialer and automatically call  

[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] 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 ankur1...@gmail.com 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

[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

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 mohitiit...@gmail.com 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).

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

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 b...@coolgroups.com 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.

[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,

Re: [android-developers] OutOfMemory exceptions

2011-09-11 Thread Greg Donald
On Sat, Sep 10, 2011 at 2:31 AM, Michael Banzon mich...@banzon.dk 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

[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: ?xml version=1.0 encoding=utf-8? set

[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] 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

[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 {

[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

[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 kris.isak.v...@gmail.com wrote: Hello. I have been searching for answer how to update a

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 satya.komatin...@gmail.com 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

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

[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

[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 garyjamessi...@gmail.com wrote: Hi, Sort of, there is a common UUID used most for

[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

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

2011-09-11 Thread Ben
perfect thx :) On 11 Sep., 20:18, Kostya Vasilyev kmans...@gmail.com 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

[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

[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

[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

[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? --

[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 daniel.ge.sm...@gmail.com wrote: FYI, i just finished implementing a replacement sound player with OpenSL ES using the NDK, and preliminary testing reports

[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 petter.gus...@gmail.com wrote: I'm trying to read a response from a server and BufferedReader.readline will block and never return. If

[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

[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

[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 b...@coolgroups.com 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

[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

Re: [android-developers] Re: OutOfMemory exceptions

2011-09-11 Thread Nick Risaro
On Sun, Sep 11, 2011 at 4:11 AM, gjs garyjamessi...@gmail.com 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

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

2011-09-11 Thread Nick Risaro
On Sun, Sep 11, 2011 at 5:54 PM, petter petter.gus...@gmail.com 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

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 raffaelesga...@gmail.com 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

[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

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():

[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] 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 romain...@android.com wrote: You need to override the method generateLayoutParams():http://developer.android.com/reference/android/view/ViewGroup.html#ge...) and

[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

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

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 pranaydal...@gmail.com 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.

[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

[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

[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