Native.java 1.9 KB

123456789101112131415161718192021222324252627282930313233
  1. /******************************************************************************/
  2. package com.esenthel;
  3. import android.location.Location;
  4. import java.nio.ByteBuffer;
  5. import java.util.ArrayList;
  6. /******************************************************************************/
  7. public class Native
  8. {
  9. public static native void key (int chr, int key_code);
  10. public static native void text (String text, int start, int end);
  11. public static native void connected (boolean inapp_supported, boolean subs_supported);
  12. public static native String getStr (long user , int index);
  13. public static native void listItem (long user , String sku, String name, String desc , String price, boolean sub);
  14. public static native void listPurchase (long user , String sku, String data, String token, long date);
  15. public static native void purchased (int result, String sku, String data, String token, long date);
  16. public static native void location (boolean gps, Location location);
  17. public static native void adState (boolean banner, int state);
  18. public static native void bannerSize (int width, int height);
  19. public static native void facebookMe ( String id , String name, String email);
  20. public static native void facebookFriends(ArrayList<String> ids , ArrayList<String> names );
  21. public static native void facebookScores ( String json, String app_id);
  22. public static native void facebookPost (int result);
  23. public static native void chartboost (int result);
  24. public static native void audioRecord (long sound_record, ByteBuffer buf, int size);
  25. public static native void closedError ();
  26. public static native void notification (int id, boolean selected);
  27. static
  28. {
  29. System.loadLibrary("Project");
  30. }
  31. }
  32. /******************************************************************************/