[android-developers] Re: AVD Unknown Error, Wont build new AVD

2016-07-04 Thread Ben Wardrop
Resolved, Comodo Anti-Virus

On Tuesday, July 5, 2016 at 1:19:55 PM UTC+10, Ben Wardrop wrote:
>
> Installed Android Studio 2.1.2
> with jre1.8.0_91
> Running on a Surface Pro 3 Windows 10
> Following a tutorial
>
> https://www.youtube.com/watch?v=qKRWC3Q8wRw=PL6gx4Cwl9DGBsvRxJJOzG4r4k_zLKrnxl=4
>
> When I get to the System Image screen I try to select Marshmalow, (either 
> 86 or 86_64) and there's an error in the right hand panel "Unknown Error"
>
> I select next and it proceeds to the "verify configuration" page, the 
> error persists in the right hand panel, clicking on the error triggers a 
> "please file a bug" popup
>
> When I click finish the Virtual device manager flashes a "saving Virtual 
> Device"
> No virtual device apears.
>

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/7b739e97-efd7-4150-90ec-c4a19e8fe72e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] AVD Unknown Error, Wont build new AVD

2016-07-04 Thread Ben Wardrop
Installed Android Studio 2.1.2
with jre1.8.0_91
Running on a Surface Pro 3 Windows 10
Following a tutorial
https://www.youtube.com/watch?v=qKRWC3Q8wRw=PL6gx4Cwl9DGBsvRxJJOzG4r4k_zLKrnxl=4

When I get to the System Image screen I try to select Marshmalow, (either 
86 or 86_64) and there's an error in the right hand panel "Unknown Error"

I select next and it proceeds to the "verify configuration" page, the error 
persists in the right hand panel, clicking on the error triggers a "please 
file a bug" popup

When I click finish the Virtual device manager flashes a "saving Virtual 
Device"
No virtual device apears.

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/19245c32-9ed5-4b3d-9bdc-b8dc7697269a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Do pads have the same kinds of sensors as the smartphones?

2016-07-04 Thread 吴梦飞
such as accelerometer, gyroscope and magnetometer?

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/369e44fc-28d6-4e9a-864c-eee40b1298e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] BluetoothSocket.connect() throwing exception “java.io.IOException: read failed, socket might closed or timeout, read ret: -1”

2016-07-04 Thread f . o . santos97
Good night!

I'm studying the Bluetooth API and I'm facing a problem when trying to 
connect and pair to bluetooth devices. After a lot of research, I've found 
that after Jelly Bean, bluetooth doesn't work the same way and I've found 
the following code that could overcome the pairing problem:

Method m = device.getClass().getMethod("createRfcommSocket", int.class);
socket = (BluetoothSocket)m.invoke(device, 1);

Now, have last the connection problem. The problem comes when I call 
socket.connect(). It throws the following exception: "java.io.IOException: 
read failed, socket might closed or timeout, read ret: -1”.

OBS: App tested in android KitKat (4.4) and Lollipop (5.1), besides a 
shield Bluetooth for arduino.

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/78ff1764-c4dd-4e78-8f3d-b4f99f866419%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Communication between two server/client devices

2016-07-04 Thread Hector Daniel Rodriguez Gutierrez
Greetings, i want to make an app that uses one android device as server, 
and other devices can connect to it as clients. Additionally i want to add 
support for other platforms, like web browsers, in the future.

Doing some research i found i could use sockets (socket and serverSocket in 
Java), to communicate devices in the same network. With this method I've 
tested already communicating two android apps, and an Android app with a 
Node.js app, but i'm not sure of how to make devices find each other with 
this method, i have to manually introduce the port number.
I also see that there is a Wi-Fi P2P API, and it has most of the features i 
need, i just don't know if i could use it to connect to a web app.

What would you recommend to use? Will it be possible to do multi platform 
communication or should i stick to android support only?

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/1cac2661-ba9a-4da7-b393-05011df89a3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Troubles with in app purchases

2016-07-04 Thread Pierre-Antoine Péron
Anybody?


