Friday, May 10, 2013

[General] Samsung transform ultra please help


Unfortunately, you most likely can't remove Boost Zone or Mobile ID unless you root the phone. If your phone was Android 4.0 or above, you might have the option to disable those apps, but not with Gingerbread. I'm not familiar with those bloatware apps--do they have any settings that allow you to control their activity?

Regarding the wifi--what different networks have you tried to connect to? Have you tried places like Starbucks or Target? Sometimes, phones might not like certain router settings, so at home, you could try removing any security setting on your router as an experiment. If you can connect, then you know it has something to do with that.



.

forum.xda-developers.com

[General] Galaxy S4 missing 'Dual Shot' and Lock Screen Widgets


Oh wow, I'm special. I'm sorry for the dumb question.

I have a pattern lock if that matters...

No it doesn't look like that...

My options are:

Screen Lock

Lock Screen Widgets
Make Pattern Visible
Lock Automatically
Lock instantly with power key

I'm definitely missing an option there.



.

forum.xda-developers.com

Thursday, May 9, 2013

[General] Rooted Nook Simple Touch/Android v.2.1 and Third-Party .apk File Permissions


Hi, Everyone...

I am a person of very little experience w/ mobile devices but have recently rooted (w/ serious help from a how-to) a Barnes & Noble Nook Simple Touch e-reader and enabled Android v. 2.1. It is a much more versatile system now w/ several apps allowing me to do much more than the stock device.

However. I cannot use any apps from GooglePlay (the site will not allow my device to access the apps because it does not meet the audio and video requirements), which severely limits the reader's flexibility. I have been able to make use of several excellent programs from the Amazon App Store, but it seems that I can only install those apps which are not third party .apk files. Consequently, my Amazon Kindle app is a very early version, limited in functionality but proprietary, while there are many later, third party versions available elsewhere on the Web.

My device has a couple of .apk app installers installed, but they will not even recognize the presence of a third party .apk on the SD card or on the main memory of the reader. I have the well-regarded "Root Explorer" app installed and, while it will locate the target third-party .apk file, the install command only results in the same error that there is an inability to parse the program. Further, I have read that Android devices usually have a menu system w/ access to system settings allowing a check to the option "allow third party sources", but my device has no such menu system, and I have not been able to install any app that would install such a menu (due to the same problem about third party sourced app files).

I have done quite a lot of searching as how to solve this problem but have given up--this is a bit frustrating because I feel that my experience must be encountered by many others having run up against the roadblock presented by the GooglePlay site.

I wonder, is there any way to access GooglePlay so that I might install many apps conforming to Android v.2.1? Is there any way to allow permission to third party sources that does not require a menu that my device does not have? Does anybody know of a reliable source for a Kindle Reader app that is not third-party sourced? (interestingly, the two primitive Kindle apps that are recognized by my device also show the Kindle logo on the app file; the other, later Kindle app versions have the Android logo.)

I would appreciate, so much, any help w/ this, and, as I say, I imagine that my problem is the experience many others, as well.

Thank you very much to all those who have read and/or reply to this post.

Regards, C.



.

forum.xda-developers.com

[General] Gmail account / picture download


Hello,

I have received emails with pictures in the email that I want to download to my phone. I am not anywhere near wi-fi to download the picture.When I try to download the pictures they will just sit there and then time out. Please let me know if there is a setting issue.

Thanks
Dan



.

forum.xda-developers.com

[General] [NOOB FRIENDLY] How to: iTunes music to any galaxy S phone


This works on Galaxy S, S2, S3, And S4. Lets get started!

1. Get this program called kies and install it and open it. Link:

2. Using the charger USB, Plug it into your computer, And of course, Plug in your Galaxy the other end.

3. Click music on kies, On the right.

4. Open iTunes, select your music

5. Drag it into kies on the music tab! And that's it! Hope this helped!



.

forum.xda-developers.com

[General] How do I add words to the dictionary on my Galaxy s4?


I got the Galaxy s4 yesterday. I'm going crazy just trying to add word to the dictionary. I can't even get it to spell my own name. It does not have the "personal dictionary" option under "language and input" that I am used to. I took it to Best Buy and three separate techs there played with it and they could not figure it out either.

How do I add words?



.

forum.xda-developers.com

[General] double sms tone


hi. i am using chomp sms and have created a custom notification tone. the problem is my phone makes 2 sounds every time i receive a text, the default sound followed by my tone. i read to disable the sms sound in the stock message app and i did that but it still makes the double sound. any one know how to fix this?
thanks

Edit: forgot to mention im using 4.2.2 jellybean on the galaxy s4 sprint



.

forum.xda-developers.com

[General] Trouble hearing phone calls but everyone says they hear me fine


