small medium large xlarge

14 Aug 2013, 21:14
atibur rahman (5 posts)

I have two activity. I want to go from A to B with fixed time. After going to B i want to come back to A with fixed time. I have added the below code. Thread switchToActivityB = new Thread(new Runnable() {


      public void run() {
        try {
          Intent intent = new Intent(this, About.class);
        } catch (Exception e) {

    switchToActivityB.start(); but this line Intent intent = new Intent(this,about.class); showing me error saying this line saying  "The Constructor Intent (new Runnable(){}, Class is unidentified)" . i don't know what to do? i need a quick help.
19 Aug 2013, 17:18
Mike Riley (57 posts)

This may be a question more appropriately posted in the Hello, Android discussion forum. This forum is dedicated to discussions about the book Developing Android on Android, which uses applications like Tasker and SL4A to automate Android processes.

You must be logged in to comment