Skip to content

Instantly share code, notes, and snippets.

Asem S. AasemJS

Block or report user

Report or block AasemJS

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@AasemJS
AasemJS / MainActivity.java
Created Jul 4, 2018
Basic Intent Functionality
View MainActivity.java
package com.example.aasemjs.intentbasic;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class MainActivity extends AppCompatActivity {
@AasemJS
AasemJS / Main2Activity.java
Last active Jul 4, 2018
Basic Intent Functionality
View Main2Activity.java
package com.example.aasemjs.intentbasic;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Main2Activity extends AppCompatActivity {
@AasemJS
AasemJS / activity_main.xml
Created Jun 7, 2018
Basic Intent Interface
View activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.aasemjs.intentbasic.MainActivity">
<TextView
android:layout_width="wrap_content"
View EmotionDetection.py
#tweepy framework library for fetching tweets
import tweepy
#textblob to analyse text
from textblob import TextBlob
#importing sys to take arguments from user at runtime
import sys
#search term
View MainActivity.java
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
@AasemJS
AasemJS / MainActivity.java
Created Feb 11, 2018
Video file tutorial
View MainActivity.java
package com.aasemjs.videoplaydemo;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.MediaController;
import android.widget.VideoView;
public class MainActivity extends AppCompatActivity {
View activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
@AasemJS
AasemJS / MainActivity.java
Created Feb 5, 2018
Basic Calculator app functionality
View MainActivity.java
package com.example.a84.calculator;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class MainActivity extends AppCompatActivity {
@AasemJS
AasemJS / activity_main.xml
Created Feb 5, 2018
Interface for Basic Calculator App
View activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.a84.calculator.MainActivity">
<RelativeLayout
android:layout_width="368dp"
View MainActivity.java
package com.aasemjs.audioplayer;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
public class MainActivity extends AppCompatActivity {
MediaPlayer mp;
You can’t perform that action at this time.