hey,
i'm trying to make an app in android studio and get some errors in my androidmanifest.xml when using inspect code.
This is my first app and i'm sure i missed something essential...pls help
My xml file looks like this:
<manifest xmlns:android="...."
android:versionCode="1"
android:versionName="1.0"
package="com.standby.custom">
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="18"/>
<supports-screens
android:anyDensity="true"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:resizeable="true"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.BROADCAST_STICKY"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<uses-permission android:name="android.permission.GET_TASKS"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
<application
android:allowBackup="true"
android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity" android:launchMode="singleInstance" android:hardwareAccelerated="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name=".DeviceStateReceiver" />
<service android:name="com.standby.custom.services.ReceiverRegisterService" />
<receiver android:name=".PackageChangeReceiver">
<intent-filter>
<action android:name="android.intent.action.PACKAGE_ADDED" />
<action android:name="android.intent.action.PACKAGE_REPLACED" />
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<data android:scheme="package" androidath="com.standby.custom" />
</intent-filter>
</receiver>
<receiver android:name=".BootUpReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
</application>
</manifest>
and i get this error messages:
Cannot resolve symbol '.MainActivity' (at line 34)
Cannot resolve symbol '.DeviceStateReceiver' (at line 40)
Cannot resolve symbol 'com.standby.custom.services.ReceiverRegisterService' (at line 41)
Cannot resolve symbol '.PackageChangeReceiver' (at line 42)
Cannot resolve symbol '.BootUpReceiver' (at line 50)
Does anyone know what I missed?
Tks
First of all, please use
Code:
tags for your code.
Is this the right package all of your classes can be found in?
[CODE]package="com.standby.custom"
Try to enter the full package name for all android:name attributes. Like this:
Code:
android:name="my.package.name.MainActivity"
(replace my.package.name by the package MainActivity is in.)
Related
What does that mean ?! Here is the full error I get when submitting my proggy to the market;
ERRORS;
error#1- Market requires versionCode to be set to a positive 32-bit integer in AndroidManifest.xml
error#2- Market requires versionName to be set in AndroidManifest.xml
<><><><><><><><>
My Manifest; ( I replaced my app info with gen info for the forum)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mydomain.myapp"
android:versionCode="1"
android:versionName="1">
<uses-sdk android:minSdkVersion="7" />
<uses-sdk android:targetSdkVersion="8" />
<uses-sdk android:maxSdkVersion="9" />
<activity android:name=".myapp"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:screenOrientation="landscape">
<application android:label="@string/myapp" android:icon="@drawable/myicon">
<uses-feature android:name="android.hardware.touchscreen" android:required="true"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.wifi" android:required="false"/>
<uses-feature android:name="android.hardware.sensor.accelerometer" android:required="false"/>
<uses-feature android:name="android.hardware.location.gps" android:required="false"/>
<uses-feature android:name="android.hardware.bluetooth" android:required="false"/>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</application>
</activity>
</manifest>
<><><><><>
Any help would be wonderful, thanks taking the time to read this post
Hi, im building an RSS Reader and am having a little trouble if anyone could help me out.
im trying to open my app when a subscribe rss link in a browser is pressed, but at the moment it is displaying my app in the browser instead of launching the app!!
can anyone help with is issue?
below is my manifest, thanks
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.RSS_Viewer"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="15" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<application
android:name=".Globals"
android:icon="@drawable/rssicon"
android:label="@string/app_name" android:logo="@drawable/rssicon">
<activity
android:name=".RSS_ViewerActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="itpc" />
<data android:scheme="pcast" />
<data android:scheme="feed" />
<data android:scheme="feeds" />
<data android:scheme="rss" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/xml" android:scheme="http" />
<data android:mimeType="application/rss+xml" android:scheme="http" />
<data android:mimeType="application/atom+xml" android:scheme="http" />
<data android:mimeType="text/xml" android:scheme="https" />
<data android:mimeType="application/rss+xml" android:scheme="https" />
<data android:mimeType="application/atom+xml" android:scheme="https" />
</intent-filter>
</activity>
<activity android:name="RSSFeedActivity"></activity>
<activity android:name="com.CertificateAuthentication.Authenticator"></activity>
</application>
</manifest>
hi guys
could you help me to put the banner in my app.
I also followed the guides but I still can not insert
You might even see me lines of code please
thanks
what problem are you getting????
Atleast tell the problem or provide the code where you are facing problem.
Simple:
1) Install Google AdMob Ads SDK (you can use Android SDK Manager for that)
2) Add GoogleAdMobAdsSdk.jar to your project (Project Properties>>Java Build Path>>Add External JARs…)
3) In the Manifest add ACCESS_NETWORK_STATE and INTERNET permissions, and also an activity inside application tag, like that:
Code:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:debuggable="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".BillingSampleActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:name="com.google.ads.AdActivity" />
</application>
4) Get Publisher ID from AdMob
5) Add banner to your layout
Code:
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="your_admob_publisher_id"
ads:loadAdOnCreate="true" />
Thats it!
GRYMALA said:
Simple:
1) Install Google AdMob Ads SDK (you can use Android SDK Manager for that)
2) Add GoogleAdMobAdsSdk.jar to your project (Project Properties>>Java Build Path>>Add External JARs…)
3) In the Manifest add ACCESS_NETWORK_STATE and INTERNET permissions, and also an activity inside application tag, like that:
Code:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:debuggable="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".BillingSampleActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:name="com.google.ads.AdActivity" />
</application>
4) Get Publisher ID from AdMob
5) Add banner to your layout
Code:
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="your_admob_publisher_id"
ads:loadAdOnCreate="true" />
Thats it!
Click to expand...
Click to collapse
Nice answer! Thanks for this.
I am trying to delete an image file from sdcard.The following code works fine with the emulator but when I'm testing it on my Nexus phone there is a black frame exists in the folder for each deleted image.So, after following posts in relation to similar issue my code looks like below. I've just started learning android programming and got stuck at this point.I'll really appreciate your help
String sdcard_path=Environment.getExternalStorageDirectory().getAbsolutePath()+"/Expense_image";
File cacheFile =new File (sdcard_path,imageLocation);
if(cacheFile.exists()){
boolean deleted=cacheFile.delete();
Log.i("Deletion check","deleted:"+deleted);
sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory())));
Manifest.xml
<uses-feature android:name="android.hardware.camera" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<activity
android:name=".deleteRecord"
android:label="@string/app_name" >
<intent-filter>
<action android:name="com.refat.myexpensev1.DELETERECORD" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MEDIA_MOUNTED" />
<data android:scheme="file" />
</intent-filter>
</activity>
Hello everybody. I am android developer and i want to modify fm radio for agm m7 (lineage). I have decompiled app,but when i try to run fm radio and play some fm wave,i get a message,what this function is unavailable now. I have it in /system/app and in /system/priv-app with permissions 644 and 777,i.e i tryed to do it as a system app. Also in /system/priv-app i have text link on libfmjni.so My phone is rooted. As i understood from debug,native method openDev and probably some other methods from native lib return false. In manifest i have:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="2" android:versionName="2.0" package="com.android.fmradio" platformBuildVersionCode="27" platformBuildVersionName="8.1.0">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="26" android:usesCleartextTraffic="false"/>
<uses-permission android:name="android.permission.ACCESS_BROADCAST_RADIO"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<application android:label="@string/app_name" android:icon="@Mipmap/ic_launcher" android:hardwareAccelerated="true">
<activity android:theme="@style/AppTheme" android:label="@string/app_name" android:name="com.android.fmradio.FmMainActivity" android:launchMode="standard" android:screenOrientation="portrait" android:windowSoftInputMode="adjustPan" android:usesCleartextTraffic="false">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity android:theme="@style/LightTheme" android:label="@string/station_title" android:name="com.android.fmradio.FmFavoriteActivity" android:launchMode="singleTask" android:configChanges="screenSize" android:windowSoftInputMode="stateAlwaysHidden"/>
<service android:name="com.android.fmradio.FmService" android:exported="false">
<intent-filter>
<action android:name="com.android.fmradio.IFmRadioService"/>
</intent-filter>
</service>
<provider android:name="com.android.fmradio.FmProvider" android:exported="false" android:authorities="com.android.fmradio"/>
<activity android:theme="@style/LightTheme" android:label="@string/record_title" android:name="com.android.fmradio.FmRecordActivity" android:launchMode="singleTask" android:configChanges="screenSize|keyboardHidden|mnc|mcc"/>
<activity android:label="@string/app_name" android:name="com.android.fmradio.FmEmActivity" android:clearTaskOnLaunch="true" android:launchMode="singleTask" android:configChanges="screenSize|orientation|keyboardHidden|mnc|mcc">
<intent-filter>
<action android:name="com.mediatek.fmradio.FmRadioEmActivity"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<receiver android:name="com.android.fmradio.FMMediaButtonIntentReceiver">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON"/>
</intent-filter>
</receiver>
</application>
</manifest>
May be it connected with differents signatures of custom firmware and my app? If true,whether it possible sign firmware with other signature,if i haven't source code of firmware for agm m7? May be this problem not connected with signatures?
Also maybe someone have decompiled fm radio for xiaomi redmi note 9 s,because i want to change one thing in this app.