Re: [android-developers] Re: how to send notification to specific user in mysql data base

2017-01-30 Thread ryan.pena via Android Developers
On Mon, 1/30/17, sourabh sahu wrote: Subject: Re: [android-developers] Re: how to send notification to specific user in mysql data base To: "android-developers" Date: Monday, January 30, 2017, 12:12 PM You can use firebase notifi

Re: [android-developers] Re: how to send notification to specific user in mysql data base

2017-01-30 Thread sourabh sahu
You can use firebase notification for that On Mon, Jan 30, 2017 at 5:09 AM, W Production wrote: > using android studio > > -- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from

[android-developers] Re: how to send notification to specific user in mysql data base

2017-01-29 Thread W Production
using android studio -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to

Re: [android-developers] Re: how to send a pdf file from android to wifi printer programatically?

2016-01-11 Thread Sanjay Purbey
yes On Mon, Jan 11, 2016 at 7:32 PM, Dinesh Kumar wrote: > can you tell me about your library >> > if you able to connect with printer using wifi > > >> Please help me !! >> >> Thanks in advance !!! >> >> -- > You received this message because you are subscribed to the Google Groups > "Andro

[android-developers] Re: how to send a pdf file from android to wifi printer programatically?

2016-01-11 Thread Dinesh Kumar
> > can you tell me about your library > if you able to connect with printer using wifi > Please help me !! > > Thanks in advance !!! > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop rece

[android-developers] Re: how to send a pdf file from android to wifi printer programatically?

