Re: [android-developers] Re: Network error IOException while trying to Sync Data From SQL Server

2012-11-16 Thread Anees Thyrantakath
route table please help me to solve the issue C:\Android\android-sdk\platform-tools>adb shell Computer name: PC13-PC User name: aneesh.thairantakath System Directory: C:\Windows\system32# cat /proc/net/route cat /proc/net/route Iface Destination Gateway Flags RefCn

Re: [android-developers] Re: save image with transition effect

2012-11-16 Thread Narendra Singh Rathore
Ok, got it now. Thanks for your valuable suggestion, Pedro. > 1. create a Bitmap > 2. create a Canvas using Canvas(Bitmap bitmap) constructor > 3. draw whatever you want using that canvas > 4. write a bitmap using compress() method > > -- You received this message because you are subscribed to

[android-developers] Re: Is it possible to add two master-details fragments in a Single Activity

2012-11-16 Thread Spiral123
you can have as many fragments as you want associated with an activity. They don't have to have a UI either. Just be careful how you add/remove/replace them or your back key navigation could get messed up pretty quick. I assume that you don't want the two master/detail fragment sets to be dis

Re: [android-developers] Re: Navigation Tabs converted to Drop down on orientation change in Action bar of ICS.

2012-11-16 Thread priya abc
After tab added to actionBar then setNavigationmode for tab Tab tabDemo=mTabsAdapter.addTab(bar.newTab().setText("ABC"),.Abc.class, * null*,"Abc"); . . . bar.setNavigationMode(ActionBar.Navigation_mode_tabs); it shows tabs in tabbed view mode. it works for me. ** ** On Wed, Jul 25, 2

Re: [android-developers] Re: Network error IOException while trying to Sync Data From SQL Server

2012-11-16 Thread Anees Thyrantakath
Yes i'm trying to connect as the way you Said. But my PC is not dhcp it's running on pre-configured ip. can you please provide me detials so that i can check "u*se adb shell to check your interfaces and route table*". I'm new to android i don't know much please help me by providing details. On Fr

Re: [android-developers] Re: Network error IOException while trying to Sync Data From SQL Server

2012-11-16 Thread Anees Thyrantakath
Yah..i'm trying to connect as the way u said as you suggest can you provide me any suitable link that guide me to "*use adb shell to check your interfaces and route table*". On Fri, Nov 16, 2012 at 10:42 PM, Robert Greenwalt wrote: > You are doing ethernet over usb and then trying to talk to the

[android-developers] How to run a service from 9 AM to 4 PM daily?

2012-11-16 Thread ram prasad
*Question :1 => * I want to run a service from 9 AM to 4 PM daily. I plans two method.Which one is best? *Method 1:* *Inside Service:(This service initialized at on create of activity when first time application starts)* if (9 AM <=current time<=4 PM) { fetch data from server. } *Method 2:* *

[android-developers] Is it possible to add two master-details fragments in a Single Activity

2012-11-16 Thread ram prasad
I want to create an activity which has dropdown in action bar.The dropdown options are "Show List1" and "Show List2". The onChange event of this dropdown should change the content area of the Activity. So I plan to use fragments. 1) Is it possible to add two master-details fragments in a Single Ac

Re: [android-developers] Sobel camera

2012-11-16 Thread TreKing
On Fri, Nov 16, 2012 at 7:52 AM, srikanth wrote: > please guide me how to make sobel camera in android application 1 - Few people have the time to "guide" you through anything. Ask a specific question and you'll probably get a specific answer. 2 - Try explaining what a "sobel" camera is if you w

[android-developers] Problem to grant temporary access to custom content provider using FLAG_GRANT_READ_URI_PERMISSION

2012-11-16 Thread Jin
Hi, I am trying to query custom content provider(App A) from another app(App B). I can do that when there is no permission protection for content provider. Specifically, I build custom content provider on App A and sent an intent containing the URI to App B. Then App B get the URI and query th

[android-developers] Problem to grant temporary access to custom content provider using FLAG_GRANT_READ_URI_PERMISSION

2012-11-16 Thread Jin
Hi, I am trying to query custom content provider(App A) from another app(App B). I can do that when there is no permission protection for content provider. Specifically, I build custom content provider on App A and sent an intent containing the URI to App B. Then App B get the URI and query th

[android-developers] Re: inefficient garbage with large heap = true

2012-11-16 Thread Lew
bob wrote: > Yes, malloc and free are oldies but goodies. > Uhhh ... > I remember meeting malloc back in like 1991. It didn't want to give me more than 64k back then, but it is nicer to me now. Fond reminiscence doth not a sound engineering basis make. I find the suggestion to switch to nati

Re: [android-developers] Re: save image with transition effect

2012-11-16 Thread skink
Narendra Singh Rathore wrote: > Hi Pedro, > > I want to apply effects on image like reflection, rotation, round corner, > blur and so on. > > And also to save that image with that effect. > > I hope, you got my query this time. > > > Thanks and Regards, > NSR 1. create a Bitmap 2. create a Canva

[android-developers] Re: inefficient garbage with large heap = true

2012-11-16 Thread bob
Yes, malloc and free are oldies but goodies. I remember meeting malloc back in like 1991. It didn't want to give me more than 64k back then, but it is nicer to me now. On Wednesday, November 14, 2012 1:07:00 PM UTC-6, Lew wrote: > > bob wrote: > >> Maybe you can use native code and use ma

[android-developers] Re: BluetoothChat Example ThroughPut Limitations?

2012-11-16 Thread bob
I believe to correct the bug you would change this line: mHandler.obtainMessage(BluetoothChat.MESSAGE_READ, bytes, -1, buffer) .sendToTarget(); to this line: mHandler.obtainMessage(BluetoothChat.MESSAGE_READ, bytes, -1, buffer.clone()) .sendToTarg

[android-developers] Tabs in Android Tab Host

2012-11-16 Thread Anand
I have an application that uses custom tab layout with 5 tabs. I am having problems displaying these tabs with text appropriately in some smaller devices. Is the Google recommended limit for tabs in a tab host 4 tabs. This is what this post in stackoverflow suggests http://stackoverflow.com/qu

[android-developers] Re: Most Efficient Way to Insert 5000+ Contacts

2012-11-16 Thread prestona
While not a bad idea, I don't think this suggestion will work for my situation. Having only skimmed over the Contacts API I think I'd have the following issues: 1) I believe every user would need a google account and while this is almost a given for Android users, it's entirely conceivable tha

[android-developers] sound cards?

2012-11-16 Thread bob
Why do Androids have GPUs but not sound cards? I believe I've seen significant performance degradation upon adding audio to my games. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develo

[android-developers] Re: webview can not display twitter page

2012-11-16 Thread Simon
Looks like this can be fixed by setting the user-agent: webView.getSettings().setUserAgentString("Mozilla/5.0 (Linux; U; Android 2.0; en-us; Droid Build/ESD20) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17"); See also: http://stackoverflow.com/questions/6625316/webv

Re: [android-developers] Re: Network error IOException while trying to Sync Data From SQL Server

2012-11-16 Thread Robert Greenwalt
You are doing ethernet over usb and then trying to talk to the connected pc? Is the pc running dhcp? Can you take a bugreport or use adb shell to check your interfaces and route table? It may be easier to put a wifi AP on this private network and connect that way.. On Thu, Nov 15, 2012 at 11:0

[android-developers] Re: how to read screen data on Android

2012-11-16 Thread bob
That works. Thanks. On Friday, November 16, 2012 10:27:55 AM UTC-6, Diego Torres Milano wrote: > > Just use: > > *$ adb shell screencap -p /mnt/sdcard/sc.png* > *$ adb pull /mnt/sdcard/sc.png* > > and you'll get the screenshot as PNG. > > > On Friday, 16 November 2012 11:20:14 UTC-5, bob wr

[android-developers] Re: how to read screen data on Android

2012-11-16 Thread Diego Torres Milano
Just use: *$ adb shell screencap -p /mnt/sdcard/sc.png* *$ adb pull /mnt/sdcard/sc.png* and you'll get the screenshot as PNG. On Friday, 16 November 2012 11:20:14 UTC-5, bob wrote: > > I'm pretty sure this doesn't work for the Google Nexus 7. > > > Even with the Android screen practically all b

[android-developers] Re: how to read screen data on Android

2012-11-16 Thread bob
I'm pretty sure this doesn't work for the Google Nexus 7. Even with the Android screen practically all black, I loaded the screenshot data into IrfanView, and it looked like a bunch of random-ish junk all over. On Thursday, November 15, 2012 8:56:09 PM UTC-6, lbendlin wrote: > > The frame

[android-developers] Re: probleme avec android virtual device

2012-11-16 Thread lbendlin
looks like a corrupt SDK installation. Have you tried to reinstall? On Thursday, November 15, 2012 10:37:13 AM UTC-5, Christian Ngouffo Gnondji wrote: > > Bonjour je suis un débutant en programmation sous android apres avoir > installé eclipse juno j'ai intaller le SDK pour android tout s'est bi

Re: [android-developers] Creating keys for usage with "KeyChain"

2012-11-16 Thread Nikolay Elenkov
On Mon, Oct 22, 2012 at 10:40 AM, Nikolay Elenkov wrote: > On Thu, Oct 18, 2012 at 1:47 PM, Anders Rundgren > wrote: >> Google can create keys accessible through KeyChain using the browser and >> . >> >> How can mere mortals do the same thing? >> JB 4.2 now has KeyStore and KeyPairGenerator impl

[android-developers] Dex failed after update to new SDK Tools

2012-11-16 Thread Kaloyan Donev
Hello, I get this error: Unable to execute dex: Cannot merge new index 68602 into a non-jumbo instruction! Anyone knows something? Kaloyan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android

[android-developers] Re: DefaultHttpClient HttpPost InputStream problem

2012-11-16 Thread B.Arunkumar
Hi, We are getting a "MalformedChunkException: CRLF expected at end of chunk" Exception at the place where is.read is done? Any suggestions? Thank you, B.Arunkumar On Friday, November 16, 2012 3:29:43 PM UTC+5:30, B.Arunkumar wrote: > > Hi, > > I am using the DefaultHttpClient to post an

Re: [android-developers] Text display in the bottom of emoji

2012-11-16 Thread Fred Niggle
android:gravity="center_horizontal" IF you find that the alignment will not work as you desire, then the next move would be to use a table row and set the gravity for the table row - with the use of either gravity and/or padding you will get the desired effect. Regards, Fred On 16 November 2012

Re: [android-developers] Error after uploding to ADT 21. Is this a bug?

2012-11-16 Thread α Centauri
:O I also had that error a lot of times! Now I undestand this strange second error. Fantastic! 2 problems left! Thank you very much :D El viernes, 16 de noviembre de 2012 12:21:13 UTC+1, Tor Norbye escribió: > > downThis is intentional. > > Many users reported seeing a weird bug when editing XM

Re: [android-developers] Text display in the bottom of emoji

2012-11-16 Thread Live Happy
i tried it but it not work On Fri, Nov 16, 2012 at 3:45 PM, Fred Niggle wrote: > adjust gravity of the layout to center... > > On 16 November 2012 13:20, Live Happy wrote: > >> >> >> I display emoji in EditText using spannable, but the problem is that the >> text appears in the bottom of the em

[android-developers] Re: Starting with Loaders, Beginner Questions

2012-11-16 Thread Evan Ruff
Thank you for the quick response. This really clarifies things for me! Appreciate the help, E On Thursday, November 15, 2012 9:49:28 AM UTC-5, Streets Of Boston wrote: > > "reduces the memory leak of an activity." > should read > "reduces the *risk of a *memory leak of an activity. > > On Thursd

[android-developers] Re: Playing mp3 streamed from website

2012-11-16 Thread srikanth
Use mp3 player and parsing On Thursday, November 15, 2012 2:13:51 AM UTC-5, kosie99 wrote: > Hi everybody, > > I am brand spanking new to Android development, having just done the > "Hello, Android" tutorial, so please bear with me ;) > > I have a website with a simple webservice that will r

[android-developers] Sobel camera

2012-11-16 Thread srikanth
please guide me how to make sobel camera in android application thanks and regards srikanth 9640031533 srikanthandroidgro...@gmail.com and sritullimi...@gmail.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

Re: [android-developers] Text display in the bottom of emoji

2012-11-16 Thread Fred Niggle
adjust gravity of the layout to center... On 16 November 2012 13:20, Live Happy wrote: > > > I display emoji in EditText using spannable, but the problem is that the > text appears in the bottom of the emoji picture, not in the middle of it > (see picture). > > So, how to make it display in the

Re: [android-developers] Re: How to create a simulator for the screen size is 1920X1080?

2012-11-16 Thread Mark Murphy
On Fri, Nov 16, 2012 at 8:24 AM, lbendlin wrote: > It's a very simple process. Open AVD Manager, create a new AVD with the HD > screen size. Then start it up. > > After a few hours waiting you will realise this was a bad idea, and will get > an actual device to use for development. At least wit

[android-developers] Re: How to create a simulator for the screen size is 1920X1080?

2012-11-16 Thread lbendlin
It's a very simple process. Open AVD Manager, create a new AVD with the HD screen size. Then start it up. After a few hours waiting you will realise this was a bad idea, and will get an actual device to use for development. On Thursday, November 15, 2012 10:09:31 PM UTC-5, Simon Miao wrote: >

[android-developers] Text display in the bottom of emoji

2012-11-16 Thread Live Happy
I display emoji in EditText using spannable, but the problem is that the text appears in the bottom of the emoji picture, not in the middle of it (see picture). So, how to make it display in the middle? [image: Inline image 1] -- You received this message because you are subscribed to

[android-developers] Re: play Audio one by one automatically

2012-11-16 Thread ekwang
You can use Mediaplayer.setNextMediaPlayer since API level 16. 2012년 10월 23일 화요일 오후 1시 0분 10초 UTC+9, Sadhna Upadhyay 님의 말: > > Hi everybody, > >I am making an sample in which i have to play multiple audio file > one by one when first finish second and so on start automatically without >

Re: [android-developers] Error after uploding to ADT 21. Is this a bug?

2012-11-16 Thread Tor Norbye
downThis is intentional. Many users reported seeing a weird bug when editing XML files (where lines would shift around when they moved the caret etc). We tracked this down to a bug where the layout editor would sometimes incorrectly modify the text file such that it would contain an illegal line t

[android-developers] Re: Unique "ANDROID_ID" for each User in Android 4.2 (bug or feature)?

2012-11-16 Thread Nitin Sethi
I think the documentation is not updated to reflect the multi-user feature of Android 4.2. Also, have a look at the below link before using ANDROID_ID to get a unique identifier. http://android-developers.blogspot.in/2011/03/identifying-app-installations.html On Thursday, 15 November 2012 01:1

Re: [android-developers] Re: save image with transition effect

2012-11-16 Thread Narendra Singh Rathore
Hi Pedro, I want to apply effects on image like reflection, rotation, round corner, blur and so on. And also to save that image with that effect. I hope, you got my query this time. Thanks and Regards, NSR -- You received this message because you are subscribed to the Google Groups "Android

Re: [android-developers] DefaultHttpClient HttpPost InputStream problem

2012-11-16 Thread Asheesh Arya
go through this link http://www.ibm.com/developerworks/xml/library/x-andbene1/ -- 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 ema

[android-developers] DefaultHttpClient HttpPost InputStream problem

2012-11-16 Thread B.Arunkumar
Hi, I am using the DefaultHttpClient to post an xml using HTTPPost and the xml response InputStream write to a file on SD Card as per the code: HttpConnectionParams.setConnectionTimeout(my_httpParams,3); HttpConnectionParams.setSoTimeout(my_httpParams, 3); DefaultHttpClient Client = n

[android-developers] Re: save image with transition effect

2012-11-16 Thread skink
Narendra Singh Rathore wrote: > Hi all, > > I have the requirement of applying transition effect to a static image, and > further save it with that effect. > > Please guide me how to do this. > > Thanks & Regards, > NSR what is "transition effect"? pskink -- You received this message because

[android-developers] save image with transition effect

2012-11-16 Thread Narendra Singh Rathore
Hi all, I have the requirement of applying transition effect to a static image, and further save it with that effect. Please guide me how to do this. Thanks & Regards, NSR -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this g

[android-developers] How to connect MySQL Server from Android device

2012-11-16 Thread Jebarlin Robertson
Hi, I am working on some client server project in android. I could connect the MySQL server from Android Emulator through some IP address and port. But when I try to do the same from mobile device, it is not connecting. I know there should be some connections to the localhost. But is there any w

[android-developers] how to connect the server connection from client?

2012-11-16 Thread Tom
Hi, I could run the server code successfully using same localhost ip and port. and i am using reuse method for socket in server side. but i run the client program it displays "*Connection Refused error".* *if any one know that solution pls share with me...* * * Thanks, -- You received this messa

[android-developers] Re: Multiple onClick calls on Button click

2012-11-16 Thread Grzegorz Patynek
Maybe You should use onLongClick, or You are using onTouch, instead of OnClick? W dniu piątek, 16 listopada 2012 06:06:42 UTC+1 użytkownik Tushar napisał: > > Hi, > > On some devices looks like onClick events on button are getting fired > multiple times. This behavior is observed on LG-P700 and