Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Miscellaneous Issues with App

Thanks so much Maryna! Now the build fails when I attempt to download an .apk. I'm not sure what I did wrong, but whatever I changed, I'm sure it had to do with adding this plugin. Perhaps changing the config.xml? I'm not sure. Could you look over these changes once more in my app to make sure I have everything changed correctly? Thanks!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Miscellaneous Issues with App

We'll check logs and let you know (but it might take time). Also please check this page http://docs.appery.io/documentation/e... (Troubleshooting Android build problems section, perhaps you'll find the reason why it fails)

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Miscellaneous Issues with App

Hi Joe,

In file AndroidManifest.xml replace:precode<activity android:name="&#46;PhoneGapActivity" android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden">/code/preWith:precode<activity android:name="com&#46;tiggzi&#46;project74028" android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden">/code/pre

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Miscellaneous Issues with App

Thanks Katya! I hope you're all having a Merry Christmas!

I changed the code above in AndroidManifest.xml, and the app is still having trouble building. Could there be an issue with the config.xml? Or perhaps somewhere else?

Thank you all so very much!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Miscellaneous Issues with App

Hello! Sorry for misunderstanding, ignore Katya's last reply.
1) Leave as it was before pre<activity android:name="&#46;PhoneGapActivity" android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden">/pre2) In config.xml should be this line pre<plugin name="SocialSharing" value="nl&#46;xservices&#46;plugins&#46;SocialSharing"&#47;>/pre instead pre<plugin name="nl&#46;x-services&#46;plugins&#46;socialsharing" &#47;>/pre3) Replace nl folder with all it's content from res folder to src one.
Wishing you a Merry Christmas!

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Miscellaneous Issues with App

Thank you Maryna! I think I did those things, but some how the .apk isn't being built. Where could it have gone wrong?

Thank you!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Miscellaneous Issues with App

Hello! You should have been move nl folder not to ANDROID- BarcodeScanner- src, but to ANDROID- Pedal_Collective_Mobile- src

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Miscellaneous Issues with App

Thanks Maryna! That was sort of a silly mistake! I believe I've moved the SocialSharing.java file, but the build still doesn't complete. What's happening now?

Thanks!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Miscellaneous Issues with App

Hello! In AndroidManifest.xml in 35 line delete pre<activity android:name="com&#46;tiggzi&#46;project74028" android:launchMode="singleTop"/pre

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Miscellaneous Issues with App

Thanks Maryna! I thought I deleted that line before. Sorry for all the silly mistakes.

Well the build was successful! Now all I have to do is understand how to use the plugin.

Image

When they explain that you can use:

code<button onclick="window&#46;plugins&#46;socialsharing&#46;share('Message, image and link', null, 'https:&#47;&#47;www&#46;google&#46;nl&#47;images&#47;srpr&#47;logo4w&#46;png', 'http:&#47;&#47;www&#46;x-services&#46;nl')">message, image and link<&#47;button>/code

How would I have the button click event execute this action? And when they refer to:

codewindow&#46;plugins&#46;socialsharing&#46;available(function(isAvailable) {
if (isAvailable) {
&#47;&#47; use a local image from inside the www folder:
window&#46;plugins&#46;socialsharing&#46;share(null, null, 'www&#47;image&#46;gif', null);

&#47;&#47; success&#47;error callback parameters may be added as 5th and 6th parameters
/code

.. or a local image from anywhere else (if permitted)

for example in Android:

code
&#47;&#47; local-Android:
window&#46;plugins&#46;socialsharing&#46;share(null, null, 'file:&#47;&#47;&#47;storage&#47;emulated&#47;0&#47;nl&#46;xservices&#46;testapp&#47;5359&#47;Photos&#47;16832&#47;Thumb&#46;jpg');
/code

How would I know the file directory for sharing a local image (i.e. from the Cameraroll) once the image is taken on the "camera" page?

What's the best way to incorporate this plugin for both of the jqplots on "results" page?

And would I include a line of code in one button for each of the phone operating systems (ie iOS, iOS-alt, Android, and image from the internet)?

What's the difference between all of these methods, and how can I incorporate this plugin into my Appery project with one button click doing the same thing for each operating system?

On a side note, when using buttons for navigation, what are the advantages/disadvantages for using the "use full screen refresh" option?

Thank you so very much!

Return to “Issues”