|
Thank you so much
|
|
|
|
|
In android, how can I access files from any path that is not included in the .apk file.
I am making an application that reads the data from .xml file. Now this file can be updated from the server, and new data should be shown to the user.
but i am not able to access the file when its not in the apk.
help will be much appreciated.
|
|
|
|
|
|
how can make connect andriod app to central database like sql server,my sql using jdbc? please suggest me coding part
if it is not possible,please suggest me any approach
|
|
|
|
|
|
You can create an ASP.NET WEB API which returns data in JSON format which is a data format that is friendly with Mobile platforms and then consume the Web API from your android application check the official asp.net site for tutorials on getting started with ASP.NET WEB API.
http://www.asp.net/web-api[^]
Hope this helps.
|
|
|
|
|
My answer may help you to get this doubt clarified.
We can not connect to SQL Server or My SQL database from Android app. We need to have a middleware client to get this done. This is called "Web Service".
Basic flows of web service are (From mobile app perspective);
1. Generally Mobile application (In your case Android app) requests some data to web service.
2. Web service fetches data from backend (SQL Server & My SQL etc..) and passes to Mobile application.
3. Mobile Application processes the data.
So, My suggestion to you to connect to database from Android app is, You learn the basics of web service. Every mobile platform has got APIs to call web service.
Thank You,
Irudaya Raj,
Mobile Application Developer (Android, iOS & Windows Platforms),
Bosco Soft Technologies PVT limited,
Thiruppattur.
|
|
|
|
|
i installed sdk in ubuntu, i installed all the packages except google tv,when i run the code, it show me some errors.to clean that errors i went to project,but menu bar is not opening. what i have to do plzz suggest me
|
|
|
|
|
You can download a zipped copy of the development kit that contains eclipse and the necessary things needed for developing Android application.
You can get the download from http://developer.android.com/sdk/index.html picking your OS platform.
Hope this helps. Happy coding.
|
|
|
|
|
|
|
To move from one activity to another in Android, you need an Intent.
The sample format of how to use an Intent is pasted below.
Intent intent = new Intent(context,NameofActivitytoMoveTo.class);
startActivity(intent);
Suppose you have ActivityOne in your android project and you want to navigate to ActivityTwo, use the sample code below:
Intent intent = new Intent(ActivityOne.this,ActivityTwo.class);
startActivity(intent);
The two lines of code above will be in the button onClickListener.
Hope this helps.
Happy coding.
|
|
|
|
|
Is anyone know from Ipad or smartphone (android line usually) can connect to SQL Server and load data and grid display on the handset is not in on ? Using the C# programming language for Androi line is not ? or to use programming languages to be what ?
|
|
|
|
|
Hello.
I wanna to implement a web server in android, based on REST protocol.This web server receives special commands based on REST, decode them, do requested task(s) and return result to client.
I'm a novice in android programing and also in web based servers and REST protocol.Can any body give me a step bye step help to do this.
Thanks very much.
|
|
|
|
|
eb.shirani wrote: Can any body give me a step bye step help to do this. Not in a forum like this. As a novice in all three disciplines you need to go and do a lot of studying to learn how to use these features. For Android go to http://developer.android.com/index.html[^]. For the others try searching for useful links with Google.
|
|
|
|
|
Hi Richard MacCutchan, Thanks for your reply.
I need a sample program that do it in android,based on such a sample i can implement such a server.
I searched by Google to find such a program, but I couldn't find useful sample code.If you have useful links,I appreciated to help me.
Have a good time.
|
|
|
|
|
I don't have any more links than Google could find for you. Try refining your search parameters.
|
|
|
|
|
Hi
You can use mongoose web server (https://code.google.com/p/mongoose/[^]) for developing your rest server framework.
Integrate your project to include Mongoose and then specify the endpoints, handle them in your project.
Thanks,
Sudhi.
|
|
|
|
|
Eu tenho que fazer um projeto para android na onde eu vou ter que criar uma el para executar no android essa tela vai ter uns campos na hora que eu preencher os campos e clicar em salvar vai ter que salvar num servidor que eu tambem tenho que criar em java só que eu não estou conseguindo fazer então eu precisava da tela do cliente no android e do servidor em java se voces poderem me ajudar agradeço a tela pode conter as seguintes informações nome, endereço, idade, telefone.
|
|
|
|
|
Q : my requirement is my three activity in my app
first activity only for personal records save in database and click next button
second activity only for education records save in database and click next button
third activity only for professional records save in database and click next button
and final activity is submit records how to saved three activity records and submit to all records in final activity
Please help me
|
|
|
|
|
Hi friend,
Previoulsy i have also got same probelm,I have solve that probelm using sqlite database.store the records from firs activity to sqlite database table and again store records form second activity to same table in sqlite database and finally fetch data from database and store in any server database ie.mysql or anywhere else..
|
|
|
|
|
my requirement how to insert records from android to mysql database my website is written in php a nd known i want to my website app in java i
my question is how to add records in mysql database through in android app
JSON only use to view data form database and how to add records in database
|
|
|
|
|
public class SwappingClassDashboard extends Activity {
DrawerLayout dl;
ListView list;
ActionBarDrawerToggle toogle;
CharSequence title, dtitle;
String[] acfservice;
MainActivity mainactivity;
@Override
protected void onCreate(Bundle savedInstanceState) {
ActionBar actionbar = getActionBar();
ColorDrawable colorDrawable = new ColorDrawable(
Color.parseColor("#0067b4"));
actionbar.setBackgroundDrawable(colorDrawable);
super.onCreate(savedInstanceState);
setContentView(R.layout.swapping_layout);
// initializing the value for username and passord field for login
mainactivity = new MainActivity();
// end of variable assignment
title = dtitle = getTitle();
acfservice = getResources().getStringArray(R.array.acf_array);
dl = (DrawerLayout) findViewById(R.id.drawer_layout);
list = (ListView) findViewById(R.id.listview);
// set a custom shadow that overlays the main content when the drawer
// opens
dl.setDrawerShadow(R.drawable.drawer_shadow, Gravity.START);
// set up the drawer's list view with items and click listener
list.setAdapter(new ArrayAdapter<string>(this, R.layout.list_drawer,
acfservice));
list.setOnItemClickListener(new DrawerItemClickListener());
// enable ActionBar app icon to behave as action to toggle nav drawer
ActionBar actionbar1 = getActionBar();
actionbar1.setIcon(R.drawable.acf);
actionbar1.setTitle("ACFNepal");
actionbar1.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE
| ActionBar.DISPLAY_SHOW_HOME | ActionBar.DISPLAY_HOME_AS_UP);
// ActionBarDrawerToggle ties together the the proper interactions
// between the sliding drawer and the action bar app icon
toogle = new ActionBarDrawerToggle(this, /* host Activity */
dl, /* DrawerLayout object */
R.drawable.click, /* nav drawer image to replace 'Up' caret */
R.string.onopen, /* "open drawer" description for accessibility */
R.string.onclose /* "close drawer" description for accessibility */
) {
public void onDrawerClosed(View view) {
getActionBar().setTitle(title);
invalidateOptionsMenu(); // creates call to
// onPrepareOptionsMenu()
}
public void onDrawerOpened(View drawerView) {
getActionBar().setTitle(dtitle);
invalidateOptionsMenu(); // creates call to
// onPrepareOptionsMenu()
}
};
dl.setDrawerListener(toogle);
if (savedInstanceState == null) {
selectItem(0);
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.mainmenu, menu);
return super.onCreateOptionsMenu(menu);
}
/* Called whenever we call invalidateOptionsMenu() */
@Override
public boolean onPrepareOptionsMenu(Menu menu) {
// If the nav drawer is open, hide action items related to the content
// view
boolean drawerOpen = dl.isDrawerOpen(list);
menu.findItem(R.id.user).setVisible(!drawerOpen);
// menu.findItem(R.id.setting).setVisible(!drawerOpen);
// menu.findItem(R.id.back).setVisible(!drawerOpen);
return super.onPrepareOptionsMenu(menu);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if (toogle.onOptionsItemSelected(item)) {
return true;
}
// Handle action buttons
switch (item.getItemId()) {
case R.id.sign_out: {
startActivity(new Intent(SwappingClassDashboard.this,
MainActivity.class));
android.os.Process.killProcess(android.os.Process.myPid());
}
break;
case R.id.exit: {
final Dialog d1 = new Dialog(this);
d1.requestWindowFeature(Window.FEATURE_LEFT_ICON);
d1.setTitle("Do you want to exit Application ?");
d1.setContentView(R.layout.dial_exit);
d1.setCancelable(true);
d1.show();
Button btnyes, btnno;
btnyes = (Button) d1.findViewById(R.id.exityes);
btnno = (Button) d1.findViewById(R.id.exitno);
btnyes.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
// Intent intent=getIntent();
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
intent.setClass(getApplicationContext(),
StartACFActivity.class);
startActivity(intent);
d1.dismiss();
finish();
android.os.Process.killProcess(android.os.Process.myPid());
}
});
btnno.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
d1.dismiss();
}
});
}
break;
default:
return super.onOptionsItemSelected(item);
}
return false;
}
/* The click listner for ListView in the navigation drawer */
private class DrawerItemClickListener implements
ListView.OnItemClickListener {
@Override
public void onItemClick(AdapterView parent, View view, int position,
long id) {
selectItem(position);
}
}
private void selectItem(int position) {
// update the main content by replacing fragments
Fragment fragment = null;
switch (position) {
case 0:
fragment = new Dashboard();
break;
// case 1:
// fragment = new SystemUsers();
// break;
case 1:
startActivity(new Intent(SwappingClassDashboard.this,
AssessmentCard.class));
break;
// case 3:
// startActivity(new Intent(SwappingClassDashboard.this,
// DisplayChildList.class));
// break;
case 2:
startActivity(new Intent(SwappingClassDashboard.this,
SyncDatabase.class));
break;
default:
break;
}
if (fragment != null) {
FragmentManager fragmentManager = getFragmentManager();
fragmentManager.beginTransaction()
.replace(R.id.content_frame, fragment).commit();
// update selected item and title, then close the drawer
list.setItemChecked(position, true);
setTitle(acfservice[position]);
dl.closeDrawer(list);
} else {
// error in creating fragment
Log.e("SwappingClassDashboard", "error in creation fragment");
}
}
@Override
public void onBackPressed() {
Intent nextActivity = new Intent(this, MainActivity.class);
startActivity(nextActivity);
}
@Override
public void setTitle(CharSequence t) {
title = t;
getActionBar().setTitle(title);
}
@Override
protected void onPostCreate(Bundle savedInstanceState) {
super.onPostCreate(savedInstanceState);
// Sync the toggle state after onRestoreInstanceState has occurred.
toogle.syncState();
}
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
// Pass any configuration change to the drawer toggls
toogle.onConfigurationChanged(newConfig);
}
}
|
|
|
|
|
je suis a un projet fin d’Étude application android checkretso mais a une probleme connectionet entre login , register base donne avec mysql en utilise serverhelper et CallBark c'a.d asynchrone et firmware slim .
|
|
|
|
|
And this is an English language site.
|
|
|
|