1

android,a Receiver intent is null

view story
linux-howto

http://stackoverflow.com – this is my receiver.viewChanger is my original class . public void onReceive(Context context, Intent intent) { String action = intent.getAction(); viewChanger vc = new viewChanger(); if(action.equals("android.intent.action.TIME_TICK")){ vc.setDateView(context); }else if(action.equals("android.intent.action.BATTERY_CHANGED")){ int level = intent.getIntExtra("level", 0); vc.setBatteryView(level, context); }else if(action.equals(Intent.ACTION_POWER_CONNECTED)){ int charging = intent.getIntExtra(Battery (HowTos)