Wednesday, June 5, 2013

[General] where did my texts go?


where did my texts go?



So I just converted from the iPhone world to the new galaxy s4. I just noticed in a group text that my phone doesnt hold onto many messages like my iPhone did. Is there a way to turn this auto delete off or a setting I change to hold onto convos?



.

forum.xda-developers.com

[General] 20MB of RAM left! Phone is on a crashing spree!!


20MB of RAM left! Phone is on a crashing spree!!



My Samsung Galaxy Express keeps crashing. I cannot use my phone without my phone restarting every 15-30 minutes. It happens during phone calls too!
Especially when I try to use the Samsung keyboard, I have to wait anywhere between 2 minutes to 20 minutes for it to load. (20 minutes is if the phone crashes, restarts one or two times).

I have gone into task manager and cleared applications. Only 4 applications running? And it only brings it down to 40MB left of RAM. I am Sick of Android right now, I do not understand why my apps will not load without crashing my phone. I do not play Games. I only have social networking and a music player that was reloaded. I did a hard back up (clearing my phone to factory and restarting) and it did not even help.

For some reason in the application manager all of my running apps are always "Restarting" ALL OF THEM!

what is going on with my phone???



.

forum.xda-developers.com

[General] Charging / charger question I've never seen before


Charging / charger question I've never seen before



(Also posted in my usual hangout, the HTC One forums)

Maybe it has been asked, but I've never seen it, and I spend a LOT of hours every week (way too many) on tech blogs and message boards. So forgive me if I've just missed it.

Most experts and tech enthusiasts agree that OEM chargers are typically better than "cheap, import knockoffs". I've seen studies as to the cleanness, stability, and performance of the electrical current provided by the chargers of respected OEM brands, like Apple, Samsung, Motorola, HTC, etc. What I HAVEN'T seen and don't know is this: does the micro USB cable have anything to do with this quality, or is it merely the charging block/transformer?

So as with HDMI cables, are all micro USB "cables" the same, meaning they either work (carry the charge) or don't? (One reason I ask is I may prefer to use a longer/different cable but with the OEM charger.)



.

forum.xda-developers.com

[General] Battery life and Bluetooth


Battery life and Bluetooth



Hi there!
I just bought the S4 a couple of days ago (moved on from my iphone 4, so still very much learning).
I've found that the battery drains so fast, so with doing some research I ended up going to settings > battery, and found that although my bluetooth is turned off, it's still the first on the list of battery consumption at 37%... I'm assuming that the battery is draining so fast because of the blue tooth, but at the same time I've checked and it is turned off. What am I missing here?? (Battery went from 100% to 13% in about 6 hours and all I did was send and receive a couple of texts!!!)
Thanks in advance!!



.

forum.xda-developers.com

[android help] asynctask download file network connection drop


asynctask download file network connection drop



I have an application that downloads multiple files (and checks the download speed) within an Asynctask. However, when I am connected to 3G (and there is a handover) or the device switches form WiFi to 3G, my application freezes and I can not handle this problem



