Android Open Source - PromenadeAndroid Constants






From Project

Back to project page PromenadeAndroid.

License

The source code is released under:

This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...

If you think the Android project PromenadeAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.promenadevt.library;
//from   ww  w .  j a  v a  2 s.  c  o m
import java.util.Locale;

import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.s3.AmazonS3Client;

public class Constants {
  //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  // This sample App is for demonstration purposes only.
  // It is not secure to embed your credentials into source code.
  // DO NOT EMBED YOUR CREDENTIALS IN PRODUCTION APPS.
  // We offer two solutions for getting credentials to your mobile App.
  // Please read the following article to learn about Token Vending Machine:
  // * http://aws.amazon.com/articles/Mobile/4611615499399490
  // Or consider using web identity federation:
  // * http://aws.amazon.com/articles/Mobile/4617974389850313
  //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  public static final String ACCESS_KEY_ID = "";
  public static final String SECRET_KEY = "";

  public String PROP_ID;// = "picture-bucket";
  public String ROOM_ID;// = "NameOfThePicture";
  
  public Constants(String bucket, String name){
    PROP_ID = bucket;
    ROOM_ID = "room"+name;
  }


  public String getPictureBucket() {
    return ("promenadevt-1").toLowerCase(Locale.US);
  }

}




Java Source Code List

com.promenadevt.EditActivity.java
com.promenadevt.HomesActivity.java
com.promenadevt.LoginActivity.java
com.promenadevt.RegisterActivity.java
com.promenadevt.RoomsActivity.java
com.promenadevt.library.Constants.java
com.promenadevt.library.DatabaseAccessTask.java
com.promenadevt.library.DatabaseHandler.java
com.promenadevt.library.JSONParser.java
com.promenadevt.library.UserFunctions.java