Le dimanche 3 juillet 2016 22:48:03 UTC+2, Pierre-Antoine Péron a écrit :
>
> Hi
>
> I experience a big problem regarding in app purchases. In fact, when I try 
> to make a purchase, the google play purchase window opens twice although 
> other developers did not have the same issue with the same code. I am 
> getting a bit desperate as it is one of the last thing to do before 
> publishing.
>
> I am using Corona SDK and I already asked the questions to them but no 
> solution was found to fix the issue (everything else is working fine).
>
> I attach a screenshot where we can see the window opening twice (one 
> behind the other).
>
> Thanks in advance for your replies
>
> Pierre Péron
>

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/ff760983-9c18-4b80-ac14-f21ebec5c2ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Get current milliAmps of battery?

2016-07-04 Thread Ngọc Hùng


How to get current battery capacity in mA of android device.

I have tried this code, but it gives me value total battery capacity:

public void getBatteryCapacity() {
 Object mPowerProfile_ = null;
 final String POWER_PROFILE_CLASS = "com.android.internal.os.PowerProfile";
try {
mPowerProfile_ = Class.forName(POWER_PROFILE_CLASS)
.getConstructor(Context.class).newInstance(this);
} catch (Exception e) {
e.printStackTrace();
} 
try {
double batteryCapacity = (Double) Class
.forName(POWER_PROFILE_CLASS)
.getMethod("getAveragePower", java.lang.String.class)
.invoke(mPowerProfile_, "battery.capacity");
Toast.makeText(MainActivity.this, batteryCapacity + " mah",
Toast.LENGTH_LONG).show();
} catch (Exception e) {
e.printStackTrace();
} }

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/3b272c4f-464e-409e-9ae1-7c5d0433a417%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Why won't Google Play allow developers to gift their apps?

2016-07-04 Thread twitter swag
We are trying to develop an app for Android by raising funds on 
Kickstarter. We had to halt the fundraising when we realized we can't gift 
a copy of the app to the people who donated. This is possible on the iTunes 
store - you're giving a token that you give to people to get a copy of the 
app. Why doesn't Google Play allow the same policy? Google Play's gift 
cards are a minimum of 5$ and our app is 2.99 so buying gift cards is not 
an option because the gift card exceeds the price of the app. Why won't 
Google Play allow developers to gift as many copies of their app as they 
want? What is the purpose of having this policy? All it does it prevent 
developers like us from releasing on Android.

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/33e6aa03-15f1-48ba-981f-5b4c795fcedf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Hello to All my partners

2016-07-04 Thread Mark Phillips
please don't do that

On Sun, Jul 3, 2016 at 9:40 PM, Hari Raj  wrote:

> ok..
>
> On Sun, Jul 3, 2016 at 12:50 AM, naseer bhat 
> wrote:
>
>> Hi Partners,
>>
>> My name is Naseer Bhat , I am working with Nityo Infotech as a Sr.
>> Technical Recruiter. I am taking care of my two direct clients   i will be
>> sending you daily positions
>>
>>
>>
>>
>> Naseer Bhat
>>
>> --
>> 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 android-developers@googlegroups.com.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-developers/CABHLit%3DJKgNn_S6Vj_ZGFkRUQGgERSX6BF-JW0asQa4yDJ8kgg%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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 android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/CAJ2YoM-ueC1Mc8WypAEeRJ8hwHYD8EptL1DzntC6dv_cZXBMmw%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2Mv%3Dq-Kp%3DaWc4LxBQRW6q_9qDn6mR7xpnFDtxgrOxgX0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android virtual device help

2016-07-04 Thread Bob B.
Hello all, 

I am looking to be able to test a wide variety of screens in Android studio 
and am wondering if someone could point me to a resource or provide some 
assistance?

My goal is to be able to develop against the following.

sw240dp...

sw320dp-mdpi
sw320dp-hdpi
sw320dp-xhdpi
sw320dp-xxhdpi
sw320dp-xxxhdpi

sw600dp-mdpi
sw600dp-hdpi
sw600dp-xhdpi
sw600dp-xxhdpi
sw600dp-xxxhdp8

