I'm trying to make a simple query using a PHP webservice. This is my current code:
ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("id", "1"));
try {...
I'm trying to make a connection to MySQL database, but when I use PreparedStatement , eclipse returns: Definir projeto de construção JRE entrada caminho para 'JavaSE-1.7 Yes, I've changed the compiler version to 1.7, but only works...
Explanation:
I have a simple Android application, and also a NodeJS server. I have the following permissions on AndroidManifest.xml of my application:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />...
I need to call a new Activity through click on a ImageView .
Follow my code:
final ImageView botaoAbrirMesas = (ImageView) findViewById(R.botoes_laucher.openMesas);
botaoAbrirMesas.setOnClickListener(new OnClickListener(...
Explanation:
I have a common application where there are several components EditText , where I assign them a handler that would be this here:
TextWatcher handler = new TextWatcher() {
@Override
public void onTextChanged(CharS...
I'm working on a small project for college and I came across this when using a toast:
Ihavenoideawhatmadethetoastlooklikethis.Hasanyoneeverhadasimilarproblem?Edition:ThisisthecodeI'musingtocreateToast:Toast.makeText(Singleton.getInstance().getCo...
My main (parser) code looks like this:
public class pFormasDePagamento {
public static void parseXML(String xml)
throws ParserConfigurationException, SAXException, IOException {
InputSource is = new InputSource(new StringReader(xm...
I have an app that should perform the following procedure:
Main_Activity has a button , which when clicked, directs you to a second activity ( Checkdata ).
This, in turn, has a textbox that gets data through a pu...
How can I get the index names of a JSON object in Java in Android Studio.
Code:
JSONObject jsonObject = new JSONObject();
try {
jsonObject.put("nome", "");
jsonObject.put("sobrenome", "asdasd");
j...