Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

post screenshot to facebook
Started by mmk.verheijden Dec 16 2013 04:13 PM

- - - - -
38 replies to this topic
[TOPIC CONTROLS]
Page 1 of 2 1 2
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 164 posts
  • Jedi

im trying to post a screenshot to facebook using this code : 

 

 

 

 

baseDir = system.DocumentsDirectory
display.save( group, "bScore.png", baseDir )
-- display.save( group, "bScore.png", system.ResourceDirectory ) --tried no change!


local facebook = require "facebook"
local fbAppID = "****" 
    function onLoginSuccess()
     attachment = {
       message = "I have achieved ".. allScore_txt .. " points playing",
        source = { baseDir=system.ResourceDirectory, filename="bScore.png", type="image" }
    }
 ................

 

but when its upload it is not finding the file how can i save the screenshot in the "system.ResourceDirectory"

 

the error is "(#324) Requires upload file"



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 8,527 posts
  • Jedi

You cannot write files to system.ResourceDirectory.  If you save it to system.DocumentsDirectory, you then have to load it from system.DocumentsDirectory.

 

Rob



[TOPIC: post.html]
#3

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 164 posts
  • Jedi

that works :D 



[TOPIC: post.html]
#4

gigio76

[GLOBAL: userInfoPane.html]
gigio76
  • Pro
  • PipPip
  • 24 posts
  • Member

Hi,

 

any solution to this issue? I still get an error #324 if I attempt to upload a picture (jpg) from system.DocumentsDirectory

What's wrong?

 

Thanks

 

g



[TOPIC: post.html]
#5

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 8,527 posts
  • Jedi

Can you post some code?

 

Thanks

Rob



[TOPIC: post.html]
#6

gigio76

[GLOBAL: userInfoPane.html]
gigio76
  • Pro
  • PipPip
  • 24 posts
  • Member

Hi Rob,

 

here my code

local facebook = require( "facebook" )
local fbAppID = "1234567890" -- this is a fake AppID

local function onLoginSuccess()

    
    local attachment = {
        message = "Test Message",
        source = { baseDir=system.DocumentsDirectory, filename="testPicture.jpg", type="image" }
    }
    
    facebook.request( "me/photos", "POST", attachment )
end   

local json = require( "json" )

local function fbListener( event )
      
    if event.isError then
        native.showAlert( "ERROR", event.response, { "OK" } )
    else
        if event.type == "session" and event.phase == "login" then
            -- login was a success; call function
            onLoginSuccess()
        
        elseif event.type == "request" then
            -- this block is executed upon successful facebook.request() call
 
            native.showAlert( "Success", "The photo has been uploaded.", { "OK" } )
        end
    end
end

facebook.login( fbAppID, fbListener, { "publish_stream" } )

AppID in the code is not the real one. This code produces a #324 error whereas if I use baseDir=system.ResourceDirectory instead of baseDir=system.DocumentsDirectory everything works fine. Obviously, the picture is inside both directories (in the Build one for ResourceDirectory case and in Sandbox/Documents for DocumentsDirectory.

I also attempted to change picture (different sizes but always JPG).

What's wrong in my code?

 

Thanks for your support,

g



[TOPIC: post.html]
#7

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 8,527 posts
  • Jedi

When I tried this, if I used system.ResourceDirectory, I got the error.  However if I used system.DocumentsDirectory it worked as it should.  How are you getting the image into your Sandbox Documents?  If you are doing it through the Simulator, that's only putting it in sandbox for the simulator.  I had to write a little code to download an image to put in my system.DocumentsDirectory.  I guess I could have written a function that would have copied the image from system.ResourcesDirectory to system.DocumentsDirectory.

 

Also, technically speaking the type should be "image/jpeg" or "image/png" depending on the file type needed, though Facebook didn't seem to care.

 

Because on Android, the system.ResourcesDirectory technically doesn't exist, you may have trouble accessing files in it.  You need to do a system.pathForFile() to cause us to extract it from the zip file.  We do this automatically for images that are accessed via display.* functions. 

 

Rob



[TOPIC: post.html]
#8

Savarok

