Friday, July 26, 2013

[General] How to update a rooted device?


How to update a rooted device?



I'd like to stay away from flashing, so tell me if this works: Backup my Nexus 7, un-root and re-lock it, update to Android 4.3, re-root and unlock, and then restore from that backup. Would that work? Is there a program that roots 4.3 yet? The Nexus Root Toolkit doesn't seem to have the option, and it's what I used before. Also, would I even be able to use the 4.2.2 backup on 4.3, or would that mess it up? Sorry if these questions are simple to answer or stupid, I'm still kind of new at this entire rooting thing. Thanks!



Read more

forum.xda-developers.com



[General] Quoting from the Kindle app on the Nexus 7


Quoting from the Kindle app on the Nexus 7



I've looked! The God's know I've looked, but I cannot find anywhere which gives me clear instruction on how to quote from the Kindle app on my Nexus 7. Can anyone please help me out here? Thank you.



Read more

forum.xda-developers.com



[General] Google Account sync over wifi only


Google Account sync over wifi only



Hello Everyone,

I just got my first android phone, a samsung galaxy s4 and love it. I have been able to set it up as I want for the most part. One thing I cant figure out though, how do you set google account sync to only sync over wifi? I know you can go into the data section and choose which apps can update over wifi, but I don't see one for google account sync. Is it called google services or something? In the google plus I was able to set it to update photos and videos over wifi, but what about the calendar, app data, drive etc.?

Thanks for the help!
Pat



Read more

forum.xda-developers.com



[General] HTC One Charging Port


HTC One Charging Port



It would need to be professionally done. The HTC one us encased in one whole shell, and removing that would be a problem in itself.

Not to mention that the hardware components are most likely soldered to the motherboard, in a very precise fashion. To replace hardware with that much precision, you would need some fancy and expensive equipment.

I highly recommend not doing it yourself and just send it in to HTC to have it repaired. The one should have come with at least a one year warranty (I'm unsure don't have device). That is if you don't mind being without a phone for at least a week.

However I have seen cases where manufacturers would provide temp phones, if the repair takes long enough to warrant loaning one out.

Sent from my paranoid s3...



Read more

forum.xda-developers.com



[General] Can I use JB Weld on a cracked touch screen?


Can I use JB Weld on a cracked touch screen?



My son dropped his Nexus and of course it cracked the glass. The crack is on the side not affecting the view of the face at all and it has a couple of chipped pieces. I was just going to try filling the area with something like silicone, JB Weld, or auto windshield repair.

I'm wondering if anyone might know what I can use that will not interfere with the touch screen. I'm thinking that silicone might be too much like "skin" touching that it might not work. Would like others' opinions.



Read more

forum.xda-developers.com



Wednesday, July 24, 2013

[General] HTC One Gallery problem after 4.2.2 update


HTC One Gallery problem after 4.2.2 update



Hi, I have recently updated my HTC One to 4.2.2 but since doing this my gallery doesn't open up on the tiles page now, it just goes straight to the albums page, so no highlights etc. Has anyone else had this or is it an option that got reset? Thanks!!



Read more

forum.xda-developers.com



[General] iPad Replacement


iPad Replacement



No Android device will work with your iTunes apps. Only Apple devices running the iOS operating system will work with your apps. There may be similar apps for Android, but that may require purchasing them on that platform as well all over again....assuming they even exist on Android. They might not.

So the choice is to either get a new iPad and stick with the ecosystem you have already invested so much money in. OR start all over again. To be blunt, you could end up with a lemon tablet on Android too. Anything is possible. I have a first generation iPad that I use heavily each and every day and it is still going strong. So it sounds like you just got a bad one unfortunately. It happens in electrical things...from cars, to A/C to stereos, to yes, iPads. If I were you I would write Tim Cook at Apple and explain your experiences. It might go nowhere, but it certainly couldn't hurt.



Read more

forum.xda-developers.com



[General] Need drivers for discontinued mouse.


Need drivers for discontinued mouse.



I've been trying for months to acquire drivers for my Dell BT Travel Mouse which 1) can be downloaded and 2) will work on Android 4.1.2. The Dell p/n PU705 has been discontinued. I discovered it was a Logitech product, repackaged by Dell. But Logitech also discontinued it. They were unclear about their p/n, but I believe it's 000-000866. The driver information I could get was all about materials for Windows. At this point I invariably melt down. If anyone can help... Oh, hell. You know the drill.
TIA



Read more

forum.xda-developers.com



[General] Send multi messages


Send multi messages



I have recently bought a Galaxy S4. I set up a group of contacts in my "Contacts" page. I have over 100 contacts in it. When I want to send a message to "all" it will only let send it to 20 at a time. This means I have to send the message 5 times. Can this be changed.



