Feature brief: Provide an app download platform, similar to AppStore, there are many apps available for download
To achieve the basic idea: the use of Android, the phone desktop to create an icon, click on the icon is not open the app, but instead jump to a Web page, this Web page is deployed on the Sina SAE server, APK resources are stored on the Sina SAE server, this Examples use the web to become a language mainly using the Smarty template PHP written
The first is the Android page, just a simple URL jump, jump to the activity to jump to the Web page, the code is as follows
Packagecom.example.hugetech7.myapplication;Importandroid.content.Intent;ImportAndroid.net.Uri;Importandroid.support.v7.app.AppCompatActivity;ImportAndroid.os.Bundle; Public classMainactivityextendsappcompatactivity {@Overrideprotected voidonCreate (Bundle savedinstancestate) {Super. OnCreate (savedinstancestate); Uri URI= Uri.parse ("http://wechatpoint.applinzi.com"); Intent it=NewIntent (Intent.action_view, URI); StartActivity (IT); Finish (); }}
The second is to deploy to the Sina SAE
Specific deployment no longer stated, interested please go to see official documents
Code See link: http://pan.baidu.com/s/1dFwmz53 Password: w5w8
How to use php+android+ Sina SAE server to do an app download app