Skip to content

Instantly share code, notes, and snippets.

@warodri-sendbird
Created January 27, 2022 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save warodri-sendbird/edb29ec532388827f70d6bcbfa91d9e6 to your computer and use it in GitHub Desktop.
Save warodri-sendbird/edb29ec532388827f70d6bcbfa91d9e6 to your computer and use it in GitHub Desktop.
package com.example.uikitinsidefragment;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import com.sendbird.android.GroupChannel;
import com.sendbird.android.GroupChannelParams;
import com.sendbird.android.SendBirdException;
import com.sendbird.uikit.fragments.ChannelListFragment;
public class MainActivity extends AppCompatActivity {
Context mContext = this;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button butCallUIKit = (Button) findViewById(R.id.butCallUIKit);
butCallUIKit.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(mContext, UIKitActivity.class);
startActivity(intent);
}
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment