Category : url

I want to share something (like a text, image, etc) using a link with Android Intents. For example: Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, someTextView.getText()); sendIntent.setType("text/plain"); Intent shareIntent = Intent.createChooser(sendIntent, null); startActivity(shareIntent); This code allows me to share a text. But I want that this content will be shared with a link, like this: ..

Read more

Request method sends request to login api with email and password parameters in that retuen session id and success token, session method sets the session by session id and redirect url, but it response it is returning login page, but it should return tax page(website page). private void requestM(String url) { StringRequest stringRequest = new ..

Read more

I found this code on the internet: final Button mbutton = (Button) findViewById(R.id.httpcheck); mbutton.setOnClickListener(new View.OnClickListener(){ public void onClick(View v){ public boolean isConnectedToServer(String url, int timeout) { try{ URL myUrl = new URL("http://www.google.co.uk"); URLConnection connection = myUrl.openConnection(); connection.setConnectTimeout(timeout); connection.connect(); return true; } catch (Exception e) { return false; } } } }); Tried using the code ..

Read more