Advertisement
Guest User

Untitled

a guest
May 31st, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.42 KB | None | 0 0
  1. 06-01 16:29:52.083: E/NetdConnector(392): NDC Command {6509 interface clearaddrs wlan0} took too long (1764926ms)
  2. 06-01 17:30:15.783: E/Cryptfs(103): not running with encryption, aborting
  3. 06-01 17:34:08.096: E/NetdConnector(392): NDC Command {6670 interface clearaddrs wlan0} took too long (51046ms)
  4. 06-01 17:34:18.986: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
  5. 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
  6. 06-01 17:34:19.986: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
  7. 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
  8. 06-01 17:34:21.056: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
  9. 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
  10. 06-01 17:34:22.056: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
  11. 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
  12. 06-01 17:35:06.396: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  13. 06-01 17:35:06.396: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  14. 06-01 17:36:06.526: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  15. 06-01 17:36:06.526: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  16. 06-01 17:36:36.716: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  17. 06-01 17:36:36.716: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  18. 06-01 17:36:51.286: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  19. 06-01 17:36:51.286: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  20. 06-01 17:36:51.446: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  21. 06-01 17:36:51.446: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  22. 06-01 17:36:51.456: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  23. 06-01 17:36:51.456: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  24. 06-01 17:36:51.516: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  25. 06-01 17:36:51.516: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  26. 06-01 17:36:51.556: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  27. 06-01 17:36:51.556: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  28. 06-01 17:36:51.566: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  29. 06-01 17:36:51.566: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  30. 06-01 17:37:06.696: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  31. 06-01 17:37:06.696: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  32. 06-01 17:37:25.276: E/ExternalAccountType(30258): Unsupported attribute readOnly
  33. 06-01 17:37:25.386: E/ExternalAccountType(30258): Unsupported attribute readOnly
  34. 06-01 17:37:25.656: E/ReaderDataProvider(30593): In Query READER_LATESTBOOKPATH_ID!!!!!
  35. 06-01 17:37:29.096: E/RetrieveHDIconThread(2444): MalformedURLException: java.net.MalformedURLException: Protocol not found:
  36. 06-01 17:37:32.916: E/ReaderDataProvider(30593): In Query READER_LATESTBOOKPATH_ID!!!!!
  37. 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)
  38. 06-01 17:37:38.976: E/CMC->NioClient3(29336): NioClient thread get exception e: execute TaskConnection but get IOException
  39. 06-01 17:37:38.976: E/GTalkService(23732): connectionClosed: no XMPPConnection - That's strange!
  40. 06-01 17:38:06.896: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  41. 06-01 17:38:06.896: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  42. 06-01 17:39:07.006: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  43. 06-01 17:39:07.006: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  44. 06-01 17:40:07.196: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  45. 06-01 17:40:07.196: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  46. 06-01 17:41:02.816: E/GTalkService(23732): connectionClosed: no XMPPConnection - That's strange!
  47. 06-01 17:41:07.336: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  48. 06-01 17:41:07.336: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  49. 06-01 17:42:07.506: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  50. 06-01 17:42:07.506: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  51. 06-01 17:42:53.286: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  52. 06-01 17:42:53.286: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  53. 06-01 17:43:07.646: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  54. 06-01 17:43:07.646: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  55. 06-01 17:44:07.806: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  56. 06-01 17:44:07.806: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  57. 06-01 17:44:51.296: E/GTalkService(23732): connectionClosed: no XMPPConnection - That's strange!
  58. 06-01 17:44:54.026: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  59. 06-01 17:44:54.026: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  60. 06-01 17:45:07.976: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  61. 06-01 17:45:07.976: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  62. 06-01 17:46:08.136: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  63. 06-01 17:46:08.136: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  64. 06-01 17:46:54.756: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  65. 06-01 17:46:54.756: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  66. 06-01 17:47:08.306: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  67. 06-01 17:47:08.306: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  68. 06-01 17:48:08.446: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  69. 06-01 17:48:08.446: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  70. 06-01 17:48:58.976: E/GTalkService(23732): connectionClosed: no XMPPConnection - That's strange!
  71. 06-01 17:49:08.616: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  72. 06-01 17:49:08.616: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  73. 06-01 17:50:08.756: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  74. 06-01 17:50:08.756: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  75. 06-01 17:51:08.946: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  76. 06-01 17:51:08.946: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  77. 06-01 17:51:28.446: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  78. 06-01 17:51:28.446: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  79. 06-01 17:51:28.506: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  80. 06-01 17:51:28.506: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  81. 06-01 17:51:28.556: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  82. 06-01 17:51:28.556: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  83. 06-01 17:51:28.596: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  84. 06-01 17:51:28.596: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  85. 06-01 17:52:09.106: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  86. 06-01 17:52:09.106: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  87. 06-01 17:52:11.656: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  88. 06-01 17:52:11.656: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  89. 06-01 17:53:35.086: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  90. 06-01 17:53:35.086: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  91. 06-01 17:53:35.106: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  92. 06-01 17:53:35.106: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  93. 06-01 17:53:35.116: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  94. 06-01 17:53:35.116: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  95. 06-01 17:53:35.126: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  96. 06-01 17:53:35.126: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  97. 06-01 17:53:35.136: E/BatteryService(392): Could not open '/sys/class/switch/dock/state'
  98. 06-01 17:53:35.136: E/BatteryService(392): Could not open '/sys/class/switch/pfs_pad_ec/state'
  99. 06-01 17:53:35.206: E/GTalkService(23732): connectionClosed: no XMPPConnection - That's strange!
  100. 06-01 17:53:39.326: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
  101. 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
  102. 06-01 17:53:40.346: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
  103. 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
  104. 06-01 17:53:41.366: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
  105. 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
  106. 06-01 17:53:42.386: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
  107. 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
  108. 06-01 17:53:43.426: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
  109. 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
  110. 06-01 17:53:44.426: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
  111. 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
  112. 06-01 17:53:45.436: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
  113. 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
  114. 06-01 17:53:46.456: E/gpslogd(392): LIBGPS: Cannot communicate (write) with a GPSD
  115. 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
  116.  
  117. public class MainActivity extends Activity {
  118. TextView result;
  119. Button send,envoi;
  120. String insertUrl="http://MyIpAddress/OtherSQL.php?filiere=";
  121. String sendUrl="http://MyIpAddress/AndroidSend.php";
  122. String response="",filiere,matiere;
  123. int position,nombreAbsents=0;
  124. HttpResponse resp;
  125. HttpEntity entity;
  126. InputStream is;
  127. int j=0;
  128. Map<String,String> postHeader= new HashMap<String, String>();
  129.  
  130. Map<String,String> sendAbsence= new HashMap<String, String>();
  131.  
  132. final String TAG=this.getClass().getSimpleName();
  133. LinearLayout ll;
  134. LayoutInflater linf;
  135. View view;
  136. CheckBox[] cbs=new CheckBox[40];
  137. AutoCompleteTextView autocompleteM,autocompleteF;
  138. String[] filiers={"2I","IT","IMTI"};
  139. String[] matieres={"PHP","MDA","GI","SOA","PDD"};
  140. @Override
  141. protected void onCreate(Bundle savedInstanceState) {
  142. super.onCreate(savedInstanceState);
  143. setContentView(R.layout.activity_main);
  144.  
  145. ll= (LinearLayout) findViewById(R.id.layout);
  146. //autocomplete stuff
  147. autocompleteF=(AutoCompleteTextView)findViewById(R.id.autocompFiliere);
  148. autocompleteM=(AutoCompleteTextView)findViewById(R.id.autocompMatiere);
  149.  
  150. ArrayAdapter adapterF=new ArrayAdapter(getApplicationContext(), android.R.layout.simple_list_item_1, filiers);
  151. autocompleteF.setAdapter(adapterF);
  152. autocompleteF.setThreshold(1);
  153. autocompleteF.setOnItemClickListener(new OnItemClickListener() {
  154.  
  155. @Override
  156. public void onItemClick(AdapterView<?> parent, View view,
  157. int position, long id) {
  158. filiere = (String)parent.getItemAtPosition(position);
  159.  
  160. }
  161. });
  162. //auto comp pour matiere
  163. ArrayAdapter adapterM=new ArrayAdapter(getApplicationContext(), android.R.layout.simple_list_item_1, matieres);
  164. autocompleteM.setAdapter(adapterM);
  165. autocompleteM.setThreshold(1);
  166. autocompleteM.setOnItemClickListener(new OnItemClickListener() {
  167.  
  168. @Override
  169. public void onItemClick(AdapterView<?> parent, View view,
  170. int position, long id) {
  171. matiere = (String)parent.getItemAtPosition(position);
  172.  
  173. }
  174. });
  175.  
  176. //Creation of dynamic view
  177.  
  178. linf=getLayoutInflater();
  179. envoi=(Button)findViewById(R.id.envoi);
  180. send=(Button) findViewById(R.id.send);
  181. send.setOnClickListener(new View.OnClickListener() {
  182.  
  183. @Override
  184. public void onClick(View v) {
  185. getData();
  186. }
  187. });
  188.  
  189. envoi.setOnClickListener(new View.OnClickListener() {
  190.  
  191. @Override
  192. public void onClick(View v) {
  193. j=0;
  194. nombreAbsents=0;
  195. for (int i = 0; i < ll.getChildCount(); i++) {
  196.  
  197. View chk=ll.getChildAt(i);
  198. if(chk instanceof CheckBox){
  199.  
  200. CheckBox cb= (CheckBox)chk;
  201. if (cb.isChecked()) {
  202. String cblabel=cb.getText().toString();
  203. String codeEtu=cblabel.substring(0, cblabel.indexOf(" "));
  204. int coe=Integer.parseInt(codeEtu);
  205. sendAbsence.put("absent"+(j+1),""+coe);
  206. nombreAbsents++;
  207. j++;
  208. }
  209.  
  210.  
  211. }
  212. }
  213.  
  214. sendAbsence(sendAbsence);
  215.  
  216.  
  217.  
  218. }
  219.  
  220. });
  221. }
  222. private void getData(){
  223.  
  224. if (filiere.equals("")) {
  225. Toast.makeText(getApplicationContext(), "plz enter a branche", Toast.LENGTH_SHORT).show();
  226. return;
  227. }
  228. insertUrl=insertUrl+filiere+"&matiere="+matiere;
  229. StringRequest stringRequest = new StringRequest(insertUrl, new Response.Listener<String>() {
  230. @Override
  231. public void onResponse(String response) {
  232.  
  233. showJSON(response);
  234. }
  235. },
  236. new Response.ErrorListener() {
  237. @Override
  238. public void onErrorResponse(VolleyError error) {
  239. Toast.makeText(getApplicationContext(),"can't while retriving from db ",Toast.LENGTH_LONG).show();
  240. }
  241.  
  242.  
  243. });
  244.  
  245. RequestQueue requestQueue = Volley.newRequestQueue(this);
  246. requestQueue.add(stringRequest);
  247.  
  248. }
  249. private void showJSON( String response){
  250.  
  251. try {
  252.  
  253. JSONObject resp=new JSONObject(response);
  254. JSONArray students=resp.getJSONArray("students");
  255. for (int i = 0; i < students.length(); i++) {
  256. view = linf.inflate(R.layout.text_layout, ll, false);
  257. cbs[i]=new CheckBox(getApplicationContext());
  258. cbs[i].setId(i);
  259. JSONObject student=students.getJSONObject(i);
  260.  
  261. String nom=student.getString("nom");
  262. String prenom=student.getString("prenom");
  263. String codeEtudiant=student.getString("codeEtudiant");
  264.  
  265. cbs[i].setText(codeEtudiant+" "+nom+" "+prenom);
  266.  
  267. ll.addView(cbs[i]);
  268.  
  269. }
  270.  
  271. } catch (JSONException e) {
  272. // TODO Auto-generated catch block
  273. e.printStackTrace();
  274. }
  275.  
  276.  
  277.  
  278. }
  279. private void sendAbsence(final Map<String, String> sendAbsence) {
  280. this.sendAbsence=sendAbsence;
  281.  
  282.  
  283. StringRequest stringrequest = new StringRequest(Request.Method.POST,sendUrl, new Response.Listener<String>() {
  284. @Override
  285. public void onResponse(String response) {
  286.  
  287. sendabs(response);
  288.  
  289. }
  290. },
  291. new Response.ErrorListener() {
  292. @Override
  293. public void onErrorResponse(VolleyError error) {
  294. Toast.makeText(getApplicationContext(),"can't while retriving from db ",Toast.LENGTH_LONG).show();
  295. }
  296.  
  297.  
  298. }){
  299. @Override
  300. protected Map<String, String> getParams() throws AuthFailureError {
  301. Map<String,String> params = new HashMap<String, String>();
  302. //Adding parameters to request
  303. params.put("nombreAbsents", ""+nombreAbsents);
  304. params.put("matiere", matiere);
  305.  
  306. for (int i = 1; i <=nombreAbsents; i++) {
  307. params.put("absent"+i, sendAbsence.get("absent"+i));
  308. //
  309. }
  310.  
  311.  
  312. //returning parameter
  313. return params;
  314. }
  315.  
  316. @Override
  317. public Map<String, String> getHeaders() throws AuthFailureError {
  318. Map<String,String> params = new HashMap<String, String>();
  319. params.put("Content-Type","application/x-www-form-urlencoded");
  320. return params;
  321. }
  322.  
  323. };
  324. RequestQueue requestQueue = Volley.newRequestQueue(this);
  325. requestQueue.add(stringrequest);
  326.  
  327.  
  328.  
  329.  
  330. }
  331. private void sendabs(String response){
  332. Intent intent=new Intent(MainActivity.this,affichage.class);
  333.  
  334. intent.putExtra("key", "serveur response is "+response);
  335. startActivity(intent);
  336.  
  337. }
  338.  
  339. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement