How to use php+android+ Sina SAE server to do an app download app

Source: Internet
Author: User
Tags smarty template

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.