Tuesday, November 19, 2013

Samsung Galaxy-Q gets stuck on startscreen and recovery screen wont boot, HELP PLEASE. NEED PHONE! [General]


Samsung Galaxy-Q gets stuck on startscreen and recovery screen wont boot, HELP PLEASE. NEED PHONE!



Hey guys, just got a samsung galaxy-Q from a friend and shortly after recieving memory errors my phone got stuck on its startscreen so I looked online for help and it said to use the reboot option in the recovery screen but my phone wont launch it for some reason after trying over a thousand times.. PLEASE SOMEONE HELP!! I need my phone very urgently for buisness



Read more

forum.xda-developers.com



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



Sunday, November 17, 2013

How can Google make it possible to use ActionBar in Google Shopper app, which only requires a min SDK of 8? [android help]


How can Google make it possible to use ActionBar in Google Shopper app, which only requires a min SDK of 8?


android - How can Google make it possible to use ActionBar in Google Shopper app, which only requires a min SDK of 8? - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
















I'm confused with this fact, and I think some feature must require


getActionBar()


and this function requires a min SDK of 11, but how can Google make those features possible?


I wonder Google may use ActionBarSherlock, is this just the reason? But there is no mention of using it, but how can Google do this?


Thanks for your answering.





























Google is actually working on ActionBarCompat . It's basically a ActionBarSherlock from Google.
I suppose they are testing this in some apps already since they said at Google I/O that it is in an advanced state of development. I think they will release this in the next few months.
























but how can Google make those features possible?



They made their own action bar, presumably.



I wonder Google may use ActionBarSherlock, is this just the reason?



You are welcome to get a job with Google, attempt to join the Google Shopper team, and ask them.



And have anyone ever use ActionBarSherlock on Android 2.2, plz tell me if it can make things just as well as ActionBar?



ActionBarSherlock definitely supports Android 2.2.




















default






Read more

stackoverflow.comm



Admob in xml not showing in Linear [android help]


Admob in xml not showing in Linear


android - Admob in xml not showing in Linear - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
















i am implementing admob on my app it appears when the parent is in relative layout but i must not use the alignparentbottom so i am changing it to linear but it doesnt show when i change it to linear..


any tips? help? thanks in advance


here it is in xml:




android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

android:id="@+id/banner_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content" >

android:id="@+id/offline_banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@color/black"
android:src="@drawable/offline_banner" />

xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
ads:adSize="SMART_BANNER"
ads:adUnitId="@string/unit_id"
ads:loadAdOnCreate="true" />

android:id="@+id/fragmentContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content" />



i want the admob to be at the bottom part of the screen without using the alignparentbottom of relative layout


thanks~



















lang-xml






Read more

stackoverflow.comm



Listview not showing on orientation Change [android help]


Listview not showing on orientation Change



I have previously done a listview and the list is being displayed whether in landscape or portrait orientation. However, in my new app, when I decide to change orientation, whether landscape to portrait or vice versa, it does not load again. I am trying to populate the listview with items from sqlite database. Here is my code:


Attractions.java



public class Attractions extends ListActivity {
DataBaseHandler db = new DataBaseHandler(this);
ArrayList imageArry = new ArrayList();
ContactImageAdapter adapter;
int ctr, loaded;
int [] landmarkImages={R.drawable.oblation,R.drawable.eastwood,R.drawable.ecopark,R.drawable.circle};
String []landmarkDetails = { "Oblation", "Eastwood", "Ecopark", "QC Circle"};

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_attractions);
ctr = db.checkContact(landmarkDetails[loaded]);
db.deleteAll();


// get image from drawable

/**
* CRUD Operations
* */
// Inserting Contacts
Log.d("Insert: ", "Inserting ..");


for(loaded=0; loaded
Bitmap image = BitmapFactory.decodeResource(getResources(),
landmarkImages[loaded]);

// convert bitmap to byte
ByteArrayOutputStream stream = new ByteArrayOutputStream();
image.compress(Bitmap.CompressFormat.JPEG, 100, stream);
byte imageInByte[] = stream.toByteArray();
Log.d("Going to load images", "Image "+ loaded);

Log.d("Goind to load objects", "loading");

if(ctr == 0){
Log.d("Nothing Loaded", "Loading Now");
db.addContact(new Contact(landmarkDetails[loaded], imageInByte));}
Log.d(landmarkDetails[loaded], "Loaded!");
image.recycle();
}


// Reading all contacts from database
List contacts = db.getAllContacts();
for (Contact cn : contacts) {
String log = "ID:" + cn.getID() + " Name: " + cn.getName()
+ " ,Image: " + cn.getImage();

// Writing Contacts to log
Log.d("Result: ", log);
//add contacts data in arrayList
imageArry.add(cn);

}
adapter = new ContactImageAdapter(this, R.layout.screen_list,
imageArry);
ListView dataList = (ListView) findViewById(android.R.id.list);
dataList.setAdapter(adapter);
}


UPDATE


I ran the app on portrait mode: list present, when switched to landscape: does not display anything. I switch to portrait again: list present again.



Read more

stackoverflow.comm



Linking to image in sdcard PhoneGap [android help]


Linking to image in sdcard PhoneGap



I have a saved image in android "mnt/sdcard/offlineImages" folder. The image is named img_0.jpg.


Now I want to display this image on a html page via javascript.


I tried the following two cases.


CASE ONE WHICH WORKS.



html


javaScript
document.getElementById('anImg').src = "file:///mnt/sdcard/offlineImages/img_0.jpg";


CASE TWO, WHICH DOESN'T WORK.



html


javascript
var anImg = new Image();
anImg.src = "file:///mnt/sdcard/offlineImages/img_0.jpg";
document.getElementById("img_wrap").appendChild(anImg);


Read more

stackoverflow.comm



Wednesday, November 13, 2013

My Phone Won't Start - Lg Gt540 [General]


My Phone Won't Start - Lg Gt540



I was installing a new version of my Andoind with LGMobile Support Tool but after the update the mobile phone was stuck on the android logo, I took out the battery for a bit, and then turn on and still on the android logo.
I tried to update again with KDZ_FW_UPD.exe and after finish the updated the phone didn't start again, doesn't show anything. When i try to turn on the phone it only vibrates and when i try to connect to the pc, I only hear that sound when something connects to the laptop. What should I do? help



Read more

forum.xda-developers.com



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...