Saturday, April 13, 2013

[General] Help with LG Optimus Zip Straight Talk phone


I have had my phone for over 6 months this morning i got up and it says the Blank SD Card!! How do i fix it, i know my pics and stuff are in there and were fine last night. My apps are all gone also.



.

forum.xda-developers.com

[General] Am I Eff'ed? Cyanrogenmod recovery phone brick?


Hey guys I'm new to the forums so if you can keep the flames to a minimum that would be appreciated, its been a tough day.

That being said I am in a tight spot here. I really need my phone to be working right now and for some reason it crapped out on me.

I have a Samsung galaxy S II (Skyrocket or SGH i757, whichever is correct) with CyanogenMod installed. It had been acting strangely and was quite slow lately, probably due to the ridiculous amount of apps i had cluttering the memory. So I decided to try and boot to recovery to see if there was any memory wipe option. I held down the power button until the menu presented itself, chose reboot and selected recovery.

The phone turned off alright, but upon trying to reboot the only thing that appears is the "Samsung" screen then nothing but black. I tried then to drop the battery out and reboot. Nothing. Hard boot. Nothing. Even when the phone is off and i plug it in to charge, the charge screen will appear momentarily then disappear. I cant get into ANYTHING

So..... is it somehow bricked? Just from a reboot?

I have been searching the net and these forums for a while now and haven't found anyone with the same problem. Again, I cannot boot into ANY mode nor will ANYTHING appear on the screen for more than a moment. Is there anything I can do?

Sam



.

forum.xda-developers.com

[General] Old Droid X, now what?


I have a Droid X that is no longer in use as a phone, I switched to an iPhone on my renewal. Nothing against Android, it's just that the iPhone fits my device needs better. However, I don't want to let the Droid go to waste. So, I was thinking I'd do a factory reset and set it up as a "set top box" for online content to my TV and/or get an OBDII reader and GPS software for it and use it as a multifunction car computer (navigation and diagnostic code reader).

So today, I went into the device settings and did a factory reset. Now I'm stuck on the phone activation screen. I cannot activate it as a phone, because I'm not using it as a phone anymore. So now what?

It's running the latest (and last?) firmware available for it via Verizon, 2.3.4. I am now not afraid to try re-rooting and/or custom roms on it, as it is a spare device. If it bricks, I've lost nothing. Where do I start?



.

forum.xda-developers.com

[General] Help finding calender app?


I could not find the proper section to post this so ill post it here. In looking for a free app like cozi that is on android and I phone. Basically I looking for a calender app for me and my gym buddies that we could all share and update to let each other in the group know when they are going to the gym and what body part. I would use cozi but I already use it for my family thing and I don't want to keep loving in and out.
Thanks guys

Sent from my EVO LTE using Tapatalk 2



.

forum.xda-developers.com

[android help] Android ALTER SQL databese - unable to open/read Desktop PC


After using ALTER TABLE to add column to table I was unable to open the db under Windows using many SQLite editors or browsers. Seems the problem is with the SQLite ver. that they support.


Is there tool that can open db that was modified with ALTER TABLE?



.

stackoverflow.comm

[android help] Android ArrayIndexOutOfBoundsExeption When Viewing Image

arrays - Android ArrayIndexOutOfBoundsExeption When Viewing Image - Stack Overflow




















I have a simple app that when you click on an image from a GridView, a Dialog pops up with a Button that says View. When you click the Button, I want to view the image that has been clicked in the gallery. I can get this to work without a problem when I have the app navigate to the gallery without a dialog, but I need it to hit a dialog first. The error my LogCat is returning Java.lang.ArrayIndexOutOfBoundsExeption. Any ideas as to what I need to do to get this to viewing the image? Below is my code.



public void onClick(View v) {
Dialog dia = new Dialog(ViewGrid.this);
dia.setContentView(R.layout.viewimage);
dia.setTitle("What To Do?");
dia.show();
dia.setCancelable(true);
Button button = (Button)dia.findViewById(R.id.viewImage);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
int id = v.getId();
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("file://" + arrPath[id]), "image/*");
startActivity(intent);
}
});
}




























Not sure but I believe dia.show(); should be called at the very last - i.e after view.setOnClickListener.























From where did this ArrayIndexOutOfBoundsException get thrown? I'm assuming it's thrown when you access arrPath[i]. How do you figure that the view's id should be an index into arrPath? That seems to be the problem.




















default







.

stackoverflow.comm

[android help] Why use HandlerThread in Android

Why use HandlerThread in Android - Stack Overflow




















In android , Handler can be used to post / handle message, if I don't use a HandlerThread (pass its Looper to Handler), does that mean in this case Handler use MainThread (UI Thread) 's Looper ?