I've notice lately, after flashing a custom rom, that during calls I can barely hear people on the other end yet they hear me fine. I have check all volume levels on my phone. Even with the call volume Zahl the way up and on speaker is still very hard to hear. It's extremely annoying and I have yet to find a post about it on this forum.

I did however find a post on another for with a similar problem and the way he went about fixing it was flashing a custom radio. I have no idea what that is and I can't find a thing about it on Google.
I need help with this situation badly because I don't know where else to look for answers. I have the galaxy note 2 by at&t rooted.

Sent from my SAMSUNG-SGH-I317 using Tapatalk 2



.

forum.xda-developers.com

[android help] upload image(blob) to specific container in azure


I did a camera application and i want to upload the picture taken by the camera into the blob storage in azure. Below is the code for me to select image from gallery and upload through the SAS URL. However when i tried entering the report class file, it force closes.



package com.example.testproject;

import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.FileInputStream;
import java.net.HttpURLConnection;
import java.net.URL;

import android.app.AlertDialog;
import android.app.ListActivity;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.provider.MediaStore;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;



public class Report extends ListActivity {
private StorageService mStorageService;
private final String TAG = "BlobsActivity";
private String mContainerName;
private ImageView mImgBlobImage;
private Uri mImageUri;
private AlertDialog mAlertDialog;

Button btnSelect, btnR;
ImageView iv;
TextView tv1;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//Get access to the storage service
StorageApplication myApp = (StorageApplication) getApplication();
mStorageService = myApp.getStorageService();
//Get data from the intent that launched this activity
Intent launchIntent = getIntent();
mContainerName = launchIntent.getStringExtra("ContainerName");

//Get the blobs for the selected container
mStorageService.getBlobsForContainer(mContainerName);


setContentView(R.layout.camera);
tv1=(TextView) findViewById(R.id.editText1);
btnR = (Button)findViewById(R.id.btnReport);
iv = (ImageView) findViewById(R.id.imageView1);
btnSelect = (Button)findViewById(R.id.btnSelect);
//Set select image handler
btnSelect.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
selectImage();
}
});

}

public void onClick(View v) {
mStorageService.getSasForNewBlob(mContainerName, tv1.getText().toString());

}

// Fire off intent to select image from gallery
protected void selectImage() {
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("image/*");
startActivityForResult(intent, 1111);
}

// Result handler for any intents started with startActivityForResult
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
try {
//handle result from gallary select
if (requestCode == 1111) {
Uri currImageURI = data.getData();
mImageUri = currImageURI;
//Set the image view's image by using imageUri
mImgBlobImage.setImageURI(currImageURI);
}
} catch (Exception ex) {
Log.e(TAG, ex.getMessage());
}
}

/***
* Handles uploading an image to a specified url
*/
class ImageUploaderTask extends AsyncTask {
private String mUrl;
public ImageUploaderTask(String url) {
mUrl = url;
}

@Override
protected Boolean doInBackground(Void... params) {
try {
//Get the image data
Cursor cursor = getContentResolver().query(mImageUri, null,null, null, null);
cursor.moveToFirst();
int index = cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA);
String absoluteFilePath = cursor.getString(index);
FileInputStream fis = new FileInputStream(absoluteFilePath);
int bytesRead = 0;
ByteArrayOutputStream bos = new ByteArrayOutputStream();
byte[] b = new byte[1024];
while ((bytesRead = fis.read(b)) != -1) {
bos.write(b, 0, bytesRead);
}
byte[] bytes = bos.toByteArray();
// Post our image data (byte array) to the server
URL url = new URL(mUrl.replace("\"", ""));
HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
urlConnection.setDoOutput(true);
urlConnection.setRequestMethod("PUT");
urlConnection.addRequestProperty("Content-Type", "image/jpeg");
urlConnection.setRequestProperty("Content-Length", ""+ bytes.length);
// Write image data to server
DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream());
wr.write(bytes);
wr.flush();
wr.close();
int response = urlConnection.getResponseCode();
//If we successfully uploaded, return true
if (response == 201
&& urlConnection.getResponseMessage().equals("Created")) {
return true;
}
} catch (Exception ex) {
Log.e(TAG, ex.getMessage());
}
return false;
}

@Override
protected void onPostExecute(Boolean uploaded) {
if (uploaded) {
mAlertDialog.cancel();
mStorageService.getBlobsForContainer(mContainerName);
}
}
}
}


Here is my logcat error



