创建连接到 facebook 的 j2me 应用程序(不是 swt 项目) [英] Creating j2me app that connects to facebook ( not the swt project)
问题描述
我想创建一个简单的 j2me 应用程序作为开始,它与 facebook 链接为了这 ,我从 http://kenai.com/projects/facebookapime/downloads 下载了 facebook api然后我关注了这个网站的教程 http://j2megroup.blogspot.in/2011/06/facebook-api-me-10-tutorial.html
I want to create a simple j2me application for a start which links with facebook For this , I downloaded the facebook api from http://kenai.com/projects/facebookapime/downloads Then i followed this site for tutorials http://j2megroup.blogspot.in/2011/06/facebook-api-me-10-tutorial.html
但是首先我遇到了两个问题1)我没有得到浏览器类(即使添加了外部库,它也会在eclipse中出现编译错误)2)我没有在重定向uri中放入什么(我得到了前 2 个参数(App id 和 App secret 但没有重定向 uri)
But then for first i got 2 problems 1) I did not get Browser class ( it gives a compilation error in eclipse even after adding the external library ) 2) I did not got what to put in Redirect uri (i got first 2 parameters (App id and App secret but not redirect uri)
后来...当我知道它是用于 swt 项目时...不是 j2me pure midlet谁能告诉我纯 j2me midlet 有什么用?
later ... when i came to know that its for swt project ... not the j2me pure midlet can anyone tell me what's for pure j2me midlet ?
帮助我提供代码片段或类似的东西......那将是首选
help me with a code snippet or something like that ... that would be preffered
推荐答案
在startApp方法中写下面的代码
布尔型 b;
String URL = "你的 URL";
b = platformRequest(URL);
write below code in startApp method
boolean b;
String URL = "Your URL";
b = platformRequest(URL);
destroyApp(true);
notifyDestroyed();
该代码将启动浏览器并向您传输该特定 URL 并关闭您的 J2ME 应用程序.
destroyApp(true);
notifyDestroyed();
That code will start browser and transffer you on that perticular URL and close your J2ME app.
这篇关于创建连接到 facebook 的 j2me 应用程序(不是 swt 项目)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!