java - Cannot start another activity through super activity by overriding startActivity(Intent) -


i have a, activity class a overrides startactivity(intent). checks intent , pass super activity calling super.startactivity(intent). activity in module.

now created project , added module. have activity class inside project named b extends a. b calls activity c within same project. if b not extend a can call c. whenever extends a, nothing happens. might problem. tried print current class , called class in super activity a , can see intent ok. whenever want call c via a through method nothing happens.

here code snippet.

public  class extends activity{       @override     public void startactivity(intent intent)     {            //do here. not modifying intent           super.startactivity(intent);       } } 

and in activity b,

public class b extends  {   //somewhere in button handler   intent intent = new intent(b.this, c.class);   startactivity(intent); } 

what can see code startactivity inside a called indeed. when pass intent super, nothing happens. if b not extend a works fine. noted a library module.

while looking @ logcat not see errors,

d/taskpersister(  826): removeobsoletefile: deleting file=279_task.xml i/tasker_activity( 1181): inside tasker activity d/audio_hw_primary(  348): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2 d/audio_hw_primary(  348): select_devices: out_snd_device(2: speaker) in_snd_device(0: none) d/msm8974_platform(  348): platform_send_audio_calibration: sending audio calibration snd_device(2) acdb_id(15) e/acdb-loader(  348): error: acdb afe returned = -19 d/audio_hw_primary(  348): enable_snd_device: snd_device(2: speaker) d/audio_hw_primary(  348): enable_audio_route: apply , update mixer path: low-latency-playback speaker d/audio_hw_primary(  348): disable_audio_route: reset , update mixer path: low-latency-playback speaker d/audio_hw_primary(  348): disable_snd_device: snd_device(2: speaker) 

but not know means e/acdb-loader( 348): error: acdb afe returned = -19

it noted instead of library put super activity inside application project result same.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -