Questions tagged as 'android'

3
answers

Why can not I connect to my MySQL server?

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 {...
asked by 04.02.2014 / 21:15
1
answer

Define JRE construction project input path for 'JavaSE-1.7'

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...
asked by 04.02.2014 / 21:23
2
answers

Unknown error: "null" when executing an HTTPPost with Parameters

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" />...
asked by 10.04.2014 / 13:20
1
answer

Get date device phonegap time

How do I get the date device time using the phonegap?     
asked by 03.04.2014 / 05:02
1
answer

Calling new Activity via an ImageView

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(...
asked by 02.04.2014 / 19:36
1
answer

How do I access the View that triggered one of the events in a TextWatcher?

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...
asked by 04.04.2014 / 16:58
1
answer

Toast text out of alignment

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...
asked by 12.10.2014 / 23:09
2
answers

How to save the variables to be used in the next .Java?

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...
asked by 01.10.2014 / 15:02
1
answer

Problems with AsyncTask in second Activity

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...
asked by 16.09.2014 / 20:58
1
answer

Get name index json Java Android Studio

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...
asked by 13.12.2018 / 19:57