Read more

forum.xda-developers.com



[General] whats that?


whats that?



I *think*, but am not at all sure, that it means NFC is turned on. Go to settings / More settings (in the Wireless and network section), and see if NFC is turned on. If so, turn it off and see if the icon goes away.



Read more

forum.xda-developers.com



[android help] How to know if object value is existing in JSON on android?


How to know if object value is existing in JSON on android?



Hei I'm new to web service using android. I want to know how could I check if an value exist in JSON? Here is a sample JSON



{
"contacts": [
{
"id": "c200",
"name": "Michael Jordan",
"email": "mj@gmail.com",
"address": "xx-xx-xxxx,x - street, x - country",
"gender" : "male",
"phone": {
"mobile": "+91 0000000000",
"home": "00 000000",
"office": "00 000000"
}
}
]
}


I want to know if the name Michael Jordan is existing in JSON. Please help me with this I only know how to check if the object exist in JSON using has but how if I want to check the value?



Read more

stackoverflow.comm



[android help] Using Parcelable inside setOnItemClickListener


Using Parcelable inside setOnItemClickListener



I read through this tutorial to use Parcelable to pass objects between Android activities, but I still get a null pointer when I try to retrieve the object. Any help is appreciated.


Here is the code:


ActivityClassOne ( inside the onCreate() )



final Context context = this;

//recognize when something is clicked in the list
myList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView parent, final View view, int position, long id){
//get the item tapped on
final MyObject mo = (TSEntry) parent.getItemAtPosition(position);
Intent intent = new Intent(context, ActivityClassTwo.class);
intent.putExtra("MYOBJ",mo);
startActivity(intent);
}

});


ActivityClassTwo ( inside the onCreate() )



Intent intent = this.getIntent();
Bundle bundle = intent.getExtras();
if (bundle!=null){
MyObject mo = b.getParcelable("MYOBJ"); //exception here
//other stuff
}


Read more

stackoverflow.comm



Tuesday, July 23, 2013

[android help] Android widget avoid updating


Android widget avoid updating


Android widget avoid updating - 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 building a static android widget, which means the widget doesn't need to be updated at all. The only thing that widget need to handle is open link from browser when it is triggered.


In the AppWidgetProviderInfo Metadata xml file, there is one attribute called "updatePeriodMillis", and should I set any value there? or just don't add this attribute?


Thanks
















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










default






Read more

stackoverflow.comm



[android help] Android: I have the error of parsing a JSON object to String in Android


Android: I have the error of parsing a JSON object to String in Android



I wanted to learn about Android in connection with php and I found a code in this web: demo web So, the code works perfectly fine, but when I want to do the select it says that there is an error when parsing the JSON Object into String. I will give you the 3 parts of the code. You can see all the code in the website from abobe.


Here you have the two codes:



public class JSONParser {

static InputStream is = null;
static JSONObject jObj = null;
static String json = "";

// constructor
public JSONParser() {

}


public JSONObject getJSONFromUrl(final String url) {

// Making HTTP request
try {
// Construct the client and the HTTP request.
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(url);

// Execute the POST request and store the response locally.
HttpResponse httpResponse = httpClient.execute(httpPost);
// Extract data from the response.
HttpEntity httpEntity = httpResponse.getEntity();
// Open an inputStream with the data content.
is = httpEntity.getContent();

} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (ClientProtocolException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}

try {
// Create a BufferedReader to parse through the inputStream.
BufferedReader reader = new BufferedReader(new InputStreamReader(
is, "iso-8859-1"), 8);
// Declare a string builder to help with the parsing.
StringBuilder sb = new StringBuilder();
// Declare a string to store the JSON object data in string form.
String line = null;

// Build the string until null.
while ((line = reader.readLine()) != null) {
sb.append(line + "\n");
}

// Close the input stream.
is.close();
// Convert the string builder data to an actual string.
json = sb.toString();
} catch (Exception e) {
Log.e("Buffer Error", "Error converting result " + e.toString());
}

// Try to parse the string to a JSON object
try {
jObj = new JSONObject(json);
} catch (JSONException e) {
Log.e("JSON Parser", "Error parsing data " + e.toString());
}

// Return the JSON Object.
return jObj;

}


// function get json from url
// by making HTTP POST or GET mehtod
public JSONObject makeHttpRequest(String url, String method,
List params) {

// Making HTTP request
try {

// check for request method
if(method == "POST"){
// request method is POST
// defaultHttpClient
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(url);
httpPost.setEntity(new UrlEncodedFormEntity(params));

HttpResponse httpResponse = httpClient.execute(httpPost);
HttpEntity httpEntity = httpResponse.getEntity();
is = httpEntity.getContent();

}else if(method == "GET"){
// request method is GET
DefaultHttpClient httpClient = new DefaultHttpClient();
String paramString = URLEncodedUtils.format(params, "utf-8");
url += "?" + paramString;
HttpGet httpGet = new HttpGet(url);

HttpResponse httpResponse = httpClient.execute(httpGet);
HttpEntity httpEntity = httpResponse.getEntity();
is = httpEntity.getContent();
}

} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (ClientProtocolException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}

try {
BufferedReader reader = new BufferedReader(new InputStreamReader(
is, "iso-8859-1"), 8);
StringBuilder sb = new StringBuilder();
String line = null;
while ((line = reader.readLine()) != null) {
sb.append(line + "\n");
}
is.close();
json = sb.toString();
} catch (Exception e) {
Log.e("Buffer Error", "Error converting result " + e.toString());
}

// try parse the string to a JSON object
try {
jObj = new JSONObject(json);
} catch (JSONException e) {
Log.e("JSON Parser", "Error parsing data " + e.toString());
}

// return JSON String
return jObj;

}
}


The other class:



package com.example.mysqltest;

import java.util.ArrayList;
import java.util.HashMap;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.SimpleAdapter;

public class ReadComments extends ListActivity {

// Progress Dialog
private ProgressDialog pDialog;

// php read comments script

// localhost :
// testing on your device
// put your local ip instead, on windows, run CMD > ipconfig
// or in mac's terminal type ifconfig and look for the ip under en0 or en1
// private static final String READ_COMMENTS_URL =
// "http://xxx.xxx.x.x:1234/webservice/comments.php";

// testing on Emulator:
private static final String READ_COMMENTS_URL = "http://10.0.2.2/webservice/comments.php";

// testing from a real server:
// private static final String READ_COMMENTS_URL =
// "http://www.mybringback.com/webservice/comments.php";

// JSON IDS:
private static final String TAG_SUCCESS = "success";
private static final String TAG_TITLE = "title";
private static final String TAG_POSTS = "posts";
private static final String TAG_POST_ID = "post_id";
private static final String TAG_USERNAME = "username";
private static final String TAG_MESSAGE = "message";
// it's important to note that the message is both in the parent branch of
// our JSON tree that displays a "Post Available" or a "No Post Available"
// message,
// and there is also a message for each individual post, listed under the
// "posts"
// category, that displays what the user typed as their message.

// An array of all of our comments
private JSONArray mComments = null;
// manages all of our comments in a list.
private ArrayList> mCommentList;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// note that use read_comments.xml instead of our single_post.xml
setContentView(R.layout.read_comments);
}

@Override
protected void onResume() {
// TODO Auto-generated method stub
super.onResume();
// loading the comments via AsyncTask
new LoadComments().execute();
}

public void addComment(View v) {
Intent i = new Intent(ReadComments.this, AddComment.class);
startActivity(i);
}

/**
* Retrieves recent post data from the server.
*/
public void updateJSONdata() {

// Instantiate the arraylist to contain all the JSON data.
// we are going to use a bunch of key-value pairs, referring
// to the json element name, and the content, for example,
// message it the tag, and "I'm awesome" as the content..

mCommentList = new ArrayList>();

// Bro, it's time to power up the J parser
JSONParser jParser = new JSONParser();
// Feed the beast our comments url, and it spits us
// back a JSON object. Boo-yeah Jerome.
JSONObject json = jParser.getJSONFromUrl(READ_COMMENTS_URL);

// when parsing JSON stuff, we should probably
// try to catch any exceptions:
try {

// I know I said we would check if "Posts were Avail." (success==1)
// before we tried to read the individual posts, but I lied...
// mComments will tell us how many "posts" or comments are
// available
mComments = json.getJSONArray(TAG_POSTS);

// looping through all posts according to the json object returned
for (int i = 0; i < mComments.length(); i++) {
JSONObject c = mComments.getJSONObject(i);

// gets the content of each tag
String title = c.getString(TAG_TITLE);
String content = c.getString(TAG_MESSAGE);
String username = c.getString(TAG_USERNAME);

// creating new HashMap
HashMap map = new HashMap();

map.put(TAG_TITLE, title);
map.put(TAG_MESSAGE, content);
map.put(TAG_USERNAME, username);

// adding HashList to ArrayList
mCommentList.add(map);

// annndddd, our JSON data is up to date same with our array
// list
}

} catch (JSONException e) {
e.printStackTrace();
}
}

