how to add vibration and ringtone when launch application home page android

0 votes

I want to add vibration and music to the home screen of my application so that when it launches, it vibrates and plays a ringtone up until the point where I tap the button to switch to another activity, at which point the tremor and sound stop. The link to my manifest file is below.

 <?xml version="1.0" encoding="utf-8"?>
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
   package="com.androidpeople.tab"
   android:versionCode="1"
   android:versionName="1.0">
     <uses-permission android:name="android.permission.INTERNET" />


      <application android:icon="@drawable/icon" android:label="@string/app_name"
                        android:debuggable= "true">
            <uses-library android:name="com.google.android.maps" />
            <activity android:name=".SplashScreen"
              android:label="@string/app_name">
            <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            </activity>
             <activity android:name="currentlocmap"/>
             <activity android:name="filter"/>
             <activity android:name="keywordsearch"/>
             <activity android:name="keywordxmlparsing" />
             <activity android:name="Artistspacedetailview" />
             <activity android:name="loadingimage"/>
             <activity android:name="keywordpagetabs"/>
             <activity android:name="filterpagetabs"/>
             <activity android:name="artistspacedetailviewTab"/>


              </application>
              <supports-screens android:anyDensity="true"
                android:largeScreens="true"
                android:normalScreens="true"
                android:smallScreens="true" />
Nov 25, 2022 in Android by Edureka
• 13,620 points
438 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Android

0 votes
1 answer

How to open the Google Play Store directly from my Android application?

If you want to link to your ...READ MORE

answered Nov 7, 2022 in Android by Edureka
• 12,690 points
4,389 views
0 votes
0 answers

How to play YouTube video in my Android application?

How can I embed YouTube videos in ...READ MORE

Nov 15, 2022 in Android by Edureka
• 13,620 points
527 views
0 votes
0 answers

How to get Android application id?

How can I connect with other programs ...READ MORE

Nov 17, 2022 in Android by Edureka
• 13,620 points
469 views
0 votes
0 answers

How to get current time and date in Android?

How can I get the current time ...READ MORE

Nov 22, 2022 in Android by Edureka
• 12,690 points
525 views
0 votes
0 answers

How to launch Amazon Shopping app in Android app?

I want my Android application to be ...READ MORE

Nov 23, 2022 in Android by Ashwini
• 5,430 points
839 views
0 votes
0 answers

How to open the Google Play Store directly from my Android application?

I have open the Google Play store ...READ MORE

Nov 23, 2022 in Android by Ashwini
• 5,430 points
733 views
0 votes
1 answer

Running docker on Android

According to the documentation, the Android kernel is ...READ MORE

answered Aug 1, 2018 in Docker by Kalgi
• 52,350 points
3,796 views
0 votes
1 answer

Task Canceled Exception while invoking AWS Lambda

I'm guessing either the TaskCanceledException instance is ...READ MORE

answered Sep 19, 2018 in AWS by Priyaj
• 58,020 points
2,483 views
0 votes
1 answer

Is there a way to run Python on Android?

YES! here’s a barcode scanner written in six ...READ MORE

answered Sep 19, 2018 in Python by Priyaj
• 58,020 points
1,039 views
0 votes
1 answer

How can we get the current location in Android?

First you need to define a LocationListener to handle ...READ MORE

answered Sep 25, 2018 in Java by Parth
• 4,640 points
938 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP