Pasteboard.Paste() Bug Android

Hi,

I am using the pasteboard plugin on an app of mine. It works perfectly fine on iOS but on Android it does not paste. What happens in the app is that I am pasting a string into a newTextBox and on iOS it shows up but Android it doesn’t. I know the function is running correctly.

Any Help?

What does your build.settings looks like? Is support for android on for the pasteboard plugin?

There was a similar problem here: https://forums.coronalabs.com/topic/54129-pasteboard-support-for-android/

Let me know if this solves your problem.

I have posted my build.settings below. It’s not the issue you posted above because pasteboard.copy() works correctly and I have tested it. Maybe I need to explain what I am trying to do. I am trying to use pasteboard.paste() to save whats in the clipboard as a string and then I want it displayed in a textBox. It works correctly on iOS but the string does not display in the textBox on android.

– For more information on build.settings see the Corona SDK Build Guide at:

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

settings =

{

plugins =

    {

        [“plugin.pasteboard”] =

        {

            publisherId = “com.coronalabs”,

        },

        [“plugin.google.play.services”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { iphone=true, android=true,[“iphone-sim”]=true}

        },

    },

orientation =

{

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

default = “portrait”,

supported = { “portrait”, }

},

excludeFiles =

{

– Include only the necessary icon files on each platform

iphone = { “Icon-*dpi.png”, },

android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png”, },

},

– iOS Section

iphone =

{

plist =

{

UIStatusBarHidden = false,

UIPrerenderedIcon = true, – set to false for “shine” overlay

–UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend

CFBundleIconFiles =

{

“Icon copy.png”,

“Icon@2x.png”,

“Icon-167.png”,

“Icon-60.png”,

“Icon-60@2x.png”,

“Icon-60@3x.png”,

“Icon-72.png”,

“Icon-72@2x.png”,

“Icon-76.png”,

“Icon-76@2x.png”,

“Icon-Small.png”,

“Icon-Small@2x.png”,

“Icon-Small@3x.png”,

“Icon-Small-40.png”,

“Icon-Small-40@2x.png”,

“Icon-Small-50.png”,

“Icon-Small-50@2x.png”,

},

–[[

– iOS app URL schemes:

CFBundleURLTypes =

{

{

CFBundleURLSchemes =

{

“fbXXXXXXXXX”,  – replace XXXXXXXXX with your Facebook appId

}

}

}

–]]

}

},

– Android Section

android =

{

usesPermissions =

{

“android.permission.INTERNET”,

},

},

}

Have been reading other forum posts regarding pasteboard.paste for android and one person said there was a delay and other say that there is a bug for pasteboard in general.

Is there a bug report on this?

I do not believe so. At least from what I have read there is not one.

What does your build.settings looks like? Is support for android on for the pasteboard plugin?

There was a similar problem here: https://forums.coronalabs.com/topic/54129-pasteboard-support-for-android/

Let me know if this solves your problem.

I have posted my build.settings below. It’s not the issue you posted above because pasteboard.copy() works correctly and I have tested it. Maybe I need to explain what I am trying to do. I am trying to use pasteboard.paste() to save whats in the clipboard as a string and then I want it displayed in a textBox. It works correctly on iOS but the string does not display in the textBox on android.

– For more information on build.settings see the Corona SDK Build Guide at:

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

settings =

{

plugins =

    {

        [“plugin.pasteboard”] =

        {

            publisherId = “com.coronalabs”,

        },

        [“plugin.google.play.services”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { iphone=true, android=true,[“iphone-sim”]=true}

        },

    },

orientation =

{

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

default = “portrait”,

supported = { “portrait”, }

},

excludeFiles =

{

– Include only the necessary icon files on each platform

iphone = { “Icon-*dpi.png”, },

android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png”, },

},

– iOS Section

iphone =

{

plist =

{

UIStatusBarHidden = false,

UIPrerenderedIcon = true, – set to false for “shine” overlay

–UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend

CFBundleIconFiles =

{

“Icon copy.png”,

“Icon@2x.png”,

“Icon-167.png”,

“Icon-60.png”,

“Icon-60@2x.png”,

“Icon-60@3x.png”,

“Icon-72.png”,

“Icon-72@2x.png”,

“Icon-76.png”,

“Icon-76@2x.png”,

“Icon-Small.png”,

“Icon-Small@2x.png”,

“Icon-Small@3x.png”,

“Icon-Small-40.png”,

“Icon-Small-40@2x.png”,

“Icon-Small-50.png”,

“Icon-Small-50@2x.png”,

},

–[[

– iOS app URL schemes:

CFBundleURLTypes =

{

{

CFBundleURLSchemes =

{

“fbXXXXXXXXX”,  – replace XXXXXXXXX with your Facebook appId

}

}

}

–]]

}

},

– Android Section

android =

{

usesPermissions =

{

“android.permission.INTERNET”,

},

},

}

Have been reading other forum posts regarding pasteboard.paste for android and one person said there was a delay and other say that there is a bug for pasteboard in general.

Is there a bug report on this?

I do not believe so. At least from what I have read there is not one.