05-09 02:39:16.576: E/AndroidRuntime(1440): FATAL EXCEPTION: main
05-09 02:39:16.576: E/AndroidRuntime(1440): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.testproject/com.example.testproject.Report}: java.lang.ClassCastException: android.app.Application cannot be cast to com.example.testproject.StorageApplication
05-09 02:39:16.576: E/AndroidRuntime(1440): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
05-09 02:39:16.576: E/AndroidRuntime(1440): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
05-09 02:39:16.576: E/AndroidRuntime(1440): at android.app.ActivityThread.access$600(ActivityThread.java:130)
05-09 02:39:16.576: E/AndroidRuntime(1440): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
05-09 02:39:16.576: E/AndroidRuntime(1440): at android.os.Handler.dispatchMessage(Handler.java:99)
05-09 02:39:16.576: E/AndroidRuntime(1440): at android.os.Looper.loop(Looper.java:137)
05-09 02:39:16.576: E/AndroidRuntime(1440): at android.app.ActivityThread.main(ActivityThread.java:4745)
05-09 02:39:16.576: E/AndroidRuntime(1440): at java.lang.reflect.Method.invokeNative(Native Method)
05-09 02:39:16.576: E/AndroidRuntime(1440): at java.lang.reflect.Method.invoke(Method.java:511)
05-09 02:39:16.576: E/AndroidRuntime(1440): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
05-09 02:39:16.576: E/AndroidRuntime(1440): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
05-09 02:39:16.576: E/AndroidRuntime(1440): at dalvik.system.NativeStart.main(Native Method)
05-09 02:39:16.576: E/AndroidRuntime(1440): Caused by: java.lang.ClassCastException: android.app.Application cannot be cast to com.example.testproject.StorageApplication
05-09 02:39:16.576: E/AndroidRuntime(1440): at com.example.testproject.Report.onCreate(Report.java:42)
05-09 02:39:16.576: E/AndroidRuntime(1440): at android.app.Activity.performCreate(Activity.java:5008)
05-09 02:39:16.576: E/AndroidRuntime(1440): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
05-09 02:39:16.576: E/AndroidRuntime(1440): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
05-09 02:39:16.576: E/AndroidRuntime(1440): ... 11 more


Here is my StorageApplication Class



package com.example.testproject;

import android.app.Application;


public class StorageApplication extends Application {

private StorageService mStorageService;

public StorageApplication() {}

public StorageService getStorageService() {
if (mStorageService == null) {
mStorageService = new StorageService(this);
}
return mStorageService;
}

}


.

stackoverflow.comm

[android help] android image size from web


For starters, you are going to want to set a scaleType (try "center_inside") in your xml definition of the ImageView.


If you provide some code (in particular your layout xml file) I might be able to be of more assistance.


Update


Now, this may not fully be your problem, but it is a piece of it. DP (or DPI, they are the same thing) adjust for the screen density (pixels per inch), not the screen size. That means that an image of 200dp x 200dp will be approximately the same size in inches on both screens, not the same percentage of the screen.


