mercredi 4 février 2015

android scheme loads but doesn't display activity when called from some devices


Vote count:

0




i'm trying to run my app activity from browser.on one device it works like a charm, but on the other one it seems to go in the onCreate method but doesn't show up on screen.


my activity in manifest:



<activity
android:name="unison.activities.FinalPageActivity"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="payresponce" />
</intent-filter>
</activity>


my activity:



public class FinalPageActivity extends Activity{

private MessageView main;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
main = new MessageView(this, null);
setContentView(main);
Uri data = getIntent().getData();
Toast.makeText(this,data.toString(),Toast.LENGTH_LONG).show();
Utils.log(data.toString());
}
}


toast shows on screen and so does the log in logcat.. but the activity is not displayed



asked 1 min ago







android scheme loads but doesn't display activity when called from some devices

Aucun commentaire:

Enregistrer un commentaire