/**
* Inserts the parsed data into the listview.
*/
private void updateList() {
// For a ListActivity we need to set the List Adapter, and in order to do
//that, we need to create a ListAdapter. This SimpleAdapter,
//will utilize our updated Hashmapped ArrayList,
//use our single_post xml template for each item in our list,
//and place the appropriate info from the list to the
//correct GUI id. Order is important here.
ListAdapter adapter = new SimpleAdapter(this, mCommentList,
R.layout.single_post, new String[] { TAG_TITLE, TAG_MESSAGE,
TAG_USERNAME }, new int[] { R.id.title, R.id.message,
R.id.username });

// I shouldn't have to comment on this one:
setListAdapter(adapter);

// Optional: when the user clicks a list item we
//could do something. However, we will choose
//to do nothing...
ListView lv = getListView();
lv.setOnItemClickListener(new OnItemClickListener() {

@Override
public void onItemClick(AdapterView parent, View view,
int position, long id) {

// This method is triggered if an item is click within our
// list. For our example we won't be using this, but
// it is useful to know in real life applications.

}
});
}

public class LoadComments extends AsyncTask {

@Override
protected void onPreExecute() {
super.onPreExecute();
pDialog = new ProgressDialog(ReadComments.this);
pDialog.setMessage("Loading Comments...");
pDialog.setIndeterminate(false);
pDialog.setCancelable(true);
pDialog.show();
}

@Override
protected Boolean doInBackground(Void... arg0) {
updateJSONdata();
return null;

}

@Override
protected void onPostExecute(Boolean result) {
super.onPostExecute(result);
pDialog.dismiss();
updateList();
}
}
}


Here you have the php code:



*/
require("config.inc.php");


$query = "Select post_id,username,title,message FROM comments";


try {
$stmt = $db->prepare($query);
$result = $stmt->execute($query_params);

}
catch (PDOException $ex) {
$response["success"] = 0;
$response["message"] = "Database Error!";
die(json_encode($response));
}


$rows = $stmt->fetchAll();


if ($rows) {
$response["success"] = 1;
$response["message"] = "Post Available!";
json_encode($response)
$response["posts"] = array();


foreach ($rows as $row) {
$post = array();
$post["post_id"] = $row["post_id"];
$post["username"] = $row["username"];
$post["title"] = $row["title"];
$post["message"] = $row["message"];


//update our repsonse JSON data
array_push($response["posts"], $post);
}

// echoing JSON response
echo json_encode($response);


} else {
$response["success"] = 0;
$response["message"] = "No Post Available!";
die(json_encode($response));
}


I hope you can help me, because I am loving Android, but this code is for an advance person I think. I am still learning all about JSON. Thank you a lot.



Read more

stackoverflow.comm



[android help] How to make ANE that accesses GooglePlay GameServices


How to make ANE that accesses GooglePlay GameServices


android - How to make ANE that accesses GooglePlay GameServices - 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 develop AdobeAIR App for Android. So, I try to make ANE(ActionScript Native Extensions)that accesses GooglePlay GameServices. But, it is now working because of the following problem.


[Error]



07-22 11:22:44.976: W/Bundle(24987): Key com.google.android.gms.games.APP_ID expected String but value was a java.lang.Integer. The default value was returned.
07-22 11:22:44.991: W/Bundle(24987): Attempt to cast generated internal exception:
07-22 11:22:44.991: W/Bundle(24987): java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
07-22 11:22:44.991: W/Bundle(24987): at android.os.Bundle.getString(Bundle.java:1069)
07-22 11:22:44.991: W/Bundle(24987): at abh.a(SourceFile:137)
07-22 11:22:44.991: W/Bundle(24987): at ato.a(SourceFile:450)
07-22 11:22:44.991: W/Bundle(24987): at com.google.android.gms.games.service.GamesIntentService.onHandleIntent(SourceFile:2257)
07-22 11:22:44.991: W/Bundle(24987): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
07-22 11:22:44.991: W/Bundle(24987): at android.os.Handler.dispatchMessage(Handler.java:99)
07-22 11:22:44.991: W/Bundle(24987): at android.os.Looper.loop(Looper.java:137)
07-22 11:22:44.991: W/Bundle(24987): at android.os.HandlerThread.run(HandlerThread.java:60)


[Cause]


  • This error attributes to write appid-number directly to Manifest-file(XXXX-app.xml) of AIR APP. →If I develop native-app(Java) , I refer to「res」folder(res/values/string.xml). But, AIR App can't read the 「res」folder explicitly, so I have no other choice.(correct?)

Ex.)



(XXXX-app.xml)


android:value="123456789012" />

]]>



Any good ideas?
















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










default






Read more

stackoverflow.comm



[android help] Setting up Tesseract Library on Eclipse


Setting up Tesseract Library on Eclipse


android - Setting up Tesseract Library on Eclipse - 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 trying to set up the tesseract library project so that I can use it with my Android app. I am having some problems setting up the project though. I am following this tutorial.


I have copied the project to my workspace and built the project using ndk-build. I had an error when executing the android -update project --path . command, so I moved android.bat file to the tesseract directory. After that I got an error saying The System cannot find the specified path I tried to see if I could still get the project to work by importing to Eclipse, but after importing it, it had a build path error due to a missing gen folder. I tried fixing the properties and cleaning, but it still did not solve the issue. Could someone please help me with this? I really need to get this library setup.


Thanks!



















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










default






Read more

stackoverflow.comm



Saturday, July 20, 2013

[General] help with NET10's LG Optimus Dynamic


help with NET10's LG Optimus Dynamic



hi, i'm new to the android world... so prepare yourself. lol

is it possible to "Root" an android phone running android 2.3.6 (specifically the LG Optimus Dynamic ) and still be supported by "NET10Wireless"?
the reason being that, i would like to correct the devices tendency to store all the apps/music/exc. in the system memory instead of internal memory or sd storage.

if this is unnecessary, could someone explain to me how to move apps between the system to internal memory?
i know how to move files to the sd card using the default app manager, but i see no option to move anything from system memory to internal memory.

thank you for your help on advance!!!



Read more

forum.xda-developers.com



[General] Deleting gmail from droid


Deleting gmail from droid



I have a Droid X. When I deleted my email message off my PC it would auto delete them from my phone which was great! But it is not doing that anymore. What do I need to do to get it to work again?

Thanks for any and all Help!

RFL527



Read more

forum.xda-developers.com



Friday, July 19, 2013

[General] Handcent SMS and other recipients of a message


Handcent SMS and other recipients of a message



Does anyone know how to see the *other* recipients of a group text message I receive in Handcent? Example: I receive a text in Handcent to my Note 2 phone. I can see the text message, and above that (in the message's header) it shows the first two recipients, then ",....." indicating there are MORE people who have received the message. Is there any way I can see a complete list of the recipients?



Read more

forum.xda-developers.com



[General] Google Play Store is not working


Google Play Store is not working



Hello!

I'm new to this forum. I have recently received a Daxian XY100S and can't make Google Play Store to work. When it opens, it closes in a second. I can't sign in to Chrome and YouTube. I rooted it and I removed all the Chinese apps and it is still not working. Download Manager has been always enabled.

What else can I do to make it work?

There have been installed an alternative chinese store app, I thought it were conflicting with Play Store but I uninstalled it and it is still not good.

Do you have any idea?

Greetings from Hungary



Read more

forum.xda-developers.com



[General] Internet cannot be switched on automatically/manually after back from abroad/roaming


Internet cannot be switched on automatically/manually after back from abroad/roaming



Hello all,

I have a very simple, but specific problem. However I believe that it may also puzzle other users:

I have switched off roaming internet (both on the phone and by the provider), since I'm travelling a lot between Austria (my home country) and Germany. That works fine. I helped me to avoid spending a fortune on data roaming.

However my phone does not reconnect to the internet after coming back to my home country. I have not found any resolution besides to restart the phone to get a data connection again. Phone connections work as expected.

This problem get's more and more annoying, because there are more and more interesting internet services for driving, e.g. looking for the cheapest gas station via internet.

I have googled a lot, but did neither find a specific description not a solution for this problem.
I have the feeling that the problem is rooting in a bug in Android.

My Phone Details:

Phone: Samsung Note
Android Version: 4.1.2 (but the problem existed already in 4.0.x and in the original delivered OS 3.x)
Telecom Provider: Telering (Austria)
Data Roaming disabled both on Phone and in the user settings by the provider

I experienced the problem mainly by traveling to Germany, but I believe the problem also exists coming back from Italy and other country.

Has anybody experienced the same problem?

Is there a better solution than restarting the phone?

Thank you for your kind help

Wallenstein



Read more

forum.xda-developers.com



[General] Had to Wipe Device: Question


Had to Wipe Device: Question



Open Google Play, tap the menu button, select Settings, then make sure "Auto-add widgets" is checked. It's a bit of a misnomer--"widgets" should be "shortcuts."

Sent from my DROID RAZR using AC Forums mobile app



Read more

forum.xda-developers.com



[android help] AsyncTask with a ProgressDialog and Progress Bar


AsyncTask with a ProgressDialog and Progress Bar



I am attempting to use AsyncTask to load a file of determinate length. My AsyncTask looks something like this:



protected void onPreExecute() {
dialog = ProgressDialog.show(MyActivity.this, null, "Loading", false);
}


protected void onProgressUpdate(Integer... values) {
if (values.length == 2) {
dialog.setProgress(values[0]);
dialog.setMax(values[1]);
}
}


in my doInBackground() implementation I call publishProgress(bytesSoFar, maxBytes); inside my loading loop and in the onPostExecute() I call dialog.dismiss().


However, I can't get the ProgressDialog to show anything but an indeterminate spinner. I want to see a horizontal progress bar that shows the progress as the loading happens. I've debugged and can see that onProgressUpdate() gets called with sane values and that the dialog's methods are getting called.



Read more

stackoverflow.comm



[android help] Youtube Player API doesn't work in android phonegap


Youtube Player API doesn't work in android phonegap



In normal html file, I use below code and it's working great.



var youtube;
var params = { allowScriptAccess: "always" };
var atts = { id: "youtube" };
swfobject.embedSWF("http://www.youtube.com/apiplayer?enablejsapi=1&version=3",
"ytpC", "1", "1", "8", "expressInstall.swf", null, params, atts);

.
.

youtube.loadVideoById(link);


But when I moved this html into android phonegap environment, then it gives 'cannot call loadVideoById method of undefined!'


What is the exact problem? What can I do to get success?



Read more

stackoverflow.comm



[android help] E-mail attachment through intent using `mailto:` scheme


E-mail attachment through intent using `mailto:` scheme



This seems to be fixed in API 17 (Jelly Bean 2), at least on my Galaxy Nexus and Nexus 4.


Specifically:



Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts("mailto", "email@me.com", null));
intent.putExtra(android.content.Intent.EXTRA_STREAM, Uri.fromFile(attachmentFile));
startActivity(Intent.createChooser(intent, "Send email..."));


