Implement FlexPaper library in Flex Project - flex4

I am developing flex pdf reader application using Flexpaper library. I got flexpaper library from http://flexpaper.devaldi.com/download/ and added to my project build path, its working well in both flex web,desktop and mobile project.
I got the source code from http://code.google.com/p/flexpaper/downloads/list and implemented in my flex project to customize the application.
For Flex Desktop project compiled without error but not working correctly. Swf file not loading, always showing spinner in right side.
For Flex Mobile project showing compilation error.
Could not resolve to a component implementation
Pls give me the solution..
Thanks and Regards
Dinesh

I got solution. My Flex project and Flex mobile project both are working good with customized flexpaper library.
I changed my code to
<mx:VBox xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:fx="http://ns.adobe.com/mxml/2009"
Thanks and regards,
Dinesh

Flex Desktop and web project both are compiled and run without error.
I change my code to
protected function button1_clickHandler(event:MouseEvent):void
{ myViewer.SwfFile="Paper.swf";
}
<flexpaper:FlexPaperViewer id="myViewer" x="10" y="44" >
</flexpaper:FlexPaperViewer>
<s:Button x="306" y="19" label="Load Swf" click="button1_clickHandler(event)"/>
instead of this
<flexpaper:FlexPaperViewer x="10" y="10" height="301" SwfFile="Paper1.swf">
</flexpaper:FlexPaperViewer>
For Flex Mobile project showing compilation error.
Could not resolve to a component implementation.
help me

Related

Set up a Xamarin UI Test getting error is incompatible with the Android SDK

I am trying to run a xamarin UI Test but I keep getting
"The running adb server is incompatible with the Android SDK version in use by UITest"
Googled it and cannot find answer I am using
XamarinUITest= 3.0.7
Nunit3TestAdapter 3.17
Android SdK built tools 29.0.2 Set up
Android_Home = C:\Program Files (x86)\Android\android-sdk
Why Am I keeping getting the above error what am I Missing?
Where do I find instructions and what is compatible to what?
Refer to the link below to confirm your project is ready for automated UI testing.
https://learn.microsoft.com/en-us/appcenter/test-cloud/frameworks/uitest/
After that add UITest support to Xamarin.Forms apps. To enable the UITest code to reference controls, each control needs a unique identifier.
<Button x:Name="b" AutomationId="MyButton" Text="Click me"/>
<Label x:Name="l" AutomationId="MyLabel" Text="Hello, Xamarin.Forms!" />
For more details, please check the MS docs. https://learn.microsoft.com/en-us/appcenter/test-cloud/frameworks/uitest/xamarin-forms
Basically if you have any directory in the androidSdK with a name "old" you should delete them and this fixed it for me

CastVideo-Android sample using forked ShowcaseView project library not working with multiple Icons in ActionBar

I'm creating a cast-enabled application using the CastVideos-android sample project as a reference.
Version 1.2 of the CastVideos-android sample uses this forked version of the ShowcaseView library to display a very nice looking overlay to highlight the cast button.
This is great and helps developers satisfy the Cast Sender-App UI requirements, but this forked version of the ShowcaseView library doesn't play well with apps that may use multiple icons in the ActionBar.
For example, when adding a SearchView-type item to the ActionBar the ShowcaseView bugs-out.
The result is below and the steps to replicate this behavior are below the screenshot :
Steps to replicate:
Include the v7-appcompat as a library project in the CastVideo-android project.
Change the res/menu/main.xml in the CastVideo-android project to look like the following (adding an ActionView of type SearchView to the ActionBar) :
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:compat="http://schemas.android.com/apk/lib/res/android.support.v7.appcompat" >
<item
android:id="#+id/media_route_menu_item"
android:title="#string/media_route_menu_title"
app:actionProviderClass="android.support.v7.app.MediaRouteActionProvider"
app:showAsAction="always"/>
<item
android:id="#+id/action_settings"
android:title="#string/action_settings"
app:showAsAction="never"/>
<item
android:id="#+id/search"
android:icon="#drawable/abc_ic_search"
app:title="#string/menu_Search"
app:actionViewClass="android.support.v7.widget.SearchView"
app:showAsAction="collapseActionView|ifRoom"/>
</menu>
I'm using the latest version of the v7-appcompat library.
I suspect the culprit to be how the ActionBarViewWrapper.getMediaRouterButtonView() method (found in com.github.amlcurran.showcaseview.targets) is finding the MediaRouterButton via reflection, but can't seem to understand how to find the MediaRouterButton if there are multiple icons items in the ActionBar.
Any help would be greatly appreciated!
The forked project has been updated to handle this case. Thanks for reporting the issue. Once I hear from you (or anyone else) that it works as expected, I will submit a pull request to Alex.