2013-06-05 Thread Priyanka
Hi Hrishi, I am able to print "pdf file" successfully to printer using Google Cloud Print. I am curious to know - 1) how you were able to connect to wifi device (printer) & 2) how you were able to print text ,html file n images (did you send send a file in html format to print or

[android-developers] Re: How to Send MMS

2013-05-15 Thread bob
*// Get the URI of a piece of media to attach. * *Uri attached_Uri = Uri.parse("content://media/external/images/media/1"); * * * *// Create a new MMS intent * *Intent mmsIntent = new Intent( Intent.ACTION_SEND, attached_Uri); * *mmsIntent.putExtra("sms_body", "Please see the attached image"); * *mm

[android-developers] Re: how to send Image in text file from android to java server

2013-01-08 Thread JackN
Whats a java server? do you mean j2ee? On Monday, January 7, 2013 2:20:39 AM UTC-8, ajinkyas...@gmail.com wrote: > > Hi, > I'm new to android and i want to send image in text file from android to > java server as fast as possible. > So, please could you help me > > Thanks & Regards > -- You re

[android-developers] Re: how to send Image in text file from android to java server

2013-01-08 Thread gc
You can convert the file using Base64 save it as an ASCII file and send it to the server or send it over a web service. On Monday, January 7, 2013 4:20:39 AM UTC-6, ajinkyas...@gmail.com wrote: > > Hi, > I'm new to android and i want to send image in text file from android to > java server as fa

[android-developers] Re: How to send and receive the datas from webserver to client server using htttpurlconnection?

2012-12-04 Thread bob
String myFeed = getString( R.string.my_feed); try { URL url = new URL( myFeed); // Create a new HTTP URL connection URLConnection connection = url.openConnection(); HttpURLConnection httpConnection = (HttpURLConnection) connection; int responseCode = httpConnection.getResponseCode(); if (res

[android-developers] Re: how to send vector from one activity to another

2012-09-21 Thread Jay Howard
I'll assume you have a Vector. 1. Make sure Foo implements Serializable or Parcelable. 2. Call toArray(Foo[]) on the Vector to get a Foo[]. 3. Set the Foo[] as an extra using Intent.putExtra(Serializable) or intent.putExtra(Parcelable[]). 4. In the resulting activity, get the array back using In

[android-developers] Re: How to send vCard via SMS?

2012-08-06 Thread adrian
On Monday, April 30, 2012 8:33:39 AM UTC+1, SamuelSpring wrote: > > I'm looking for any way to send/read a vCard via SMS in my app. I've > read a lot of articles, web-pages, forums etc. There is still not even > a clue how to do that. > > Here is transaction. > 1. User selects some specific c

Re: [android-developers] Re: How to send a message using sendDataMessage() for more than 133 bytes in android?

2012-04-10 Thread azmat alikhan
Hi, I need to send message to a specific port and in the form of bytes not text. So I cant use sendTextMessage() method. On Tue, Apr 10, 2012 at 11:41 AM, Dalvinder Singh wrote: > Did you try > sendTextMessage

[android-developers] Re: How to send a message using sendDataMessage() for more than 133 bytes in android?

2012-04-05 Thread azmat ali khan
Hi Priya I am also facing same problem. Did u get any solution for this problem...? If yes please help me out On Thursday, October 20, 2011 5:42:39 PM UTC+5:30, priya wrote: > > I am developing an SMS application where i am sending a message using > sendDataMessage function of API level 3,but if

[android-developers] Re: How to send/pass string to a web service from emulator and that web service returns same string.

2012-03-27 Thread Ali Chousein
You need to check the interface of your web-service. Only then you can know how exactly to send information to it and retrieve information from it. Other than that in general you use HTTPPost (http:// developer.android.com/reference/org/apache/http/client/methods/ HttpPost.html) and HTTPGet (http:/

Re: [android-developers] Re: How to send HD (High Definition) output from android Tab to HDtv

2012-03-16 Thread Joao Braga
Rikki did you do that? I had the same problem. I wanted my app to produce a different view when connected to the TV using HDMI connection. Just like the youtube app. When you hook up the phone/tablet in the TV using HDMI, the video is player fullscreen in the TV, but in the mobile device you still

Re: [android-developers] Re: How to send DTMF?

2012-02-29 Thread Jagruti Sangani
Thanks but it is now working, no need to use this class.just i need to dtmf coed like for * 10 and for # 11. On Wed, Feb 29, 2012 at 8:34 PM, santhosh b wrote: > Hi, > > use below int Constants ToneGenerator class in android api > > TONE_DTMF_P

Re: [android-developers] Re: How to send DTMF?

2012-02-29 Thread santhosh b
Hi, use below int Constants ToneGenerator class in android api TONE_DTMF_Pinstead of key # TONE_DTMF_Sinstead of key * ma

[android-developers] Re: How to send DTMF?

2012-02-23 Thread Jagruti Sangani
hello all I want to send dtmf in android.I had use the call.sendDtmf(2).its working fine but i want to send * and # as dtmf.when i sen d * or # in send Dtmf then application will close.Can anybody know how to send * and # as dtmf.actually call.sendDtmf(Int var); this is only send integer data.so i

[android-developers] Re: how to send a pdf file from android to wifi printer programatically?

2011-12-16 Thread Hrishi
On Nov 30, 7:49 pm, Kenny Riddile wrote: > On 11/30/2011 4:38 AM, Hrishi wrote: > > > > > Please bare if is repeated question... > > > I am able to connect to wifi device (printer). Now i want to print a > >pdffileprogramatically using wifi connection. can someone tell me > > how to do it becaus

[android-developers] Re: how to send a pdf file from android to wifi printer programatically?

2011-11-30 Thread Kenny Riddile
On 11/30/2011 4:38 AM, Hrishi wrote: Please bare if is repeated question... I am able to connect to wifi device (printer). Now i want to print a pdf file programatically using wifi connection. can someone tell me how to do it because i am not getting any way to do it. I am able to print text ,ht

[android-developers] Re: How to send DHCPINFORM request

2011-11-10 Thread petr.maza...@mautilus.com
Hi Mr.Diego Torres Milano Thanks for pointing to NDK - any more specific tips how we can solve that? Regards, Petr On Nov 9, 6:19 pm, Oscar Marques wrote: > Try > > http://developer.android.com/sdk/ndk/index.html > > 2011/11/9 Diego Torres Milano > > > > > Not from the SDK > > > On Nov 9, 12:2

[android-developers] Re: How to send DHCPINFORM request

2011-11-10 Thread petr.maza...@mautilus.com
Hi, what it means 'Not from the SDK'? Should be implemented by use of sockets? Regards, STeN On Nov 9, 6:15 pm, Diego Torres Milano wrote: > Not from the SDK > > On Nov 9, 12:28 am, "petr.maza...@mautilus.com" > > wrote: > > Is it possible to send manually the DHCPINFORM request? I was > > sea

Re: [android-developers] Re: How to send DHCPINFORM request

2011-11-09 Thread Oscar Marques
Try http://developer.android.com/sdk/ndk/index.html 2011/11/9 Diego Torres Milano > Not from the SDK > > On Nov 9, 12:28 am, "petr.maza...@mautilus.com" > wrote: > > Is it possible to send manually the DHCPINFORM request? I was > > searching the SDK and I did not found any class that allows cr

[android-developers] Re: How to send DHCPINFORM request

2011-11-09 Thread Diego Torres Milano
Not from the SDK On Nov 9, 12:28 am, "petr.maza...@mautilus.com" wrote: > Is it possible to send manually the DHCPINFORM request? I was > searching the SDK and I did not found any class that allows creating > and broadcasting the DHCPINFORM (see RFC 2131) request. > > Might be there is some Java

[android-developers] Re: How to send HD (High Definition) output from android Tab to HDtv

2011-09-27 Thread Rikki
I don't want to use the view on tv feature from gallery. I want my own application to detect and start sending data to the connected TV. something like a TV OUT capability. gjs wrote: > Hi, > > This is transparent to apps, just plug in cable & view on TV. > > Regards > > On Sep 27, 4:43 pm, Rikki

[android-developers] Re: How to send HD (High Definition) output from android Tab to HDtv

2011-09-27 Thread gjs
Hi, This is transparent to apps, just plug in cable & view on TV. Regards On Sep 27, 4:43 pm, Rikki wrote: > I want to develop an application that will send HD content on my > samsung galaxy tab and show it on HDtv. > I have searched for sample apps that can help me in understanding the > invol

Re: [android-developers] Re: How to send Widget cfg activity's user value to widget

2011-05-22 Thread Mark Murphy
2011/5/22 Perry168 : > Thanks a again. Because I haven't using this command as before, so I > had a problem. > Does the sharedPreferences.getInt(INT,VALUE) use in  the onUpdate too? If that is where you are storing the data, then presumably yes. -- Mark Murphy (a Commons Guy) http://commonsware.

[android-developers] Re: How to send Widget cfg activity's user value to widget

2011-05-22 Thread Perry168
Hi Mark, Thanks a again. Because I haven't using this command as before, so I had a problem. Does the sharedPreferences.getInt(INT,VALUE) use in the onUpdate too? On 5月22日, 下午6時57分, Mark Murphy wrote: > Step #1: Persist the data (e.g., as a SharedPreference) > > Step #2: Update the app widget

[android-developers] Re: How to send combination keys in functional testing

2011-04-26 Thread Zsolt Vasvari
How can a human being press 2 keys at exactly the same time You request makes no sense whatsoever. On Apr 26, 1:55 pm, Rui wrote: > Thanks for your advice, Diego. > > Unfortunately, your codes does not do what I need to do. Your code > sends a series of key events, right? > > sendKeys(KeyE

[android-developers] Re: How to send combination keys in functional testing

2011-04-26 Thread Rui
Thanks for your advice, Diego. Unfortunately, your codes does not do what I need to do. Your code sends a series of key events, right? sendKeys(KeyEvent.KEYCODE_ALT_LEFT, KeyEvent.KEYCODE_9); The code above sends Alt key, first. Next, it sends 9. What I meant is how to send two key events at th

[android-developers] Re: How to send combination keys in functional testing

2011-04-25 Thread Diego Torres Milano
You can use something like this: sendKeys(KeyEvent.KEYCODE_ALT_LEFT, KeyEvent.KEYCODE_9, KeyEvent.KEYCODE_ALT_LEFT, KeyEvent.KEYCODE_0); assertEquals("()", mTV.getText().toString()); On Apr 25, 2:38 am, Rui wrote: > Hello, > > I am trying to test my applic

[android-developers] Re: how to send the context of the activity to a thread

2011-03-31 Thread lbendlin
when you are in your activity save the context into a global (ish) variable. Then you can reference it from your thread. But I suspect that has nothing to do with your actual problem. How about reading the documentation on contexts? -- You received this message because you are subscribed to

Re: [android-developers] Re: How to send..?

2011-01-05 Thread Kristopher Micinski
There is a sample called "API Demos." I believe this is one of them. Essentially you will set up an onClick listener and then use the SmsManager (I believe, I've never used it, however as I said, I'm pretty sure it's in the API demos..). http://developer.android.com/reference/android/telephony/gsm

[android-developers] Re: How to send..?

2011-01-05 Thread Abhilash baddam
any help regarding this issue[?] On Wed, Jan 5, 2011 at 7:23 PM, Abhilash baddam < abhilash.androiddevelo...@gmail.com> wrote: > Hi friends, > > I am new to Android. I have an activity where the user have > to enter his details like name,phone number etc. and there is a submit >

Re: [android-developers] Re: How to send a simple email programatically? (exists a simple way to do it??)

2010-12-03 Thread Kostya Vasilyev
There is nothing in html or C or Java *languages* for sending email. Each of these platforms requires the use of some library for this. You can look for such a library and integrate it into your Android application. However, in general, leveraging an already installed and configured email ap

[android-developers] Re: How to send a simple email programatically? (exists a simple way to do it??)

2010-12-03 Thread saex
bruff and there is not another way without using webservices and a remote server? a easy and simply way? like in html and C or java On 3 dic, 14:49, Mark Murphy wrote: > On Fri, Dec 3, 2010 at 8:44 AM, saex wrote: > > what? this cant be possible, im sure exist another way > > There are many

Re: [android-developers] Re: How to send a simple email programatically? (exists a simple way to do it??)

2010-12-03 Thread Mark Murphy
On Fri, Dec 3, 2010 at 8:44 AM, saex wrote: > what? this cant be possible, im sure exist another way There are many ways. > i have some apps on my android phone that haves invite buttons, that > send automatically emails to the people i want to have in my app, That > emails haves automatic text

[android-developers] Re: How to send a simple email programatically? (exists a simple way to do it??)

2010-12-03 Thread saex
what? this cant be possible, im sure exist another way i have some apps on my android phone that haves invite buttons, that send automatically emails to the people i want to have in my app, That emails haves automatic text generated by the apps, and i have not to give to the programs any credentia

Re: [android-developers] Re: How to send a simple email programatically? (exists a simple way to do it??)

2010-12-03 Thread Mark Murphy
On Fri, Dec 3, 2010 at 7:52 AM, saex wrote: > what? i dont use any email program on my android phone :S You need to. > this method only works if a movile user uses the email program of his > phone? Yes. > exist another method to do it? Not native to Android. You are welcome to find a SMTP lib

[android-developers] Re: How to send a simple email programatically? (exists a simple way to do it??)

2010-12-03 Thread saex
what? i dont use any email program on my android phone :S this method only works if a movile user uses the email program of his phone? oh no, then i can't use this method exist another method to do it? On 3 dic, 13:45, Mark Murphy wrote: > On Fri, Dec 3, 2010 at 7:40 AM, saex wrote: > > i tes

Re: [android-developers] Re: How to send a simple email programatically? (exists a simple way to do it??)

2010-12-03 Thread Mark Murphy
On Fri, Dec 3, 2010 at 7:40 AM, saex wrote: > i test with two providers, my university provider, and hotmail, and > didn't recived the emails yet Have you tried sending an email normally (i.e., not sending it through your code) using this email program? > also, one question, who is the sende

[android-developers] Re: How to send a simple email programatically? (exists a simple way to do it??)

2010-12-03 Thread saex
i test with two providers, my university provider, and hotmail, and didn't recived the emails yet also, one question, who is the sender? i specifi the email receiver but not the sender... which sender will see the receiver when he opens the emails? On 3 dic, 13:37, Mark Murphy wrote: > On Fr

Re: [android-developers] Re: How to send a simple email programatically? (exists a simple way to do it??)

2010-12-03 Thread Kostya Vasilyev
You can't send email without the user knowing (and confirming). At least not without writing your own networking code that talks directly to an SMTP server. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 03.12.2010 15:32 пользователь "saex" написал: > Hi, i did it but i have two problems: >

Re: [android-developers] Re: How to send a simple email programatically? (exists a simple way to do it??)

2010-12-03 Thread Mark Murphy
On Fri, Dec 3, 2010 at 7:32 AM, saex wrote: > Hi, i did it but i have two problems: > > 1. Does not send automatically the email when i press the send button, > it shows a new window to edit the tittle, receptor and body of the > email and to send it.¿is not possible to send it automatically witho

[android-developers] Re: How to send a simple email programatically? (exists a simple way to do it??)

2010-12-03 Thread saex
i did it working because i test on my movile, not on the emulator (on the emulator doesn't works) but i still have these two serious problems of my previous answer, please help me On 3 dic, 13:32, saex wrote: > Hi, i did it but i have two problems: > > 1. Does not send automatically the email wh

[android-developers] Re: How to send a simple email programatically? (exists a simple way to do it??)

2010-12-03 Thread saex
Hi, i did it but i have two problems: 1. Does not send automatically the email when i press the send button, it shows a new window to edit the tittle, receptor and body of the email and to send it.¿is not possible to send it automatically without giving the user the possibility to edit it? 2. I t

Re: [android-developers] Re: How to send a simple email programatically? (exists a simple way to do it??)

2010-12-03 Thread Mark Murphy
On Fri, Dec 3, 2010 at 7:26 AM, saex wrote: > Hi, thanks, but, when i try to send the email, the emulator says: > "unsuported action" > > is this compatible with API 1.5? You need a configured email program in your emulator. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.

[android-developers] Re: How to send a simple email programatically? (exists a simple way to do it??)

2010-12-03 Thread saex
Hi, thanks, but, when i try to send the email, the emulator says: "unsuported action" is this compatible with API 1.5? On 3 dic, 12:58, Kostya Vasilyev wrote: > Hi, > > You are describing three tasks: > > 1 - handling a button click. > > http://developer.android.com/guide/topics/ui/ui-events.htm

[android-developers] Re: How to send a simple email programatically? (exists a simple way to do it??)

2010-12-03 Thread saex
Hi, thanks, but, when i try to send the email, the emulator says: "unsuported action" is this compatible with API 1.5? On 3 dic, 12:58, Kostya Vasilyev wrote: > Hi, > > You are describing three tasks: > > 1 - handling a button click. > > http://developer.android.com/guide/topics/ui/ui-events.htm

[android-developers] Re: How to send data from one activity to another?

2010-10-20 Thread James Elsey
You can either create a class which is available across the entire application and put any data on there and grab it from anywhere (I wrote a tutorial here : http://www.jameselsey.co.uk/blogs/techblog/android-implementing-global-state-share-data-between-activities-and-across-your-application/) Eit

[android-developers] Re: How to send data from one activity to another?

2010-10-18 Thread fernando
If the underlying data being changed is in a database think about creating a cursor and adding an observer. In such a way that the cursor's observer in the B activity will be triggered when the activity A changes it and updates the database. Look into the android API documentation, class Cursor an

[android-developers] Re: how to send data to server while recording

2010-10-09 Thread ko5tik
Here is my inspiration source: http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-devel

[android-developers] Re: how to send data to server while recording

2010-10-08 Thread cindy
If it is possible, can you share some code ? Thanks! April On Oct 8, 12:18 am, ko5tik wrote: > On Oct 8, 2:44 am,cindy wrote: > > > why we need base64 encoding? Is that AMR ? > > Because HTTP is text based protocol  - your server will barf on binary > data > (mine does ;) ) -- You received th

[android-developers] Re: how to send data to server while recording

2010-10-08 Thread ko5tik
On Oct 8, 2:44 am, cindy wrote: > why we need base64 encoding? Is that AMR ? Because HTTP is text based protocol - your server will barf on binary data (mine does ;) ) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] Re: how to send data to server while recording

2010-10-07 Thread cindy
why we need base64 encoding? Is that AMR ? On Sep 21, 3:10 am, Kostya Vasilyev wrote: > Might want to do base64 encoding, too (if the network protocol is HTTP). > > -- > Kostya Vasilyev --http://kmansoft.wordpress.com > > 21.09.2010 11:42 пользователь "ko5tik" написал: > > On Sep 21, 8:13 am, ci

[android-developers] Re: how to send data to server while recording

2010-10-07 Thread cindy
If I am using socket, how could I tell server that audio record is done? On Sep 21, 3:10 am, Kostya Vasilyev wrote: > Might want to do base64 encoding, too (if the network protocol is HTTP). > > -- > Kostya Vasilyev --http://kmansoft.wordpress.com > > 21.09.2010 11:42 пользователь "ko5tik" напис

Re: [android-developers] Re: How to send a string to server

2010-10-01 Thread Miguel Morales
Wow, that is really bad code. Don't you know what streaming or buffering is? 2010/10/1 Kostya Vasilyev : > Using a send buffer of 8 or 16 kilobytes gives pretty good performance, and > avoids problems with garbage collection. > > -- > Kostya Vasilyev -- http://kmansoft.wordpress.com > > 02.10.201

Re: [android-developers] Re: How to send a string to server

2010-10-01 Thread Kostya Vasilyev
Using a send buffer of 8 or 16 kilobytes gives pretty good performance, and avoids problems with garbage collection. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 02.10.2010 0:09 пользователь "DanH" написал: I'd suggest that you not create the byte array in like that but rather make it a

[android-developers] Re: How to send a string to server

2010-10-01 Thread DanH
I'd suggest that you not create the byte array in like that but rather make it an instance variable. The way you're doing it that large array is getting allocated as soon as myclass is loaded, (which may be well before you first create an instance of the class) and isn't freed until myclass is un

[android-developers] Re: How to send a string to server

2010-10-01 Thread TheSeeker
i found the solution but i don't have a logic explanation: In a class named myclass extends Thread, I put the follow public static byte[] utf1= new byte[30] ... InetAddress addr = InetAddress.getByName(IP); SocketAddress sockaddr = new InetSocketAddress(addr,PORT);

[android-developers] Re: How to send a string to server

2010-09-23 Thread Kumar Bibek
I would suggest that you save the data into a file. and then, send a post request with a FileEntity/InputStreamEntity. I have used it with HttpClient and it works fine. You would be relieved of all the manual work in this case, -Kumar Bibek http://techdroid.kbeanie.com On Sep 23, 10:44 pm, Paweł

[android-developers] Re: How to send a string to server

2010-09-23 Thread Paweł Zięba
Do you really need a such big array allocated in memory? Maybe you want to save it to file or database? If so, you don't need to create the huge array. Just try to redirect stream. On 23 Wrz, 17:54, TheSeeker wrote: > I have reduced lenght of byte to 250 000 (byte[] array = new > byte[25] ins

[android-developers] Re: How to send a string to server

2010-09-23 Thread DanH
Note that a lot depends on how you break up the large array into smaller pieces. The absolute worst thing you can do is to "break" the original array into two pieces -- reducing the length of the "remainder" with each cycle. This beats the hell out of the garbage collector and sends performance d

[android-developers] Re: how to send data to server while recording

2010-09-23 Thread TheSeeker
I have had a lot of problems to send data(a string of length 250 000) to a server using java. I have probe a lot of things: 1. send byte by byte i send 40Mbytes instead of 1Mbyte of data to server(because i use a cicle "for()"and TCP/IP header add 40bytes and data is 1byte) int ncc = 250 000 for(in

Re: [android-developers] Re: How to send a string to server

2010-09-23 Thread Kostya Vasilyev
You should be able to come up with some middle ground number for your buffers - sending one byte at a time is obviously bad, and so is allocating the entire 900K buffer. Using a send buffer around 8K to 16K should work pretty well. My guess is that you need to do Base64 encoding on the fly -

[android-developers] Re: How to send a string to server

2010-09-23 Thread TheSeeker
I have reduced lenght of byte to 250 000 (byte[] array = new byte[25] instead of char huge char[] array = new char[90] ) I've been trying sending string instead of character by character. if string is big (250 000 characters aprox and 250 Kbytes) de Garbage collector go crazy and the time

Re: [android-developers] Re: how to send data to server while recording

2010-09-21 Thread Kostya Vasilyev
Might want to do base64 encoding, too (if the network protocol is HTTP). -- Kostya Vasilyev -- http://kmansoft.wordpress.com 21.09.2010 11:42 пользователь "ko5tik" написал: On Sep 21, 8:13 am, cindy wrote: > Hi all, > > My application needs to record... Give media recorder file descriptor of

[android-developers] Re: how to send data to server while recording

2010-09-21 Thread ko5tik
On Sep 21, 8:13 am, cindy wrote: > Hi all, > > My application needs to record audio and send audio data to server > while recording. If User stops audio input, we will stop sending. Give media recorder file descriptor of server socket instead a real file. -- You received this message because

[android-developers] Re: how to send an MMS

2010-09-17 Thread sdphil
ping On Sep 16, 5:08 pm, sdphil wrote: >         Intent mmsIntent = new Intent(Intent.ACTION_SEND); >         mmsIntent.putExtra("sms_body", "test message"); >         mmsIntent.setType("vnd.android-dir/mms-sms"); > >         // if i want to send an image. >         mmsIntent.putExtra(Intent.EXTR

Re: [android-developers] Re: How to send a string to server

2010-09-09 Thread Miguel Morales
No, breaking it into two arrays will not help you. I haven't done this myself, but I THINK what you'll want to do is use a BufferedWriter or something similar. In any case, you'll HAVE to buffer your data and send it in chunks. HTTP supports this quite well. Take a look at some BufferedWriter t

[android-developers] Re: How to send a string to server

2010-09-09 Thread TheSeeker
yes, i had a mismach, thanks. But i still have the same problem with time(1 min ) and GC. Create 2 or more array instead of the big one will solve the problem with time? On Sep 8, 5:47 pm, Frank Weiss wrote: > Looks bad, very bad. > > First, I have no idea why you're allocating 1.8 MB (remember t

Re: [android-developers] Re: How to send a string to server

2010-09-08 Thread Frank Weiss
Looks bad, very bad. First, I have no idea why you're allocating 1.8 MB (remember that Java, and I suppsoe Dalvik as well, takes 16 bits per char). How come so much? Second, of course writing a byte (or is it a char, there's a mismatch there) is going to be slower than writing at least a few thous

[android-developers] Re: How to send a string to server

2010-09-08 Thread TheSeeker
I did it, but now i have a problem with garbage collector on android (GC freed) and the time spend it on send a big string(array of char) to a server Here code snippet xm1,xm2a,xm2b,xm4,xm5,xm6 are String of Java, array is an array of char huge char[] array = new char[90]

[android-developers] Re: how to send data to server while recording

2010-08-16 Thread nikko.aiello
using MediaRecorder or AudioTrack?? an easy way with MediaRecorder is like so... MediaRecorder mMediaRecorder = new MediaRecorder(); ... FileDescriptor fd = ParcelFileDescriptor.fromSocket(mAudioOutSocket).getFileDescriptor(); mMediaRecorder.setOutputFile(fd); OR For AudioTrack, you should use

[android-developers] Re: how to send data to server while recording

2010-08-13 Thread cindy
I don't know what to try? Do you know any clue? On Aug 12, 11:46 pm, Miguel Morales wrote: > What have you tried? > > > > On Thu, Aug 12, 2010 at 10:45 PM,cindy wrote: > > My application needs to send data to server while recording theaudio > > data? > > > Does anyone know how to do that? > > > T

[android-developers] Re: How to Send Phone to Phone "Alerts" in Background?

2010-07-03 Thread Maps.Huge.Info (Maps API Guru)
There's a very cool thing starting in Froyo called "push notifications" that will probably work for you. Search Google for that topic to find more information. -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

[android-developers] Re: How to send a photo over Bluetooth

2010-07-01 Thread Gorka
Ups, there is the "available" function. I was reading the wrong API, xD. On 1 jul, 08:44, Gorka wrote: > Hi, > > Thank you, it seems that is exactly what I wanted. I have not tested > it but apparently it works. By the way, I saw there is not an specific > function defined by the FileInputStream

[android-developers] Re: How to send a photo over Bluetooth

2010-06-30 Thread Gorka
Hi, Thank you, it seems that is exactly what I wanted. I have not tested it but apparently it works. By the way, I saw there is not an specific function defined by the FileInputStream class to know the number of bytes of the picture; do you know how can I get this value. I mean, I am using this co

[android-developers] Re: How to send a photo over Bluetooth

2010-06-29 Thread Naoto
Hi, I happened to have written something similar just recently. How about just opening the file with FileInputStream and use read() to read out the byte[]? On the receiver end, you just write() with FileOutputStream. Or did you just want to send the pixel data from memory to memory? I hope thi

[android-developers] Re: How to send a photo over Bluetooth

2010-06-29 Thread Gorka
I am sorry that I forgot to say that the photos are in JPEG format On 29 jun, 09:26, Gorka wrote: > Hello, > > I am trying to send a photo from my Android device to a laptop via > Bluetooth. Right now I have a gallery on the screen where the photos > are depicted. What I want to do is to click a

[android-developers] Re: How to send a json object to a server via android

2010-06-15 Thread Vinay S
what is the error / exception you are getting? Look at logcat / console for info.. -Vinay On Jun 12, 9:04 pm, Muhamamd Mateen wrote: > Hi, > > I know that this is not really an android question but i am new to > both android and JSON. > > {"Email":"g...@tkxel.com","Password":"123456"} to a url.

[android-developers] Re: How to send mms from my code

2010-06-14 Thread Neilz
Good call... Both Uri uri = Uri.parse("android.resource://com.package.android.test/ drawable/icon"); and... Uri uri = Uri.parse("android.resource://com.package.android.test/raw/ icon"); ...work fine with Gmail. But both throw an exception when I choose 'Messaging': Caused by: java.lang.NullPoi

Re: [android-developers] Re: How to send mms from my code

2010-06-14 Thread Sean Hodges
> This acutally works if I select gmail, although the image name gets > changed to the resource id. However if I choose 'Messaging' from the > intent chooser, it throws a null pointer. That's very odd. Have you tried the "package/type/name" format instead of "package/id"? Uri uri = Uri.parse("an

[android-developers] Re: How to send mms from my code

2010-06-14 Thread Neilz
Found one of the answers I needed on another old topic: An extra slash is needed: i.putExtra(Intent.EXTRA_STREAM,Uri.parse("file:///sdcard/DCIM/Camera/ picture.jpg")); This solves the problem of sending via gmail. I still can't work out how to send a drawable from the resources. On Jun 14, 12:1

[android-developers] Re: How to send mms from my code

2010-06-14 Thread Neilz
This whole functionality seems really inconsistent - I now remember that I've tried this before and given up. I tried this code: Intent i=new Intent(android.content.Intent.ACTION_SEND); i.setType("image/jpg"); i.putExtra(Intent.EXTRA_SUBJECT, "Neils Subject"); i.putExtra(Intent.EXTRA_TEXT, "Hello

Re: [android-developers] Re: How to send mms from my code

2010-06-14 Thread Sean Hodges
I'm not sure of the best way to do this; but my understanding of the mechanism is that the image is pulled from any given content provider URI, just so long as the data returned can be understood by BitmapFactory.decodeStream(). So a simple solution would be to create a new ContentProvider and pas

[android-developers] Re: How to send mms from my code

2010-06-14 Thread Neilz
I've just been looking for something like this myself... a timely topic. Please could you edit this code to show how I would send an image from the @drawable folder? On Jun 9, 4:29 pm, Sean Hodges wrote: > Mike, > > I can do a little more than that, I can give you a fully working unit > test wit

Re: [android-developers] Re: How to send mms from my code

2010-06-14 Thread Sean Hodges
That is because there are multiple apps on your phone that can handle the intent. See the documentation: http://developer.android.com/intl/fr/reference/android/content/Intent.html#ACTION_SEND On Mon, Jun 14, 2010 at 5:31 AM, mike wrote: > hi sean, > > when i try to send a mms using your code it

[android-developers] Re: How to send mms from my code

2010-06-13 Thread mike
hi sean, when i try to send a mms using your code it pop up a box to select a relevant application to send the message?? why is that regards, Mike -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to a

Re: [android-developers] Re: How to send mms from my code

2010-06-12 Thread Sean Hodges
Mike, In the way I described, you are correct. There may be some way of returning the success of the MMS delivery by using startActivityForResult() instead of startActivity(), but you will have to take a look at the SMS app source code to see what is available there. Regards, Sean On Sat, Jun 1

[android-developers] Re: How to send mms from my code

2010-06-12 Thread mike
hi Sean, thanks for your reply, but in this case it's not possible to get the status of the message isn't it?? regards, Mike -- 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@googlegro

Re: [android-developers] Re: How to send mms from my code

2010-06-09 Thread Sean Hodges
Mike, I can do a little more than that, I can give you a fully working unit test with the phone number pre-populated in the From: field: package com.seanhodges.sandbox; import android.content.Intent; import android.net.Uri; import android.test.AndroidTestCase; public class SendAnMMS extends An

[android-developers] Re: How to send mms from my code

2010-06-09 Thread mike
Hi Sean, didn't get it at all. can you give me an example?? regards, Mike -- 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

Re: [android-developers] Re: How to send mms from my code

2010-06-09 Thread Sean Hodges
It opens the SMS app so you can enter the contact number, see my email earlier. On Wed, Jun 9, 2010 at 2:25 PM, mike wrote: > hi guys, > > According to the site this is the code > >        Intent sendIntent = new Intent(Intent.ACTION_SEND); >                        sendIntent.putExtra("sms_body"

[android-developers] Re: How to send mms from my code

2010-06-09 Thread mike
hi guys, According to the site this is the code Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra("sms_body", body); Log.d("MMS URI", mms_uri); mms_uri == content://media/external/images/thumbnails/0

[android-developers] Re: How to send date from service to activity

2010-06-01 Thread NightGospel
Hi Karteek, You should try to register one callback method from activity to service. Then service can call this method to trigger event. The following page has sample codes to reference: http://developer.android.com/guide/developing/tools/aidl.html NightGospel On 6月1日, 下午4時24分, Karteek N wrote:

[android-developers] Re: how to send String/Int from subActivity to mainActivity without close the SubActivity

2010-05-09 Thread Kumar Bibek
But I cannot think of a situation where you would find this useful. Even though you are able to send data from the sub-activity, your parent activity cannot take any action, since it will be in paused state. Thanks and Regards, Kumar Bibek On May 6, 8:28 am, Aggiornamento wrote: > hi all, > > d

[android-developers] Re: How to send the Email

2010-05-05 Thread Kumar Bibek
This should work if there is a mail client designed to handle such an intent. Gmail can handle this, and this will certainly work on a phone. Thanks and Regards, Kumar Bibek On May 5, 11:53 am, rajesh chandrasekaran wrote: > Hi, > >  Thanks for your replay sir, > >  But i need to know whether ab

[android-developers] Re: How to send the Email

2010-05-04 Thread rajesh chandrasekaran
Hi, Thanks for your replay sir, But i need to know whether above code will send the email when we test in mobile.If the above code dont work then will you please send me any sample code for my reference. Thanks C.Rajesh On May 5, 11:46 am, "appforce.org" wrote: > Hi, > > You can't send e-m

  1   2   >