fork download
  1. package com.github.amitt001.lifecontrol;
  2.  
  3. import android.app.AlertDialog;
  4. import android.content.DialogInterface;
  5. import android.content.SharedPreferences;
  6. import android.os.Bundle;
  7. import android.support.annotation.Nullable;
  8. import android.support.v4.app.Fragment;
  9. import android.util.Log;
  10. import android.view.LayoutInflater;
  11. import android.view.View;
  12. import android.view.ViewGroup;
  13. import android.widget.CheckBox;
  14. import android.widget.CompoundButton;
  15. import android.widget.EditText;
  16. import android.widget.TextView;
  17. import android.widget.Toast;
  18.  
  19. import java.util.Calendar;
  20. import java.util.Locale;
  21.  
  22.  
  23. public class monFrag extends Fragment {
  24.  
  25. private TextView wtext1, wtext2, wtext3;
  26. private TextView ptext1, ptext2, ptext3;
  27. private TextView pertext1, pertext2, pertext3;
  28. private CheckBox wbox1, wbox2, wbox3;
  29. private CheckBox pbox1, pbox2, pbox3;
  30. private CheckBox perbox1, perbox2, perbox3;
  31. public String w1="",w2="",w3="",p1="",p2="",p3="",per1="",per2="",per3="", day="";
  32. DbHandler dbHandler;
  33.  
  34. @Override
  35. public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
  36. Toast.makeText(getActivity(), "Hey", Toast.LENGTH_LONG).show();
  37. View view = inflater.inflate(R.layout.control_frag, container, false);
  38.  
  39. Calendar sCalendar = Calendar.getInstance();
  40. day = sCalendar.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.LONG, Locale.getDefault());
  41.  
  42. dbHandler = new DbHandler(getActivity(), null, null, 1);
  43.  
  44. wtext1 = (TextView) view.findViewById(R.id.w_textview1);
  45. Toast.makeText(getActivity(), w1, Toast.LENGTH_SHORT).show();
  46. wtext1.setOnLongClickListener(new View.OnLongClickListener() {
  47. @Override
  48. public boolean onLongClick(View view) {
  49. AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());
  50. alertDialog.setTitle("Target");
  51. alertDialog.setMessage("Set your target");
  52. final EditText input = new EditText(getActivity());
  53. alertDialog.setView(input);
  54. alertDialog.setPositiveButton("Set", new DialogInterface.OnClickListener() {
  55. @Override
  56. public void onClick(DialogInterface dialogInterface, int i) {
  57. String targetInp = input.getText().toString();
  58. wtext1.setText(targetInp);
  59. w1 = wtext1.getText().toString();
  60. addEventsToDB();
  61. }
  62. });
  63. alertDialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
  64. @Override
  65. public void onClick(DialogInterface dialogInterface, int i) {
  66. }
  67. });
  68. alertDialog.show();
  69. return true;
  70. }
  71. });
  72. wtext2 = (TextView) view.findViewById(R.id.w_textview2);
  73. wtext2.setOnLongClickListener(new View.OnLongClickListener() {
  74. @Override
  75. public boolean onLongClick(View view) {
  76. AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());
  77. alertDialog.setTitle("Target");
  78. alertDialog.setMessage("Set your target");
  79. final EditText input = new EditText(getActivity());
  80. alertDialog.setView(input);
  81. alertDialog.setPositiveButton("Set", new DialogInterface.OnClickListener() {
  82. @Override
  83. public void onClick(DialogInterface dialogInterface, int i) {
  84. String targetInp = input.getText().toString();
  85. wtext2.setText(targetInp);
  86. w2 = wtext2.getText().toString();
  87. addEventsToDB();
  88. }
  89. });
  90. alertDialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
  91. @Override
  92. public void onClick(DialogInterface dialogInterface, int i) {
  93. }
  94. });
  95. alertDialog.show();
  96. return true;
  97. }
  98. });
  99. wtext3 = (TextView) view.findViewById(R.id.w_textview3);
  100. wtext3.setOnLongClickListener(new View.OnLongClickListener() {
  101. @Override
  102. public boolean onLongClick(View view) {
  103. AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());
  104. alertDialog.setTitle("Target");
  105. alertDialog.setMessage("Set your target");
  106. final EditText input = new EditText(getActivity());
  107. alertDialog.setView(input);
  108. alertDialog.setPositiveButton("Set", new DialogInterface.OnClickListener() {
  109. @Override
  110. public void onClick(DialogInterface dialogInterface, int i) {
  111. String targetInp = input.getText().toString();
  112. wtext3.setText(targetInp);
  113. w3 = wtext3.getText().toString();
  114. addEventsToDB();
  115. }
  116. });
  117. alertDialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
  118. @Override
  119. public void onClick(DialogInterface dialogInterface, int i) {
  120. }
  121. });
  122. alertDialog.show();
  123. return true;
  124. }
  125. });
  126. ptext1 = (TextView) view.findViewById(R.id.p_textview1);
  127. ptext1.setOnLongClickListener(new View.OnLongClickListener() {
  128. @Override
  129. public boolean onLongClick(View view) {
  130. AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());
  131. alertDialog.setTitle("Target");
  132. alertDialog.setMessage("Set your target");
  133. final EditText input = new EditText(getActivity());
  134. alertDialog.setView(input);
  135. alertDialog.setPositiveButton("Set", new DialogInterface.OnClickListener() {
  136. @Override
  137. public void onClick(DialogInterface dialogInterface, int i) {
  138. String targetInp = input.getText().toString();
  139. ptext1.setText(targetInp);
  140. p1 = ptext1.getText().toString();
  141. addEventsToDB();
  142. }
  143. });
  144. alertDialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
  145. @Override
  146. public void onClick(DialogInterface dialogInterface, int i) {
  147. }
  148. });
  149. alertDialog.show();
  150. return true;
  151. }
  152. });
  153. ptext2 = (TextView) view.findViewById(R.id.p_textview2);
  154. ptext2.setOnLongClickListener(new View.OnLongClickListener() {
  155. @Override
  156. public boolean onLongClick(View view) {
  157. AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());
  158. alertDialog.setTitle("Target");
  159. alertDialog.setMessage("Set your target");
  160. final EditText input = new EditText(getActivity());
  161. alertDialog.setView(input);
  162. alertDialog.setPositiveButton("Set", new DialogInterface.OnClickListener() {
  163. @Override
  164. public void onClick(DialogInterface dialogInterface, int i) {
  165. String targetInp = input.getText().toString();
  166. ptext2.setText(targetInp);
  167. p2 = ptext2.getText().toString();
  168. addEventsToDB();
  169. }
  170. });
  171. alertDialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
  172. @Override
  173. public void onClick(DialogInterface dialogInterface, int i) {
  174. }
  175. });
  176. alertDialog.show();
  177. return true;
  178. }
  179. });
  180. ptext3 = (TextView) view.findViewById(R.id.p_textview3);
  181. ptext3.setOnLongClickListener(new View.OnLongClickListener() {
  182. @Override
  183. public boolean onLongClick(View view) {
  184. AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());
  185. alertDialog.setTitle("Target");
  186. alertDialog.setMessage("Set your target");
  187. final EditText input = new EditText(getActivity());
  188. alertDialog.setView(input);
  189. alertDialog.setPositiveButton("Set", new DialogInterface.OnClickListener() {
  190. @Override
  191. public void onClick(DialogInterface dialogInterface, int i) {
  192. String targetInp = input.getText().toString();
  193. ptext3.setText(targetInp);
  194. p3 = ptext3.getText().toString();
  195. addEventsToDB();
  196. }
  197. });
  198. alertDialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
  199. @Override
  200. public void onClick(DialogInterface dialogInterface, int i) {
  201. }
  202. });
  203. alertDialog.show();
  204. return true;
  205. }
  206. });
  207. pertext1 = (TextView) view.findViewById(R.id.per_textview1);
  208. pertext1.setOnLongClickListener(new View.OnLongClickListener() {
  209. @Override
  210. public boolean onLongClick(View view) {
  211. AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());
  212. alertDialog.setTitle("Target");
  213. alertDialog.setMessage("Set your target");
  214. final EditText input = new EditText(getActivity());
  215. alertDialog.setView(input);
  216. alertDialog.setPositiveButton("Set", new DialogInterface.OnClickListener() {
  217. @Override
  218. public void onClick(DialogInterface dialogInterface, int i) {
  219. String targetInp = input.getText().toString();
  220. pertext1.setText(targetInp);
  221. per1 = pertext1.getText().toString();
  222. addEventsToDB();
  223. }
  224. });
  225. alertDialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
  226. @Override
  227. public void onClick(DialogInterface dialogInterface, int i) {
  228. }
  229. });
  230. alertDialog.show();
  231. return true;
  232. }
  233. });
  234. pertext2 = (TextView) view.findViewById(R.id.per_textview2);
  235. pertext2.setOnLongClickListener(new View.OnLongClickListener() {
  236. @Override
  237. public boolean onLongClick(View view) {
  238. AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());
  239. alertDialog.setTitle("Target");
  240. alertDialog.setMessage("Set your target");
  241. final EditText input = new EditText(getActivity());
  242. alertDialog.setView(input);
  243. alertDialog.setPositiveButton("Set", new DialogInterface.OnClickListener() {
  244. @Override
  245. public void onClick(DialogInterface dialogInterface, int i) {
  246. String targetInp = input.getText().toString();
  247. pertext2.setText(targetInp);
  248. per2 = pertext2.getText().toString();
  249. addEventsToDB();
  250. }
  251. });
  252. alertDialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
  253. @Override
  254. public void onClick(DialogInterface dialogInterface, int i) {
  255. }
  256. });
  257. alertDialog.show();
  258. return true;
  259. }
  260. });
  261. pertext3 = (TextView) view.findViewById(R.id.per_textview3);
  262. pertext3.setOnLongClickListener(new View.OnLongClickListener() {
  263. @Override
  264. public boolean onLongClick(View view) {
  265. AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());
  266. alertDialog.setTitle("Target");
  267. alertDialog.setMessage("Set your target");
  268. final EditText input = new EditText(getActivity());
  269. alertDialog.setView(input);
  270. alertDialog.setPositiveButton("Set", new DialogInterface.OnClickListener() {
  271. @Override
  272. public void onClick(DialogInterface dialogInterface, int i) {
  273. String targetInp = input.getText().toString();
  274. pertext3.setText(targetInp);
  275. per3 = pertext3.getText().toString();
  276. addEventsToDB();
  277. }
  278. });
  279. alertDialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
  280. @Override
  281. public void onClick(DialogInterface dialogInterface, int i) {}
  282. });
  283. alertDialog.show();
  284. return true;
  285. }
  286. });
  287. ///////////////////////////
  288. wbox1 = (CheckBox) view.findViewById(R.id.w_target_check1);
  289. wbox1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
  290. @Override
  291. public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
  292. //do something
  293. }
  294. });
  295. wbox2 = (CheckBox) view.findViewById(R.id.w_target_check2);
  296. wbox2.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
  297. @Override
  298. public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
  299. //do something
  300. }
  301. });
  302. wbox3 = (CheckBox) view.findViewById(R.id.w_target_check3);
  303. wbox3.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
  304. @Override
  305. public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
  306. //do something
  307. }
  308. });
  309. pbox1 = (CheckBox) view.findViewById(R.id.p_target_check1);
  310. pbox1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
  311. @Override
  312. public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
  313. //do something
  314. }
  315. });
  316. pbox2 = (CheckBox) view.findViewById(R.id.p_target_check2);
  317. pbox2.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
  318. @Override
  319. public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
  320. //do something
  321. }
  322. });
  323. pbox3 = (CheckBox) view.findViewById(R.id.p_target_check3);
  324. pbox3.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
  325. @Override
  326. public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
  327. //do something
  328. }
  329. });
  330.  
  331. perbox1 = (CheckBox) view.findViewById(R.id.per_target_check1);
  332. perbox1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
  333. @Override
  334. public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
  335.  
  336. }
  337. });
  338. perbox2 = (CheckBox) view.findViewById(R.id.per_target_check2);
  339. perbox2.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
  340. @Override
  341. public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
  342.  
  343. }
  344. });
  345.  
  346. perbox3 = (CheckBox) view.findViewById(R.id.per_target_check3);
  347. perbox3.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
  348. @Override
  349. public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
  350.  
  351. }
  352. });
  353. //////////////////////////////
  354. printDatabse();
  355. return view;
  356. }
  357.  
  358. public void addEventsToDB(){
  359. TargetEvents targetEvents = new TargetEvents();
  360. targetEvents.set_id(day);
  361. targetEvents.set_work1(w1);
  362. targetEvents.set_work2(w2);
  363. targetEvents.set_work3(w3);
  364. targetEvents.set_project1(p1);
  365. targetEvents.set_project2(p2);
  366. targetEvents.set_project3(p3);
  367. targetEvents.set_personal1(per1);
  368. targetEvents.set_personal2(per2);
  369. targetEvents.set_personal3(per3);
  370.  
  371. dbHandler.addEvent(targetEvents);
  372. String logs = day+ " " + w1+ " " +w2+ " " +w3+ " " +p1+ " " +p2+ " " +p3+ " " +
  373. per1+ " " +per2+ " " +per3;
  374. Log.i("VERYIMP", logs);
  375. }
  376.  
  377. public void printDatabse(){
  378.  
  379. String dbString = dbHandler.getEvents(day);
  380. String[] dbresult = dbString.split("\n");
  381. for(int i = 0; i < dbresult.length; i++){
  382. if (dbresult[i] != ""){
  383. if (i==0){
  384. w1 = dbresult[i];
  385. wtext1.setText(dbresult[i]);
  386. }if (i==1){
  387. w2 = dbresult[i];
  388. wtext2.setText(dbresult[i]);
  389. }if (i==2){
  390. w3 = dbresult[i];
  391. wtext3.setText(dbresult[i]);
  392. }if (i==3){
  393. p1 = dbresult[i];
  394. ptext1.setText(dbresult[i]);
  395. }if (i==4){
  396. p2 = dbresult[i];
  397. ptext2.setText(dbresult[i]);
  398. }if (i==5){
  399. p3 = dbresult[i];
  400. ptext3.setText(dbresult[i]);
  401. }if (i==6){
  402. per1 = dbresult[i];
  403. pertext1.setText(dbresult[i]);
  404. }if (i==7){
  405. per2 = dbresult[i];
  406. pertext2.setText(dbresult[i]);
  407. }if (i==8){
  408. per3 = dbresult[i];
  409. pertext3.setText(dbresult[i]);
  410. }
  411. }
  412. }
  413. Log.i("DBRESPONSE", dbString + "\n" + dbresult);
  414.  
  415. }
  416.  
  417. @Override
  418. public void onDestroyView() {
  419. super.onDestroyView();
  420. }
  421. }
  422.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:23: error: class monFrag is public, should be declared in a file named monFrag.java