... the same for sw720dp

I am guessing there are profiles you can download and load in to the AVD 
manager?  Or do you need to build them manually?  

I have tried to setup a few of them but I am not fully understanding the 
AVD yet for getting new device definitions in to it.

I am using this many qualifiers due to the fact that I have some images 
that I need to stay proportional between smaller and larger same density 
devices.  Unfortunately, Androids scaling to ensure things stay the same 
size between a 3" phone and 10" tablet that both happen to have a dp of 320 
is not helping me here.

Thanks!
Bob


-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/50ec71e5-9ee4-4ebb-89d9-a78f2c3d1d47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Test Purchases missing 'order id' response in-app-billing

2016-07-04 Thread Ruairi
Recently had issues testing purchases with in app billing on android. It 
appears I am missing "orderID" in the response Json after making the test 
purchase on my device (see below).

*I've removed the name and id and token from the string below to hide 
information *

{"packageName":" ","productId":"","purchaseTime":1467378551643,
"purchaseState":0,"developerPayload":"developerPayloadString",
"purchaseToken":" "}


There have been no changes for at least a year to the purchasing code. 
However only recently the test purchase method I have been following has 
stopped working. This is due to the orderID missing from the receipt so it 
fails when I attempt to validate this receipt.


Looking at the android 
documentation 
https://developer.android.com/google/play/billing/billing_testing.html 
it does state that for test purchases the order id will always be blank. 
However the code I have been using to test for the last year+ has always 
assumed I need a order id in the response which is what I find so baffling. 


Can anyone confirm if google have made any recent changes or is seeing a 
similar issue of missing the order id when doing there test purchases?



-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a3f601a3-09fd-497e-a64e-7dc6faf9c51b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Why does findFragmentById take container ID?

2016-07-04 Thread purplex88
I am trying to figure out the following code:

Fragment fragment = fm.findFragmentById(R.id.fragmentContainer);

// Check if fragment was found
if (fragment == null) {

fragment = new CrimeFragment();

fm.beginTransaction()
.add(R.id.fragmentContainer, fragment)
.commit();
}




How does it make sense for the method findFragmentById to take some container 
ID in this case "FrameLayout" when the name of method says Find Fragment?


-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/14fc92b2-cb96-4ec0-9d1b-e5847c85547a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Weird SSL Handshake failed on Android 6

2016-07-04 Thread Bing Lan


I need to get a content from website through https connection. I have used 
the below code to connect the website with desktop application but its 
getting failed on Android 6. I have searched for many days however found no 
result(I tried to add intermediate CA and root CA but the same result). 
Please anyone help me out.

String url = "https://www.coles.com.au";try{
URL urlObj = new URL(url);
HttpsURLConnection urlConnection =
(HttpsURLConnection)urlObj.openConnection();
InputStream in = urlConnection.getInputStream();

BufferedReader reader = new BufferedReader(new 
InputStreamReader(in));

while(null != (content = reader.readLine())){
System.out.println(strStoreList);
}
}
catch (IOException e){
String exception = e.getMessage();
System.out.println(exception);
}

Above code ends up with SSL handshake exception - handshake failed thrown 
out.

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a35ff4c4-a958-4075-b369-b386d1de8b30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Security Systems

2016-07-04 Thread Ks Roopa


Security system sellers in Bangalore 
 - list of safety 
machine (all sorts) sellers, shops, stores in Bangalore and get protection 
machine businesses, vendors contact addresses, cellphone numbers, expenses, 
scores and evaluations in your cell instantly on busybizz.com.

http://busybizz.com/security-systems-bangalore.php

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/25cc97bd-b9ff-4023-8e3f-48a652e30f17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Security Systems

2016-07-04 Thread Ks Roopa


Security system sellers in Bangalore 
 - list of safety 
machine (all sorts) sellers, shops, stores in Bangalore and get protection 
machine businesses, vendors contact addresses, cellphone numbers, expenses, 
scores and evaluations in your cell instantly on busybizz.com.

http://busybizz.com/security-systems-bangalore.php

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a291d33c-987b-4ee4-b1c3-dcf8063cdfdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Packers and Movers Bangalore

