Posts

How to create facebook share button using pop up window

Image
Learn to create android browser app in android studio.It uses webview widget. You can use this widget in any app to make it connected with internet. Top 10 windows key shortcuts - become pro with that shortcuts MyPage.html <!Doctype html> <html> <head> <title>Share on facebook</title> <style> img{ cursor: pointer; } </style> <script> function openWindow() { window.open("https://www.facebook.com/dialog/share?app_id=87741124305&href=https%3A//www.youtube.com/attribution_link%3Fa% 3DhCh342iJVIY%26u%3D%252Fwatch%253Fv%253DlK7kH2by7AU%2526feature% 253Dshare&display=popup&redirect_uri=https://www.youtube.com/facebook_redirect", "Share on facebook",'width=700,height=620'); } </script> </head> <body> <h1>How to create browser app in android studio</h1> <iframe width="560" height="315...

how to create image scaling animation in android apps

Image
Learn how to create image scaling animation in android studio.It uses Animation class. You can use this in any app to make your app attractive and beautiful. MainActivity.java package com.singh.jassi.myanimation; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.widget.Button; import android.widget.ImageView; public class MainActivity extends AppCompatActivity { ImageView imageView; Button b1; Animation animation; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); imageView=(ImageView)findViewById(R.id.imageView); b1=(Button)findViewById(R.id.button); imageView.setImageResource(R.drawable.myimage); animation= AnimationUtils.loadAnimation(getAppl...

How to create android Text To Speech app

Image
Learn to create android text to speech app in android studio.It uses TextToSpeech class. You can use this in any app to speak your written text, reminder, notes and to create talkitive app. MainActivity.java package com.singh.jassi.texttospeech; import android.speech.tts.TextToSpeech; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import java.util.Locale; public class MainActivity extends AppCompatActivity { TextToSpeech tt; Button b1; EditText ed; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); tt=new TextToSpeech(getApplicationContext(),new TextToSpeech.OnInitListener() { public void onInit(int status) { if(status!=TextToSpeech.ERROR) tt.se...

Alert Dialogs in android apps

Image
Learn how to create alert dialogs in android apps. We can get decisions and information from user through these alert dialogs. MainActivity.java package com.singh.jassi.alertdialog; import android.content.DialogInterface; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public class MainActivity extends AppCompatActivity { public Button button; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button=(Button)findViewById(R.id.button); } public void my_dialog(View view) { AlertDialog.Builder builder =new AlertDialog.Builder(MainActivity.this); builder.setIcon(R.mipmap.ic_launcher); builder.setTitle("Alert Dialog"); builder.setMess...

C++

Image
Q.1 How we can get string as an input in C++ A. cin B. cout C. getline() D. scanf() View Answer  Q.2 How we can assign null value to string in c++ A. NULL B. null C. '' D. "" View Answer 

Start developing apps with android vita

Image

Steps to create Android Virtual device

Image
To run your app you need virtual android device . Select  AVD Manager  from  upper options. (forth from last icons). A new window with the title  "Your Virtual Devices" prompt on your desktop. Click on  "Create Virtual Device"  Button. Select  "Nexus 5X"  phone. Click  "Next"  button below. Click  "Next"  button . Set  AVD Name : Android Device (It is your device's name). Now finally click on  "Finish"  button. Select Run->'Run app' or shift+F10. Select  "Android Device "  (Android virtual device which you already created) to run app. Click on  "OK"  button. Your device takes 2-3 minutes to run. Find your app with the name  "XYZ"  from  device. Run it by clicking on it. Congratulations you developed your first Hello World app which is running successfully on android device. Please  write any help and suggestions in comment box to improve  andro...