Re: : [android-developers] Re: Am I using MediaPlayer Properly?

2012-04-08 Thread F.Stain
It's not recommended. MediaPlayer is a heavy object which mostly used to play video. Maybe more better will be use AudioTrack instead MediaPlayer? воскресенье, 8 апреля 2012 г., 11:42:30 UTC+7 пользователь stringa написал: It still crashes. Can I use a MediaPlayer to play multiple different

Re: [android-developers] Global variable extend application class

2012-04-08 Thread Etienne
Here is the my subclass of Application public class MyApp extends Application { private HashMapString, Boolean selectedContacts = null; public HashMapString, Boolean getSelectedContacts() { return this.selectedContacts; } public void setSelectedContacts(HashMapString, Boolean sc) {

[android-developers] Arrayadaptev

2012-04-08 Thread sahar aseeri
Hello, I have qestion about arrayadapter i want to creat a list veiw and i want this list update it every minute by add new item and delet one item By using arrayadapter and send massege to the handler How can I do this part of code? Best Regards! Sahar -- You received this message because you

[android-developers] Arrayadapter

2012-04-08 Thread sahar aseeri
Hello, I have qestion about arrayadapter i want to creat a list veiw and i want this list update it every minute by add new item and delet one item By using arrayadapter and send massege to the handler How can I do this part of code? Best Regards! Sahar -- You received this message because you

Re: [android-developers] Arrayadapter

2012-04-08 Thread Raghav Sood
What have you done so far? What specific problem are you facing? Thanks On Sun, Apr 8, 2012 at 3:32 PM, sahar aseeri saharase...@gmail.com wrote: Hello, I have qestion about arrayadapter i want to creat a list veiw and i want this list update it every minute by add new item and delet one

Re: [android-developers] Get a code

2012-04-08 Thread Siddharth Chopra
i have tried to select some part of an image through rectangle and after that i have tried to create a bitmap of that selected part Bitmap b1= Bitmap.createBitmap(bitmapFinal, (int)downx, (int)downy, (int)(upx-downx), (int)(upy-downy)); and then i have tried set on imageview through

[android-developers] How to add AdSense to my apps?

2012-04-08 Thread Perry168
Hi, Today, I entered my admob account, it has a information about admob will transfer to adSense. Because of it, I have few question, I hope who can help me. a) How to add AdSense to apps? Does anyone can give a tutorial for me? b) Do I need to re-write the Apps which apps are using the admob as

[android-developers] how to get each Device's Ip Address in WIFI Direct Scenario

2012-04-08 Thread mxd
start from ICS, the WIFI Direct is introduced, we normally use WIFIP2PManager Class to operate the WIFI Direct, But I found seems it only can retreive the GroupOwner IpAddress after Connected. But, actually, Any devcice all came negotiate to become the GroupOwner, in Upper Application, We need

[android-developers] Can WIFI Direct and 3G Data Session Concurrently Work?

2012-04-08 Thread mxd
Can 3G Data Session and WIFI Direct concurrently work?? if so, then two IPaddress Exist, will it cause confusion? one example: A use 3G to download a video file, now the progress is 50%. Now A select a picture, and want to use WIFIDirect to share to B. will this succeed without interrupt the

[android-developers] Where to find WIFI Direct technical materials?

2012-04-08 Thread mxd
I'd like to get more familiar with WIFI Direct's Protocol and OTA Flow. I searched google, but cannot seem to find any materials which discuss the protocol in detail. At least not for free. Does anyone know where can I find such articles? I know WIFI Alliance, the spec is not free.

Re: [android-developers] Re: map doesn't show

2012-04-08 Thread james pruett
registering worked. thanks. -cellurl On Wed, Apr 4, 2012 at 6:33 AM, lbendlin l...@bendlin.us wrote: Go through the API registration process again. You will see that your key has changed. On Tuesday, April 3, 2012 9:25:22 PM UTC-4, cellurl wrote: Hi, If one were to hail-mary fix a

Re: [android-developers] Arrayadapter

2012-04-08 Thread Raghav Sood
You outlined the steps you wanted in the first email. You have the steps then, just code it. No one is going to hand out code to you, unless you pay them. Google can help you find hundreds on tutorials on this subject. Thanks 2012/4/8 sahar aseeri saharase...@gmail.com I am not facing any

