我目前正在尝试使用这个宝石http://github.com/pengwynn/linkedin.一切正常(即身份验证和调用获取配置文件的方法),但配置文件对象只包含名字和姓氏.
我正在尝试通过LinkedIn API获取自己的个人资料信息,因此必要的信息就在那里.怎么做?
谢谢.
我正在开发一个应用程序,现在我正在设计阶段.我
使用线性布局在日食中在3.7WVGA(Nexus One)屏幕上设计了一个屏幕.但是当我在2.7上测试时,
我的一些图标就会出现在屏幕之外.我的问题是哪种布局适合所有屏幕,无论我是设计在3.7英寸还是在2.7上运行.
请给我一个建议.
提前致谢.


第一部分我在3.7中设计,在2.7中设计第二.
我正在创建一个应用程序,用印度英语将文本转换为语音.
我从一个站点得到了这个("英语,印度(en_IN)")值,但我不知道如何以及在何处
将此值设置为语言环境.请告诉我如何设置这种语言.
并且有必要为TextToSpeech更改移动设置.
提前致谢..
嗨,我有"Table_Subject",我需要比较主题名称与"table_subject"的
主题名称和该主题的返回ID.我这样做但它没有返回任何价值.
这是我的示例代码供参考.
请给我一些提示或代码.
提前致谢.
public int getSubjectId(String subjectName)
{
int id2 = 0;
try
{
SQLiteDatabase db = this.getWritableDatabase();
String selectQuery= "SELECT s_id FROM " + TABLE_SUBJECT;
Cursor cursor = db.rawQuery(selectQuery, null);
// looping through all rows and adding to list
if (cursor.moveToFirst())
{
do {
if(subjectName.equals(cursor.getString(1)))
{
id2=cursor.getInt(0);
}
}
while(cursor.moveToNext());
db.close();
}
}
catch(Exception e)
{
e.printStackTrace();
}
return id2;
}
Run Code Online (Sandbox Code Playgroud) 如何计算这个系列Sn=1*1+2*2+3*3+...+n*n where (n>1).
请给我提示
我有以下类型的数据.
[4.2.5, 4.1.3.2.4, 4.1.2.1.28, 4.1.2.1.18, 1.2.18.1.3, 7.2.4, 1.2.15.2.2,
4.1.4.6, 9, 4.1.2.3.7, 2.1.4, 2.3.14, 1.12.1, 1.2.1, 4.1.2.1.35, 4.2.3,
2.1.8.3, 4.1.2.3.10, 3.3.9, 1.7.5, 2.1.9.2.1, 1.1.11, 8.3.2, 2.2.3.2,
4.1.2.1.9, 4.1.3.3.1, 2.1.9.2.11, 1.6.4.1, 2.2.1.2, 2.1.17.4, 1.2.16, 8.3.1,
4.1.2.4.11, 1.6.3.1, 1.9.2, 6.10, 1.1.24.8.1, 2.1.1.1, 1.10.1, 1.2.18.4.1.1,
7.3.37, 3.2.17, 1.1.10, 7.3.28, 5.2.1, 1.4.5.5, 1.7.3.1, 4.1.2.1.13, 7.3.26,
1.2.18.5.1, 1.4.2.7, 4.1.2.2.4, 1.3.2.4, 1.1.20.3, 1.13.2, 1.1.17.2, 2.2.2.6,
3.4.3, 1.2.18.10, 1.2.6.2, 3.2.23, 2.1.7.1.3, 4.1.3.3.2, 2.1.3.4, 7.2.3,
1.4.5.8, 1.1.2, 8.1.5, 1.2.9, 2.3.12, 6.8, 4.1.2.1.21, 2.1.5.2.3, 1.1.22.3,
4.1.3.2, 7.1, 4.1.4.9, 1.7.7, 8.2.2, …Run Code Online (Sandbox Code Playgroud) 我正在使用当前系统时间在表中插入数据,例如
System.currentTimeMillis(). 因此,在获取数据时,我只需要获取最近 3 小时的数据。
以下链接对我没有帮助。因为这个链接使用了我没有的特定日期格式。
根据过去几小时从 sqlite 获取数据
这是我的查询,但似乎不起作用。
SELECT * FROM Table1 where timestamp >= datetime('now','-3 hours')
Run Code Online (Sandbox Code Playgroud)
其中时间戳只是插入时的当前系统时间。
请给我任何参考或提示。
我有一个可扩展的列表视图,我需要将后台设置为可扩展列表视图.
如何设置此背景?
我需要从sqlite中删除特定记录.但是下面的代码无法删除它.
请给我一些提示.
public void delete(String Id)
{
try {
db.delete(MySQLiteHelper.TABLE_NAME, "Id=?",
new String[] { Id.toString() });
}
catch(Exception e) { ... }
}
Run Code Online (Sandbox Code Playgroud) 我有一个"SubjectTabActivity",我需要在这个活动上显示listview.
但是当我想实现ListActivity时,它不会显示listActivity.
我有两个(addchapter,addsubject)xml文件与"SubjectTabActivity".我需要
在相应的xml文件中显示我的数据库项目列表视图.但我不明白
该怎么做?
如何在TabActivity中添加Listactivity?
请给我任何参考或代码.
在此先感谢..
这是我的参考代码.
public class MasterMainActivity extends TabActivity
{
LayoutInflater layoutInflater = null;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.master);
Intent intent=getIntent();
setResult(RESULT_OK, intent);
layoutInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
TabHost tabHost = getTabHost();
TabHost.TabSpec tab1spec = tabHost.newTabSpec("tabOneSpec");
ImageView imgView = new ImageView(this);
imgView.setBackgroundResource(R.drawable.subject);
tab1spec.setIndicator("Subject", imgView.getBackground());
tab1spec.setContent(new TabContentLayout());
TabHost.TabSpec tab2spec = tabHost.newTabSpec("tabTwoSpec");
tab2spec.setContent(new TabContentLayout());
ImageView imgView1 = new ImageView(this);
imgView1.setBackgroundResource(R.drawable.chapter);
tab2spec.setIndicator("Chapter", imgView1.getBackground());
tabHost.addTab(tab1spec);
tabHost.addTab(tab2spec);
}
private class TabContentLayout implements TabHost.TabContentFactory {
@Override
public View createTabContent(String …Run Code Online (Sandbox Code Playgroud) android ×7
sql ×2
sqlite ×2
background ×1
comparator ×1
java ×1
layout ×1
linkedin ×1
listactivity ×1
locale ×1
math ×1
rubygems ×1
screen ×1
select ×1
series ×1
sorting ×1
tabactivity ×1
timestamp ×1