This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.suresh.retrofitdemo | |
import retrofit2.Retrofit | |
import retrofit2.converter.gson.GsonConverterFactory | |
/** | |
* Created by Dumadu on 26-Oct-17. | |
*/ | |
public class ApiClient { | |
public var BASE_URL: String = "https://next.json-generator.com/api/json/get/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package suresh.androidtest; | |
import retrofit2.Retrofit; | |
import retrofit2.converter.gson.GsonConverterFactory; | |
/** | |
* Created by Dumadu on 26-Oct-17. | |
*/ | |
public class ApiClient { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.suresh.recyclerviewpractice | |
import android.os.Bundle | |
import android.support.v7.app.AppCompatActivity | |
import android.support.v7.widget.DividerItemDecoration | |
import android.support.v7.widget.LinearLayoutManager | |
import android.support.v7.widget.RecyclerView | |
import android.widget.Toast | |
class MainActivity : AppCompatActivity(), MyRecyclerView.itemClickListener { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) | |
#include <jni.h> | |
#include "AndroidInterfaceManager.h" | |
using namespace std; | |
AndroidInterfaceManager::AndroidInterfaceManager() { | |
jniEnv = JniHelper::getEnv(); | |
activity = JniHelper::getActivity(); |
NewerOlder