Re: [android-developers] Arrayadapter

2012-04-08 Thread Ankita Kashyap
notifyDatasetChanged() on adapter 2012/4/8 sahar aseeri saharase...@gmail.com I am not facing any thing just I want steps to do it becauase I am beginer in android and java I read alot but there is no example help me to do it thanks بتاريخ 08 أبريل, 2012 01:11 م، جاء من Raghav Sood

Re: [android-developers] developing private API for an Android App

2012-04-08 Thread Ankita Kashyap
Thanks to all of you. I got a the direction of exploration with respect to my requirements. On Sat, Apr 7, 2012 at 10:50 PM, Dalvinder Singh singh.dal...@gmail.comwrote: Most commonly used approach seems to be using jBoss server and develop REST Api's as it's widely accepted in the industry

Re: [android-developers] Arrayadapter

2012-04-08 Thread sahar aseeri
yes I know, I will do this code by my self but I what some one tell me what is the steps or if the steps that I wrote was correct or not because I searched in google and I didn't fine example like I want. بتاريخ 08 أبريل, 2012 04:52 م، جاء من Raghav Sood raghavs...@androidactivist.org: You

[android-developers] Problems in making Sms WakeUp application

2012-04-08 Thread Atif Farrukh
I am trying to make an application, so that my mobile wakes up when it receives a sms... I tried and make the appHere is the code:: package com.atiffarrukh.wakemeup; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import

[android-developers] Re: How can I use Google Maps in Android Apps

2012-04-08 Thread Nicolas Embleton
Just a quick note to say that in Vietnam, Google Maps for Android gives me maps less than 6 months old. Vietnam is a very fast growing country and landscape changes barely on a weekly basis. The maps are pretty accurate. I'll try to do some http level sniffing to see if the web uses the sames

Re: [android-developers] Re: How can I use Google Maps in Android Apps

2012-04-08 Thread Nicolas Embleton
Mark, Your point on Kindle/Amazon and other 3rd party libraries are making me thinking my map provider over... I'll probably look around alternatives to see how it works... Nicolas. On Friday, April 6, 2012 12:32:54 AM UTC+7, Mark Murphy (a Commons Guy) wrote: On Thu, Apr 5, 2012 at 1:06

[android-developers] Set contrast, brightness and saturation

2012-04-08 Thread Siddharth Chopra
hi, I want to built an application in which set the value of contrast,brightness and saturation on a canvas with different background color with the help of seekbar of their respective's in android. Regards, Siddharth -- You received this message because you are subscribed to the Google

[android-developers] My Question

2012-04-08 Thread sahar aseeri
Hello, I have list veiw contain 20 items and I want just 10 of them appear in GUI and I want to update this list evrey minute. what is the best way I use to implement this ? Best Regards, Sahar -- You received this message because you are subscribed to the Google Groups Android Developers group.

Re: [android-developers] Can WIFI Direct and 3G Data Session Concurrently Work?

2012-04-08 Thread Raghav Sood
AFAIK, Android does not allows 2 internet connections, 2G, 3G or WiFi to be active at the same time. In my experience, connecting to the WiFi disables the mobile data. Thanks On Sun, Apr 8, 2012 at 5:38 PM, mxd nicefut...@126.com wrote: Can 3G Data Session and WIFI Direct concurrently work??

[android-developers] Re: How can I use Google Maps in Android Apps

2012-04-08 Thread Nadeem Hasan
To me it looks like you have been sent here to spread FUD. You have not clearly defined what your *technical* problems are. You are throwing around conjectures and at every point praise WP7 for some imagined merits. You claimed that this forum sucks when it was your fault for not being clear

[android-developers] Re: My Question

2012-04-08 Thread sahar aseeri
Hello, I have list veiw contain 20 items and I want just 10 of them appear in GUI and I want to update this list evrey minute. what is the best way I use to implement this ? Best Regards, Sahar -- You received this message because you are subscribed to the Google Groups Android

Re: : [android-developers] Re: Am I using MediaPlayer Properly?