[GLOBAL: userInfoPane.html]
Savarok
  • Basic
  • PipPipPipPipPipPip
  • 52 posts
  • Jedi

Hey Rob,

 

I appear to be having a similar issue to the above, rather then opening another Thread I thought I would add to this one for collaboration. 

 

I have done what you said above with the code below and can see the image is saving successfully to my ResourcesDirectory folder along side my settings but when I access Facebook I get

 

ERROR

The operation couldn't be completed (com.facebook error 123.)

 

2014-06-01%2014.05.18.png

 

CODE:

 

local function onFaceBookShareRelease( ... )
--Read the exiciting FaceBookIcon from the resource directory (image is in same drector as my main.lua and other files)
--Read image and convert image to a binary form
local pathRead = system.pathForFile( "FaceBookIcon.jpg",system.ResourceDirectory )
local file = io.open( pathRead, "rb" )
local imageData = file:read( "*a" )
io.close( file )
--Setup write directory to my documesnts directoy that my settings have been saved to
--Write the binary file and close and set FileStream back to nil
local pathWrite = system.pathForFile( "FaceBookIcon.jpg", system.DocumentsDirectory )
local file = io.open( pathWrite, "wb" )
file:write( imageData )
io.close( file )
file = nil
--Setup my Facebook ID
local fbAppID = "1405306663086221" --fake
--iF login = success then create the attachment and send it to facebook
local function onLoginSuccess()
-- Upload 'FaceBookIcon.jpg' to current user's account
local attachment = {
message = "I just started playing Beetle Juice, come join me in squashing some bugs! ",
source = { baseDir=system.DocumentsDirectory, filename="FaceBookIcon.jpg", type="image" },
link = "http:roedangames.net"
}
facebook.request( "me/photos", "POST", attachment )
end
-- facebook listener
local function fbListener( event )
if event.isError then
native.showAlert( "ERROR", event.response, { "OK" } )
else
if event.type == "session" and event.phase == "login" then
-- login was a success; call function
onLoginSuccess()
elseif event.type == "request" then
-- this block is executed upon successful facebook.request() call
native.showAlert( "Success", "The photo has been uploaded.", { "OK" } )
end
end
end
-- photo uploading requires the "publish_stream" permission
facebook.login( fbAppID, fbListener, { "publish_stream" } )
end
 



[TOPIC: post.html]
#9

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 164 posts
  • Jedi

Hi Salvador, I got this to work I'm my games will post some more information/code tomorrow, I the mean time you need to check the keyhash your using if it's on a Android


Ps I didn't realise you can use the link asset... Try it without the link (or add a correct url) see if it works

--link = "http://roedangames.net"

[TOPIC: post.html]
#10

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 164 posts
  • Jedi

Hi Salvador, here is my code:

local facebook = require "facebook"local fbAppID = "*************" 

function onLoginSuccess()
      attachment = {
        message = "I have achieved ".. score .. " text......",
        source = { baseDir=system.DocumentsDirectory, filename="myfile.png", type="image" }
     }
     facebook.request( "me/photos", "POST", attachment )
end

function fbListener( event )
     if event.isError then
        native.showAlert( "ERROR", event.response, { "OK" } )
     else
        if event.type == "session" and event.phase == "login" then
        onLoginSuccess()
        elseif event.type == "request" then

local function onComplete( event )
    if "clicked" == event.action then
        local i = event.index
closeloading()
        if 1 == i then
        end
    end
end
native.showAlert( "Success", "Your Score has been uploaded.", { "OK" }, onComplete )

        end
    end
end
facebook.login( fbAppID, fbListener, { "publish_stream" } )

ps make sure you have thins in you build.settings :

 

 


android ={
usesPermissions =
{
         "android.permission.INTERNET",
         "android.permission.ACCESS_NETWORK_STATE",
         "android.permission.READ_PHONE_STATE", 
},
},


iphone =
{
plist =
{


CFBundleVersion = "*****",
        CFBundleShortVersionString = "*****",
        CFBundleDisplayName = "*****",
        CFBundleIdentifier = "*****",
        UIStatusBarHidden = true,
        UIPrerenderedIcon = false, -- set to false for "shine" overlay
        UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend
        
CFBundleIconFile = "Icon.png",
CFBundleIconFiles =
{
"Icon@2x.png", 
"Icon.png", 
"Icon-xhdpi.png", 
"Icon-mdpi.png", 
"Icon-ldpi.png", 
"Icon-hdpi.png", 
"Icon-120.png", 
"Icon-76@2x.png", 
"Icon-76.png", 
"Icon-72@2x.png", 
"Icon-72.png", 
"Icon-60@2x.png", 
},
UIApplicationExitsOnSuspend = false, -- must be false for single sign-on to work
FacebookAppID = "*****",
CFBundleURLTypes =
{
{
CFBundleURLSchemes =
{
"fbXXXXXXXXX", -- replace XXXXXXXXX with your facebook appId **LEAVE THE 'fb' AT THE START**
}
}
}


}
}




[TOPIC: post.html]
#11

gigio76

[GLOBAL: userInfoPane.html]
gigio76
  • Pro
  • PipPip
  • 24 posts
  • Member

Hi,

 

I attempted to implement your code but I receive same error as before.

Did you implement it on iOS or Android? It seems to work properly on iOS but not on Android.

 

I also noticed that if  you use social plugin for Twitter on Android, the photo posting via system.DocumentsDirectory, it didn't work (the post doesn't contain any image).

 

Thanks,

g



[TOPIC: post.html]
#12

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 164 posts
  • Jedi

Hi I don't know about the social plugin as I'm not using it, my code work fine on ios and Android, as it's not working on your Android I suggest you have a look at your key hash you use in your Facebook app setting this is probably the reason for it not working. What key chain are you using to compile the Android application?

[TOPIC: post.html]
#13

gigio76

[GLOBAL: userInfoPane.html]
gigio76
  • Pro
  • PipPip
  • 24 posts
  • Member

It's not my case - I am able to implement showDialog or other Facebook stuff, except photo uploading.



[TOPIC: post.html]
#14

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 164 posts
  • Jedi

Can you try to upload just a message without the photo?

[TOPIC: post.html]
#15

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 8,527 posts
  • Jedi

Are there other messages in the device's console log?  If you need help learning to read the console log, read this:

 

http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

 

It's hard to speculate on what the issue is. 



[TOPIC: post.html]
#16

gigio76

[GLOBAL: userInfoPane.html]
gigio76
  • Pro
  • PipPip
  • 24 posts
  • Member

Hi Rob,

 

unfortunately no warnings or whatever are displayed by log. 

If useful, I can share a video in order to show what happens.

 

Thanks,

g



[TOPIC: post.html]
#17

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 164 posts
  • Jedi

Can you still try to just post a status update without the image also can you attach the logcat to your reply

[TOPIC: post.html]
#18

gigio76

[GLOBAL: userInfoPane.html]
gigio76
  • Pro
  • PipPip
  • 24 posts
  • Member

Hi,

 

attempted to do that, but if I use "me/photos" fb request, the code still gives an error because it expects the parameter "filename" which is missing.

In the end, I am going to put all the image to upload into ResourceDirectory which works. I really don't understand why DocumentsDirectory is not reachable by Android devices (at least in this case).

Alsto attempted with CacheDirectory and TemporaryDirectory (obviously, I first copied the image via code into those folders) and I still receive the #324 error.

I tested the code on a Kindle Fire and on a Samsung S2.

Logs NEVER gave feedback about that.

 

I also discovered a very interesting behavior.

 

