Android
|
|
OriginalGriff wrote:
Wrong site: this is for development, not users who want to root phones
Try Google - a very basic search should get you what you want: Root SONY XPERIA - Google Search[^]
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: <a href="https://www.codeproject.com/Members/DalekDave">@DalekDave</a> is now a follower!
I SEE THIS ON MY POST .. " This message has been flagged as potential spam and is awaiting moderation" Can you tell me please why and how and what for someone would spam this website ?
regards
|
|
|
|
|
Member 14137478 wrote: hy and how and what for someone would spam this website Take a look up the top of the page, any site with 13 MILLION+ registered users will be a spam target. CP has been working on automated spam filters for some years and while they are not perfect (therefore your message got nailed) but we see very few legitimate complaints about blockages.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
Quote: can you tell me please why and how and what for someone would spam this website ? you would have to ask the hundreds of spammers that get kicked out. Beats me why anyone would spam any website. Or email address. Or just spam. But then I'm a nice person. Not a spammer.
In the meantime, your post ended up in moderation. I'm still awake. I allowed it through because I didn't think it's spam. But don't get belligerent just because the automated system got cautious. It's what keeps this site useful
|
|
|
|
|
It's easy you just need to connect it to a 240 volt power supply. That should root it completely.
|
|
|
|
|
Well done bro !!
It's out of use now !! THANK YOU !! 
|
|
|
|
|
Message Closed
modified 11-Jan-19 2:18am.
|
|
|
|
|
|
Why bytecode cannot be run in Android?
|
|
|
|
|
|
its related to android application if you know about this please reply
Thank you
|
|
|
|
|
That does not mean anything either.
|
|
|
|
|
Taking the relevant words from your posting this was the results.
bytecode android - Google Search[^]
Learn to do some basic research!
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
Because something is wrong with it.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
|
|
how can i show a progress Bar when downloading using download manager and broadcast receiver
|
|
|
|
|
See here and/or here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I am trying to move a checked listview item from one activity to a textview of another activity. But the problem is no matter which item I click, I am only getting textview value of first item(Position) in listview.
Listview code
b1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
SparseBooleanArray checked =listView.getCheckedItemPositions();
ArrayList<String> selectedItems = new ArrayList<String>();
String str = null;
for (int i = 0; i < checked.size(); i++) {
int position;
position = checked.keyAt(i);
if (checked.valueAt(i))
selectedItems.add(String.valueOf(arrayAdapter.getItem(position)));
str = listView.getItemAtPosition(i).toString();
str=str.replaceAll("[^\\d.]", "");
}
Intent i = new Intent(getApplicationContext(), Activation.class);
i.putExtra("contact", str);
startActivity(i);
arrayAdapter.remove(str);
}
});
This is the code of how the listview item is accepted as textview
Intent i = getIntent();
String product = i.getStringExtra("contact");
text.setText(product);
|
|
|
|
|
You are setting the value of str to a new string each time round the loop. So when the loop terminates it will contain the text from the last item in the list.
|
|
|
|
|
Yea, I tried setting the str value outside the loop, but the result's the same.
|
|
|
|
|
You need to do it where you test for a selected item in the ListView.
|
|
|
|
|
Is this a single- or multi- selection listview?
Member 14079444 wrote: if (checked.valueAt(i)) If this evaluates to true, shouldn't you exit the for loop, or are you continuing the search for some other reason?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
How to send data from android app to a php page?
|
|
|
|
|
Wouldn't it be by using either an HTTP POST or GET command?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|

It is very important for a mobile application too talk to web based applications. There are various scenarios where we need to fetch data from web pages .
The code below will enable your android app to talk to a webpage.
Note : You also need to enable uses permission for internet in the android.manifest file.
<uses-permission
android:name="android.permission.INTERNET" />
Code for android app
public void postData(String toPost) {
// Create a new HttpClient and Post Header
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://www.URL.com/yourpage.php");
//This is the data to send
String MyName = 'adil'; //any data to send
try {
// Add your data
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1);
nameValuePairs.add(new BasicNameValuePair("action", MyName));
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
// Execute HTTP Post Request
ResponseHandler<String> responseHandler = new BasicResponseHandler();
String response = httpclient.execute(httppost, responseHandler);
//This is the response from a php application
String reverseString = response;
Toast.makeText(this, "response" + reverseString, Toast.LENGTH_LONG).show();
} catch (ClientProtocolException e) {
Toast.makeText(this, "CPE response " + e.toString(), Toast.LENGTH_LONG).show();
// TODO Auto-generated catch block
} catch (IOException e) {
Toast.makeText(this, "IOE response " + e.toString(), Toast.LENGTH_LONG).show();
// TODO Auto-generated catch block
}
}//end postData()
php code
<?php
//code to reverse the string
$reversed = strrev($_POST["action"]);
echo $reversed;
?>
modified 29-Dec-18 2:08am.
|
|
|
|
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Praise
Rant
Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.