2012-04-08 Thread stringa
Sounds Good. I will try that. Thanks for the advice. stringa On Apr 8, 12:16 am, F.Stain dr.frank.st...@gmail.com wrote: It's not recommended. MediaPlayer is a heavy object which mostly used to play video. Maybe more better will be use AudioTrack instead MediaPlayer? воскресенье, 8 апреля

[android-developers] Re: How can I use Google Maps in Android Apps

2012-04-08 Thread g...@deanblakely.com
Nadeem, Well, none of that is true but now you are really going to hate me... I was trying to answer a question that Raymond Rodgers asked by going back into my HelloGoogleMaps project I have in Eclipse. I navigated the map back to where I live and it's now current on the map! I know it wasn't

Re: [android-developers] Where to find WIFI Direct technical materials?

2012-04-08 Thread Irfan Sheriff
http://developer.android.com/guide/topics/wireless/wifip2p.html On Sun, Apr 8, 2012 at 5:09 AM, mxd nicefut...@126.com wrote: I'd like to get more familiar with WIFI Direct's Protocol and OTA Flow. I searched google, but cannot seem to find any materials which discuss the protocol in

Re: [android-developers] Can WIFI Direct and 3G Data Session Concurrently Work?

2012-04-08 Thread Irfan Sheriff
On Sun, Apr 8, 2012 at 5:08 AM, mxd nicefut...@126.com wrote: Can 3G Data Session and WIFI Direct concurrently work?? if so, then two IPaddress Exist, will it cause confusion? one example: Yes, Wi-Fi direct uses a local IP that will not conflict with 3g connectivity. A use 3G to

Re: [android-developers] Can WIFI Direct and 3G Data Session Concurrently Work?

2012-04-08 Thread Sócrates Medina
Agree with you, Raghav Sent from Samsung Galaxy Note On Apr 8, 2012 11:12 AM, Raghav Sood raghavs...@androidactivist.org wrote: AFAIK, Android does not allows 2 internet connections, 2G, 3G or WiFi to be active at the same time. In my experience, connecting to the WiFi disables the mobile

[android-developers] Re: How can I use Google Maps in Android Apps

2012-04-08 Thread Nadeem Hasan
No, I don't hate you and not going to. If this discussion took place from your side entirely in earnest as it looks like, I don't think anybody would mind in the end. Live and learn. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] Re: How can I use Google Maps in Android Apps

2012-04-08 Thread Kristopher Micinski
On Sun, Apr 8, 2012 at 4:31 PM, Nadeem Hasan nha...@nadmm.com wrote: No, I don't hate you and not going to. If this discussion took place from your side entirely in earnest as it looks like, I don't think anybody would mind in the end. Live and learn. You have to be pretty harsh to have

Re: [android-developers] Global variable extend application class

2012-04-08 Thread TreKing
Have you stepped through the code? Is the HahMap valid when you put it in the Intent? When you get it back, is it valid then? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago

Re: [android-developers] developing private API for an Android App

2012-04-08 Thread Mark Phillips
Depending on what you need to do in the server side, you might want to look at django if all you need are some restful apis. Django is easy to learn, and runs with minimal resources. Mark On Apr 8, 2012 6:57 AM, Ankita Kashyap ankita.kashyap@gmail.com wrote: Thanks to all of you. I got a

Re: [android-developers] Global variable extend application class

2012-04-08 Thread Gergely Juhász
Don't do this anyway. Creating global variable? For me it looks to a bad and ugly solution. If you want persistent data your SharedPreferences. On 9 April 2012 00:28, TreKing treking...@gmail.com wrote: Have you stepped through the code? Is the HahMap valid when you put it in the Intent? When

Re: [android-developers] Global variable extend application class

2012-04-08 Thread Gergely Juhász
sorry your = use On 9 April 2012 01:58, Gergely Juhász jg.sv...@gmail.com wrote: Don't do this anyway. Creating global variable? For me it looks to a bad and ugly solution. If you want persistent data your SharedPreferences. On 9 April 2012 00:28, TreKing treking...@gmail.com wrote: Have

Re: [android-developers] Arrayadaptev

2012-04-08 Thread TreKing
On Sun, Apr 8, 2012 at 5:00 AM, sahar aseeri saharase...@gmail.com wrote: I have qestion about arrayadapter i want to creat a list veiw and i want this list update it every minute by add new item and delet one item By using arrayadapter and send massege to the handler How can I do this part