Inheriting android style framework for UI?

I am reading a design presentation to try and learn some more about android UI. On slide 17, it explains to inherit styles.
https://docs.google.com/file/d/0Bz3qX4EBhUvwZWlHekI3Y0wxSUk/view?sle=true
The developer then says to "Use the framework" and access styles to style your UI. For example, he uses
<style name="MyTheme" parent="android:Theme.Holo.light" />
for sdk versions 11+ in the styles.xml folder. And in the manifest he then sets the theme to "MyTheme". After, he says to reference styles from the current theme, such as
<TextView
style="?android:ListSeparatorTextViewStyle"
...
... />
However, this gives an error that says missing styles. So I researched this and instead found a different way of implementing this as
#android:style/Widget.Holo.Light.TextView.ListSeparator
which gave me an error saying the resource is not public.
So my question is, how can I organize my style.xml, manifest, and layouts to implement android styles like the ones above? What do I need to check to be able to access these styles? Where can I learn about proper organization of these folders and style inheritance? I have tried reading documentation on the android website, but cannot find much help anywhere else. Any advice on where to find other sources on sample code on proper ways to design UI are welcome as well. Thanks for any help.

Silverlight ChartingToolKit is not coming in xaml page

i wanted to implement charts in my silverlight app.
i have installed SL4 in my VS.
The problem is i m not getting the chartingToolkit:Chart control in my xaml page.
Gives error saying control not found .
Did i forget to add any references?
or did my installation went wrong?
do i have to download any other plugin?
Thanks
Sajad
chartings controls are from the Silverlight toolkit, you need to install it first.;)
http://silverlight.codeplex.com/
i have added the assemblies as mentioned by Xin.
System.Windows.Controls.DataVisualization.Toolkit,
System.Windows.Controls.Toolkit
System.Windows.Controls.Toolkit.Internals
But my problem was actually solved by adding this to namespace area.
xmlns:toolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
and then i could use toolkit:Chart
:)

How to deploy a Java Japplet in iWeb developed on my Macbook?

I am building a website using iWeb on my Mac (latest versions of everything)
I am using the Html Snippet Widget to embed the applet tag.
Since iWeb does not seem to have any specific support for Java applets, my plan was to just publish the tag and then send over the required Jar file afterward.
However I can't get past the "apply" - because after I press apply, iWeb just hangs indefinitely.
Here is the tag...
<applet code="myApplet.class" codebase="java/" width="1000" height="700" archive="myArchive.jar"
<parameter name="example" value="morestuff">
<parameter name="title" value="some text">
</applet>
I am seeing some interesting messages in the console about MalformedUrLException - unsupported protocol iweb-widget
Has anyone had any luck deploying applets using iWeb?
Any guidance would be greatly appreciated
Thanks, Victor
I was trying to put applets generated from my (very noob) "Processing" code into an iWeb site on MobileMe.
The Processing environment produces the .jar file and some applet tag in an index.htm file. In iWeb, I copied the applet tag stuff from the index.htm file and pasted it into the HTML Snippet widget.
The problem was where to put the .jar file. Putting it anywhere in the MobileMe storage space didn't work, no matter what I typed into the applet tag, so I dropped it into a dropbox (dropbox.com, free), copied the public link from the dropbox and replaced all instances of 'filename.jar' in the html in the snippet widget with the public link to the file in my dropbox.
Probably a proper shoddy way to do it, but it works.
It's here, if it helps...

Resources