Does anyone have any idea what I am doing wrong? I tried doing just about every example out there. I just want to get the lat and lon coords from the server using php to my android phone.
I am facing serious problems with the following code, and will appreciate any form of help.
public class WebHandler
{
private String username;
private String password;
private boolean errorOccured;
private String errorMessage;
private String server;
public WebHandler(String server)
{
this.server = server;
StrictMode.ThreadPolicy policy = new
StrictMode.ThreadPolicy.Builder
I have 2 activities, in 1st activity there is an "keyword" and "search" button, based on the keyword given related items should be displayed in the second activity in listview form, but just to test i hv placed search bar on top of the listview and coded for it, and this works fine, now the issue s i want to move "search function code" in 2nd activity inside onclick of "search" button.
I am using the following code to to display data in my custom list. but it closes with an exception of unsupported operaton.
I have two activities:
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public void click(View view) {
Intent intent= new Intent(this, TranslucentActivity.class);
startActivity(intent);
}
}
public class TranslucentActivity extends Activity
I managed to change my preference activity's background color, but when I focus/scroll it, it blinks. Please help me solve this.
I currently have a PreferenceActivity where I have a list of items and checkboxes.
public class BevCat extends PreferenceActivity {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.bev_pref);
}
}
Here is the corresponding XML:
I put this code in my program for my app in android..
public class StudentModule extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_student_module);
WebView ourBrow = (WebView) findViewById(R.id.wvStudent);
ourBrow.loadUrl("http://mateo.sanbeda.edu.ph/aims/students/");
the probl
I have a ListFragment and I want to edit item when clicked in List View.
This is psuedo code of my List Fragment.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
// Inflate the layout for this fragment
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.setHasOptionsMenu(true);