This does NOT work in Froyo or Gingerbread. I'm not sure at what point it started working.


Maybe someone else has some details for other API levels?


I would suggest for pre-API17 using ACTION_SEND, otherwise ACTION_SENDTO.



Read more

stackoverflow.comm



[android help] I have followed google map tutorial but keep on getting this answer:Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY


I have followed google map tutorial but keep on getting this answer:Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY



Ive been following a tutorial regarding google maps, a pretty basic tutorial here http://umut.tekguc.info/en/content/google-android-map-v2-step-step ,I am unable to run the application on the emulator, iv donwloaded and installed the vend.apk and the gms.apk files as well as also have downloaded the google play services from the SDK manager. After doing all this when i finally run my application on the emulator the following error occurrs : "Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY".


I also have tried and change the AVD but it does'nt work. I think i am unable to configure the APIs properly with the AVD. Any help would be appreciated, thank you all. Here is my code: MainActivity.java:



package com.example.googlemapsandroidv2;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.MapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.Marker;
import com.google.android.gms.maps.model.MarkerOptions;

public class MainActivity extends Activity {

private GoogleMap mMap;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mMap=((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);
final LatLng CIU=new LatLng(35.21843892856462, 33.41662287712097);
Marker ciu=mMap.addMarker(new MarkerOptions().position(CIU).title("My Office"));
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}

}


Here is the Manifest:




package="com.example.googlemapsandroidv2"
android:versionCode="1"
android:versionName="1.0" >

android:minSdkVersion="14"
android:targetSdkVersion="17" />

android:name="com.example.googlemapsandroidv2.permission.MAPS_RECEIVE"
android:protectionLevel="signature">


android:name="com.example.googlemapsandroidv2.permission.MAPS_RECEIVE"/>
android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
android:name="android.permission.INTERNET"/>
android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
android:name="android.permission.ACCESS_COARSE_LOCATION"/>
android:name="android.permission.ACCESS_FINE_LOCATION"/>
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.google.android.maps.v2.API_KEY"
android:value="AIzaSyCLhVm6faqwv8gaj1aWZ_Xvlsf4sMal42U"/>
android:name="com.google.android.maps" />
android:name="com.example.googlemapsandroidv2.MainActivity"
android:label="@string/app_name" >











Here is the detail regarding the AVD: Targert:Android 4.0(API level 14) CPU/ABI:ARM(armeabi-v7a)


Here is the console output:


[2013-07-18 14:27:31 - GoogleMapsAndroidV2] Android Launch! [2013-07-18 14:27:31 - GoogleMapsAndroidV2] adb is running normally. [2013-07-18 14:27:31 - GoogleMapsAndroidV2] Performing com.example.googlemapsandroidv2.MainActivity activity launch [2013-07-18 14:27:31 - GoogleMapsAndroidV2] Automatic Target Mode: launching new emulator with compatible AVD 'MapTestAvd' [2013-07-18 14:27:31 - GoogleMapsAndroidV2] Launching a new emulator with Virtual Device 'MapTestAvd' [2013-07-18 14:27:33 - GoogleMapsAndroidV2] New emulator found: emulator-5554 [2013-07-18 14:27:33 - GoogleMapsAndroidV2] Waiting for HOME ('android.process.acore') to be launched... [2013-07-18 14:28:29 - GoogleMapsAndroidV2] HOME is up on device 'emulator-5554' [2013-07-18 14:28:29 - GoogleMapsAndroidV2] Uploading GoogleMapsAndroidV2.apk onto device 'emulator-5554' [2013-07-18 14:28:40 - GoogleMapsAndroidV2] Installing GoogleMapsAndroidV2.apk... [2013-07-18 14:29:26 - GoogleMapsAndroidV2] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY [2013-07-18 14:29:26 - GoogleMapsAndroidV2] Please check logcat output for more details. [2013-07-18 14:29:26 - GoogleMapsAndroidV2] Launch canceled! [2013-07-18 14:34:40 - SDK Manager] Warning: Ignoring add-on 'addon-google_apis-google-14': File not found: manifest.ini [2013-07-18 14:37:09 - SDK Manager] Warning: Ignoring add-on 'addon-google_apis-google-14': File not found: manifest.ini [2013-07-18 14:54:40 - SDK Manager] Warning: Ignoring add-on 'addon-google_apis-google-14': File not found: manifest.ini


THANK YOU ALL FOR YOUR TIME. I really appreciate all sorts of help.



Read more

stackoverflow.comm



[android help] Positioning elements drawn on a canvas


Positioning elements drawn on a canvas



I am working on an application which uses canvas. The user should be allowed to draw something on the canvas and then be able to move it. For example, if a user draws an arrow to point at something, he should then be able to move it to point at something else.



Read more

stackoverflow.comm



[android help] Custom onInterceptTouchEvent in ListView


Custom onInterceptTouchEvent in ListView


android - Custom onInterceptTouchEvent in ListView - 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.

















How can I implement a custom onInterceptTouchEvent() in a ListView that give the scrolling priority to the child's of the ListView and as soon as they did their scrolling , give it back to the ListView ? I want to give priority to the inner views.


























Try overriding onInterceptTouchEvent() of your children like this:



@Override
public boolean onInterceptTouchEvent(MotionEvent ev) {
if(!isAtTop || !isAtBottom){
getParent().requestDisallowInterceptTouchEvent(true);
}
return super.onInterceptTouchEvent(ev);
}


In onInterceptTouchEvent() calculate if the ListView has scrolled totally to the top or bottom. If it is somewhere in between then ask the parent to not intercept touches.























default






Read more

stackoverflow.comm



[General] SUPER annoying problem on my droid razr m


SUPER annoying problem on my droid razr m



The voicemail notification in my notification bar will not go away. Whenever I try to listen to the voicemail, it says the google subscribe you are trying to reach is not available. I signed up for Google voice but I forgot about it. Please help me with this problem it is really annoying!

Posted via Android Central App



Read more

forum.xda-developers.com



[General] rss feed


rss feed



I have an app that uses rss feed to stream otr's. The problem is the app is kinda glitchey and does not show you the feed or allow you to download it. is there a way that I can use a program to find the feed that it uses. I have tried to find the show on line but no luck. thanks



Read more

forum.xda-developers.com



[General] Looking for some help with a new Camera App


Looking for some help with a new Camera App



Hi all, I've written a camera App that can be configured to access custom settings and features in the camera hardware.
It's designed for use by Photography enthusiasts to get the most they can from the android cameras. No post processing options like borders or filtering after the photo is taken. There a plenty of apps etc to do that sort of thing. This just attempts to allow the user as much control of the camera hardware as possible.

The problem is I can't get access to all the different hardware types out there to see what each device actually has in this area.

If anyone can help me out here that would be greatly appreciated. The app is for Android 4.0 and up.

What you would need to do it download the evaluation version from .
Have a quick look at the on how to add "Custom Group Parameters" and "Custom Range Parameters". (There are in App help pages as well if you need them)
Have a play and see what extra options you can get working on your device.

Thanks is advance to everyone who can give me a hand on this one.

There are three options for additional settings that may be found.


  • Extras for the standard options such as more Scene settings

  • Custom Value/Group based parameters similar to the Focus and Flash etc (One value selected from a list of available options)

  • Custom Range based parameters similar to the Exposure settings (a number setting within a valid range)

As an example the following are the additional options for one device that has a few accessible extras.

------------------------------
HTC Sensation Z710a
------------------------------
Additional Standard Parameters Scene - backlight,flowers
------------------------------
Custom Value/Group Parameters

