Images occasionally not found or invalid on startup - android

So I have an issue when launching an Android app written in Xamarin Forms.
Essentially none of the images load on start up. This is a rare occurrence and happens at complete random. The only thing I've noticed is that the system seems to stall slightly before it happens.
Log Cat shows:
D/ActivityManager( 624): bindService callerProcessName:[App i'm starting here], calleePkgName: com.android.providers.media, action: android.media.IMediaScannerService
W/ResourceType( 3893): No package identifier when getting value for resource number 0x00000000
I/mono-stdout( 3893): FileImageSourceHandler: Could not find image or image file was invalid: File: Icons_Taskbar_logo.png
W/ResourceType( 3893): No package identifier when getting value for resource number 0x00000000
I/mono-stdout( 3893): FileImageSourceHandler: Could not find image or image file was invalid: File: Icons_Taskbar_products.png
W/ResourceType( 3893): No package identifier when getting value for resource number 0x00000000
I/mono-stdout( 3893): FileImageSourceHandler: Could not find image or image file was invalid: File: Icons_Taskbar_settings.png

Related

If I'm setting the image for a button, where would I need to save the image in Eclipse?

I'm getting an error in my XML file here:
android:src="#drawable/search_icon.jpg"
error: Error: No resource found that matches the given name (at 'src' with value '#drawable/search_icon.jpg').

air push adview error

I am embeding air push ads in my android app. I added adview in layout.xml file. It has errors that are
Multiple annotations found at this line:
- error: No resource identifier found for attribute 'canShowMR' in package 'com.GUI.traficsing'
- error: No resource identifier found for attribute 'banner_type' in package 'com.GUI.traficsing'
- error: No resource identifier found for attribute 'placementType' in package 'com.GUI.traficsing'
- error: No resource identifier found for attribute 'refresh_time' in package 'com.GUI.traficsing'
- error: No resource identifier found for attribute 'animation' in package 'com.GUI.traficsing'
- error: No resource identifier found for attribute 'test_mode' in package 'com.GUI.traficsing'
Thank you
You need to place the mraid_attrs.xml file into your app's res > values folder. This file is included within the SDK download.
It solved me the same problem.
Ref: http://manage.airpush.com/docs/index.php?title=Android_SDK_6.0_Documentation

Android Phonegap

I have finally made sample phonegap project running but as I want to change something in index.html, it gives me this error.
[2012-08-11 17:04:46 - s] W/ResourceType( 9484): Bad XML block: header size 60 or total size 0 is larger than data size 0
[2012-08-11 17:04:46 - s] C:\Users\TOomo\workspace\s\res\layout\activity_test.xml:6: error: Error: No resource found that matches the given name (at 'text' with value '#string/hello_world').
[2012-08-11 17:04:46 - s] C:\Users\TOomo\workspace\s\res\menu\activity_test.xml:2: error: Error: No resource found that matches the given name (at 'title' with value '#string/menu_settings').
Do you know why?
you must have define Strings new_game in values like
Your String
Your String
refer this
You can create values xml file -If you are using eclipse then right click on the project and select other and there select android xml file,then given window select resource type as value,
Click on your "res" folder and go to "values". Open the file called "Strings". Make sure you have set a string called "hello_world" and another called "menu_settings" in there.

Google Play Downloader Library errors

When I create a new project from existing source (Google play downloader library) to use with APK expansion files, the project is added with many errors in:
DownloaderClientMarshaller.java
DownloaderServiceMarshaller.java
DownloadProgressInfo.java
DownloaderService.java
DownloadNotification.java
V11CustomNotification.java
V3CustomNotification.java
The library targetSdkVersion is 15
Adding the library to my project generates the following errors:
[2012-04-17 23:03:54 - Atlas] D:\Programming\android sdk\android-sdk-windows\extras\google\play_apk_expansion\downloader_library\res\values-v9\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.StatusBar.EventContent'.
[2012-04-17 23:03:54 - Atlas] D:\Programming\android sdk\android-sdk-windows\extras\google\play_apk_expansion\downloader_library\res\values-v9\styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.StatusBar.EventContent.Title'.
Try to delete values-v9. It's helped me.

“No resource found that matches the given name” error

In my application I get this error for all drawalbes that I have in the folder res/drawable:
[2011-05-15 16:07:47 - Marmara] libpng error: Not a PNG file
[2011-05-15 16:07:47 - Marmara] ERROR: Failure processing PNG image D:\WorkSpace JEE\Marmara\res\drawable\waiting.png
[2011-05-15 16:07:47 - Marmara] D:\WorkSpace JEE\Marmara\res\layout\detail_promo.xml:55: error: Error: No resource found that matches the given name (at 'src' with value '#drawable/ombreinterne_imghp').
I've tried to move all drawables and add them again, I've tried also to clean the project many times, but none of that works.
I think your waiting.png has some problem, Remove that image and check ! Because of some corrupted png file further processing is not happening.

Resources