Android :: Posting Web Pages - Using Code
Apr 22, 2009
I have a login oage which i hve to post with soem user details like user name , passwords, and some hidden values. i need to submit the response page aftr login (its an I agree) to make an API request . I want to do all thse things through code which needs to consider evry aspcts as we are doing the same using browser. I submited the first login page using code and got the resonse page. on submiting the I agree page I m redirected to a some other page.it seems the cookie is not handled while submiting the second page or may be some redirects or so.
The same is working well if i make the request through browser
The code I used is as follows
CODE:.............
THIS RESPONSE IS NOT CORRECT AS I EXPECTED.....
If any ppl cannot figure out a solution, whether we can load url in the browser class of android so tht we can get all the data in the browser and can use the methods associated with the browser.
View 2 Replies
Jun 6, 2010
For the sake of simplicity, the pages on facebook that you "Like", I will refer to them as 'fan pages' (old name). I am admin of a fan page (which doesn't matter since everyone can post photos/videos). How can I upload photos from my phone to this page? The phone's 'Touch' page and 'Mobile' page will only allow me to upload to my profile, but that's not what I want. When I go to the fan page using the 'Touch' or 'Mobile' page, it never gives me option to upload photos, only to view them. I tried using the normal 'Full' facebook page on my phone but it just says "Upload Disabled" because I'm not on a PC. Can someone explain how I can upload a photo to a fan page? This was one of the bigger reasons I got this phone.
View 4 Replies
View Related
Nov 4, 2010
Excuse the simplicity of this request - but is there a way for me to link onClick commands for buttons through the Layout rather than code. I am trying to create a simple app and I want to be able to make buttons and have clicks go from one "page" to the other.
If not, could someone please point me in the direction of the code needed for it?
Is there a site that might overview how to use the UI to code for droid?
View 2 Replies
View Related
Mar 4, 2012
Considering how much Google has done to popularize them, it seems like a glaring oversight that I read about an interesting app on my laptop or desktop, see a link to the bottom of the article, and visit the Market page yet I then have to open up a QR code generator to be able to easily get to that page on my phone. Why doesn't google autogenerate one somewhere on the app page?
View 1 Replies
View Related
Feb 2, 2010
I want to form an xml and post it. Can anybody tell me how to form an xml in android.
View 2 Replies
View Related
Jun 9, 2010
I want to post my free version of the APK on my website so people can test it out without going through android market.I am using a third party web host site (windows based server).I tried <a href="freeapp.apk">, it doesn't work.I did some search and all I found was using Apache server to do that. Is there a way to host this apk on a windows server? What the html should look like? Where can I find more information about it?
View 3 Replies
View Related
Aug 5, 2010
I am working on an Android app where we enter some text in edit box and all I want to do is simply send the text which typed (i.e. edittext.gettext()) to Facebook as my status. The important thing is I don't want a Facebook dialog box to pop up, instead ,just send the message as status without a dialog box. Is there any way I could post without a dialog box?
View 2 Replies
View Related
Apr 19, 2010
I am currently using C:Geo on my phone for my Geocaching needs and am happy with its performance. I am also a user of Foursquare with Facebook and like to update where I am because I like to try new places. Along these lines I was thinking it would also be nice to share caches I have found with my friends, plus raise their awareness of Geocaching at the same time, by being able to have a found Geocache posted to facebook at the time it is marked found in the program. Has anyone heard of an Android app that would do this? If not have you heard of anyone developing one? If so I would definitely support such an app.
View 4 Replies
View Related
Aug 8, 2010
I was trying to post a toast notification in case something goes wrong in a worker thread. I do this by putting a handler.post(funcFailed) in the catch block where funcFailed it a runnable and simply called a function funcFailedshow()
funcFailedshow() is defined to be Toast.makeText(App.this,"Error in funcfailed", Toast.LENGTH_LONG).show();
For some reason i cannot see the toast notification. Even if i replace App.this (app is the applications name) with a getApplicationContext() it does not work.
View 2 Replies
View Related
Nov 22, 2010
I've got an issue when trying posting on my facebook wall from an application developed on an Android phone. Here's the problem: Sometimes different "strange" error message appear like "error with HelloIdahoFalls.com" or "HelloSiouxCity.com" or "HolyPlanets Connect" and so on. I really don't know why these sites appear on my error log. Seems like my Android KeyHash is in conflict with some of this sites. The strange thing is that sometimes my application works and posts correctly on my wall.
View 2 Replies
View Related
Nov 17, 2010
My application launches a thread to query the web for some data. I want to display a Toast message when nothing is found, but my application always crashes. I've tried using the application Context from within the thread, like so: Toast.makeText(getApplicationContext(), "testttt", Toast.LENGTH_LONG).show(); I've also tried creating a Runnable with the Toast call and calling runOnUiThread(runnable) from the Thread (the Toast call in this runnable uses the Activity as the first parameter). Does anyone have any ideas on how to accomplish this?
View 3 Replies
View Related
Dec 9, 2012
I have been searching a lot to find a way to do this. But nothing seems to be working for me.
This is my image button for facebook status post:
This is my mainactivity.java file's corresponding part:
[HIGH]public class MainActivity extends FacebookActivity {
private static final String APP_ID = "XXXXXXXXXXXXXXX";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
[code]....
View 3 Replies
View Related
Oct 31, 2010
Using ACTION_SEND it's possible to post messages to various sharing services such as gmail, facebook, twitter, etc. Most services have reasonably long message lengths, but twitter in particular is very short (140 characters).
Not knowing in advance which service a user is going to select once the Intent.createChooser() dialog appears, is there a way to construct an intent that will result in a short message for twitter but a longer message for other services?
View 1 Replies
View Related
Jul 22, 2010
I have a problem in posting a message on friends wall in facebook. I write below code for posting a message.
private void postwall(){ try { FBRequest streamRequest = FBRequest.requestWithDelegate(new FBRequestDelegateImpl());
Map<String, String> parameters = new HashMap<String, String>();
frdlist = new String[list.size()]; for(int j=0;j < list.size();j++){
if (list.get(j).isChecked()) { frdlist[j]=String.valueOf(list.get(j).getUserid());
parameters.put("message", "HI.... its a test application of Dates Near Me");
parameters.put("attachment", "{"name":"Facebook Connect for Android","href":"http://code.google.com/p/fbconnect-android/","caption":"Caption","description":"De scr iption","media":[{"type":"image","src":"http://img40.yfrog.com/img40/5914/iphoneconnectbtn.jpg","href":"http://developers.facebook.com/connect.php?tab=iphone/"}],"properties":{"anotherlink":{"text":"Fac eb ook homepage","href":"http://www.facebook.com"}}}");
parameters.put("auto_publish" ,"true");
parameters.put("target_id" ,frdlist[j]);
parameters.put("uid" ,String.valueOf(FBSession.getSession().getUid()));
streamRequest.call("stream.publish", parameters);
} } } catch (Exception e) {
// TODO Auto-generated catch block e.printStackTrace();
} }
I am passing three values: message,target_id and uid. All values I get perfectly. But when I check my friends wall that time message is not display on wall.
View 1 Replies
View Related
Jan 28, 2010
I want to press an Android button and automatically direct the user to the PayPal site with all the relevant data POSTED along also.Is this possible?
View 1 Replies
View Related
Nov 19, 2010
Where to find complete tutorial for posting twitter status from android?
View 2 Replies
View Related
Jan 13, 2010
I'm building an android app which should perform a GET on my site to get two cookies and then perform a post to the same site with these cookies.
As mentioned I start of with the GET and I'm using org.apache.http.client.HttpClient to perform this operation.
CODE:..............
So far so good. Don't mind the requiredCookies line yet, it will be used in the Java.net impl since I can't get the HttpClient one to work =(.
Let's take a look at the non working HttpClient Post part.
CODE:............
What happens now is that I perform a POST with the localContext where the cookies are stored. This doesn't work. I get a HTTP/1.1 401 No session. Since I had no luck with this I tried another approach(java.net.HttpURLConnection). Remember I still use the same GET part
CODE:.............
And VIOLA a 200 is displayed and everything works like a charm.
View 2 Replies
View Related
Aug 22, 2010
Is there a way you can tag someone when you post a pic on facebook on the Evo? I am not able to figure it out. Does anyone know how to go about that?
View 1 Replies
View Related
Apr 21, 2010
When I login in and try get extended premissins displays "You must be logged in to Facebook to use this feature".
How can I get extended permissions for posting messages in facebook?
View 1 Replies
View Related
Sep 30, 2010
To declutter the forum and direct new members, could we either:
1.) Update the Sticky at the top of the forum to reflect new developments
2.) Direct those new to rooting to Savoxis's Ally Page, and make that Sticky
View 2 Replies
View Related
May 30, 2010
My husband and I just got our Droids and have been happily posting and relying away to our friend's Facebook walls and messages. When we reply, the reply shows on our Droid immediately. We've found out though that our friends aren't receiving our replies. Upon further checking, even though a reply to a wall post shows on our Droid, when we log into Facebook on a computer, the reply isn't there, and no one else sees it either. The same thing is happening when we reply to private messages on Facebook.
View 6 Replies
View Related
Sep 22, 2010
Is it possible to write on a friends wall through Friendstream? I can see their walls, like their posts, comment on posts, but I can't seem to just simply write on their walls.
View 2 Replies
View Related
May 16, 2012
I just noticed that facebook was putting stuff on my calendar without me doing it and I can't seem to get them off. They only show up on my phones calendar, not when I open it in google. And the same items aren't even listed in my events on facebook.
View 2 Replies
View Related
Nov 8, 2010
When I was on 2.1 xt9 predictive text worked on the net and posting on forums but now on froyo I cant get it work but it will when i send a message so it got to be working. Can any body see if it works for them on froyo on the net as i think it must be a bug.
View 14 Replies
View Related
Sep 20, 2010
Just wondering if theres a way to post pictures directly from my phone? I want to post an item for sale and don't want to download the pictures to my computer.
View 7 Replies
View Related
Jun 28, 2010
I'm not sure if this is the correct place to post a question about a problem I'm having with my htc hero. Can anyone direct me to the correct location?
View 5 Replies
View Related
Aug 13, 2013
I am developing an android app. I would like to know are there any tips/ways to optimize the app before posting it on Google play. Is it necessary for me to do this or the Android OS will take care of these? So far I've used simple tools like zip align, layout opt, 9 patch etc..
Also are there any tools I can test my app using automation like monkey testing.
View 1 Replies
View Related
Feb 27, 2009
As Google's current support for paid apps in the Android Market is limited to the US market only (and even on the US market, would not support ADP1 phone), I really think you guys should stop posting your apps in there. Please make yourself a favor being able to reach the whole world and post your apps on androidgear or SlideMe or handango.
View 3 Replies
View Related
Nov 17, 2010
it is called "missed reminder" in the market. it lets you set how long you want your l.e.d. notification to blink, and it also does an audible notification that you get to pick and set how often it goes off. so far i am loving this app. you can totally customize your l.e.d. for text/calls/ gmail, ect... i thought some of you out there might be looking for something like this. i think you will really like it. i did post this already in the mytouch 4g forum, but this app is good for many android phones so i thought others might have interest
View 2 Replies
View Related
Sep 16, 2010
I am trying to enable users who have linked their Facebook account to be able to post to their wall with one button press as detailed in their docs. Specifically, I do not want to use the .dialog methods provided in the Facebook for Android library, as I want the Publish process to be as seamless as possible.The specific call looks like this in an HTTP client simulator: HTTP POST https://graph.facebook.com/me/feed Content-type: application/x- www-form-urlencoded access_token=&link=http://mylink.com/id/1326&name=What do you think?&description=Description of the link This call runs successfully in HTTP Client on OS X. I originally tried using the Facebook for Android library's .dialog function with "stream.publish" action, but this causes the unwanted dialog to appear. Next, I tried using Facebook for Android's .request function with "POST" parameter, but this function assumes that the body is a byte array and fails in multiple places in the library. Now, I am trying to use the Apache HTTP stack included with Android.Specifically, my code looks like this: String url = "https://graph.facebook .com /me/feed"; ArrayList<NameValuePair> pairs = new ArrayList<NameValuePair>(4); pairs.add(new BasicNameValuePair("access_token", App.facebook.getAccessToken()));pairs.add(new BasicNameValuePair("link", "http://mylink.com/id/"+id)); pairs.add(new BasicName ValuePair("name", question)); pairs.add(new BasicNameValuePair("description", description));The problem is that the response from Facebook is consistently the following: {"error":{"type":"OAuthException","message":"Invalid OAuth access token."}}I know the OAuth access token is not invalid. When I paste the same OAuth access token into HTTP Client, it works like a champ. It seems that creating the HttpPost object's parameters is garbling the complex OAuth access token in some way. Does anyone have suggestions on how to proceed?
View 1 Replies
View Related