public class monFrag extends Fragment {
       ^
Main.java:3: error: package android.app does not exist
import android.app.AlertDialog;
                  ^
Main.java:4: error: package android.content does not exist
import android.content.DialogInterface;
                      ^
Main.java:5: error: package android.content does not exist
import android.content.SharedPreferences;
                      ^
Main.java:6: error: package android.os does not exist
import android.os.Bundle;
                 ^
Main.java:7: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
                                 ^
Main.java:8: error: package android.support.v4.app does not exist
import android.support.v4.app.Fragment;
                             ^
Main.java:9: error: package android.util does not exist
import android.util.Log;
                   ^
Main.java:10: error: package android.view does not exist
import android.view.LayoutInflater;
                   ^
Main.java:11: error: package android.view does not exist
import android.view.View;
                   ^
Main.java:12: error: package android.view does not exist
import android.view.ViewGroup;
                   ^
Main.java:13: error: package android.widget does not exist
import android.widget.CheckBox;
                     ^
Main.java:14: error: package android.widget does not exist
import android.widget.CompoundButton;
                     ^
Main.java:15: error: package android.widget does not exist
import android.widget.EditText;
                     ^
Main.java:16: error: package android.widget does not exist
import android.widget.TextView;
                     ^
Main.java:17: error: package android.widget does not exist
import android.widget.Toast;
                     ^
Main.java:23: error: cannot find symbol
public class monFrag extends Fragment {
                             ^
  symbol: class Fragment
Main.java:25: error: cannot find symbol
    private TextView wtext1, wtext2, wtext3;
            ^
  symbol:   class TextView
  location: class monFrag
Main.java:26: error: cannot find symbol
    private TextView ptext1, ptext2, ptext3;
            ^
  symbol:   class TextView
  location: class monFrag
Main.java:27: error: cannot find symbol
    private TextView pertext1, pertext2, pertext3;
            ^
  symbol:   class TextView
  location: class monFrag
Main.java:28: error: cannot find symbol
    private CheckBox wbox1, wbox2, wbox3;
            ^
  symbol:   class CheckBox
  location: class monFrag
Main.java:29: error: cannot find symbol
    private CheckBox pbox1, pbox2, pbox3;
            ^
  symbol:   class CheckBox
  location: class monFrag
Main.java:30: error: cannot find symbol
    private CheckBox perbox1, perbox2, perbox3;
            ^
  symbol:   class CheckBox
  location: class monFrag
Main.java:32: error: cannot find symbol
    DbHandler dbHandler;
    ^
  symbol:   class DbHandler
  location: class monFrag
Main.java:35: error: cannot find symbol
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
                             ^
  symbol:   class LayoutInflater
  location: class monFrag
Main.java:35: error: cannot find symbol
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
                                                                ^
  symbol:   class ViewGroup
  location: class monFrag
Main.java:35: error: cannot find symbol
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
                                                                                               ^
  symbol:   class Bundle
  location: class monFrag
Main.java:35: error: cannot find symbol
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
           ^
  symbol:   class View
  location: class monFrag
Main.java:35: error: cannot find symbol
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
                                                       ^
  symbol:   class Nullable
  location: class monFrag
Main.java:35: error: cannot find symbol
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
                                                                                      ^
  symbol:   class Nullable
  location: class monFrag
Main.java:34: error: method does not override or implement a method from a supertype
    @Override
    ^
Main.java:36: error: cannot find symbol
        Toast.makeText(getActivity(), "Hey", Toast.LENGTH_LONG).show();
                       ^
  symbol:   method getActivity()
  location: class monFrag
Main.java:36: error: cannot find symbol
        Toast.makeText(getActivity(), "Hey", Toast.LENGTH_LONG).show();
                                             ^
  symbol:   variable Toast
  location: class monFrag
Main.java:36: error: cannot find symbol
        Toast.makeText(getActivity(), "Hey", Toast.LENGTH_LONG).show();
        ^
  symbol:   variable Toast
  location: class monFrag
Main.java:37: error: cannot find symbol
        View view = inflater.inflate(R.layout.control_frag, container, false);
        ^
  symbol:   class View
  location: class monFrag
Main.java:37: error: package R does not exist
        View view = inflater.inflate(R.layout.control_frag, container, false);
                                      ^
Main.java:42: error: cannot find symbol
        dbHandler = new DbHandler(getActivity(), null, null, 1);
                        ^
  symbol:   class DbHandler
  location: class monFrag
Main.java:42: error: cannot find symbol
        dbHandler = new DbHandler(getActivity(), null, null, 1);
                                  ^
  symbol:   method getActivity()
  location: class monFrag
Main.java:44: error: cannot find symbol
        wtext1 = (TextView) view.findViewById(R.id.w_textview1);
                  ^
  symbol:   class TextView
  location: class monFrag
Main.java:44: error: package R does not exist
        wtext1 = (TextView) view.findViewById(R.id.w_textview1);
                                               ^
Main.java:45: error: cannot find symbol
        Toast.makeText(getActivity(), w1, Toast.LENGTH_SHORT).show();
                       ^
  symbol:   method getActivity()
  location: class monFrag
Main.java:45: error: cannot find symbol
        Toast.makeText(getActivity(), w1, Toast.LENGTH_SHORT).show();
                                          ^
  symbol:   variable Toast
  location: class monFrag
Main.java:45: error: cannot find symbol
        Toast.makeText(getActivity(), w1, Toast.LENGTH_SHORT).show();
        ^
  symbol:   variable Toast
  location: class monFrag
Main.java:46: error: package View does not exist
        wtext1.setOnLongClickListener(new View.OnLongClickListener() {
                                              ^
Main.java:72: error: cannot find symbol
        wtext2 = (TextView) view.findViewById(R.id.w_textview2);
                  ^
  symbol:   class TextView
  location: class monFrag
Main.java:72: error: package R does not exist
        wtext2 = (TextView) view.findViewById(R.id.w_textview2);
                                               ^
Main.java:73: error: package View does not exist
        wtext2.setOnLongClickListener(new View.OnLongClickListener() {
                                              ^
Main.java:99: error: cannot find symbol
        wtext3 = (TextView) view.findViewById(R.id.w_textview3);
                  ^
  symbol:   class TextView
  location: class monFrag
Main.java:99: error: package R does not exist
        wtext3 = (TextView) view.findViewById(R.id.w_textview3);
                                               ^
Main.java:100: error: package View does not exist
        wtext3.setOnLongClickListener(new View.OnLongClickListener() {
                                              ^
Main.java:126: error: cannot find symbol
        ptext1 = (TextView) view.findViewById(R.id.p_textview1);
                  ^
  symbol:   class TextView
  location: class monFrag
Main.java:126: error: package R does not exist
        ptext1 = (TextView) view.findViewById(R.id.p_textview1);
                                               ^
Main.java:127: error: package View does not exist
        ptext1.setOnLongClickListener(new View.OnLongClickListener() {
                                              ^
Main.java:153: error: cannot find symbol
        ptext2 = (TextView) view.findViewById(R.id.p_textview2);
                  ^
  symbol:   class TextView
  location: class monFrag
Main.java:153: error: package R does not exist
        ptext2 = (TextView) view.findViewById(R.id.p_textview2);
                                               ^
Main.java:154: error: package View does not exist
        ptext2.setOnLongClickListener(new View.OnLongClickListener() {
                                              ^
Main.java:180: error: cannot find symbol
        ptext3 = (TextView) view.findViewById(R.id.p_textview3);
                  ^
  symbol:   class TextView
  location: class monFrag
Main.java:180: error: package R does not exist
        ptext3 = (TextView) view.findViewById(R.id.p_textview3);
                                               ^
Main.java:181: error: package View does not exist
        ptext3.setOnLongClickListener(new View.OnLongClickListener() {
                                              ^
Main.java:207: error: cannot find symbol
        pertext1 = (TextView) view.findViewById(R.id.per_textview1);
                    ^
  symbol:   class TextView
  location: class monFrag
Main.java:207: error: package R does not exist
        pertext1 = (TextView) view.findViewById(R.id.per_textview1);
                                                 ^
Main.java:208: error: package View does not exist
        pertext1.setOnLongClickListener(new View.OnLongClickListener() {
                                                ^
Main.java:234: error: cannot find symbol
        pertext2 = (TextView) view.findViewById(R.id.per_textview2);
                    ^
  symbol:   class TextView
  location: class monFrag
Main.java:234: error: package R does not exist
        pertext2 = (TextView) view.findViewById(R.id.per_textview2);
                                                 ^
Main.java:235: error: package View does not exist
        pertext2.setOnLongClickListener(new View.OnLongClickListener() {
                                                ^
Main.java:261: error: cannot find symbol
        pertext3 = (TextView) view.findViewById(R.id.per_textview3);
                    ^
  symbol:   class TextView
  location: class monFrag
Main.java:261: error: package R does not exist
        pertext3 = (TextView) view.findViewById(R.id.per_textview3);
                                                 ^
Main.java:262: error: package View does not exist
        pertext3.setOnLongClickListener(new View.OnLongClickListener() {
                                                ^
Main.java:288: error: cannot find symbol
        wbox1 = (CheckBox) view.findViewById(R.id.w_target_check1);
                 ^
  symbol:   class CheckBox
  location: class monFrag
Main.java:288: error: package R does not exist
        wbox1 = (CheckBox) view.findViewById(R.id.w_target_check1);
                                              ^
Main.java:289: error: package CompoundButton does not exist
        wbox1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
                                                           ^
Main.java:295: error: cannot find symbol
        wbox2 = (CheckBox) view.findViewById(R.id.w_target_check2);
                 ^
  symbol:   class CheckBox
  location: class monFrag
Main.java:295: error: package R does not exist
        wbox2 = (CheckBox) view.findViewById(R.id.w_target_check2);
                                              ^
Main.java:296: error: package CompoundButton does not exist
        wbox2.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
                                                           ^
Main.java:302: error: cannot find symbol
        wbox3 = (CheckBox) view.findViewById(R.id.w_target_check3);
                 ^
  symbol:   class CheckBox
  location: class monFrag
Main.java:302: error: package R does not exist
        wbox3 = (CheckBox) view.findViewById(R.id.w_target_check3);
                                              ^
Main.java:303: error: package CompoundButton does not exist
        wbox3.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
                                                           ^
Main.java:309: error: cannot find symbol
        pbox1 = (CheckBox) view.findViewById(R.id.p_target_check1);
                 ^
  symbol:   class CheckBox
  location: class monFrag
Main.java:309: error: package R does not exist
        pbox1 = (CheckBox) view.findViewById(R.id.p_target_check1);
                                              ^
Main.java:310: error: package CompoundButton does not exist
        pbox1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
                                                           ^
Main.java:316: error: cannot find symbol
        pbox2 = (CheckBox) view.findViewById(R.id.p_target_check2);
                 ^
  symbol:   class CheckBox
  location: class monFrag
Main.java:316: error: package R does not exist
        pbox2 = (CheckBox) view.findViewById(R.id.p_target_check2);
                                              ^
Main.java:317: error: package CompoundButton does not exist
        pbox2.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
                                                           ^
Main.java:323: error: cannot find symbol
        pbox3 = (CheckBox) view.findViewById(R.id.p_target_check3);
                 ^
  symbol:   class CheckBox
  location: class monFrag
Main.java:323: error: package R does not exist
        pbox3 = (CheckBox) view.findViewById(R.id.p_target_check3);
                                              ^
Main.java:324: error: package CompoundButton does not exist
        pbox3.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
                                                           ^
Main.java:331: error: cannot find symbol
        perbox1 = (CheckBox) view.findViewById(R.id.per_target_check1);
                   ^
  symbol:   class CheckBox
  location: class monFrag
Main.java:331: error: package R does not exist
        perbox1 = (CheckBox) view.findViewById(R.id.per_target_check1);
                                                ^
Main.java:332: error: package CompoundButton does not exist
        perbox1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
                                                             ^
Main.java:338: error: cannot find symbol
        perbox2 = (CheckBox) view.findViewById(R.id.per_target_check2);
                   ^
  symbol:   class CheckBox
  location: class monFrag
Main.java:338: error: package R does not exist
        perbox2 = (CheckBox) view.findViewById(R.id.per_target_check2);
                                                ^
Main.java:339: error: package CompoundButton does not exist
        perbox2.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
                                                             ^
Main.java:346: error: cannot find symbol
        perbox3 = (CheckBox) view.findViewById(R.id.per_target_check3);
                   ^
  symbol:   class CheckBox
  location: class monFrag
Main.java:346: error: package R does not exist
        perbox3 = (CheckBox) view.findViewById(R.id.per_target_check3);
                                                ^
Main.java:347: error: package CompoundButton does not exist
        perbox3.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
                                                             ^
Main.java:359: error: cannot find symbol
        TargetEvents targetEvents = new TargetEvents();
        ^
  symbol:   class TargetEvents
  location: class monFrag
Main.java:359: error: cannot find symbol
        TargetEvents targetEvents = new TargetEvents();
                                        ^
  symbol:   class TargetEvents
  location: class monFrag
Main.java:374: error: cannot find symbol
        Log.i("VERYIMP", logs);
        ^
  symbol:   variable Log
  location: class monFrag
Main.java:413: error: cannot find symbol
        Log.i("DBRESPONSE", dbString + "\n" + dbresult);
        ^
  symbol:   variable Log
  location: class monFrag
Main.java:417: error: method does not override or implement a method from a supertype
    @Override
    ^
stdout
Standard output is empty