[android-developers] Are developers keen on using the latest Android 4.2 and stop supporting Android 4.0 and 4.1?

2013-03-30 Thread tom_mai78101
I had a bug that occured when Android 4.0 and Android 4.1 both tried to share a 
Bluetooth connection. I was denied support for those two versions and was asked 
for trying to test it on Android 4.2.

The main problem for me would be the lack of hardware available to use. I don't 
have Android 4.2, and I can't upgrade my devices to 4.2. 

My manufacturer don't have Android 4.2 patches available for upgrade anyway, so 
it is hard for me to get Android 4.2 on my devices.

Here, I thought Android 4.X has support for all ICS versions, like how 
Microsoft supports their Windows products based on their shelf life. But it 
seems to me, that's not the case.

Do we still have product support for Android 4.0 and 4.1? Or developers are 
keen on getting the latest versions and drop support for older versions, 
starting from ICS?










F

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Why aren't there OpenGL ES 2.0 tutorials for Android on Youtube?

2013-03-29 Thread tom_mai78101
I have seen it, but it doesn't answer my question. Why aren't  OpenGL ES 2.0 
video tutorials available on the net?

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android Bluetooth: I get Connection Refused after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-15 Thread tom_mai78101
Then I don't understand why it's failing to connect. Most of the error 
exception log messages point to either UUID is wrong or I'm not cancelling 
BluetoothAdapter discovery.
 
I had looked back at the BluetoothChat SDK Sample, compared it with my 
codes, and see no significant differences other than that BluetoothChat has 
a Handler and I/O streams implemented.
 
If BluetoothDevice is connected to the BluetoothServerSocket, 
BluetoothServerSocket has accepted the connection, I have to immediately 
close both the server socket and the socket, just like what BluetoothChat 
SDK Sample did?
 
 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android Bluetooth: I get Connection Refused after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-15 Thread tom_mai78101
Re-reading Android Reference, it said the UUID needs to be the same for 
both the server-side and the client-side. UUID.randomUUID() and 
BluetoothDevice.getUuids() are sure to fail.
 
I hate it, but it looks like I need to set up to 7 constant (final) UUIDs 
without generating them at compile-time. Will report back once I have some 
results.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android Bluetooth: I get Connection Refused after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-15 Thread tom_mai78101


 Why is generating them and sticking them in your code bad?  Why do you 
 hate it?  This is standard practice in many situations, so much that 
 IDEs do it for you sometimes. 

I disliked having to generate them and stick them into my code, for fear of 
security. And I never recalled my IDE having to auto-generate UUIDs for me. 
Now that you mentioned this being a standard practice, I don't know what to 
say about it. I probably didn't know about it in the first place.
 
As promised, the results are in. Yes, they work flawlessly. Yes, I hate to 
rewrite lots of code, including scrapping away a few files. And yes, I'm an 
idiot. :(
  

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Here's how to use ADB Shell command to run HTC Sense on HTC devices.

2013-02-15 Thread tom_mai78101
ADB command below:
 

 adb shell am start -a android.intent.ACTION_MAIN -n 
 com.htc.launcher/.Launcher

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android Bluetooth: I get Connection Refused after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-14 Thread tom_mai78101
I don't think ports matter in this case. In fact, I don't need ports. 
Thanks anyway.
 
*BEWARE: Wall of text*
 
I have now narrowed down my problem, hopefully reaching a conclusion soon. 
I'm having trouble with fetching one single UUID for two devices to use. 
Here's a picture of what I have logged by using android.util.Log.
 
http://i.imgur.com/t1QhdSk.png
 
Here I have two devices, namely HTC #1 and HTC #2, both of them running 
Android 2.3.5. Each device has my app installed and debugged at the moment. 
The app fetches a UUID from the other remote device using reflection 
method, invoking Bluetooth.getUuids(). (i.e.: Device #1 fetches a UUID from 
Device #2, while Device #2 fetches a UUID from Device #1.)
 
The UUID for both devices are shown in the red box. According to this 
answer here http://stackoverflow.com/a/14757884/1016891, it said I need 
to use the same UUID for use with
BluetoothAdapter.listenUsingRfcommWithServiceRecord() and 
BluetoothDevice.createRfcommSocketToServiceRecord().
 
However, I realized that using the same UUID that was pre-fetched using 
BluetoothDevice.getUuids() 
w/ reflection for both BluetoothServerSocket.accept() and 
BluetoothSocket.connect() is wrong. Either I have to use UUID.randomUUID() 
or BluetoothDevice.getUuids() w/ reflection in order to obtain a UUID. It 
doesn't matter if it's randomly-generated, or fetched from a remote device, 
I have to obtain a UUID from some place, don't I?
 
Below is the sectors of my application. The Accept and Connect sectors 
implement the Runnable interface.
 

http://i.imgur.com/SsWMUwR.png
It probably doesn't relate to the main problem at hand, but it shows how I 
was doing with the obtained UUID. The UUID is used in the Accept and 
Connect sectors, where it handles BluetoothServerSocket.accept() and 
BluetoothSocket.connect(), respectively.
 
*Now, summarizing the narrowed problem: What can I do in order to obtain 
the same UUID for two devices? *The code below doesn't work:
 

http://i.imgur.com/M5k0u5r.png
The variable, localData, is null after executing. What am I after? I'm 
trying to obtain the same UUID from one device (i.e.: Device #1), in which 
all other devices (i.e.: Device #2, Device #3, etc.) can also fetch after, 
and use it to connect to the first device (i.e.: Device #1).
 
 
 
 
 
 
 
 
 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Android Bluetooth: I get Connection Refused after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-07 Thread tom_mai78101
I did a Pastebin for those who don't want to download the attachment. For 
your convienence.
 
Pastebin http://pastebin.com/jFDjWTc7

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.