@Override
protected Integer doInBackground(String... sUrl) {

try {
speed=0; //initial value
int i=0;
while ((i


URL url = new URL(sUrl[i]);
URLConnection connection = url.openConnection();
connection.setReadTimeout(10000);
connection.connect();

int fileLength = connection.getContentLength();

// download the file
InputStream input = new BufferedInputStream(url.openStream());
OutputStream output = new FileOutputStream(file);

byte data[] = new byte[1024*1024]; //1MB buffer
long total = 0;
int count;
long start = System.currentTimeMillis();
while ((count = input.read(data)) != -1) {
total += count;

publishProgress((int) (total * 100 / fileLength));
output.write(data, 0, count);
}
long finish = System.currentTimeMillis();
long tempSpeed= (fileLength *8)/(finish-start);
if (tempSpeed>speed) {
speed=tempSpeed;
}


output.flush();
output.close();
input.close(); // connection is closed
i++;
}
}catch(SocketTimeoutException e) {
exceptions.add(e);
messageProgressDialog.setCancelable(true);
AlertDialog alertDialog;
alertDialog = new AlertDialog.Builder(gui.getActivity()).create();
alertDialog.setTitle("Network problem");
alertDialog.setMessage("connection dropped");
alertDialog.show();
} catch (IOException e) {
exceptions.add(e);
messageProgressDialog.setCancelable(true);
AlertDialog alertDialog;
alertDialog = new AlertDialog.Builder(gui.getActivity()).create();
alertDialog.setTitle("IOException");
alertDialog.setMessage("IOException error");
alertDialog.show();
} catch(Exception e) {
exceptions.add(e);
AlertDialog alertDialog;
alertDialog = new AlertDialog.Builder(gui.getActivity()).create();
alertDialog.setTitle("Exception");
alertDialog.setMessage("Exception error");
alertDialog.show();
}


return 1;
}


I have read many topics on stackoverflow, however none of them could help me solve the prolem I have with my application. I have the try/catch clause, but it doesn't seem to make a difference. When I am using 3G and the phone connects to annother antenna, or there is a network problem the application freezes. What can I do ?



.

stackoverflow.comm

[android help] The latest com.google.android.gms for google play services revision 6


The latest com.google.android.gms for google play services revision 6


The latest com.google.android.gms for google play services revision 6 - 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 was running my Android Google Maps application using Google Play services revision 5 and it worked well...


I updated my Google Play services from revision 5 to revision 6 and now it won't run and produces this warning:



Google Play services out of date. Requires 3027100 but found 3025110


Any idea where I can find the latest com.google.android.gms.apk file to meet the requirement?


























I did the same thing :(


Here is how to solve it by rolling back: Uninstall Google Play Services 6 then download Google Play Services 5 here http://venomvendor.blogspot.com/2012/03/android-sdk-extras-by-google-inc.html and put it under /extras/google/google-play-services


FYI I also need to install



adb install -r com.android.vending-1.apk


adb install -r com.google.android.gms-3025110-v3.0.25\ (583950-10).apk



for my Google Maps app to work on my emulator...


Rebuild your apk using Google Play Services 5.


























If you are running this on a real device then you would need to update the Google play services via the Google play store. This actually should be done automatically but you can speed up the process by doing it manually through the store.


If you are running this on a "modified" AVD(were you installed the Google play services manually). then you would need to install a new set of files.






















I can't running my maps on my emulator use this version... I use android 4.0.3. any other solution?




















default






.

stackoverflow.comm

[android help] Hosting MySQL DB Options for Android App


Hosting MySQL DB Options for Android App



I have a mobile app that stores data to a database on the device.


I am looking to have a MySQL db in the cloud that the app can sync with to either upload or retrieve data.


I am searching online and there are many companies/sites that provide hosting. Can anyone recommend a trusted hosting service to use for db hosting? Something inexpensive, but reliable?


Thanks



.

stackoverflow.comm

[android help] Can't get authorized on Google Maps API v2


Can't get authorized on Google Maps API v2



I'm getting this error in logcat when the map display is attempted with V2 Map API for Android. I am out of things to try to get this working in debug mode on a device...


06-03 18:19:52.696: E/Google Maps Android API(16341): Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map. 06-03 18:19:52.696: E/Google Maps Android API(16341): Ensure that the following correspond to what is in the API Console: Package Name: com.singlemind.djscorner, API Key: AIzaSyBBUocrLHFpOVjttAZyhTNJgI3tqRMhqOM, Certificate Fingerprint: 1158996B095913AEB556F4574702395943225423


Those values are exactly what I input to the Google API Console. To create the certificate used, I removed debug.keystore and allowed Eclipse to generate a new one. I then copied that file to another location and renamed it to test.keystore and configured Eclipse to use it as a custom debug keystore.


manifest.xml:




package="com.singlemind.djscorner"
android:versionCode="1"
android:versionName="1.0" >

android:minSdkVersion="11"
android:targetSdkVersion="17" />
android:name="com.singlemind.djscorner.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />

android:glEsVersion="0x00020000"
android:required="true" />











/>

android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
android:name="com.singlemind.djscorner.activity.LaunchVideoActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >






android:name="com.singlemind.djscorner.activity.MainActivity"
android:label="@string/app_name"/>
android:name="com.singlemind.djscorner.activity.AtomicActivity"
android:theme="@style/AppBaseTheme" />



android:name="com.singlemind.djscorner.util.LocalService"
android:enabled="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" />

android:name="com.singlemind.djscorner.network.JsonSpiceService"
android:exported="false" />

android:name="com.octo.android.robospice.JacksonSpringAndroidSpiceService"
android:exported="false" />
android:name="com.octo.android.robospice.spicelist.BigBinarySpiceService"
android:exported="false" />
android:name="com.singlemind.djscorner.network.ListTweetSpiceService"
android:exported="false" />
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyBBUocrLHFpOVjttAZyhTNJgI3tqRMhqOM" />





Fragment layout:



android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.google.android.gms.maps.SupportMapFragment"
/>


I've followed https://developers.google.com/maps/documentation/android/start to the letter.



.

stackoverflow.comm

[android help] the application has stopped unexpectedly please try again in android


the application has stopped unexpectedly please try again in android



I am new in android platform. I got a problem. When I run my application, I have error "Application has stopped unexpectedly"


I try some solution, but I don't get it and it's still not working.


Can somebody help me?


My code



package com.example.popup;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;


public class PopSMSActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// no need for XML layouts right now
// we will use a dialog instead
//setContentView(R.layout.main);

// retrieve Serializable sms message object
// by the key "msg" used to pass it
Intent in = this.getIntent();
PopMessage msg = (PopMessage) in.getSerializableExtra("msg");

// Case where we launch the app to test the UI
// i.e. no incoming SMS
if(msg == null){
msg = new PopMessage();
msg.setSender("0123456789");
msg.setTimestamp( System.currentTimeMillis() );
msg.setBody(" this is a test SMS message!");
}
showDialog(msg);
}

private void showDialog(PopMessage msg){

final String sender = msg.getSender();
final String body = msg.getBody();

final String display = sender + "\n"
+ msg.getShortDate( msg.getTimestamp() )+ "\n"
+ body + "\n";

// Display in Alert Dialog
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(display)
.setCancelable(false)
.setPositiveButton("Reply", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
// reply by calling SMS program
// smsReply(sender, body);
}
})
.setNegativeButton("Close", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
// go back to the phone home screen
// goHome();
}
});
AlertDialog alert = builder.create();
alert.show();
}


}


PopUpAct



package com.example.popup;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.SmsMessage;

public class PopUpAct extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
Bundle bundle = intent.getExtras();

//get the sms received
Object[] pdus = (Object[]) bundle.get("pdus");
SmsMessage[] msgs = new SmsMessage[pdus.length];

String smsSender = "";

String smsBody = "";

long timestamp = 0L;

for (int i=0; i msgs[i] = SmsMessage.createFromPdu((byte[])pdus[i]);
smsSender += msgs[i].getOriginatingAddress();
smsBody += msgs[i].getMessageBody().toString();
timestamp += msgs[i].getTimestampMillis();
}

intent.putExtra("sender",smsSender);
intent.putExtra("body", smsBody);
intent.putExtra("timestamp",timestamp);


PopMessage pop_msg = new PopMessage();

intent.setClass(context, PopSMSActivity.class);
intent.setFlags(intent.FLAG_ACTIVITY_NEW_TASK);

intent.putExtra("msg", pop_msg);
context.startActivity(intent);
}

}


PopMessage



package com.example.popup;

import java.io.Serializable;
import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.GregorianCalendar;

public class PopMessage implements Serializable{
private String sender;
private String body;
private long timestamp;

public String getSender() {
return sender;
}

public void setSender(String sender) {
this.sender = sender;
}

public String getBody() {
return body;
}

public void setBody(String body) {
this.body = body;
}

public long getTimestamp() {
return timestamp;
}

public void setTimestamp(long timestamp) {
this.timestamp = timestamp;
}

public String getShortDate(long timestamp){
Date date = new Date(timestamp);
Calendar cal = new GregorianCalendar();
SimpleDateFormat sdf = new SimpleDateFormat("E MMM dd hh:mmaa");
sdf.setCalendar(cal);
cal.setTime(date);
return sdf.format(date);
}

}


thi is the log



06-04 08:14:38.387: E/AndroidRuntime(285): FATAL EXCEPTION: main
06-04 08:14:38.387: E/AndroidRuntime(285): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.popup/com.example.popup.PopUpAct}: java.lang.ClassCastException: com.example.popup.PopUpAct
06-04 08:14:38.387: E/AndroidRuntime(285): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
06-04 08:14:38.387: E/AndroidRuntime(285): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
06-04 08:14:38.387: E/AndroidRuntime(285): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
06-04 08:14:38.387: E/AndroidRuntime(285): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
06-04 08:14:38.387: E/AndroidRuntime(285): at android.os.Handler.dispatchMessage(Handler.java:99)
06-04 08:14:38.387: E/AndroidRuntime(285): at android.os.Looper.loop(Looper.java:123)
06-04 08:14:38.387: E/AndroidRuntime(285): at android.app.ActivityThread.main(ActivityThread.java:4627)
06-04 08:14:38.387: E/AndroidRuntime(285): at java.lang.reflect.Method.invokeNative(Native Method)
06-04 08:14:38.387: E/AndroidRuntime(285): at java.lang.reflect.Method.invoke(Method.java:521)
06-04 08:14:38.387: E/AndroidRuntime(285): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
06-04 08:14:38.387: E/AndroidRuntime(285): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
06-04 08:14:38.387: E/AndroidRuntime(285): at dalvik.system.NativeStart.main(Native Method)
06-04 08:14:38.387: E/AndroidRuntime(285): Caused by: java.lang.ClassCastException: com.example.popup.PopUpAct
06-04 08:14:38.387: E/AndroidRuntime(285): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
06-04 08:14:38.387: E/AndroidRuntime(285): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
06-04 08:14:38.387: E/AndroidRuntime(285): ... 11 more


.

stackoverflow.comm

[android help] CloudBackendAndroidClient error on Android at runtime


CloudBackendAndroidClient error on Android at runtime


java - CloudBackendAndroidClient error on Android at runtime - 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.

















Using Mac OSX 10.8.3 and Eclipse ADT with Android SDK to follow the Google Cloud Platform tutorial (https://developers.google.com/cloud/samples/mbs/getting_started). When the client app is deployed to a Nexus 4 (4.2.2), the app is started, it fails with the error "Unfortunately, CloudBackendAndroidClient has stopped." In Eclipse LogCat I see the errors as copied below. Any hints? As the tutorial mentions, this code is supposed to just work with only one line in Consts.java file being edited.


06-03 21:20:39.225: E/AndroidRuntime(7896): FATAL EXCEPTION: main 06-03 21:20:39.225: E/AndroidRuntime(7896): java.lang.NoClassDefFoundError: com.google.cloud.backend.android.GCMIntentService 06-03 21:20:39.225: E/AndroidRuntime(7896): at com.google.cloud.backend.android.CloudBackendAsync.(CloudBackendAsync.java:71) 06-03 21:20:39.225: E/AndroidRuntime(7896): at com.google.cloud.backend.android.CloudBackendMessaging.(CloudBackendMessaging.java:47) 06-03 21:20:39.225: E/AndroidRuntime(7896): at com.google.cloud.backend.android.CloudBackendActivity.onCreate(CloudBackendActivity.java:75) 06-03 21:20:39.225: E/AndroidRuntime(7896): at com.google.cloud.backend.android.sample.guestbook.GuestbookActivity.onCreate(GuestbookActivity.java:60) 06-03 21:20:39.225: E/AndroidRuntime(7896): at android.app.Activity.performCreate(Activity.java:5104) 06-03 21:20:39.225: E/AndroidRuntime(7896): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080) 06-03 21:20:39.225: E/AndroidRuntime(7896): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144) 06-03 21:20:39.225: E/AndroidRuntime(7896): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230) 06-03 21:20:39.225: E/AndroidRuntime(7896): at android.app.ActivityThread.access$600(ActivityThread.java:141) 06-03 21:20:39.225: E/AndroidRuntime(7896): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234) 06-03 21:20:39.225: E/AndroidRuntime(7896): at android.os.Handler.dispatchMessage(Handler.java:99) 06-03 21:20:39.225: E/AndroidRuntime(7896): at android.os.Looper.loop(Looper.java:137) 06-03 21:20:39.225: E/AndroidRuntime(7896): at android.app.ActivityThread.main(ActivityThread.java:5041) 06-03 21:20:39.225: E/AndroidRuntime(7896): at java.lang.reflect.Method.invokeNative(Native Method) 06-03 21:20:39.225: E/AndroidRuntime(7896): at java.lang.reflect.Method.invoke(Method.java:511) 06-03 21:20:39.225: E/AndroidRuntime(7896): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 06-03 21:20:39.225: E/AndroidRuntime(7896): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 06-03 21:20:39.225: E/AndroidRuntime(7896): at dalvik.system.NativeStart.main(Native Method)
















Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.










lang-java






.

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