Monday, November 18, 2013

Android KitKat set language for Bluetooth voice dial [General]


Android KitKat set language for Bluetooth voice dial



Android KitKat set language for Bluetooth voice dial

Hi, i'm having a problem with my new Nexus 5. Please note this is my first android device.

I cant figure out how to change the input language for dialing with a bluetooth headset which is pretty annoying since most of my contacts have french names. Everything else works fine with french voice commands on the phone except for the bluetooth voice dialer which always specifies English on the top right.

Android KitKat set language for Bluetooth voice dial-bluetoothlang.jpg

Can anyone tell me how to change this? I would prefer to keep the menus un english if possible, but I have even tried removing english and setting french everywhere and it didn't change the voice dialing option.

Thank you



Read more

forum.xda-developers.com



Storage [General]


Storage



My phone is really struggling for storage so I deleted a bunch of videos and pictures worth about 150Mb. That did not make a difference at all for some reason. Anyways if I go to Settings --> Apps --> Here I see my download phone memory is almost full but my internal storage is almost empty with almost 2GB free. And is RAM has just gone to **** and is literally full. Can I remove everything for downloads if its now on my internal storage? And what can I do about the RAM? Thanks.



Read more

forum.xda-developers.com



Text inflation in Chrome on Nexus 5 [General]


Text inflation in Chrome on Nexus 5



First post and a new Android convert here, so excuse me if I at any point come across as a bit daft. Anywho...

I picked up a Nexus 5 last week and noticed that Chrome inflates text in places it shouldn't. I seems to happen on sites like Reddit or other forum/comment driven sites, with lots of text in lots of frames and elements and such. The top of the pages are fine, but after a certain point down the page everything becomes inflated. Screen cap linked to so you can see what I mean.

I haven't had the chance to play around with my phone nearly enough to confirm, but it seems to be specific to Chrome... Firefox and Opera render pages perfectly. I've reformatted the phone, made sure the OS and all apps are up to date, closed out all other apps, etc etc, to no avail. I've tried searching for an answer online, both here and elsewhere, but I can't seem to find anything. I even called Google, but the rep was a bit clueless and kept insisting it must be some kind of connectivity issue.

Anyway, it's not a huge thing, but it's annoying me to no end that I can't figure it out. Help?



Read more

forum.xda-developers.com



Adding a marker results in NullPointerException in Android [android help]


Adding a marker results in NullPointerException in Android



This is a part of my project. I am getting an arraylist of longitude and latitude from the previous class. Without the marker code, the app is working properly but when I add the marker code the app is terminating due to NullpointerException. Can anyone tell me why ?



package xyz;

import...

@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public class Route extends Activity {
GoogleMap map;
PolylineOptions polylineOptions;
ArrayList longitude,latitude;


@SuppressWarnings("unchecked")
@SuppressLint("NewApi")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.route);
map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();

double s_latitude = latitude.get(0);
double s_longitude=longitude.get(0);


/* If I add this line the app is terminating.
map.addMarker(new MarkerOptions()
.position(new LatLng(s_latitude,s_longitude))
.title("Start Point"));
*/

longitude = (ArrayList) getIntent().getSerializableExtra("Longitude");
latitude = (ArrayList) getIntent().getSerializableExtra("Latitude");

CameraUpdate center=
CameraUpdateFactory.newLatLng(new LatLng(latitude.get(0),
longitude.get(0)));
CameraUpdate zoom=CameraUpdateFactory.zoomTo(15);

map.moveCamera(center);
map.animateCamera(zoom);



polylineOptions=new PolylineOptions();

for(int i=0;i {
polylineOptions.add(new LatLng(latitude.get(i), longitude.get(i)));
}

polylineOptions.color(Color.BLUE);
polylineOptions.width(10);

polylineOptions.geodesic(false);


map.addPolyline(polylineOptions);


}
}


11-10 21:15:14.027: E/AndroidRuntime(25929): FATAL EXCEPTION: main 11-10 21:15:14.027: E/AndroidRuntime(25929): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sensordatacollector.smartrac/com.sensordatacollector.smartrac.Route}: java.lang.NullPointerException 11-10 21:15:14.027: E/AndroidRuntime(25929): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2332) 11-10 21:15:14.027: E/AndroidRuntime(25929): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2368) 11-10 21:15:14.027: E/AndroidRuntime(25929): at android.app.ActivityThread.access$600(ActivityThread.java:151) 11-10 21:15:14.027: E/AndroidRuntime(25929): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1330) 11-10 21:15:14.027: E/AndroidRuntime(25929): at android.os.Handler.dispatchMessage(Handler.java:99) 11-10 21:15:14.027: E/AndroidRuntime(25929): at android.os.Looper.loop(Looper.java:155) 11-10 21:15:14.027: E/AndroidRuntime(25929): at android.app.ActivityThread.main(ActivityThread.java:5536) 11-10 21:15:14.027: E/AndroidRuntime(25929): at java.lang.reflect.Method.invokeNative(Native Method) 11-10 21:15:14.027: E/AndroidRuntime(25929): at java.lang.reflect.Method.invoke(Method.java:511) 11-10 21:15:14.027: E/AndroidRuntime(25929): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1074) 11-10 21:15:14.027: E/AndroidRuntime(25929): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:841) 11-10 21:15:14.027: E/AndroidRuntime(25929): at dalvik.system.NativeStart.main(Native Method) 11-10 21:15:14.027: E/AndroidRuntime(25929): Caused by: java.lang.NullPointerException 11-10 21:15:14.027: E/AndroidRuntime(25929): at com.sensordatacollector.smartrac.Route.onCreate(Route.java:36) 11-10 21:15:14.027: E/AndroidRuntime(25929): at android.app.Activity.performCreate(Activity.java:5066) 11-10 21:15:14.027: E/AndroidRuntime(25929): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1102) 11-10 21:15:14.027: E/AndroidRuntime(25929): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2288) 11-10 21:15:14.027: E/AndroidRuntime(25929): ... 11 more



Read more

stackoverflow.comm



What is the befitting protocol between mobile(iphone, android) and server PHP/MySQL? [android help]


What is the befitting protocol between mobile(iphone, android) and server PHP/MySQL?



How are you?
I am developing the School-Parents Message Systems.
Here is my initial system spec.
1. School teacher create a new message on PC(by website) or Mobile(by website or mobile app).
In this point of time, the teacher can set a parents list that should be received the message.
2. Each mobile device of the parents list display the message that the teacher already created.
3. The parents can reply to the teacher concerning the message on mobile.
4. The teacher also can reply to the parents concerning the message that was replied by parents on mobile(of course the teacher can reply on PC).
The messages can be communicated between teacher-parents, teacher-pupils, teacher-teacher, parents-parents, parents-pupils, pupils-pupils.

Here is my initial development spec.
I am guessing the number of clients include teacher, parents and pupils as 200,000+.
I need to develop for the iphone and android.
I am going to use the PHP/MySQL for the development of server side.
So, I am planning to implement the server side in the following way.
I.E. All of the messages are created to the MySQL DB.
In DB may be exist the config parameter field can specify the messages such as created_date, sender, receiver, deliver_date etc.
Then a mobile device check a new message in DB regularly and display the message.
If a clients reply to the message, then the message will be send to the server and is inserted in DB.

It is my small idea.
So, what is the my questions and problems?

How can the mobile device check a new message regularly?
Probably, you might advise to use the Push Notification service.
But, I cannot use any other service.

1. What is the protocol between mobile and server?
I am guessing to use HTTP.
So, JSON or XML might be offered the data to communicate between mobile app and server.

2. How can be executed the mobile app regularly?
I hope, whenever new message is registered in our system, that should be reflected into the mobile app immediatly, not pulling regularly.

If it is impossible, so the mobile check regularly e.g. 1min or 10min or 30min, then when use HTTP, here it is my cares.
Regularly the mobile can be access to server to check a new message.
Number of clients is larger than 200,000+.
So, server always must reponse about the request from 200,000+ clients regularly(e.g. 1min or 10min or 30min).
Is it clear architecture?
I am very trouble in the server performance point of view.

If you have a good idea and excellent architecture system, please teach me.

Thanks a lot for your time.

Kind regards
Niao Jina



Read more

stackoverflow.comm



Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...