Specs: Atrix 960 × 540 (https://en.wikipedia.org/wiki/Motorola_Atrix_2#Features) Galaxy Ace 480 x 320 (https://en.wikipedia.org/wiki/Samsung_Galaxy_Ace)


Since the Atrix is hdpi, and hdpi is a 1.5 multiplier, 200dp will take up 300px in real pixels, or approximately 1/3 (300/960) of the screen as you point out.


On the mdpi Ace, the 200dp translates evenly to 200px, which should be closer to 1/2 the screen. However, with the addition of the actionbar taking up screen real estate, it may seem like more.


The best way to deal with very small screens like the ace... well, my normal solution is to not support them very well, at least not on my first pass, as they are pretty rare. But if you want to, the best way is to provide alternate layouts.


For Example:


Create a folder named layout-large (or similar, see: http://developer.android.com/guide/topics/resources/providing-resources.html#Compatibility).


Make a copy of your existing xml file in that folder. (name must be exactly the same)


Modify the file in layout/ so that it works better on smaller screens.


Essentially, if the device has a "large" screen or above (where large is basically the standard these days), it will use the layout in the layout-large/ folder.


Otherwise, it will use the default layout in the layout/ folder.


If you think this explanation is not what is happening, please provide screen shots to verify that the layout is in fact not behaving like it should.



.

stackoverflow.comm

[android help] Need help on getting data from WAMS android


I'm trying to get my username & password from my WAMS (android) to check during login (my login part is at btn1). I not sure if I did it correctly. Please help me take a look at it and see what did I do wrongly. Thanks.



package mp.memberuse;

import java.net.MalformedURLException;
import java.util.List;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import android.widget.TextView;

import com.microsoft.windowsazure.mobileservices.MobileServiceClient;
import com.microsoft.windowsazure.mobileservices.MobileServiceTable;
import com.microsoft.windowsazure.mobileservices.ServiceFilterResponse;
import com.microsoft.windowsazure.mobileservices.TableOperationCallback;
import com.microsoft.windowsazure.mobileservices.TableQueryCallback;

public class LoginRegister extends Activity {

Button btn1, btn2, btn3;
EditText tf1, tf2, tf3, tf4, tf5, tf6, tf7, tf8, tf9, tf10, tf11;
TextView tv1, tv2;

private MobileServiceClient mClient;
private MobileServiceTable mMembersTable;

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

TabHost tabs = (TabHost) this.findViewById(R.id.lt2tabhost);
tabs.setup();

TabSpec ts1 = tabs.newTabSpec("Login");
ts1.setIndicator("Login");
ts1.setContent(R.id.c1);
tabs.addTab(ts1);

TabSpec ts2 = tabs.newTabSpec("Register");
ts2.setIndicator("Register");
ts2.setContent(R.id.c2);
tabs.addTab(ts2);

btn1 = (Button)findViewById(R.id.button1);
btn2 = (Button)findViewById(R.id.button2);
btn3 = (Button)findViewById(R.id.button3);

tf1=(EditText) findViewById(R.id.editText1);
tf2=(EditText) findViewById(R.id.editText2);
tf3=(EditText) findViewById(R.id.editText3);
tf4=(EditText) findViewById(R.id.editText4);
tf5=(EditText) findViewById(R.id.editText5);
tf6=(EditText) findViewById(R.id.editText6);
tf7=(EditText) findViewById(R.id.editText7);
tf8=(EditText) findViewById(R.id.editText8);
tf9=(EditText) findViewById(R.id.editText9);
tf10=(EditText) findViewById(R.id.editText10);

tv1=(TextView) findViewById(R.id.login);
tv2=(TextView) findViewById(R.id.register);

try {
// Create the Mobile Service Client instance, using the provided
// Mobile Service URL and key
mClient = new MobileServiceClient(
"https://*****.azure-mobile.net/",
"********************************",
this
);

// Get the Mobile Service Table instance to use
mMembersTable = mClient.getTable(Members.class);


} catch (MalformedURLException e) {
//createAndShowDialog(new Exception("There was an error creating the Mobile Service. Verify the URL"), "Error");
}

btn1.setOnClickListener(new View.OnClickListener(){
public void onClick(View v)
{
final String username, password;
username = tf1.getText().toString();
password = tf2.getText().toString();

mMembersTable.select("username", "password").execute(new TableQueryCallback()
{
public void onCompleted(List result, int count, Exception exception, ServiceFilterResponse response) {
if (exception == null)
{
for (Members mbs : result)
{
mbs.getUsername();
mbs.getPassword();

if(username.equals(mbs.getUsername()) && password.equals(mbs.getPassword()))
{
Intent intent = new Intent (LoginRegister.this, Map.class);
startActivity(intent);
}
}
}
else
{
tv1.setText("Invalid user");
}
}
});
}
});

btn2.setOnClickListener(new View.OnClickListener(){
public void onClick(View v)
{
String username, password, cpassword, fullname, nric, address, phone, email;
username = tf3.getText().toString();
password = tf4.getText().toString();
cpassword = tf5.getText().toString();
fullname = tf6.getText().toString();
nric = tf7.getText().toString();
address = tf8.getText().toString();
phone = tf9.getText().toString();
email = tf10.getText().toString();

if (mClient == null) {
return;
}

Members mbs = new Members();

mbs.setUsername(username);
mbs.setPassword(password);
mbs.setFullname(fullname);
mbs.setNric(nric);
mbs.setAddress(address);
mbs.setPhone(phone);
mbs.setEmail(email);

if(!password.equals(cpassword))
{
tv2.setText("Password & Confirm Password does not match.");
}
else if(username.equals("") || password.equals("") || cpassword.equals("") || fullname.equals("") || nric.equals("") || address.equals("") || phone.equals("") || email.equals(""))
{
tv2.setText("Do not leave any field empty.");
}
else
{
mMembersTable.insert(mbs, new TableOperationCallback()
{

public void onCompleted(Members entity, Exception exception, ServiceFilterResponse response)
{

if (exception == null)
{
tv2.setText("Register Complete.");
tf3.setText("");
tf4.setText("");
tf5.setText("");
tf6.setText("");
tf7.setText("");
tf8.setText("");
tf9.setText("");
tf10.setText("");
}
else
{
tv2.setText("Fail to register!");
tf3.setText("");
tf4.setText("");
tf5.setText("");
tf6.setText("");
tf7.setText("");
tf8.setText("");
tf9.setText("");
tf10.setText("");
}

}
});
}
}
});

btn3.setOnClickListener(new View.OnClickListener(){
public void onClick(View v)
{
tf3.setText("");
tf4.setText("");
tf5.setText("");
tf6.setText("");
tf7.setText("");
tf8.setText("");
tf9.setText("");
tf10.setText("");
}
});
}
}


.

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