StatusNet-Client can not show friends timeline in android.

Hi

I download statusnet-client and try to run it in android emulator. And can't show timeline.

Trace the code, I found in status_timelineview.js have follow code:

StatusNet.TimelineView.prototype.appendTimelineNotice = function(notice) {
StatusNet.AvatarCache.lookupAvatar(notice.avatar,
function(filename) {
notice.avatar = filename;

Titanium.App.fireEvent('StatusNet_appendTimelineNotice', {notice: notice});
},
function(url) {
Titanium.App.fireEvent('StatusNet_appendTimelineNotice', {notice: notice});
}
);

};

I found the notice is an object by log.

But in timeline.html

function objectOrJson(obj) {
if (typeof obj == "string") {
// On Android, objects get passed to us as JSON. Srsly?
return eval('(' + obj + ')');
} else {
return obj;
}
}

I found it's a string in android but it's a object in iphone!!!!!!!!

And the obj is {apiroot=http://statusnet-server/api/, username=user1}

So the program crash in eval('(' + obj + ')');

I guess it's a bug of Titanium.App.fireEvent.

But Anybody can tell me how to fix this issue?

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID