I'm new to Mono for Android. I've developed android apps using eclipse and i often use drag-and-drop feature on editing UI. Recently, I followed Hello Android tutorial on http://docs.xamarin.com/guides/android/getting_started/hello%2C_world and I didn't have any problem running the app on emulator. I easily modify layouts on source mode but xamarin studio seems to have problem rendering the UI on content mode:
mono.android.DesignerException: Could not resolve resource value: 0x1110009.
at mono.android.DesignerSession.load(DesignerSession.java:129)
at mono.android.DesignerSession.processMessage(DesignerSession.java:462)
at mono.android.ListenerThread.processMessages(HostProcessConnection.java:182)
at mono.android.ListenerThread.run(HostProcessConnection.java:156)
Anyone experienced this problem?
This is the source of axml file:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button
android:id="#+id/showSecond"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="#string/btntext" />
</LinearLayout>
It just found a bug similar to this : Bug 29068.
I removed and re-added all codes, It fixes my exception.
I think it will work for you too.
Similar post in Xamarin.Forms too : https://forums.xamarin.com/discussion/38961/cant-work-in-xamarin-studio-designer-xamarin-designer-designerexception-was-trown
Related
I'm having some issues with Phonegap Build and my Iphone.
At the moment I have the following preferences in my config.xml
<preference name="webviewbounce" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="UIWebViewBounce" value="false" />
and the following meta tag;
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=medium-dpi" />
The application compiles fine and my app runs off the 'Test flight' system very well, barring this one issue. The application seems to be 'Draggable' (which I believe is the bounce problem).
Things i've tried;
Delete my Phonegap Build Project.
Remove all config.xml files barring my main one located in the project root.
Using only one of the preferences etc.
Does anyone have any idea how I can prevent the app from being dragged down the screen (I have elements that have overflow on them, and they scroll fine, but the whole app scrolls some times which really effects the user experience).
Thanks.
*Edit 1
So i've opened up my .ipa file on a mac and it seems that in the config.xml the "DisallowOverscroll" is being set to false. I'm not quite sure why this would be happening?
Well, actually just the <preference name="DisallowOverscroll" value="true" /> should be enough, your viewport tag looks good enough. Try to completely remove the ios platform, and re-add it again.
Okay, So I figured it out, thanks to dsokurenko who put the idea in my head that the config.xml wasn't actually being read!
So my steps to fix this;
Create a new phonegap project
Copy my files across
Move config.xml to /www/ folder (I believe this was the key to fix the issue, change any config values that have /www/ in them
Create new app on Phonegap Build, re-build and install!
This worked for me and I hope it helps someone else.
It is said elsewhere, that JV Twitter module is compatible with Joomla 1.5.
Unfortunately, the archive I got does not install.
The archive content is follows:
And the error message is "Error! Could not find a Joomla! XML setup file in the package.":
The content of XML file starts with:
<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="2.5" method="upgrade">
<name>JV Twitter</name>
<author>JoomlaVi! Project</author>
<creationDate>May 2014</creationDate>
<copyright>Copyright (C) JoomlaVi. All rights reserved</copyright>
<license>http://www.gnu.org/licenseses/gpl-2.0.html GNU/GPL or later</license>
<authorEmail>info#joomlavi.com</authorEmail>
<authorUrl>www.joomlavi.com</authorUrl>
<version>4.0.8</version>
<description>JV Twitter</description>
<files>
<filename module="mod_jvtwitter">mod_jvtwitter.php</filename>
<filename>helpers.php</filename>
<filename>jvtwitter.php</filename>
<filename>index.html</filename>
<folder>assets</folder>
<folder>libs</folder>
<folder>tmpl</folder>
<folder>fields</folder>
<folder>languages</folder>
</files>
<languages folder="languages">
<language tag="en-GB">en-GB.mod_jvtwitter.ini</language>
<language tag="en-GB">en-GB.mod_jvtwitter.sys.ini</language>
</languages>
<config>
and so on.
Does this mean that actually package is not compatible with 1.5? Or it is still possible to do something?
I've looked at the developer website and this module is only compatible with Joomla 2.5 and 3.x. It will not work for Joomla 1.5 as the XML structure and content is different in the 2 versions, so you will need to find an alternative.
I would strong suggest you think about migrating to Joomla 3.x very soon. It's more secure and has more features. You may have already noticed that not many developers still support Joomla 1.5
It seems like FontAwesome is not working on Amazon S3. I'm getting below error for Internet Explorer
#font-face failed cross-origin request. Resource access is restricted.
I do have CORS configured below:
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>Content-*</AllowedHeader>
<AllowedHeader>Host</AllowedHeader>
</CORSRule>
</CORSConfiguration>
This now seems to be working with Firefox (it had the same error on it before the CORS config) but still not on IE.
I thought it was caching issue but this was done 2 days ago.
Is there any other config that I need to do to fix this error and display icons on IE aswell?
Have you tried setting AllowedOrigin to http://*.yourdomain.com?
Oh, and you didn't say you were using CloudFront, but if you are, S3+CloudFront have some major issues with CORS support when you try to use them together.
i have some HTML files that users can download in runtime to sdcard. Now i want to create a link in my app to open those files. The problem is, i do not know what i should write in href property of the link tags to open the HTML files on sdcard
can anyone help me?
In the congif.xml file from my Blackberry app project locate on:
C:\Dev\phonegap\BlackBerry-WebWorks\<project_folder>\www
there are this lines:
<!-- PhoneGap API -->
<access subdomains="true" uri="file:///store/home" />
<access subdomains="true" uri="file:///SDCard" />
That config is granting access to those URI/resources, i think you can play around with that.
I have no idea how will be this URI on other plataforms, but is a good point to start the testing,
Good Luck!
<em:targetApplication>
<Description>
<em:minVersion>1.5</em:minVersion>
<em:maxVersion>3.6.16</em:maxVersion>
</Description>
</em:targetApplication>
the only declaration who get the compatibility of some firefox addon or are there any other?
I'm trying for creating my first extension whith the declaration shown. When i install my addon firefox told me that the extension is not compatible with where installed version of the browser (3.6)
You also need the ID of the application. E.g. for Firefox:
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.5</em:minVersion>
<em:maxVersion>3.6.16</em:maxVersion>
</Description>
</em:targetApplication>
Update: It is difficult to tell why it does not work without seeing all the code. I suggest you read this tutorial.