Thursday, March 28, 2013

Android Issue: My app invite request is sending a user to a dead page in Facebook

Android Issue: My app invite request is sending a user to a dead page in Facebook - Stack Overflow



















In Android mobile, my app invite request is sending a user to a dead page in Facebook.


We don't have a canvas app page, rather we have a website that uses the Facebook login to resolve a page from the notification. Here's the issue:



  1. In Android, user is notified in two ways: (a) via notification jewel (Facebook's terminology), and (b) via an interstitial page that has nothing on it except ": sent you a request. (where "request" is a link).




  2. If the user pursues option B, and clicks on the App Name, it links to an App page (even though we do not have an App per se). If the user clicks on the requestor's name, it links to the requestor's respective FB page. If the user clicks on "request" link, it links to a page that "cannot be displayed or does not exist" in Facebook. <---this last part here is the issue.



This does not happen in iOS, it only happens in Android. Does anyone know why the page associated with the link called "request" does not resolve??


Here is the URL by way of reference:



















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










default






.

stackoverflow.com

produce the apk file given .sign format


Here's what I need to do.


I found this site https://code.google.com/p/androguard/source/browse/signatures/dbandroguard?r=c3470cea8dbcd385f43cb4a6aeff816e50a0bdc9&spec=svn1e64755cd5122b3b1f3b3e1cc96fdde8e163e42a that provides the .sign of an apk. What I need is to get the .apk format. But since they only give the .sign file I was thinking if there is anyway I could produce the apk given only the .sign file? I was thinking if there is an available tool to do this.


I do not know what the contents of the .sign file so I was just assuming. I need to get malicious or suspicious apk that's why I was brought to that site. If you could point me to other sites that provides malicious or suspicious apk, it will also be helpful. I really need this for my research. Please enlighten me. thanks!



.

stackoverflow.com

Animated GIF Freezes in WebView while timer is running


I have a WebView with an animated gif loaded in it. I also have a countdown timer and when it's up it loads a different animated gif.


When the timer is running the gif doesn't animated. What is the best way to fix this?



.

stackoverflow.com

Async android json parser android- null pointer exception


From my last post, got t know that, i need to use async task for json parsing from url, have done the same and attached below,



public class ReadJson extends ListActivity {
private static String url = "http://docs.blackberry.com/sampledata.json";

private static final String TAG_VTYPE = "vehicleType";
private static final String TAG_VCOLOR = "vehicleColor";
private static final String TAG_FUEL = "fuel";
private static final String TAG_TREAD = "treadType";

ArrayList> jsonlist = new ArrayList>();

ListView lv ;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_read_json);
new ProgressTask(ReadJson.this).execute();
}
private class ProgressTask extends AsyncTask {
private ProgressDialog dialog;
// private List messages;
public ProgressTask(ListActivity activity) {
context = activity;
dialog = new ProgressDialog(context);
}
/** progress dialog to show user that the backup is processing. */
/** application context. */
private Context context;
protected void onPreExecute() {
this.dialog.setMessage("Progress start");
this.dialog.show();
}
@Override
protected void onPostExecute(final Boolean success) {
if (dialog.isShowing()) {
dialog.dismiss();
}
ListAdapter adapter = new SimpleAdapter(context, jsonlist,
R.layout.list_item, new String[] { TAG_VTYPE, TAG_VCOLOR,
TAG_FUEL, TAG_TREAD }, new int[] {
R.id.vehicleType, R.id.vehicleColor, R.id.fuel,
R.id.treadType });
setListAdapter(adapter);
// selecting single ListView item
lv = getListView();
}
protected Boolean doInBackground(final String... args) {
JSONParser jParser = new JSONParser();
JSONArray json = jParser.getJSONFromUrl(url);
for (int i = 0; i < json.length(); i++) {
try {
JSONObject c = json.getJSONObject(i);
String vtype = c.getString(TAG_VTYPE);
String vcolor = c.getString(TAG_VCOLOR);
String vfuel = c.getString(TAG_FUEL);
String vtread = c.getString(TAG_TREAD);
HashMap map = new HashMap();
map.put(TAG_VTYPE, vtype);
map.put(TAG_VCOLOR, vcolor);
map.put(TAG_FUEL, vfuel);
map.put(TAG_TREAD, vtread);
jsonlist.add(map);
} catch (JSONException e) {
e.printStackTrace();
}
}
return null;
}
}


}


When i execute this, i get null pointer exception for error executing in asyc background in the line, for (int i = 0; i < json.length(); i++), tried several things but not working, any help will be gr8ly appreciated!!



.

stackoverflow.com

Show multiple images and allow user to post one of them on Facebook Wall using Android


Show multiple images and allow user to post one of them on Facebook Friend's Wall by using a Selection.


Still I'm allowing user to post a static image to Facebook Wall, but now I want to allow user to select an image from multiple images and then post to wall.


i am using below code to post a specific image to wall, using this code:



params.putString("picture", FacebookUtility.STATIC_IMAGE_URL);


Code to post a Static Image:



public void onItemClick(AdapterView adapterView, View view,
int position, long id) {
try {
final long friendId;
friendId = jsonArray.getJSONObject(position).getLong("uid");
String name = jsonArray.getJSONObject(position).getString("name");
new AlertDialog.Builder(this)
.setTitle(R.string.post_on_wall_title)
.setMessage(
String.format(getString(R.string.post_on_wall),
name))
.setPositiveButton(R.string.yes,
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog,
int which) {
Bundle params = new Bundle();

params.putString("to",
String.valueOf(friendId));
params.putString("caption",
getString(R.string.app_name));
params.putString("description",
getString(R.string.app_desc));
params.putString("link",
"http://www.google.com");
params.putString("picture",
FacebookUtility.STATIC_IMAGE_URL);
params.putString("name",
getString(R.string.app_action));
FacebookUtility.facebook
.dialog(FriendsList.this,
"feed",
params,
(DialogListener) new PostDialogListener());
}

}).setNegativeButton(R.string.no, null).show();
} catch (JSONException e) {
showToast("Error: " + e.getMessage());
}
}

public class PostDialogListener extends BaseDialogListener {
@Override
public void onComplete(Bundle values) {
final String postId = values.getString("post_id");
if (postId != null) {
showToast("Message posted on the wall.");
} else {
showToast("No message posted on the wall.");
}
}
}


.

stackoverflow.com

Why is MediaPlayer calling IllegalStateException when I call release()?


I have an Activity in which there's a MediaPlayer that, after about 150 plays, puts up a system message saying "Video couldn't be played". A force restart of the app resets this problem for another 150 plays.


I'm assuming that this is a memory leak of some kind, though I'm entirely unclear as to what would be leaking, and also the simptoms don't align with how much memory Android allots my app. The video is about 3mb, so, if I'm leaking that much at every play the implication would be that my app has access to 450mb of memory which we know isn't true.


In any event, I'm trying to see if I can manually release the video somehow, but I'm getting an IllegalStateException when I call release on the MediaPlayer that is passed into my onComplete callback.


My code looks like this:



VideoView vv = (VideoView)findViewById(R.id.movie);
Uri videoURI = Uri.parse("android.resource://" + getPackageName() + "/raw/video_in" );
vv.setVideoURI(videoURI);
vv.start();
vv.setOnCompletionListener(new OnCompletionListener() {
@Override
public void onCompletion(MediaPlayer mp) {
Intent i = new Intent(getPackageName() + ".SCENE_2");
startActivity(i);
mp.stop();
mp.release();//here the exception is raised
finish();
}
});


The documentation seems to imply that there's no state in which you can't call release on a MediaPlayer, so, I'm stumped. I'm in JellyBean, in case that makes any difference.



.

stackoverflow.com

Increase output volume (wired)




DefaultIncrease output volume (wired)




What is the loudest output I can get through the headphone jack on jelly bean? I plug my phone into a speaker at work and ics was louder. I'm using play music so it streams, no local files. please advise.

Droid RAZR


droid razr / nexus 7 - current

droid x / dell streak - retired



.

forums.androidcentral.com

Get SMS delivery reports back after 4.1.2




SmileGet SMS delivery reports back after 4.1.2




I found a solution to get SMS delivery reports working again after the 4.1.2 update.

Okay so with the most recent update Verizon made the switch from sending text messages over their 1x network and moved them to their LTE (and possibly 3g) network, hence the reason they are sending so much faster. Today I was in a classroom that is underground and has terrible reception and noticed that I was getting delivery reports again but that my texts were sending slower, like they used to. I dug around in the phones programing menu and found a new option call "MO SMS over IMS" and it was enabled. Disabling it switches your texts back onto the old 1x network. So if you choose to make the switch, your delivery reports will come back but sending will go back to being a little slower.

To get to this menu open up your dialer and type in ##7764726. Next hit send and when prompted with a password type in 000000 and hit verify. Scroll down to SMS/MMS settings and select it. Next scroll to the bottom, select "MO SMS over IMS", and disable it. Now your good! delivery reports back!



.

forums.androidcentral.com

HTC one X ( AT&T ) 3.18 rooting troubles




DefaultHTC one X ( AT&T ) 3.18 rooting troubles




So I just got my HTC one X repaired after the mic blew out and they sent me a new one, however they upgraded the firmware to 3.18.xxxxxx.xxxx.xxxxx .

Is there a way to unlock the bootloader? I've tried for about an hour and a half now ( different ways ) but to no avail.



.

forums.androidcentral.com

Help guys...Please




DefaultHelp guys...Please




Alright. I started having bluetooth and wifi problems. Neither would turn on. I decided to do a factory reset. Well it all went down hill from there. I am stuck in a boot loop. It never gets to the boot animation. I can access adb and fastboot. I have ran two different RUUs. The OTA and Global. both have no effect. I have been s-off for a long time. Any suggestions??? I have no insurance.

I have a broken DNA too that can't detect sim card lol. I don't want to go back to my Droid Incredible! haha


HTC Incredible > HTC Incredible 2 > HTC Rezound > HTC DNA
DONATE TO MY PHONE FUND!!!

My GitHub: https://github.com/Flyhalf205?tab=repositories


.

forums.androidcentral.com

Which Rom and Kernel you are using on Sony Live With walkman (WT19i)




DefaultWhich Rom and Kernel you are using on Sony Live With walkman (WT19i)




Post here which rom and kernel combination you are using, You can also share your experience with the Rom and Kernel.

I use Viper xperia 4.0 with Lupus 3.9



.

forums.androidcentral.com

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