2016-07-04 Thread Busybizz Seo


We Provide Best Packers and Movers Bangalore  
List for Get Free 
Best Quotes, Compare Charges, economize And Time, unit Shifting Services@ 
busybizz.com

 

http://www.busybizz.com/packers-and-movers-bangalore.php

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/f77f7f4f-c5b7-4aac-9ef8-5a7573509aa3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: App crashes when button is tapped several times

2016-07-04 Thread VISHAL RAJMOHAN
 Read both posts carefully and check with your logcat
Link 1 

Link 2 


-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e7b6e41d-2923-4b89-a8b0-a3c90628928e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Integreating Opencv manger with mu Opencv app..

2016-07-04 Thread VISHAL RAJMOHAN
I am developing a Face Recognition  android application using an LBPH face 
recognizer I am using android studio 2.+ version.
I have already tried the following links.
LINK 1 

Link 2 


nothing seems to be working.. 
Please help...
If anyone wants to check my program.
please tell..!!
thanks...

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/dc3b0c7c-5c3e-4c6f-9371-d0415ec253ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] how to change sha1 key of publish application in android.

2016-07-04 Thread softtechengr . apps
hello,
I have a problem with my google maps API.

  I have published one app on play Store with debug SHA1 key, and map was 
not showing

 Now I have new SHA1 for release mode and showing map also.

 But I was not able to update , my previous  Published app because of  
different key signing.
 
Please provide me any solution for this.

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/ea6ebc28-5de9-47f4-9824-fbb95209c600%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Can i get wifi beacon information

2016-07-04 Thread Jason zhao
Dear,all.
I want to obtain wifi beacon information from wifi searched result,who can help 
me.Thx.

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/73547913-65AA-4397-A429-2C8DECF2C82F%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] App crashes when button is tapped several times

2016-07-04 Thread Vishnu Ajith
I am making a media player app. So when the music is playing suppose i tap 
the pause button many times or any other button many times the app crashes.

Meaning, the app crashes if I try tapping on any button several times or If 
i click multiple buttons at the same time also the app crashes.  Is there a 
workaround for this or can you suggest any other measures to counter this 
problem.

Thanks

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/2a6c26ae-b4e6-4271-808a-b09a1965acea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Wi-Fi Direct without connections

2016-07-04 Thread 吴梦飞
3 meters! really!

在 2016年7月3日星期日 UTC+8上午11:51:35,gjs写道:
>
> "... method is feasible to do the collision avoidance job or not?"
>
> Probably NOT. Consider vehicles travelling in opposite directions on a two 
> lane road. Even with perfect instantaneous communications between any two 
> oncoming vehicles, the inaccuracy in smartphone GPS position (lat, lon) of 
> roughly 3 meters in good circumstances, would mean that your project would 
> likely be reporting incorrectly, that nearly every passing vehicle was 
> going to be involved a head on collision.
>
> To have any confidence in your project smartphone GPS position would need 
> to be accurate to within 10 centimeters or less.
>
> On Saturday, July 2, 2016 at 12:47:52 PM UTC+10, 吴梦飞 wrote:
>>
>> Recently I'm doing a project about broadcast my location infos (latitude, 
>> longitude, bearing and speed) from gps module in smartphone, then ppls 
>> or drivers who are closer to each other could get the distance and avoid 
>> the collision(Actually part of the VANET). I wanna use the Wi-Fi Direct 
>> to broadcast these infos without establishing connections among the 
>> devices. Just fill the infos into the name of Wi-Fi Direct ssid. Then a 
>> problem occurs that the delay is really long. When I switched on the Wifi 
>> Direct of one device, another one could find it after about 1 second. 
>> However it’s not enough when comes to the vehicular network. This problem 
>> became more terrible when changing the device name periodically. If anyone 
>> can tell me whether this method is feasible to do the collision avoidance 
>> job or not? If there are some better ways using android smartphones? Thanks 
>> a lot!
>>
>

-- 
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 android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/60cdd0b5-df2a-4f15-921f-f02c3b991fc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.