开发者

How to lock certain feature of my android app

开发者 https://www.devze.com 2023-03-23 23:13 出处:网络
I was doing an android app and I want to lock some feature temporally for each us开发者_StackOverflow中文版er.

I was doing an android app and I want to lock some feature temporally for each us开发者_StackOverflow中文版er.

What I want is to lock say 1 activity to be used before someone performs a predefined task say share on facebook, only then I want them to view the activity.

How can I achieve this? It is for application, just like games lock the level.


You should make an application/user profile and save it in a database or in the shared preferences.


you could simply check if a certain task has been performed prior to opening the activity you want locked.

0

精彩评论

暂无评论...
验证码 换一张
取 消