15,890,043 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by wajib rehman (Top 13 by date)
wajib rehman
21-Jul-16 10:48am
View
actually my question is about to check if the exist record of the user is found and show message that record is already exist
wajib rehman
2-Sep-15 1:23am
View
ok but now i want to remove (delete) all the data stored in the database.
how i can?
wajib rehman
31-Aug-15 8:19am
View
sir Richard MacCutchan i updated the question and added the database code please check it and help me .
wajib rehman
27-Jul-15 8:32am
View
i commented the load button but if it its out of this then it also not work
wajib rehman
27-Jul-15 8:30am
View
the problem is that.that when i clicked the load button the data doesnot load to i mean does not show in the second edit text
wajib rehman
26-Jul-15 22:44pm
View
Is it fine to use one table for storing accelerometer data?
wajib rehman
22-Jul-15 4:03am
View
ok i have stored the accelerometer data in one table in database.
so how i can campare that if the table value is greater then 10 show that its runing
wajib rehman
14-Jul-15 0:36am
View
the code as below
package com.example.simple;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.util.Log;
public class MainActivity extends Activity {
private EditText text;
private static Button button;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
text=(EditText)findViewById(R.id.text);
button=(Button)findViewById(R.id.button1);
radio=(RadioButton)findViewById(R.id.radioButton1);
button.setOnClickListener(new View.OnClickListener() {
@SuppressLint("NewApi") @Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
button.setText(text.getText().toString());
}
});
}
@Override
protected void onSaveInstanceState(Bundle outState) {
// TODO Auto-generated method stub
super.onSaveInstanceState(outState);
Log.d("Text's text:" + text.getText().toString()
+ "Button:" + button.getText().toString(), null,null);
}
@Override
protected void onPause() {
// TODO Auto-generated method stub
super.onPause();
Log.d("Text's text:" + text.getText().toString()
+ "Button:" + button.getText().toString(), null,null);
}
@Override
protected void onResume() {
// TODO Auto-generated method stub
// button.setText(text.getText().toString());
super.onResume();
Log.d("Text's text:" + text.getText().toString()
+ "Button:" + button.getText().toString(), null, null);
}
;
@Override
protected void onStop() {
// TODO Auto-generated method stub
super.onStop();
}
@Override
protected void onDestroy() {
// TODO Auto-generated method stub
super.onDestroy();
}
@Override
protected void onRestoreInstanceState(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onRestoreInstanceState(savedInstanceState);
Log.d("Text's text:" + text.getText().toString()
+ "Button:" + button.getText().toString(), null, null);
}
private void onDestroye() {
// TODO Auto-generated method stub
Log.d("Text's text:" + text.getText().toString()
+ "Button:" + button.getText().toString(), null, null);
}
}
so in this when i press the button text loaded from the edittext but when pres back button and then reopone the app the changed doesnot effect please help
wajib rehman
13-Jul-15 23:34pm
View
ok sir please help me in this case i want to change button text loaded from edittext so
@Override
protected void onSaveInstanceState(Bundle outState) {
// TODO Auto-generated method stub
super.onSaveInstanceState(outState);
}
@Override
protected void onResume() {
// TODO Auto-generated method stub
super.onResume();
}
@Override
protected void onPause() {
// TODO Auto-generated method stub
super.onPause();
}
please please write the code in this onResum mehtod,onPause method and onsavedInstance
for a button text change loaded from the edittext
such as the button and edittext is button.setText(text.getText().toString());
kindly please help me in this,,i am trying from a while but cannot find just like this solution.there is no way for this on google etc please write the code for this method i will be very thankful to you ..
wajib rehman
29-Jun-15 5:38am
View
sir i have created a hotel food menu ;
in the menu there are more items like meat,vegetable,rice etc and these are libeled with radiobutton.so a hotel focal person want to change the menu by pressing the setting button and he want to replace the menu item 'meat' with 'cool drinks' so this how can possible to replace the radiobutton with another radio button.plzz help
wajib rehman
29-Jun-15 0:11am
View
how to replace radiobutton by another radiobutton dynamically in android
wajib rehman
26-Jun-15 23:35pm
View
actually i have created a hotel home delivery app.so there is a setting button .so when the hotel focal person want to change the menu for example in the menu there is a meat so he want to replace the meat with rice in the menu of hotel .so then how is it possible how to change ,replace the one item of the menu with other one
wajib rehman
12-Jun-15 14:14pm
View
i want in android not in html
Show More