Tuesday, April 30, 2013

[General] airplane mode


Hello, can you provide a little more details of your situation ?

Phone, carrier, are you rooted or stock?

Things leading up to this happening..

Thank you.



.

forum.xda-developers.com

[General] Having an issue with my Droid Citrius


I'm not a battery expert, but I think when it's dead, it's dead. I was going to suggest that you try a different charging cable, but your original post mentioned that you tried several different chargers, so if that's the case, it isn't a cable problem. It could be the charging port on the phone, but if that were the case, then you're probably better off getting a new phone rather than paying to repair it. If you know someone else with the same phone, you could always try to swap batteries and see if it will charge up on the other person's phone, which would strongly suggest a problem with your charge port.



.

forum.xda-developers.com

[General] iTunes DRM "protected" Songs and Movies - help!


I have a chunk of songs and about 8 movies with the "protected" drm on it....

ive searched but mostly find apps for windows, im on a mac... how can i convert or strip the drm to allow me to play these on my samsung galaxy s4?



.

forum.xda-developers.com

[General] Getting Volume Keys to Wake the Screen


I bought a Cobalt SP300 on eBay and one of its faults is that the power button on top is a little shallow and hard to push...unfortunately it's the only way to wake the screen. I really want to use the volume keys to wake up the screen. I've tried a button remapper app (didn't work correctly) and tried an app called No Lock which disables the lock screen and allows you to wake the screen with the volume keys. The problem with it is that it only works like 10% of the time and I like the lock screen as well.

I think my only other option at this point is to manually try to edit the files. I found out how to root my phone and then through root explorer went to system/usr/keylayout and there is a file I think maps the buttons: mt6575-kpd.kl

I find




key 115 VOLUME_UP WAKE_DROPPED

key 114 VOLUME_DOWN WAKE_DROPPED

key 113 MUTE WAKE_DROPPED

key 112 POWER WAKE

So I see the volume keys say WAKE_DROPPED instead of just wake. According to a search I did by what the dropped part means, it should still wake the screen but it doesn't. Would it be sensible to edit these to only wake? Do I chance bricking my phone doing this? I tried to backup my phone using MTKDroidTools but I can't get the backup function to work...


.

forum.xda-developers.com

[General] Gmail App Notifications - Menu Button Missing


Hi

Im brand new to Android - just got myself an S3 i9305 this afternoon

Im having an issue with my gmail notifications. I still want to receive gmail notifications on my home screen (the app icon where the image shows how many emails) however I dont want it to play a sound.

I googled how to remove the sound, but all the walk throughs start with tapping a 'menu' button (three vertical square dots) at the bottom left in the gmail app. I dont see this menu button - see image below

Any ideas why?



.

forum.xda-developers.com

[android help] List View Item row click Caused by: java.lang.NumberFormatException


I am writing a Cart App in which i need to open that particular item in an activity, which has been clicked by the user in List View.


I am using two different activities, one to show selected Item(s) in a List View namely CartActivity.java and second to show any of the selected item in another activity namely ProductInformationActivity.java


I have written code to call that particular item in an activity, which has been selected by user, in a List View of CartActivity.java


CartAdapter.java:



public View getView(final int position, View convertView, ViewGroup parent) {
// TODO Auto-generated method stub
View vi = convertView;
if (convertView == null)
vi = inflater.inflate(R.layout.listrow_cart, null);
vi.setClickable(true);
vi.setFocusable(true);
vi.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v)
{
HashMap prod = new HashMap();
prod = Constants.mItem_Detail.get(position);
Intent mViewCartIntent = new Intent
(activity,ProductInformationActivity.class);
mViewCartIntent.putExtra("product", prod);
activity.startActivity(mViewCartIntent);
}
});


ProductInformationActivity.java:



public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.information_product);

// below is the line number 77

