Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 06-01 16:29:52.083: E/NetdConnector(392): NDC Command {6509 interface clearaddrs wlan0} took too long (1764926ms)
- 06-01 17:30:15.783: E/Cryptfs(103): not running with encryption, aborting
- 06-01 17:34:08.096: E/NetdConnector(392): NDC Command {6670 interface clearaddrs wlan0} took too long (51046ms)
- 06-01 17:34:18.986: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
- 06-01 17:34:18.986: E/gpslogd(392): IPC Communication Error, /tmp/12356213_163922/customers/Asustek/MemoBrickandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1194 agps_ril_update_network_state
- 06-01 17:34:19.986: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
- 06-01 17:34:19.986: E/gpslogd(392): IPC Communication Error, /tmp/12356213_163922/customers/Asustek/MemoBrickandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1213 agps_ril_update_network_availability
- 06-01 17:34:21.056: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
- 06-01 17:34:21.056: E/gpslogd(392): IPC Communication Error, /tmp/12356213_163922/customers/Asustek/MemoBrickandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1194 agps_ril_update_network_state
- 06-01 17:34:22.056: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
- 06-01 17:34:22.056: E/gpslogd(392): IPC Communication Error, /tmp/12356213_163922/customers/Asustek/MemoBrickandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1213 agps_ril_update_network_availability
- 06-01 17:35:06.396: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:35:06.396: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:36:06.526: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:36:06.526: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:36:36.716: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:36:36.716: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:36:51.286: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:36:51.286: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:36:51.446: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:36:51.446: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:36:51.456: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:36:51.456: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:36:51.516: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:36:51.516: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:36:51.556: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:36:51.556: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:36:51.566: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:36:51.566: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:37:06.696: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:37:06.696: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:37:25.276: E/ExternalAccountType(30258): Unsupported attribute readOnly
- 06-01 17:37:25.386: E/ExternalAccountType(30258): Unsupported attribute readOnly
- 06-01 17:37:25.656: E/ReaderDataProvider(30593): In Query READER_LATESTBOOKPATH_ID!!!!!
- 06-01 17:37:29.096: E/RetrieveHDIconThread(2444): MalformedURLException: java.net.MalformedURLException: Protocol not found:
- 06-01 17:37:32.916: E/ReaderDataProvider(30593): In Query READER_LATESTBOOKPATH_ID!!!!!
- 06-01 17:37:38.976: E/CMC->TaskConnection(29336): execute TaskConnection but get IOException: failed to connect to mdmnotify1.asus.com/103.10.4.119 (port 9000): connect failed: ETIMEDOUT (Connection timed out)
- 06-01 17:37:38.976: E/CMC->NioClient3(29336): NioClient thread get exception e: execute TaskConnection but get IOException
- 06-01 17:37:38.976: E/GTalkService(23732): connectionClosed: no XMPPConnection - That's strange!
- 06-01 17:38:06.896: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:38:06.896: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:39:07.006: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:39:07.006: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:40:07.196: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:40:07.196: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:41:02.816: E/GTalkService(23732): connectionClosed: no XMPPConnection - That's strange!
- 06-01 17:41:07.336: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:41:07.336: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:42:07.506: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:42:07.506: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:42:53.286: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:42:53.286: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:43:07.646: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:43:07.646: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:44:07.806: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:44:07.806: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:44:51.296: E/GTalkService(23732): connectionClosed: no XMPPConnection - That's strange!
- 06-01 17:44:54.026: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:44:54.026: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:45:07.976: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:45:07.976: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:46:08.136: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:46:08.136: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:46:54.756: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:46:54.756: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:47:08.306: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:47:08.306: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:48:08.446: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:48:08.446: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:48:58.976: E/GTalkService(23732): connectionClosed: no XMPPConnection - That's strange!
- 06-01 17:49:08.616: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:49:08.616: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:50:08.756: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:50:08.756: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:51:08.946: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:51:08.946: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:51:28.446: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:51:28.446: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:51:28.506: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:51:28.506: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:51:28.556: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:51:28.556: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:51:28.596: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:51:28.596: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:52:09.106: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:52:09.106: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:52:11.656: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:52:11.656: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:53:35.086: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:53:35.086: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:53:35.106: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:53:35.106: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:53:35.116: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:53:35.116: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:53:35.126: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:53:35.126: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:53:35.136: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
- 06-01 17:53:35.136: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
- 06-01 17:53:35.206: E/GTalkService(23732): connectionClosed: no XMPPConnection - That's strange!
- 06-01 17:53:39.326: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
- 06-01 17:53:39.326: E/gpslogd(392): IPC Communication Error, /tmp/12356213_163922/customers/Asustek/MemoBrickandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1194 agps_ril_update_network_state
- 06-01 17:53:40.346: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
- 06-01 17:53:40.346: E/gpslogd(392): IPC Communication Error, /tmp/12356213_163922/customers/Asustek/MemoBrickandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1213 agps_ril_update_network_availability
- 06-01 17:53:41.366: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
- 06-01 17:53:41.366: E/gpslogd(392): IPC Communication Error, /tmp/12356213_163922/customers/Asustek/MemoBrickandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1194 agps_ril_update_network_state
- 06-01 17:53:42.386: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
- 06-01 17:53:42.386: E/gpslogd(392): IPC Communication Error, /tmp/12356213_163922/customers/Asustek/MemoBrickandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1213 agps_ril_update_network_availability
- 06-01 17:53:43.426: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
- 06-01 17:53:43.426: E/gpslogd(392): IPC Communication Error, /tmp/12356213_163922/customers/Asustek/MemoBrickandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1194 agps_ril_update_network_state
- 06-01 17:53:44.426: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
- 06-01 17:53:44.426: E/gpslogd(392): IPC Communication Error, /tmp/12356213_163922/customers/Asustek/MemoBrickandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1213 agps_ril_update_network_availability
- 06-01 17:53:45.436: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
- 06-01 17:53:45.436: E/gpslogd(392): IPC Communication Error, /tmp/12356213_163922/customers/Asustek/MemoBrickandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1194 agps_ril_update_network_state
- 06-01 17:53:46.456: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
- 06-01 17:53:46.456: E/gpslogd(392): IPC Communication Error, /tmp/12356213_163922/customers/Asustek/MemoBrickandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1213 agps_ril_update_network_availability
- public class MainActivity extends Activity {
- TextView result;
- Button send,envoi;
- String insertUrl="http://MyIpAddress/OtherSQL.php?filiere=";
- String sendUrl="http://MyIpAddress/AndroidSend.php";
- String response="",filiere,matiere;
- int position,nombreAbsents=0;
- HttpResponse resp;
- HttpEntity entity;
- InputStream is;
- int j=0;
- Map<String,String> postHeader= new HashMap<String, String>();
- Map<String,String> sendAbsence= new HashMap<String, String>();
- final String TAG=this.getClass().getSimpleName();
- LinearLayout ll;
- LayoutInflater linf;
- View view;
- CheckBox[] cbs=new CheckBox[40];
- AutoCompleteTextView autocompleteM,autocompleteF;
- String[] filiers={"2I","IT","IMTI"};
- String[] matieres={"PHP","MDA","GI","SOA","PDD"};
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- ll= (LinearLayout) findViewById(R.id.layout);
- //autocomplete stuff
- autocompleteF=(AutoCompleteTextView)findViewById(R.id.autocompFiliere);
- autocompleteM=(AutoCompleteTextView)findViewById(R.id.autocompMatiere);
- ArrayAdapter adapterF=new ArrayAdapter(getApplicationContext(), android.R.layout.simple_list_item_1, filiers);
- autocompleteF.setAdapter(adapterF);
- autocompleteF.setThreshold(1);
- autocompleteF.setOnItemClickListener(new OnItemClickListener() {
- @Override
- public void onItemClick(AdapterView<?> parent, View view,
- int position, long id) {
- filiere = (String)parent.getItemAtPosition(position);
- }
- });
- //auto comp pour matiere
- ArrayAdapter adapterM=new ArrayAdapter(getApplicationContext(), android.R.layout.simple_list_item_1, matieres);
- autocompleteM.setAdapter(adapterM);
- autocompleteM.setThreshold(1);
- autocompleteM.setOnItemClickListener(new OnItemClickListener() {
- @Override
- public void onItemClick(AdapterView<?> parent, View view,
- int position, long id) {
- matiere = (String)parent.getItemAtPosition(position);
- }
- });
- //Creation of dynamic view
- linf=getLayoutInflater();
- envoi=(Button)findViewById(R.id.envoi);
- send=(Button) findViewById(R.id.send);
- send.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- getData();
- }
- });
- envoi.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- j=0;
- nombreAbsents=0;
- for (int i = 0; i < ll.getChildCount(); i++) {
- View chk=ll.getChildAt(i);
- if(chk instanceof CheckBox){
- CheckBox cb= (CheckBox)chk;
- if (cb.isChecked()) {
- String cblabel=cb.getText().toString();
- String codeEtu=cblabel.substring(0, cblabel.indexOf(" "));
- int coe=Integer.parseInt(codeEtu);
- sendAbsence.put("absent"+(j+1),""+coe);
- nombreAbsents++;
- j++;
- }
- }
- }
- sendAbsence(sendAbsence);
- }
- });
- }
- private void getData(){
- if (filiere.equals("")) {
- Toast.makeText(getApplicationContext(), "plz enter a branche", Toast.LENGTH_SHORT).show();
- return;
- }
- insertUrl=insertUrl+filiere+"&matiere="+matiere;
- StringRequest stringRequest = new StringRequest(insertUrl, new Response.Listener<String>() {
- @Override
- public void onResponse(String response) {
- showJSON(response);
- }
- },
- new Response.ErrorListener() {
- @Override
- public void onErrorResponse(VolleyError error) {
- Toast.makeText(getApplicationContext(),"can't while retriving from db ",Toast.LENGTH_LONG).show();
- }
- });
- RequestQueue requestQueue = Volley.newRequestQueue(this);
- requestQueue.add(stringRequest);
- }
- private void showJSON( String response){
- try {
- JSONObject resp=new JSONObject(response);
- JSONArray students=resp.getJSONArray("students");
- for (int i = 0; i < students.length(); i++) {
- view = linf.inflate(R.layout.text_layout, ll, false);
- cbs[i]=new CheckBox(getApplicationContext());
- cbs[i].setId(i);
- JSONObject student=students.getJSONObject(i);
- String nom=student.getString("nom");
- String prenom=student.getString("prenom");
- String codeEtudiant=student.getString("codeEtudiant");
- cbs[i].setText(codeEtudiant+" "+nom+" "+prenom);
- ll.addView(cbs[i]);
- }
- } catch (JSONException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- private void sendAbsence(final Map<String, String> sendAbsence) {
- this.sendAbsence=sendAbsence;
- StringRequest stringrequest = new StringRequest(Request.Method.POST,sendUrl, new Response.Listener<String>() {
- @Override
- public void onResponse(String response) {
- sendabs(response);
- }
- },
- new Response.ErrorListener() {
- @Override
- public void onErrorResponse(VolleyError error) {
- Toast.makeText(getApplicationContext(),"can't while retriving from db ",Toast.LENGTH_LONG).show();
- }
- }){
- @Override
- protected Map<String, String> getParams() throws AuthFailureError {
- Map<String,String> params = new HashMap<String, String>();
- //Adding parameters to request
- params.put("nombreAbsents", ""+nombreAbsents);
- params.put("matiere", matiere);
- for (int i = 1; i <=nombreAbsents; i++) {
- params.put("absent"+i, sendAbsence.get("absent"+i));
- //
- }
- //returning parameter
- return params;
- }
- @Override
- public Map<String, String> getHeaders() throws AuthFailureError {
- Map<String,String> params = new HashMap<String, String>();
- params.put("Content-Type","application/x-www-form-urlencoded");
- return params;
- }
- };
- RequestQueue requestQueue = Volley.newRequestQueue(this);
- requestQueue.add(stringrequest);
- }
- private void sendabs(String response){
- Intent intent=new Intent(MainActivity.this,affichage.class);
- intent.putExtra("key", "serveur response is "+response);
- startActivity(intent);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement