Development by Davis: “Get funded with OpenGov Grants” plus 2 more |
- Get funded with OpenGov Grants
- How to get a class involved with an open source project
- Adding a Backend to Your App In Android Studio
Get funded with OpenGov Grants Posted: 27 Jun 2013 02:00 AM PDT We know how challenging fundraising can be. You start an innovative project using technology to make government more open and accessible and halfway through—you run out of money. Or maybe you know someone who is collecting municipal data and wants to make a cool app to help residents understand how local government works, but they don't have funding.
|
How to get a class involved with an open source project Posted: 27 Jun 2013 12:00 AM PDT We talk about "community" a lot when it comes to open source, but it's important to remember that just like local communities within a city, town, state, and country, each community has its own culture. One community is not just like another. Each has its own ways of communication and tracking and decision-making. Processes for code submission differ—perhaps two communities both use Bugzilla, but with different flags. Others require you to also alert a mailing list. A large software project may even have smaller sub-communities within it with their own customs and quirks. |
Adding a Backend to Your App In Android Studio Posted: 26 Jun 2013 09:40 AM PDT Posted by Sachin Kotwani, Google Cloud Platform team Android Studio lets you easily add a cloud backend to your application, right from your IDE. A backend allows you to implement functionality such as backing up user data to the cloud, serving content to client apps, real-time interactions, sending push notifications through Google Cloud Messaging for Android (GCM), and more. Additionally, having your application's backend hosted on Google App Engine means that you can focus on what the cloud application does, without having to worry about administration, reliability or scalability. When you create a backend using Android Studio, it generates a new App Engine application under the same project, and gives your Android application the necessary libraries and a sample activity to interact with that backend. Support for GCM is built-in, making it easy to sync data across multiple devices. Once you've generated the project, you can build and run your client and server code together, in a single environment, and even deploy your backend code right from Android Studio. In this post we'll focus on how to get started with the basic setup. From there it's easy to extend the basic setup to meet your needs. Preliminary setupBefore you get started, make sure you take care of these tasks first:
1. Generate an App Engine projectIn Android Studio, open an existing Android application that you want to modify, or create a new one. Select the Android app module under the Project node. Then click Tools > Google Cloud Endpoints > Create App Engine Backend. In the wizard, enter the Project ID, Project Number, and API Key of your Cloud project. This will create:
The generated App Engine application (<app_name>-AppEngine) is an Apache Maven-based project. The Maven pom.xml file takes care of downloading all the dependencies, including the App Engine SDK. This module also contains the following:
The endpoints module (<app_name>-endpoints) generated for you contains the classes and libraries needed by the Android application to interact with the backend:
2. Add GCM registration to your appIn your Android application, you can call ... import android.content.Intent; ... @Override protected void onCreate(Bundle savedInstanceState) { ... Intent intent = new Intent(this, RegisterActivity.class); startActivity(intent); } 3. Deploy the sample backend serverWhen you're ready to deploy an update to your ( the sample ) production backend in the cloud, you can do that easily from the IDE. Click on the "Maven Projects" button on the right edge of the IDE, under Plugins > App Engine, right-click and run the appengine:update goal. As soon as the update is deployed, you can also access your endpoints through the APIs Explorer at For testing and debugging, you can also run your backend server locally without having to deploy your changes to the production backend. To run the backend locally, just set the value of 4. Build and run the Android appNow build and run your Android app. If you called You can access your sample web console on any browser at Extending the basic setupIt's easy to expand your cloud services right in Android Studio. You can add new server-side code and through Android Studio instantly generate your own custom endpoints to access those services from your Android app. |
You are subscribed to email updates from Developers by Davis To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
No hay comentarios:
Publicar un comentario