itemamount = Double.parseDouble(text_cost_code.getText().toString());
txt_total.setText(Double.toString(itemamount));
edit_qty_code.addTextChangedListener(new TextWatcher() {


But whenever i do click on any of the item in a ListView, i am not getting that particular item in ProductInformationActivity.java, getting an Error message that says : Force Close Logcat Says:



04-30 14:37:10.073: E/AndroidRuntime(273): FATAL EXCEPTION: main
04-30 14:37:10.073: E/AndroidRuntime(273): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.era.restaurant.versionoct/com.era.restaurant.versionoct.menu.ProductInformationActivity}: java.lang.NumberFormatException:
04-30 14:37:10.073: E/AndroidRuntime(273): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
04-30 14:37:10.073: E/AndroidRuntime(273): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
04-30 14:37:10.073: E/AndroidRuntime(273): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
04-30 14:37:10.073: E/AndroidRuntime(273): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
04-30 14:37:10.073: E/AndroidRuntime(273): at android.os.Handler.dispatchMessage(Handler.java:99)
04-30 14:37:10.073: E/AndroidRuntime(273): at android.os.Looper.loop(Looper.java:123)
04-30 14:37:10.073: E/AndroidRuntime(273): at android.app.ActivityThread.main(ActivityThread.java:4627)
04-30 14:37:10.073: E/AndroidRuntime(273): at java.lang.reflect.Method.invokeNative(Native Method)
04-30 14:37:10.073: E/AndroidRuntime(273): at java.lang.reflect.Method.invoke(Method.java:521)
04-30 14:37:10.073: E/AndroidRuntime(273): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-30 14:37:10.073: E/AndroidRuntime(273): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-30 14:37:10.073: E/AndroidRuntime(273): at dalvik.system.NativeStart.main(Native Method)
04-30 14:37:10.073: E/AndroidRuntime(273): Caused by: java.lang.NumberFormatException:
04-30 14:37:10.073: E/AndroidRuntime(273): at org.apache.harmony.luni.util.FloatingPointParser.parseDouble(FloatingPointParser.java:267)
04-30 14:37:10.073: E/AndroidRuntime(273): at java.lang.Double.parseDouble(Double.java:287)
04-30 14:37:10.073: E/AndroidRuntime(273): at com.era.restaurant.versionoct.menu.ProductInformationActivity.onCreate(ProductInformationActivity.java:77)
04-30 14:37:10.073: E/AndroidRuntime(273): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-30 14:37:10.073: E/AndroidRuntime(273): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
04-30 14:37:10.073: E/AndroidRuntime(273): ... 11 more


.

stackoverflow.comm

[android help] Add Custom Layer in Google maps v2 in Android


I want to create a custom Layer(Like traffic , etc in google maps v2) in Google maps, which will show some geo points that I will given to mapview. Is there any possibility of implementing this in google maps with the new API ?? If so please provide some methods and code samples.


Thanks



.

stackoverflow.comm

[android help] android:background don't work except for overview


I work on an Android application, and I just try to put a background on an empty activity by way of welcome in the application. In the overview of the xml file, the image is displayed, but when i try the app on the emulator or on my phone, she's not displayed. They have no error, I don't understand. Can someone help me please ?



public class MainActivity extends Activity {

private SQLiteDatabase db;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

Intent i = new Intent(this, ListeContact.class);
try
{
Thread.sleep(3000);
}
catch (InterruptedException e)
{
e.printStackTrace();
}
startActivity(i);
this.finish();
}
}


activity_main.xml :




android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/fond">



P.S. My image named fond.png is on 5 folder named drawable-hdpi, drawable-ldpi, drawable-mdpi, drawable-xdpi and drawable-xxdpi.



.

stackoverflow.comm

[android help] "Unable to open log device '/dev/log/main': No such file or directory"


I am new to Android development and bought a cheap Huawei Sonic (U8650 apparently) so I could test my first attempts at making an app on an actual device.


However, whenever I try to use 'adb logcat' or 'adb shell' then 'logcat' on the device I get:



Unable to open log device '/dev/log/main': No such file or directory


I have already enabled Usb debugging in Settings -> Developer.


I just don't know enough about Android to know if this is something I can even fix.


I have found two other questions with similar problems:


/dev/log/main not found


??-?? ??:??:??.???: INFO/(): Unable to open log device '/dev/log/main': No such file or directory


...but they both turned out to be using some kind of non standard kernel that had logging disabled. Mine is a stock phone out of the box.


It's a very cheap but snappy Android 2.3 phone, so hopefully it wasn't a total waste of money.


Any help would be greatly appreciated.



.

stackoverflow.comm

[android help] Android Google Analytics V2 myTracker


I would like to track a view in my Android application using Manual Screen Tracking. I read here https://developers.google.com/analytics/devguides/collection/android/v2/screens that I need to use this code:



myTracker.trackView("Home Screen");


But Eclipse shows an error (myTracker cannot be resolved) when I use it.


I have no trouble with EasyTracker.



import com.google.analytics.tracking.android.EasyTracker;

EasyTracker.getInstance().activityStart(this);


.

stackoverflow.comm

[android help] Change MapView in GoogleMaps v2 with a checkbox on Android


I can't change the map type on my Android Application, everything work fine but this feature is not.


This is a part of the MapActivity class



public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN );
this.locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
mMapFragment = MapFragment.newInstance();
setContentView(R.layout.activity_map_fabio);
options.mapType(GoogleMap.MAP_TYPE_NORMAL)
.compassEnabled(true)
.scrollGesturesEnabled(true)
.zoomGesturesEnabled(true)
.tiltGesturesEnabled(true);
MapFragment.newInstance(options);
mMap = ((SupportMapFragment) getSupportFragmentManager()
.findFragmentById(R.id.map)).getMap();
android.app.FragmentTransaction fragmentTransaction =
getFragmentManager().beginTransaction();
fragmentTransaction.add(R.id.map, mMapFragment);

fragmentTransaction.commit();

satellite = (CheckBox) findViewById(R.id.satellite);
satellite.setOnCheckedChangeListener(new OnCheckedChangeListener(){
@Override
public void onCheckedChanged(CompoundButton buttonView,
boolean isChecked) {
if (satellite.isChecked()){
mMap.getUiSettings().setAllGesturesEnabled(true);
options.mapType(GoogleMap.MAP_TYPE_SATELLITE);
}
}
});


The check is listened but the map doesn't change the view.



.

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