src\MyApplication\app\src\main\java\com\example\administrator\myapplication\adapter\BgPicGridAdapter.java

src\MyApplication\app\src\main\java\com\example\administrator\myapplication\ui\AlarmAlertActivity.java
This commit is contained in:
zhangnaifu15 2018-04-11 23:29:45 +08:00
parent b4b66cb857
commit 23e00ff44b
2 changed files with 0 additions and 8 deletions

View File

@ -35,26 +35,22 @@ public class BgPicGridAdapter extends BaseAdapter {
@Override @Override
public int getCount() { public int getCount() {
// TODO Auto-generated method stub
return bgList.size(); return bgList.size();
} }
@Override @Override
public Object getItem(int position) { public Object getItem(int position) {
// TODO Auto-generated method stub
return bgList.get(position); return bgList.get(position);
} }
@Override @Override
public long getItemId(int position) { public long getItemId(int position) {
// TODO Auto-generated method stub
return position; return position;
} }
@Override @Override
public View getView(int position, View convertView, ViewGroup parent) { public View getView(int position, View convertView, ViewGroup parent) {
// TODO Auto-generated method stub
ViewHolder viewHolder; ViewHolder viewHolder;
if (convertView == null) { if (convertView == null) {
viewHolder = new ViewHolder(); viewHolder = new ViewHolder();

View File

@ -104,16 +104,12 @@ public class AlarmAlertActivity extends Activity implements OnClickListener, OnD
mPlayer.setLooping(true); mPlayer.setLooping(true);
mPlayer.start(); mPlayer.start();
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
} catch (SecurityException e) { } catch (SecurityException e) {
// TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
} catch (IllegalStateException e) { } catch (IllegalStateException e) {
// TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
} }
} }