auto-exposure
auto-exposure-values=frame-average,center-weighted,spot-metering

iso
iso-values=auto,ISO_HJR,ISO100,ISO200,ISO400,ISO800,ISO1600
------------------------------
Custom Range Parameters

contrast
contrast-def=5
contrast-max=10
contrast-min=0

saturation
saturation-def=5
saturation-max=10
saturation-min=1

sharpness
sharpness-def=10
sharpness-max=30
sharpness-min=0


Read more

forum.xda-developers.com



[General] Nexus 7 tablet messed up beyond all belief. In urgent need of assistance!


Nexus 7 tablet messed up beyond all belief. In urgent need of assistance!



Hey Android Central, I desperately need your help. My 6 month old Nexus 7 went to hell in the past 5 days, it started force-closing apps on me, lagging, and finally it started to mess itself up so bad that all I could do was turn it off... Here's where it gets really weird: It won't turn off. I held down the power button, as any sensible person would when their device is acting up, and it just went black, then brings up the colored X. At first I thought that maybe this was an issue caused by my use of a strange app, maybe it was one of the deluge of apps that I'd downloaded with my $25 dollar gift card or some of the free ones I'd gotten that day. I managed to get the tablet back up and running after 25 minutes of BS by holding down the power button and the volume down button. After that I cleared my cache and deleted almost all of the apps I'd downloaded on Sunday night. From that point I took it slow, went on Chrome, checked out some info, read some of Name of the Wind, and then powered off and hit the hay after plugging it in. The next morning it worked like a dream: fast, fluidly, like always. After a few hours of use it began to slow down, then it got weird again, force-closing any app I tried to bring up, and finally getting down to the reset of doom. Once again it became a pitched battle between me, and my tablet. I tried so desperately to get it working... and I did! For now.

The rest of the day passed no issues, until the next morning (this time the battery was at 93 percent, so that pretty much rules out any battery issues that have inflicted this curse upon my tablet and me) it did this same thing twice, messing me over big time. After that I was getting really angry, but that whole, the WHOLE DAY, after that, it worked fine. When finally the next day rolled over I found the issues in my face first thing in the morning. It seemed as though, through all my valiant efforts, I had lost the fight... The X screen appeared, taunting me, it's full battery obviously doing nothing to help... Then it bricked. Black screen and nothing worked. This persisted through part of the day, but eventually was sorted out, and today, after it completely screwing me and giving me issues even getting into safe mode I began to gear up. I equipped myself with every ounce of knowledge I could have: I would perform this exorcism if it was the last thing I ever did with this tablet.

After reading and watching dozens of articles and videos I felt I was ready. From the official Asus and Google pages to the DIY guides of Youtube and Gizmodo, it was time to do this. The Hard Reboot. My hands were shaking as I hooked the USB up to my laptop and began to hold down upon the up, down, and power buttons of the Nexus 7 tablet, ready to win this infernal war as the damnable X laughed at me. I felt as though I had won the first stage, the flayed Android alien laying on the table, ready to be operated on. I made my way to the Recovery Mode and chose to reset it, to clear the all of the data and start over, I had to.

This should have worked... By all measures of Human logic this should have worked. At the main menu, the "Welcome, please select your settings" page, it happened again. I just couldn't shake it "Unfortunately: Setup Wizard has stopped," "Unfortunately: Settings has stopped" I can't even connect it to WiFi now, or sign in with my google account, and once again the colorful X sits across the table from me... Laughing.

Please, Androidcental, I've tried everything. Please read my ridiculously long synopsis of what happened, and PLEASE give me aid.
Thank you SO much, in advance.
~ Hunter D AKA NarcoticDragoon

Oh, EDIT: And thanks to my father who managed to get it running at least five of the times its done this, and his advice of troubleshooting.



Read more

forum.xda-developers.com



[General] samsung galaxy s4 frequency


samsung galaxy s4 frequency



Heya Kelly,
Your model of the S4 does support 1700mhz. You probably need to have the phone "sim unlocked" you'll have to call the carrier the phone was originally sold on and ask for the unlock code and instructions. Alternatively, you can pay some websites around $15us to do the same thing. Good luck!

Sent from my HTC One using AC Forums mobile app



Read more

forum.xda-developers.com



[General] Whether the device admin applications updated itself?


Whether the device admin applications updated itself?



I have a device admin application which published in PlayStore.
When we release new version of this application, whether it is easily upgraded, like any other applications?



Read more

forum.xda-developers.com



[android help] Want to post Json data via Android


Want to post Json data via Android



How to post JSON type of data from android to server via HTTP???


TerminalNumber=17707570&Data={"RequestUniqueID":"125","MethodName":"CsrGenerateSessionID"}



Read more

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