Re: [android-developers] Set contrast, brightness and saturation

2012-04-08 Thread TreKing
On Sun, Apr 8, 2012 at 9:49 AM, Siddharth Chopra siddharth5...@gmail.comwrote: I want to built an application in which set the value of contrast,brightness and saturation on a canvas with different background color with the help of seekbar of their respective's in android. OK. Thanks for

Re: [android-developers] Global variable extend application class

2012-04-08 Thread Etienne
The HashMap is valid when i put it in the Intent, and when I get it back it is also valid. UPDATE: So I fixed this issue. In my onActivityResult, I was iterating through the HashMap like so: IteratorEntryString, Boolean it = sc.entrySet().iterator(); while (it.hasNext()) { HashMap.Entry

Re: [android-developers] Global variable extend application class

2012-04-08 Thread Kristopher Micinski
Good to hear, but I agree with Gergely's advice, why are you doing this in the first place? kris On Sun, Apr 8, 2012 at 9:37 PM, Etienne lawloretie...@gmail.com wrote: The HashMap is valid when i put it in the Intent, and when I get it back it is also valid. UPDATE: So I fixed this issue.  

Re: [android-developers] Global variable extend application class

2012-04-08 Thread Kristopher Micinski
To elaborate, global variables a la application object are usually an anti-pattern On Sun, Apr 8, 2012 at 9:54 PM, Kristopher Micinski krismicin...@gmail.com wrote: Good to hear, but I agree with Gergely's advice, why are you doing this in the first place? kris On Sun, Apr 8, 2012 at 9:37

Re: [android-developers] Global variable extend application class

2012-04-08 Thread Etienne
I am using the application object to maintain global application state. What are the disadvantages of sub-classing the Application class? And what advantages do SharedPreferences have over my solution? -- You received this message because you are subscribed to the Google Groups

[android-developers] Relative layout : how to horizontally center align 2 children.

2012-04-08 Thread Put_tiMe
In a relative layout, how do I center align two *child* elements. The two elements could be of different widths. They appear one below the other and are horizontally center aligned. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] Relative layout : how to horizontally center align 2 children.

2012-04-08 Thread Jason Zhu
Both of them are set to android:layout_centerHorizontal=true 在 2012年4月9日 上午11:56,Put_tiMe putt...@gmail.com写道: In a relative layout, how do I center align two *child* elements. The two elements could be of different widths. They appear one below the other and are horizontally center aligned.

Re: [android-developers] Global variable extend application class

2012-04-08 Thread TreKing
On Sun, Apr 8, 2012 at 10:45 PM, Etienne lawloretie...@gmail.com wrote: I am using the application object to maintain global application state. What are the disadvantages of sub-classing the Application class? And what advantages do SharedPreferences have over my solution? I do this as

[android-developers] How to set the Statusbar background transparent while window format is PixelFormat.RGB_565

2012-04-08 Thread Jason Zhu
Hi, all: These days this problem troubles me. I want to make statusbar transparent while I invoke getWindow().setFormat(PixelFormat.RGB_565). That is: I want to make statusbar transparent under low quality. Has anyone done it ? Really thanks if you can give me some help. Thanks in advance

Re: [android-developers] Global variable extend application class

2012-04-08 Thread Kristopher Micinski
On Sun, Apr 8, 2012 at 11:45 PM, Etienne lawloretie...@gmail.com wrote: I am using the application object to maintain global application state. What are the disadvantages of sub-classing the Application class?  And what advantages do SharedPreferences have over my solution? I don't think

Re: [android-developers] Re: running javascript

2012-04-08 Thread arunkumar ayyavoo
how can i create one package in existing coding and the name was web.com On Thu, Apr 5, 2012 at 4:55 PM, ramalakshmi krishna.veni...@gmail.comwrote: How can u read the html code ? -- You received this message because you are subscribed to the Google Groups Android Developers group.

Re: [android-developers] Re: Sending GPS coordinates to a server

2012-04-08 Thread Bhuvan Chandra
Iam very much new to the java programming , but i have developed an application by modifying a sample code from a website which could give the current location coordinates and keeps on updating using the gps in the mobile.But i want to know how to send these coordinates to a server which i could