I am trying for twitter example.http://www.android10.org/index.php/articleslibraries/291-twitter-integration-in-your-android-application i got example from this link.I am getting twitter login page but after authentication it should be redirected to some url.I am using web view in that web view i gave the url but it is showing web page is not available.
In preparerequest token activity i gave like this
context.startActivity(new Intent(context,FaceexActivity.class));
public class FaceexActivity extends Activity {
WebView browser;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main1);
browser=(WebView)findViewById(R.id.webkit);
browser.getSettings().setDomStorageEnabled(true);
browser.loadUrl("https://www.google.co.in/");
}
}
after login when it is going to faceexactivity it is not displaying that web page and showing web page not available
You should Redirect to your Application after successful Authentication for that make use of Call back URL field in your Application , give some Dummy link – http://www.dummy.com , Also ensure that you added intents actions in Manifest file and used same call back url inside your Activity.
Rest of things clearly explained in Android-10 Website