What result will get if Handler uses MainThread's Looper ? May cause mainThread blocked ?


























As Doc says :



Handy class for starting a new thread that has a looper.
The looper can then be used to create handler classes.
Note that start() must still be called.



HanderThread class inherits from the Thread class, which encapsulates the Looper object, so that we do not care The Looper open and release details. Like in case of normal thread we need to use Looper.prepare() and Looper.loop() to convert it as a LooperThread.























default







.

stackoverflow.comm

[android help] java.net.SocketException: Address family not supported by protocol in android emulator


I am trying to run simple application to access internet from android emulator and here is my code. I am behind proxy and configured proxy settings in emulator by"...Wireless Networks -> APN -> ..." . But internet is working from browser and not from application.



HttpURLConnection connection = null;
String URLName = "http://www.google.com";

try {
URL u = new URL(URLName);
connection = (HttpURLConnection) u.openConnection();
connection.setRequestMethod("HEAD");
int code = connection.getResponseCode();
Log.d(TAG1, " " + code);
// You can determine on HTTP return code received. 200 is success.
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Log.d(TAG1, e.toString());
}

finally {
if (connection != null) {
connection.disconnect();
}
}


The part of error log in Logcat is as follows:


01-11 01:01:26.308: DEBUG/SntpClient(72): request time failed: java.net.SocketException: Address family not supported by protocol


01-11 01:02:39.909: WARN/System.err(422): java.net.SocketException: The operation timed out


I tried the following options after searching in forum but none of them seems working:



  1. In android launch options I used -http-proxy server:port -dns-server server




  2. I have included internet permissions in manifest file


    uses-permission android:name="android.permission.INTERNET"


    uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"




  3. Set the system properties to use ipv4 stack after someone suggested



    java.lang.System.setProperty("java.net.preferIPv4Stack", "true");
    java.lang.System.setProperty("java.net.preferIPv6Addresses", "false");


I am working on Android 2.2 and windows vista, can you please help me here...



.

stackoverflow.comm

[android help] How to keep GPS turned on when switching between activities but off when when "home" is pressed

android - How to keep GPS turned on when switching between activities but off when when "home" is pressed - Stack Overflow




















I am trying to figure out the best way to implement Listener to location with the onResume and onPause. Best I can do not it to turn it off on onPause and reconnect on onResume. But then I keep having disconnect-reconnect when all I want is for the GPS to stay on for the duration of the application. When Home is pressed (or another application is interrupting) then GPS can be downed off for battery saving.


Any ideas?


Thanks.
















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










default







.

stackoverflow.comm

[General] Help - Making the Transition to Cloud / Streaming Media


Get a Chromebook!

Seriously though, you have to find services that work for you. I buy a lot of my content through Amazon. It's where I have all my mp3s and ebooks. I'm rather fond of Amazon as autorip is a big thing for me since I still like owning CDs but don't own a laptop with an optical drive. Surprisingly though I don't own a Kindle Fire, so video is about all I don't do with Amazon.

By the way, I do use a Chromebook so most of my data is on Google Drive. This is fine but I still have a stack of SD cards and an external drive. Having backups is super important imo and just good computing. Most online storage services (Google Drive, etc.) offer a few gigs of space for free and generally don't purge your data if you stop paying for a sub and have more content than your limit on your account. In Google's case, they let you keep and download the data but you can't upload anything new.

If I didn't have my 100 gbs free from buying a chromebook, I'd probably be cheap and have several different accounts at different sites to take advantage of the free storage.

Sent from my Samsung Stratosphere using Tapatalk 2



.

forum.xda-developers.com

[General] Note2 warranty with root


Can I delete all evidence of me rooting my Note 2? I've been having problems of my phone not charging anymore, or connecting to the computer. I charged the battery at my friend's now and I got it connected to my computer. Can I unroot it so that they won't notice? Wipe everything.

EDIT: It's the international Note2 GT 7100, I believe. I used Odin to root it and just installed a firewall and another app that uses root. I think I didn't use any ROMs.

EDIT2: Will this work?

EDIT3: I'm having trouble connecting my phone to my computer, it doesn't detect it !! Can anyone help? I can't get my stock firmware on it.



.

forum.xda-developers.com

[android help] Receiving GTalk messages in own app?


I'm new to Android Development. I'm a big fan of Android's Inbuilt Talk app, but what I hate about it is lack of customizable notification, so I decided to develop an app for it.


My requirement is an app that keeps watch over GTalk, and display pre-customized notifications when a message is received.


Please note that I don't want my app to ask user for GTalk username or password. I'm aware of Asmack library, but it is more useful for an IM Client, my requirement is just to grab the incoming message event. (Something like BroadcastReceiver for SMS?)


Is it possible to retrieve the Gtalk messages like you can retrieve SMS messages with a BroadcastReceiver?



.

stackoverflow.comm

[android help] The import com.google.android.gms cannot be resolved



I checked off Google API as project build target.



That is irrelevant, as that is for Maps V1, and you are trying to use Maps V2.



I included .jar file for maps by right-clicking on my project, went to build path and added external archive locating it in my SDK: android-sdk-windows\add-ons\addon_google_apis_google_inc_8\libs\maps



This is doubly wrong.


First, never manually modify the build path in an Android project. If you are doing that, at best, you will crash at runtime, because the JAR you think you put in your project (via the manual build path change) is not in your APK. For an ordinary third-party JAR, put it in the libs/ directory of your project, which will add it to your build path automatically and add its contents to your APK file.


However, Maps V2 is not a JAR. It is an Android library project that contains a JAR. You need the whole library project.


You need to import the android-sdk-windows\add-ons\addon_google_apis_google_inc_8 project into Eclipse, then add it to your app as a reference to an Android library project.



.

stackoverflow.comm

[android help] how to costume android default classes(datepicker,numpicker,etc)


I want to make a custom date-picker for android and I need to change something in datepicker.class file in android.widget package. In fact, I want to change the year and month for solar hijri calendar.


I found source code of datepicker.java in http://alvinalexander.com/java/jwarehouse/android/core/java/android/widget/DatePicker.java.shtml - but I don't know how to change and replace it with default android class. Does anybody know how to do this?



.

stackoverflow.comm

[android help] Android: included layout not filling parent width


I have a main layout in which I include two inner layouts. I am specifying the width of the included layouts to match_parent but they don't occupy the entire width of the parent.


See example below: main_layout.xml



xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="5dp"
android:baselineAligned="false"
android:orientation="vertical" >

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.95" >

android:id="@+id/tableRow1"
android:layout_weight="0.8"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp" >

android:layout_width="match_parent"
android:layout_height="wrap_content" />


android:id="@+id/tableRow2"
android:layout_weight="0.2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp" >

android:layout_width="match_parent"
android:layout_height="wrap_content" />



android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_weight="0.05"
android:gravity="center"
android:orientation="vertical">

android:layout_width="80dp"
android:layout_height="40dp"
android:textSize="14sp"
android:textStyle="bold"
android:text="Bottom" />





child_layout




android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >

android:id="@+id/leftLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:orientation="vertical" >

android:layout_width="80dp"
android:layout_height="40dp"
android:textSize="14sp"
android:textStyle="bold"
android:text="Left" />


android:id="@+id/rightLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:orientation="vertical" >

android:layout_width="80dp"
android:layout_height="40dp"
android:textSize="14sp"
android:textStyle="bold"
android:text="Right" />





Notice that the left and right buttons are overlapped in the image.enter image description here. How do I expand the included layout to fill the entire width of the parent so that the left and right buttons appear on left and right. Thank You.



.

stackoverflow.comm

[android help] Dialog throwing "Unable to add window — token null is not for an application” with getApplication() as context


My Activity is trying to create an AlertDialog which requires a Context as a parameter. This works as expected if I use:



AlertDialog.Builder builder = new AlertDialog.Builder(this);


However, I am leery of using "this" as a context due to the potential for memory leaks when Activity is destroyed and recreated even during something simple like a screen rotation. From a related post on the Android developer's blog:



There are two easy ways to avoid context-related memory leaks. The most obvious one is to avoid escaping the context outside of its own scope. The example above showed the case of a static reference but inner classes and their implicit reference to the outer class can be equally dangerous. The second solution is to use the Application context. This context will live as long as your application is alive and does not depend on the activities life cycle. If you plan on keeping long-lived objects that need a context, remember the application object. You can obtain it easily by calling Context.getApplicationContext() or Activity.getApplication().



But for the AlertDialog() neither getApplicationContext() or getApplication() is acceptable as a Context, as it throws the exception: "Unable to add window — token null is not for an application” per references: 1, 2, 3, etc.


So, should this really be considered a "bug", since we are officially advised to use Activity.getApplication() and yet it doesn't function as advertised?


Jim



.

stackoverflow.comm

[General] A week ago I bought an android go phone, It now doesnt fully open up


So, About a week later, The screen will still turn on, But its still black, With a small amount of light coming through, Any help would be great, Wal mart nor AT&T wasn't any help at all.



.

forum.xda-developers.com

[General] IMEI number lost


I am porting JB rom from a phone which has similar specs and hardware as my phone I have tried the rom without making any changes to it but I lost my IMEI and network other than that the rom worked fine but the main purpose of the phone was lost. I am looking for a way to make this rom compatible with my phone so that I don't lose my IMEI number and thus the network. Is there any specific folder or file which I need to take care of while porting the rom to my phone, BTW my phone is on ICS and I want to port JB.