If I implement the following code taken from Corona ResourceDirectoy tutorial, none image is shown on the screen (and no uploaded as happened before) (for the reference code, see also http://docs.coronalabs.com/guide/data/readWriteFiles/index.html.

 

copyFile( "myfile.png", nil, "myfile1.png", system.DocumentsDirectory, true )
local catImage = display.newImage( "myfile.png", system.DocumentsDirectory, 100, 100 ) 

Thanks



[TOPIC: post.html]
#19

gigio76

[GLOBAL: userInfoPane.html]
gigio76
  • Pro
  • PipPip
  • 24 posts
  • Member

This is my build.settings file:

-- build.settings 
settings = 
{
      plugins =
    {
        ["facebook"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { iphone=true, ["iphone-sim"]=true },
        },
    },

     android  = 
     { 
        usesPermissions  = 
        {  
             "android.permission.WRITE_EXTERNAL_STORAGE", 
             "android.permission.ACCESS_NETWORK_STATE",
             "android.permission.INTERNET",
             "android.permission.READ_PHONE_STATE", 
        }, 
     }, 
     orientation = 
     { 
         default = "portrait", 
         supported = { "portrait", "portraitUpsideDown" } 
      }, 

      iphone =  
      {  
         plist=  
         {  
              UIApplicationExitsOnSuspend = false,

            FacebookAppID = "xxxxxxxxxxx",

            CFBundleURLTypes = {
                {
                CFBundleURLSchemes = { "fbxxxxxxxxxx", }
                }
            },  
              UIHiddenStatusBar="YES",  
              CFBundleIconFile="Icon.png",  
              CFBundleIconFiles = {  
                   "Icon.png",  
                   "Icon@2x.png",  
                   "Icon-72.png",  
                   "Icon-72@2x.png",  
                   "Icon-76.png",  
                   "Icon-76@2x.png",  
                   "Icon-120.png",  
                   "Icon-60.png",  
                   "Icon-60@2x.png",  
                   "Icon-Small-50@2x.png",  
                   "Icon-Small-50.png",  
                   "Icon-Small.png",  
                   "Icon-Small@2x.png",  
              },  
         },  
       },  
}

Thanks



[TOPIC: post.html]
#20

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 164 posts
  • Jedi

Can you please get the 'adb logcat' so we can have a proper go at trouble shooting

[TOPIC: post.html]
#21

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Corona Staff
  • 8,527 posts
  • Jedi

I just conducted a test last week when this thread came up.  I can post from system.DocumentsDirectory just fine.  In fact I just re-tested it with this code:

local facebook = require( "facebook" )
local fbAppID = "XXXXXXXXXXXXX" -- this is a fake AppID
     
local function onLoginSuccess()
     
    local attachment = {
        message = "A Moose!",
        source = { baseDir=system.DocumentsDirectory, filename="moose.jpg", type="image" }
    }
    facebook.request( "me/photos", "POST", attachment )
end
     
local json = require( "json" )
 
local function fbListener( event )
    if event.isError then
        native.showAlert( "ERROR", event.response, { "OK" } )
    else
        if event.type == "session" and event.phase == "login" then
            -- login was a success; call function
            onLoginSuccess()
        elseif event.type == "request" then
            -- this block is executed upon successful facebook.request() call
            native.showAlert( "Success", "The photo has been uploaded.", { "OK" } )
        end
    end
end
 
facebook.login( fbAppID, fbListener, { "publish_stream" } )

 

Since it's Android, the build.settings doesn't really matter as long as you have the INTERNET permission.

 

Looking at your copy code, are you sure you're loading the file that's getting copied?  In one place you copy myfile.png to myfile1.png but try to upload myfile.png.  Could this be the issue?

 

Rob



[TOPIC: post.html]
#22

gigio76

[GLOBAL: userInfoPane.html]
gigio76
  • Pro
  • PipPip
  • 24 posts
  • Member

Hi,

 

the following is a global log as you suggested:

D/NetworkController(  265): intent is = Intent { act=android.net.wifi.RSSI_CHANGED flg=0x10000010 (has extras) }
D/NetworkController(  265): mWifiConnected = true
D/dalvikvm( 6836): GC_CONCURRENT freed 279K, 10% free 7933K/8775K, paused 2ms+3ms
D/dalvikvm(  178): GC_EXPLICIT freed 127K, 27% free 12597K/17159K, paused 2ms+5ms
D/dalvikvm( 6836): GC_EXPLICIT freed 293K, 11% free 7821K/8775K, paused 2ms+5ms
D/dalvikvm(  178): GC_EXPLICIT freed 118K, 27% free 12598K/17159K, paused 2ms+5ms
D/dalvikvm( 6836): GC_CONCURRENT freed 281K, 10% free 7934K/8775K, paused 1ms+4ms
D/dalvikvm(  178): GC_EXPLICIT freed 141K, 27% free 12597K/17159K, paused 3ms+5ms
D/dalvikvm( 6836): GC_EXPLICIT freed 290K, 11% free 7814K/8775K, paused 5ms+18ms
I/ActivityStack(  178): START {act=com.amazon.kindle.otter.action.SHOW_APPS flg=0x10000000 cmp=com.amazon.kindle.otter/.activities.AppsLibraryActivity} from pid 374
V/ActivityStack(  178): Prepare to front transition: task=TaskRecord{416a9350 #4 A com.amazon.kindle.otter.activities.AppsLibraryActivity}
V/ActivityStack(  178): Prepare open transition: prev=ActivityRecord{4158d278 com.amazon.kindle.otter/.Launcher}
D/dalvikvm(  178): GC_CONCURRENT freed 978K, 25% free 12882K/17159K, paused 3ms+7ms
V/PhoneStatusBar(  265): setLightsOn(true)
D/dalvikvm(  178): GC_EXPLICIT freed 494K, 27% free 12618K/17159K, paused 3ms+6ms
D/dalvikvm( 6836): GC_CONCURRENT freed 275K, 10% free 7935K/8775K, paused 2ms+4ms
D/dalvikvm(  178): GC_EXPLICIT freed 127K, 27% free 12614K/17159K, paused 2ms+5ms
D/dalvikvm( 6836): GC_EXPLICIT freed 287K, 11% free 7814K/8775K, paused 2ms+3ms
I/ActivityStack(  178): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=it.developername.appname cmp=it.developername.appname/com.ansca.corona.CoronaActivity} from pid 465
V/ActivityStack(  178): Prepare open transition: starting ActivityRecord{41794330 it.developername.appname/com.ansca.corona.CoronaActivity}
D/dalvikvm(  178): GC_FOR_ALLOC freed 868K, 27% free 12625K/17159K, paused 79ms
V/ActivityStack(  178): Prepare open transition: prev=ActivityRecord{4153b1f0 com.amazon.kindle.otter/.activities.AppsLibraryActivity}
D/dalvikvm(  178): GC_CONCURRENT freed 193K, 21% free 13671K/17159K, paused 2ms+9ms
I/ActivityManager(  178): Displayed it.developername.appname/com.ansca.corona.CoronaActivity: +296ms
V/Corona  ( 8087): > Class.forName: network.LuaLoader
V/Corona  ( 8087): < Class.forName: network.LuaLoader
V/Corona  ( 8087): Loading via reflection: network.LuaLoader
I/Corona  ( 8087): Platform: KFOT / ARM Neon / 4.0.3 / PowerVR SGX 540 / OpenGL ES 2.0 build 1.8@785978 / 2014.2329
W/InputManagerService(  178): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@413a6f88 (uid=32020 pid=374)
I/Corona  ( 8087): File does not exist: ueue.png
I/ActivityStack(  178): START {act=SSO_WITH_FALLBACK cmp=it.developername.appname/com.facebook.LoginActivity (has extras)} from pid 8087
V/ActivityStack(  178): Prepare open transition: starting ActivityRecord{41564038 it.developername.appname/com.facebook.LoginActivity}
V/ActivityStack(  178): Prepare open transition: prev=ActivityRecord{41794330 it.developername.appname/com.ansca.corona.CoronaActivity}
E/ActivityThread( 8087): Failed to find provider info for com.facebook.katana.provider.PlatformProvider
E/ActivityThread( 8087): Failed to find provider info for com.facebook.wakizashi.provider.PlatformProvider
I/ActivityStack(  178): START {cmp=com.facebook.katana/.ProxyAuth (has extras)} from pid 8087
V/ActivityStack(  178): Prepare open transition: starting ActivityRecord{415f7b38 com.facebook.katana/.ProxyAuth}
V/ActivityStack(  178): Prepare open transition: prev=ActivityRecord{41564038 it.developername.appname/com.facebook.LoginActivity}
I/ActivityStack(  178): START {cmp=com.facebook.katana/.ProxyAuthDialog (has extras)} from pid 8045
V/ActivityStack(  178): Prepare open transition: starting ActivityRecord{41637bd0 com.facebook.katana/.ProxyAuthDialog}
V/ActivityStack(  178): Prepare open transition: prev=ActivityRecord{415f7b38 com.facebook.katana/.ProxyAuth}
D/WebCore ( 8045): *-* Start browser instrument
D/OpenGLRenderer( 8087): Flushing caches (mode 1)
D/WebCore ( 8045): *-* Start browser instrument
D/dalvikvm( 8045): GC_EXPLICIT freed 373K, 34% free 11998K/18119K, paused 4ms+8ms
V/PhoneStatusBar(  265): setLightsOn(true)
D/WebCore ( 8045): *-* Total load time: 370.76 ms, thread time: 26.00 ms for https://m.facebook.com/dialog/oauth?android_key=XXXXXXXXXXXXXXXXX&auth_type=rerequest&calling_package_key=it.developername.appname&client_id=XXXXXXX&display=touch&e2e=%7B%22init%22%3A1402070113802%7D&legacy_override=v2.0&redirect_uri=fbconnect%3A%2F%2Fsuccess&response_type=token&return_scopes=true&scope=publish_stream&type=user_agent&_rdr
D/WebCore ( 8045): Only uptill WebViewCoreTimeCounter it is part of webcore thread time
D/WebCore ( 8045): Rest of the timecounters are part of either  UI thread or TextureGenrators(TG) thread
D/WebCore ( 8045): Webkit TexGen thread time: 0.00 ms, Webkit UI thread time: 0.00 ms 
D/WebCore ( 8045): *-* Total css parsing time: 0.00 ms/percent webcore 0.00 
D/WebCore ( 8045): *-* Total javascript time: 0.00 ms/percent webcore 0.00 
D/WebCore ( 8045): *-* Total javascript init time: 10.00 ms/percent webcore 38.46  called 1 times
D/WebCore ( 8045): *-* Total javascript parsing time: 1.00 ms/percent webcore 3.85  called 1 times
D/WebCore ( 8045): *-* Total javascript execution time: 0.00 ms/percent webcore 0.00  called 1 times
D/WebCore ( 8045): *-* Total calculate style time: 0.00 ms/percent webcore 0.00  called 2 times
D/WebCore ( 8045): *-* Total Java callback (frame bridge) time: 5.00 ms/percent webcore 19.23  called 14 times
D/WebCore ( 8045): *-* Total parsing (may include calcStyle, Java callback or inline script execution) time: 16.00 ms/percent webcore 61.54  called 1 times
D/WebCore ( 8045): *-* Total layout time: 0.00 ms/percent webcore 0.00  called 1 times
D/WebCore ( 8045): *-* Total native 1 (frame bridge) time: 1.00 ms/percent webcore 3.85  called 2 times
D/WebCore ( 8045): *-* Total native 2 (resource load) time: 0.00 ms/percent webcore 0.00 
D/WebCore ( 8045): *-* Total native 3 (shared timer) time: 0.00 ms/percent webcore 0.00  called 1 times
D/WebCore ( 8045): *-* Total build nav (webview core) time: 0.00 ms/percent webcore 0.00  called 1 times
D/WebCore ( 8045): *-* Total record content (webview core) time: 0.00 ms/percent webcore 0.00 
D/WebCore ( 8045): *-* Total native 4 (webview core) time: 0.00 ms/percent webcore 0.00  called 4 times
D/WebCore ( 8045): *-* Total draw content (webview ui) time: 0.00 ms
D/WebCore ( 8045): *-* Total tryUpdateQueueWithBitmap (TransferQueue) time: 0.00 ms
D/WebCore ( 8045): *-* Total blitTileFromQueue (TransferQueue) time: 0.00 ms
D/WebCore ( 8045): *-* Total webkit_TG_CPU time: 0.00 ms
D/WebCore ( 8045): *-* Total webkit_UI_CPU time: 0.00 ms
D/WebCore ( 8045): Current cache has 0 bytes live and 0 bytes dead
D/WebCore ( 8045): Current render arena takes 4099 bytes
D/WebCore ( 8045): Current CSS styles use 632 bytes
D/WebCore ( 8045): Current DOM nodes use 2504 bytes
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=false}
I/ActivityManager(  178): Displayed com.facebook.katana/.ProxyAuthDialog: +462ms (total +542ms)
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=false}
V/ActivityStack(  178): Prepare close transition: finishing ActivityRecord{41637bd0 com.facebook.katana/.ProxyAuthDialog}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=true}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=true}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=true}
D/dalvikvm(  178): GC_EXPLICIT freed 1508K, 27% free 12674K/17159K, paused 2ms+8ms
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=true}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=true}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=true}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=true}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=true}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=true}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=true}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=true}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=true}
V/ActivityStack(  178): Prepare close transition: prev=ActivityRecord{41637bd0 com.facebook.katana/.ProxyAuthDialog}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=true}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=false}
V/ActivityStack(  178): Prepare close transition: finishing ActivityRecord{415f7b38 com.facebook.katana/.ProxyAuth}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=false}
V/ActivityStack(  178): Prepare close transition: prev=ActivityRecord{415f7b38 com.facebook.katana/.ProxyAuth}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=false}
D/OpenGLRenderer( 8087): Flushing caches (mode 0)
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41753328 paused=false}
D/dalvikvm( 8087): GC_CONCURRENT freed 457K, 5% free 9622K/10119K, paused 3ms+3ms
D/OpenGLRenderer( 8045): Flushing caches (mode 0)
I/ActivityManager(  178): Displayed it.developername.appname/com.facebook.LoginActivity: +1s197ms
D/OpenGLRenderer( 8045): Flushing caches (mode 1)
D/dalvikvm( 8087): GC_CONCURRENT freed 692K, 8% free 9567K/10375K, paused 2ms+2ms
V/ActivityStack(  178): Prepare close transition: finishing ActivityRecord{41564038 it.developername.appname/com.facebook.LoginActivity}
V/ActivityStack(  178): Prepare close transition: prev=ActivityRecord{41564038 it.developername.appname/com.facebook.LoginActivity}
D/OpenGLRenderer( 8087): Flushing caches (mode 0)
D/dalvikvm( 8087): GC_CONCURRENT freed 510K, 8% free 9603K/10375K, paused 2ms+3ms
D/NetworkController(  265): intent is = Intent { act=android.net.wifi.RSSI_CHANGED flg=0x10000010 (has extras) }
D/NetworkController(  265): mWifiConnected = true
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
D/dalvikvm(  178): GC_CONCURRENT freed 1148K, 26% free 12703K/17159K, paused 2ms+6ms
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
I/WindowManager(  178): DIM BEHIND: Window{41818210 paused=false}
D/NetworkController(  265): intent is = Intent { act=android.net.wifi.RSSI_CHANGED flg=0x10000010 (has extras) }
D/NetworkController(  265): mWifiConnected = true
V/AlarmManager(  178): sending alarm Alarm{41526858 type 2 com.facebook.katana}

Thanks,

g



[TOPIC: post.html]
#23

gigio76

[GLOBAL: userInfoPane.html]
gigio76
  • Pro
  • PipPip
  • 24 posts
  • Member

Anyway, I confirm that DocumentsDirectory is not available for reading - only for writing and this issue is about Facebook plugin and Social plugin.

 

g



[TOPIC: post.html]
#24

mmk.verheijden

[GLOBAL: userInfoPane.html]
mmk.verheijden
  • Starter
  • PipPipPipPipPipPip
  • 164 posts
  • Jedi

Hi g I can confirm that system.DocumentsDirectory work for reading and writing as it works on all my apps

[TOPIC: post.html]
#25

gigio76

[GLOBAL: userInfoPane.html]
gigio76
  • Pro
  • PipPip
  • 24 posts
  • Member

maybe I should share a test apk. Maybe there is something wrong in my devices.




[topic_controls]
Page 1 of 2 1 2
 
[/topic_controls]