Kindly help me I desparetly waiting for a response!



.

forum.xda-developers.com

[General] Unrooting Note2 that only comes to CWM- based recovery


I have to get it repaired because I can't charge it anymore, it stopped detecting the cable or charging yesterday. But if I plug it in I can still come to recovery (0% battery ). I am scared of voiding my warranty because it is rooted. Can I connect it to my computer somehow? If I try to boot it up completely it shuts down because of not enough power.



.

forum.xda-developers.com

[General] Phone or system


I have an LG My Touch with Android OS 2.3.6 Phone lately weirding out . I reboot everyday and clear cache. It seems what ever I do its slow and stuff opens and closes at times
What should I try next
Paul



.

forum.xda-developers.com

[General] Need help with using an upgrade on ATT


Sorry if this has already been discussed, but I did a search of this forum and a few others, as well as a general Google search, and found nothing. Here's the situation:

We have a five-phone account with ATT. Three of the lines are smartphones with data plans (one large, two minimum, so no "unlimited" to worry about keeping). My wife and I are the two small-data plans. Our two phones are not eligible for upgrade until June 1st. My wife has had it with her phone and wants a new one, pronto. (She even threw it onto the floor of the car last week, out of frustration; that was a FIRST!)

Our other two lines are dumb-phones with no data, for mom and dad. Those are eligible for upgrade right now. I have heard some people say that you can use your upgrade (and, of course, sign a new 2-year extension) for one of these dumb-phone lines, but activate the phone on your line. Is it as easy as that, or do I have to jump through a bunch of hoops? If the former, I'll get something in the coming week; if not, I'll have to wait until June, assuming she doesn't toss it out the window before then.

Thanks for any assistance you can give!



.

forum.xda-developers.com

[General] Problem With Play Store on GS3


My GF and I have GS3's and the other day when the Disney games went free, she attmepted to download Where's My Water. Halfway through, she decided she didn't want it and canceled the download. Then she went to download Where's My Perry and Play Store closed. She went to open it back up and it just closes. After several tries, this message pops up.

"Unfortunately, Google Play Store has stopped."

After restarting phone, installing the new play store, and removing the battery, the problem persists.

Once and awhile it will say...

"Billing is not supported on this version of Android Market."

Now when she tries, it says...

"Unfortunately, the process com.google.process.gapps has stopped."

I have tried to research a solution but I keep coming up with nothing. I'm hoping to not have to do a hard reset but I will if I have to fix the problem.

I downloaded the games and I am having no problems at all. My GS3 runs perfectly.

Does anyone have any idea of how to fix this situation short of a hard reset?

Help is very very appreciated.

Over all I have done the following...

-Clear App Data and Cache
-Cleared everything, rebooted, and installed a fresh APK of Google Play Store
-Power Cycled the phone



.

forum.xda-developers.com

[android help] ViewPager & ImageView zooming issue


Yes I too had the same problem not with TouchImageView.


Too solved the problem what i did is disabled the ViewPager when my view is getting the focus.



public class EnableDisableViewPager extends ViewPager {

private boolean enabled = true;

public EnableDisableViewPager(Context context, AttributeSet attrs) {
super(context, attrs);
}

@Override
public boolean onInterceptTouchEvent(MotionEvent arg0) {
if(enabled)
return super.onInterceptTouchEvent(arg0);

return false;
}

public boolean isEnabled() {
return enabled;
}

public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
}


so in TouchImageView implement your listener to trigger an event whether its zooming or dragging.


set listener to your view object in your Activity. So when those event occur just disable the view Pager.


Note: you will also need a mouse up event to enable the viewpager.


EDITED


This will work only for Zoom, so for ViewPager to swipe pages you should zoom back to original.


Add these code to your TouchImageView



public class TouchImageView extends ImageView {

...
private TouchEventListener touchEventListener;

private void sharedConstructing(Context context) {
...

setOnTouchListener(new OnTouchListener() {

@Override
public boolean onTouch(View v, MotionEvent event) {
...
case MotionEvent.ACTION_UP:
...
if(touchEventListener != null)
{
if(saveScale == 1.0)
touchEventListener.onZoomToOriginal();
else
touchEventListener.onZoom();
}
break;

...
}
...
}

});
}

...

public TouchEventListener getTouchEventListener() {
return touchEventListener;
}

public void setTouchEventListener(TouchEventListener touchEventListener) {
this.touchEventListener = touchEventListener;
}


public interface TouchEventListener
{
void onZoom();
void onZoomToOriginal();
}
}


.

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