[android-developers] Link between NetworkInterface and NetworkInfo

2010-11-01 Thread Neil
Is there a link between NetworkInterface and NetworkInfo?

NetworkInterface tells the IP address, and NetworkInfo tells me the
type, but how do I make the connection between IP address and type?

Thanks

Neil

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] putExtra and getExtra

2010-11-01 Thread Alok Upadhyay
i have trial.java as:

public void onClick(View v)
{
switch (v.getId())
{
case R.id.btnSequence:
Intent intent1 = new Intent();
intent1.setClass(this,CommonActivity .class);
String val1 = null;
intent1.putExtra(Value, val1);//passing val1 to
CommonActivity.java
startActivity(intent1);
break;

case R.id.btnVideo:
Intent intent2 = new Intent();
intent2.setClass(this,CommonActivity .class);
String val2 = null;
intent2.putExtra(Value, val2););//passing val2 to
CommonActivity.java
startActivity(intent2);
break;

case R.id.btnInfo:
Intent intent3 = new Intent();
intent3.setClass(this,CommonActivity .class);
String val3 = null;
intent3.putExtra(Value, val3););//passing val3 to
CommonActivity.java
startActivity(intent3);
break;
}

}

and in CommonActivity.java i want to do something like this:

public class CommonActivity extends Activity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
Intent getIntent = new Intent();
getIntent.getExtra(Value); //confusion with **getExtras**
//here i want something like this:
//if(getExtra.equals(val1)) //confusion with **getExtras**
  {
 //some stuff
  }
//if(getExtra.equals(val2))  //confusion with **getExtras**
  {
 //some stuff
  }
}
}

also while searching on net i got confused with getExtras and
getextra.can anybody please example the scenario of using getExtra vs
getExtras!so that i can decide to use better one in my application

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Commands available for View Server class

2010-11-01 Thread manohar
hello,

i am working on some framework. This framework code will communicate
with ViewServer class, to get the various details about views. Till
now we could able find few commands which viewServer class recieves
and responds. But we dont have complete set of command. If any one
knows, could you please provide all the supported commands by this
class and what exactly it returns?

/Mano

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Move background

2010-11-01 Thread Muhammad Ali
Hi,
   I am new for android game development and I am stuck in an issue
that how can I move background for my game in Android. I have a tank
which will destroy the enemies and move along the screen. But how can
I create effect for the movement without background movement.

I am not very good in English please neglect my weakness.

Yours Edward

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Commands available for View Server class

2010-11-01 Thread Mark Murphy
There is no ViewServer class in the Android SDK.

If you are modifying the Android open source code, a better list for
your question will be one of these:

http://source.android.com/community/index.html

On Mon, Nov 1, 2010 at 3:09 AM, manohar manohar...@gmail.com wrote:
 hello,

 i am working on some framework. This framework code will communicate
 with ViewServer class, to get the various details about views. Till
 now we could able find few commands which viewServer class recieves
 and responds. But we dont have complete set of command. If any one
 knows, could you please provide all the supported commands by this
 class and what exactly it returns?

 /Mano

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 2.2 Programming Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Prevent Rooted phones to access sqlite db and preferences

2010-11-01 Thread Dimitris
Encrypt your data when writing to DB and decrypt when you read. Might
make ur app a tiny bit slower but you might be better off.

On Oct 27, 6:25 pm, Byron Penner bapenner...@gmail.com wrote:
 In cases where u absolutly need to maintain secure data obfusticate
 the data before sasving to the db. At least this requires the thief to
 go into the apk to find the algo to dycrypt the data.

 On Oct 27, 8:13 pm, swgillan swgil...@gmail.com wrote:







  Hello,

  I have seen a few discussions on this, but I just wanted to see if
  there has been anything new.

  Currently, a rooted phone can access the /data/data/
  com.your.company.here/ path. Insides are all the wonderful areas like
  databases, files, and preferences. In fact, I was actually horrified
  to see that I could browse all the apps data on my development phone.

  Is there a way to protect someone from accessing these (ie, password
  protect the database from shell access)?

  My issue is specifically in the database. While there isn't anything
  regarding passwords stored inside, there is some intellectual property
  in terms of the actual data and schema that could make it easier for
  people to copy what my application does.

  My solution right now is to clear the particular tables I don't want
  people seeing in the database in onDestroy (when the user exits), or
  more accurately in onPause() with isFinishing(). Every time the
  application is launched the database is repopulated, so I am not
  worried about losing any data. I do realize that this isn't foolproof,
  but it seems to be better then nothing.

  Is there a better way?

  Regards,

  Steven Gillan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Adventures with LVL

2010-11-01 Thread JonFHancock
It has been an OK experience for me.

I had difficulty at first, and users would write me to complain, but I
don't recall any public complaints.

They were people with legit licenses who were getting refused due to
network errors and such.

The complaints were my own fault for using the LVL code as is though.
I'm not quite as  lenient as Pent, but I cache the license for a few
days, and allow 5 failed retries.

Like the others, I use a homebrewed licensing mechanism for paypal/
giveaway users as well.


Jon F Hancock

On Oct 31, 12:54 pm, jtoolsdev brianjto...@gmail.com wrote:
 I have only had one customer complain of a problem since I upgraded to
 LVL.  And who knows why that is happening as they could have changed
 emails since the original purchase under the old system or part of the
 problem which seems to be going on with the Market these days.   Also
 it was my understanding that the default policy was to check the first
 few days so authorization could be canceled if a refund was done.  But
 my app is still checking after several weeks.  Like a lot of Android
 documentation there needs to be more information on using LVL.

 And I also have an alternate third party system from my web site and
 haven't had any problems with it other than the eseller failing to
 tell me that the second try on a charge went through.

 Brian

 On Oct 31, 7:43 am, Pent tas...@dinglisch.net wrote:







   If you have published an app including LVL, what are your experiences?  

  99.9% no problem.

   Has it caused bad feedback from your users?

  Once or twice, a long time ago.

  But my implementation is very forgiving. It doesn't care if the
  licence can't be verified for the first 7 days, and only needs one
  positive response (per install). It validates in the background so
  most people don't even notice it.

  I also have a backup licence-code system they can use if all else
  fails (I needed it for paypal sales).

  Pent

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How i can control the Screen On/Off Lock/Unlock in Donut( SDK 1.6)

2010-11-01 Thread krekar
I solved it.

Jason, if you want know about that, contact me by e-mail.
(swbon...@gamil.com)

On 10월30일, 오전2시53분, Jason Van Anden jason.van.an...@gmail.com wrote:
 I am facing the same issue.  Did you or does anyone else know the answer?

 J







 On Sun, Jan 3, 2010 at 9:43 PM, krekar swbon...@gmail.com wrote:
  hi, all( happy new year~! :D)

  I making an Alarm App.

  In my Alarm App, if user set the alarm, the alarm Dialog will be shown
  at the set alarm time.

  but if device(phone) was in lock and screen off, I can't see the alarm
  dialog.

  I need to write code to the alarm dialog will be shown automatically
  although the device(phone) is screen off(and locked).

  I see the source code about AlarmClock in Donut SDK.

  It is use the code like below:
  getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);

  but the FLAG_TURN_SCREEN_ON is only available in SDK 2.0 or later.

  I just only use Donut(SDK 1.6).

  How can i Screen on  unlock in Donut(SDK 1.6)?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: 2.2.1 / N1 / USB Dropping

2010-11-01 Thread FrankG
Hi Pent,

what kind of usb connections you can see in the connection manager ?

Maybe it is adb + something different as mass storage ?

The new 2.2 vold implemention uses a sysfs state file to detect usb
connected or not.
Maybe the content of this state file is not written correctly or
something with the polling of this
sysfs file went wrong ?

But a discussion about this should go to android-platform.

Good luck !

  Frank


On 30 Okt., 10:34, Pent tas...@dinglisch.net wrote:
 Since I installed 2.2.1 (could be coincidence), I regularly find that
 the USB icons in the status bar disappear. Sometimes reinserting the
 plug helps, most often not. The device registers the incoming power
 (evinced by the LED) but not the data connection (no icons popup for
 mounting etc)

 Anyone else ?

 Pent

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Prevent Rooted phones to access sqlite db and preferences

2010-11-01 Thread Miguel Morales
Read the section titled: 'Replacement for copy protection' at:
http://developer.android.com/guide/publishing/licensing.html

On Mon, Nov 1, 2010 at 12:26 AM, Dimitris dnkou...@gmail.com wrote:
 Encrypt your data when writing to DB and decrypt when you read. Might
 make ur app a tiny bit slower but you might be better off.

 On Oct 27, 6:25 pm, Byron Penner bapenner...@gmail.com wrote:
 In cases where u absolutly need to maintain secure data obfusticate
 the data before sasving to the db. At least this requires the thief to
 go into the apk to find the algo to dycrypt the data.

 On Oct 27, 8:13 pm, swgillan swgil...@gmail.com wrote:







  Hello,

  I have seen a few discussions on this, but I just wanted to see if
  there has been anything new.

  Currently, a rooted phone can access the /data/data/
  com.your.company.here/ path. Insides are all the wonderful areas like
  databases, files, and preferences. In fact, I was actually horrified
  to see that I could browse all the apps data on my development phone.

  Is there a way to protect someone from accessing these (ie, password
  protect the database from shell access)?

  My issue is specifically in the database. While there isn't anything
  regarding passwords stored inside, there is some intellectual property
  in terms of the actual data and schema that could make it easier for
  people to copy what my application does.

  My solution right now is to clear the particular tables I don't want
  people seeing in the database in onDestroy (when the user exits), or
  more accurately in onPause() with isFinishing(). Every time the
  application is launched the database is repopulated, so I am not
  worried about losing any data. I do realize that this isn't foolproof,
  but it seems to be better then nothing.

  Is there a better way?

  Regards,

  Steven Gillan

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://developingthedream.blogspot.com/,
http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Collecting my Market installation statistics

2010-11-01 Thread deg
To be frank, your site would need to establish a REALLY strong
reputation for trustworthiness before we could consider trusting it
with our Market login credentials. They are too tightly coupled with
customer, billing and credit card info.

But, if I needed to login in to your webpage manually every day, it
wouldn't be much better than what I'm doing now with the Market page.
You would just save me the step of cutting-and-pasting the numbers to
a spreadsheet.

Would you consider writing a desktop utility to collect the data daily
automatically, so my login info could remain securely on our premises?

David

On Oct 31, 7:20 pm, Brad Gies rbg...@gmail.com wrote:
 David,

 I'm in the process of developing a website that collects market
 statistics and developer statistics, and one of the features I'm adding
 is a utility to collect my own market download numbers daily so I can
 put them into a spreadsheet and chart/graph them so I can easily spot
 trends.

 I thought about adding this for use by any developer, but the problem
 with it is that to automatically collect the actual download numbers, we
 would have to store your Google login information, and I don't think
 many developers would want to give that information... I could be wrong,
 but that's my opinion. Maybe I should ask... How many developers would
 be willing to have a website (a trustworthy website) store their login
 information to be able to automatically collect the download/installed
 numbers so they could collect them?

 Without the login information the only way to get the actual download
 and installed numbers would be for the developer to visit a page and
 manually start the download information, and I'm not sure many
 developers would do that consistently enough to get good information.

 Let me know if you are interested in having this... I can add it fairly
 easily... but I'd need to know exactly what would be acceptable to the
 developers.

 Sincerely,

 Brad Gies
 ---
 Bistro Bot - Bistro Blurbhttp://bgies.com           
 http://nocrappyapps.comhttp://bistroblurb.com     
 http://forcethetruth.comhttp://ihottonight.com
 ---
 Everything in moderation, including abstinence (paraphrased)

 Every person is born with a brain... Those who use it well are the successful 
 happy ones - Brad Gies

 Adversity can make or break you... It's your choice... Choose wisely - Brad 
 Gies

 Never doubt that a small group of thoughtful, committed people can
 change the world. Indeed. It is the only thing that ever has - Margaret Mead

 On 31/10/2010 3:16 AM, deg wrote:







  Thanks.

  In what ways have you found the numbers to be untrustworthy?

  Are the numbers exposed via the API any different?  Also, can you
  point me to the API you recommend? A quick search just now found
  several unofficial APIs, but no official support.

  Thanks,
  David

  On Oct 28, 5:50 pm, TreKingtreking...@gmail.com  wrote:
  On Thu, Oct 28, 2010 at 4:40 AM, degd...@degel.com  wrote:
  Is this info available anywhere on the Market site?
  Nope. And don't trust the numbers you see there anyway.

    If not, has anyone written a screen-scraping utility (or equivalent) 
  that
  can harvest the data into a spreadsheet?
  I don't know, but there a Market API you could use for yourself.
  Or use some kind of analytics library.

  ---
   --
  TreKinghttp://sites.google.com/site/rezmobileapps/treking  - Chicago
  transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Developing games for Galaxy Tab

2010-11-01 Thread limtc
Hi,

I just tested Galaxy Tab AVD, and my games using SurfaceView looks
suck. I would like to create drawable that is specified to 1024x600
resolution, but Galaxy Tab insists of using drawable-hdpi - which has
resources specified for WVGA resolutions.

How do I create a drawable folder that just specified to 1024x600
resolution? Is there something like drawable-1024x600? Or what's the
best strategy of creating images for this resolution without screwing
it resources for WVGA?

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Read Calender and contact of android

2010-11-01 Thread Hotouch
Hello,

I want to read the calender and contact of the android and looking for
a code snipt if anyone can guide me.

someone told me that i have to install calender fist into emulator and
i tried but its not compatible :( and showing error and that this is
not compatible.

Please help!!!

thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Developing games for Galaxy Tab

2010-11-01 Thread Michael A.
Haven't looked at this yet (though I plan to), but isn't the 1024x600
a Large screen? You might be able to use drawable-large or drawable-
large-hdpi.

Regards,

Michael A.

On Nov 1, 9:56 am, limtc thyech...@gmail.com wrote:
 Hi,

 I just tested Galaxy Tab AVD, and my games using SurfaceView looks
 suck. I would like to create drawable that is specified to 1024x600
 resolution, but Galaxy Tab insists of using drawable-hdpi - which has
 resources specified for WVGA resolutions.

 How do I create a drawable folder that just specified to 1024x600
 resolution? Is there something like drawable-1024x600? Or what's the
 best strategy of creating images for this resolution without screwing
 it resources for WVGA?

 Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Developing games for Galaxy Tab

2010-11-01 Thread limtc
Wow, that's good suggestion.

My initial test seems to indicate that drawable-large does not work,
but drawable-large-hdpi works.

I will do more test and let everybody know!

On 11月1日, 下午5时21分, Michael A. michael.aki...@gmail.com wrote:
 Haven't looked at this yet (though I plan to), but isn't the 1024x600
 a Large screen? You might be able to use drawable-large or drawable-
 large-hdpi.

 Regards,

 Michael A.

 On Nov 1, 9:56 am, limtc thyech...@gmail.com wrote:



  Hi,

  I just tested Galaxy Tab AVD, and my games using SurfaceView looks
  suck. I would like to create drawable that is specified to 1024x600
  resolution, but Galaxy Tab insists of using drawable-hdpi - which has
  resources specified for WVGA resolutions.

  How do I create a drawable folder that just specified to 1024x600
  resolution? Is there something like drawable-1024x600? Or what's the
  best strategy of creating images for this resolution without screwing
  it resources for WVGA?

  Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] EditText clipping in TableRow

2010-11-01 Thread freezy
Hi folks,

I've spent quite some time on this and I can't wrap my fingers around it.
Whatever I try, the EditText view in the TableRow is either clipped
(attached screenshot), or, if I set shrinkColumns to either 0 or 1, the
label text disappears (and the EditText view takes up the whole width). My
layout is as follows:

?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:orientation=vertical
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:padding=10dip
 TableLayout
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:orientation=vertical
 TableRow
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:orientation=horizontal
 TextView
 android:paddingRight=10dip
 android:layout_column=1
 android:text=Label Text /
 EditText
 android:text=Very long text that makes the text view go on clipping
 frenzy
 android:layout_width=wrap_content
 android:layout_height=wrap_content /
 /TableRow
 /TableLayout
 /LinearLayout


I've tried it on a 2.2 emulator running at QVGA and HVGA, a HTC Hero on 2.1
and the Wildfire on 2.1 as well. I've also played around with the
clipToPadding attribute which doesn't seem to help in my case.

The same issue appears if I set the hint attribute with a long text and
leave the text value empty.

As I am doing nothing particularly complex, I suspect a simple error on my
side. Any ideas, hints or suggestions are highly appreciated.

Cheers!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=enattachment: clipping1.png

[android-developers] 薛智超 想跟您聊天

2010-11-01 Thread 薛智超
我使用 Google Talk 已经有一段时间,我觉得您也不妨试试。我们可以使用它通过互联网免费拨打电话。您可通过此邀请函下载 Google Talk。试试吧!

---
薛智超希望通过 Google 的一些最炫的新产品与您保持更密切的联系。

如果您已经拥有 Gmail 或 Google Talk,请访问:
http://mail.google.com/mail/b-8a3bf08849-bb05339f2d-VD73R9Kv0Of1xnprESoD7xm6A90
您需要点击此链接才能与薛智超聊天。

要获取 Gmail(Google 提供的免费电子邮件帐户,存储空间超过 2,800 MB)并与薛智超聊天,请访问:
http://mail.google.com/mail/a-8a3bf08849-bb05339f2d-VD73R9Kv0Of1xnprESoD7xm6A90

Gmail 提供以下功能:
- 直接在 Gmail 中进行即时消息传递
- 强大的垃圾邮件防护功能
- 可用于查找邮件的内置搜索功能,以及实用的邮件整理方法(将邮件整理到“会话”中)
- 没有弹出式广告或不相干的横幅广告,只显示文字广告和与邮件内容相关的信息
以上所有功能均免费为您提供。此外,我们还提供了更多服务!打开 Gmail 帐户后,您还可以访问 Google Talk(即时消息传输服务):

http://www.google.com/talk/intl/zh-CN/

Google Talk 提供以下功能:
- 无需下载即可供您在任何地方使用的基于网络的聊天功能
- 与 Gmail 帐户同步的联系人列表
- 免费、高品质的 PC 间语音呼叫服务(下载 Google Talk 客户端后)

我们一直致力于增加新的功能并不断改进服务,因此我们还可能会定期请您提供意见和建议。感谢您为我们的产品改进所提供的帮助!

此致
Google 小组敬上

要了解有关 Gmail 和 Google Talk 的详细信息,请访问:
http://mail.google.com/mail/help/intl/zh_CN/about.html
http://www.google.com/talk/intl/zh-CN/about.html

(如果点击本邮件中提供的网址不起作用,请将其复制并粘贴到浏览器的地址栏中)。

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Mobile Application Development Survey - free gift

2010-11-01 Thread Monkey
I am developing a new mobile development platform and I am canvasing
opinion on both features and the pricing model for this product.

We would be most grateful for a few minutes of your time to complete
this following questions. The whole process should take less than five
minutes.

http://mobiledev.limequery.com/76344/lang-en

To show our appreciation, the first 100 responses will be sent a free
solar powered model micro-car.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to debug CursorIndexOutOfBoundsException with ListView?

2010-11-01 Thread Mariano Kamp
Hi,

I occasionally get exceptions like this one here:

android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a
size of 0
at android.database.AbstractCursor.checkPosition(AbstractCursor.java:580)
at
android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:172)
at
android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:99)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:194)
at android.widget.CursorAdapter.getView(CursorAdapter.java:177)
at android.widget.AbsListView.obtainView(AbsListView.java:1254)
at android.widget.ListView.measureHeightOfChildren(ListView.java:1142)
at android.widget.ListView.onMeasure(ListView.java:1055)
at android.view.View.measure(View.java:7117)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2929)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
at android.view.View.measure(View.java:7117)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2929)
at
android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:888)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:350)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:278)
at android.view.View.measure(View.java:7117)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2929)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
at android.view.View.measure(View.java:7117)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:464)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:278)
at android.view.View.measure(View.java:7117)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2929)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
at android.view.View.measure(View.java:7117)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2929)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
at android.view.View.measure(View.java:7117)
at android.view.ViewRoot.performTraversals(ViewRoot.java:866)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1718)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3948)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
at dalvik.system.NativeStart.main(Native Method)

My own code isn't really touched in this stack trace and I am wondering what
I might be doing wrong here?

I suspect it is something about the coordination of redraw/invalidation
events, but I don't know where to look exactly.

When I update the model (the sqlitedatabase) I run the following code on the
UI thread afterwards:

  void refreshUI() {

((BaseAdapter) getListAdapter()).notifyDataSetChanged();

// the remaining calls are just included for completeness

// they update different ui elements, but don't access the cursor in
any way.

updateButtons();

updateControlPanelTitle();

updateProgressBar();

}


Any other information I can provide?

Cheers,

Mariano

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: device fingerprinting

2010-11-01 Thread bagelboy
Google encourages you to offload your own checks to an external server
and I am considering how to do that. I'd like to have more than one
way to track installations.

I totally agree that the documentation sucks donkeys. They say you
should modify the code substantially to foil crackers but they don't
provide anywhere near enough docs to do it!

Google, if you are listening we need a secure, turnkey security system
like iPhone. LVL isn't it.

On Oct 31, 7:59 pm, jtoolsdev brianjto...@gmail.com wrote:
 Isn't LVL locked to the user's Google email?  I thought that was the
 idea though they you can use device IDs as an option.  Linked to the
 account it allows the user to install the app again if they get a
 different device.  The ID option would be for a single device policy
 though they could stand to flesh out the documentation on LVL a bit
 more.

 On Oct 30, 3:01 pm, DanH danhi...@ieee.org wrote:

  Well, there's the IMEI, the IMSI, and the ANDROID_ID.  Alas, the
  ANDROID_ID isn't unique (and is in fact identical on many Droid2
  units).

  On Oct 30, 12:41 pm, bagelboy greg.do...@gmail.com wrote:

   Hello Devs,

   I'm working on an LVL implementation and I want to use as many
   different device identifiers as I can. I have considered using IMEI
   numbers but I've discarded that because a) it's intrusive and b) not
   all devices will have them.

   What might I use to fingerprint a phone for license verification?

   As an aside, how have your experiences with LVL been so far? Any
   pitfalls? I'm not asking for anyone to share their implementation
   details as that would give the hackers ideas.

   -BB



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Checksum Java function in Android

2010-11-01 Thread Pent
A while ago I tried to work out how to checksum a function at runtime.
As I remember, I failed due to some missing functionality of the class
loader from vanilla java.

Has anyone managed to do this ?

Thanks,

Pent

p.s. it's intended as a new tool in the entertaining anti-crack game
(please no comments on the futility of the exercise)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] weird compiler warning

2010-11-01 Thread ping
Hey guys,

i recognized that when i'm building my android project in eclipse i
get a lot of warnings saying:

warning: Ignoring InnerClasses attribute for an anonymous inner class
that doesn't come with an associated EnclosingMethod attribute. (This
class was probably produced by a broken compiler.)

I don't have any idea how to solve this. How can i get rid of this
warning?

greets

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Listen/bind a hardwarebutton to a activity/event

2010-11-01 Thread Rijad Sacirovic
Hey there, this is kind of a wide question that I'll break down for
you. In general I'm wondering if its is possible, if so then how, to
bind/listen to a hardware-button to my application.

* Is it possible to make a hardware-button start my app on shot/
long press?
* Is it possible to start/trigger my widget on a longpress of a
hardware-button?
* Is it possible to (when i have the app in the background) make a
hardwarebutton triger this app to the foreground/activate it?
* Is it possible to let a servive listen to long-press of a
button?
* The camera activity on some phones has a camerabutton, can this
button be programed to work with my app?


What I want to do is that upon a longrpress (hold valume up/home-
button for more than 3 seconds) start/execute a activity in my
application like the camera-application and its camerabutton.

Im searching for any and all information about this right now as I
cant find any real answer ;(

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] weird compiler warning

2010-11-01 Thread Marcin Orlowski
 I don't have any idea how to solve this. How can i get rid of this
 warning?

Show your code, crystal ball is broken.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Over Riding Back Button Action

2010-11-01 Thread tanmay....@gmail.com
I have just overide my back button in my code like this

 @Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {

return true;
}
return super.onKeyDown(keyCode, event);
}


@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {

{
   startActivity(new  Intent(context, 
MainDialog.class));
   finish();

return true;
}
return super.onKeyUp(keyCode, event);
}



Now I am facing a weird problem,
I have a edit text on the current Activity.
When I am trying to close the virtual keyboard by pressing the back
button .
My Application finishes...
But I just want to close the keyboard not the Avtivity..
Any suggestion to solve my issue..?

Thanks in advance,
Tanmay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: putExtra and getExtra

2010-11-01 Thread tanmay....@gmail.com
Bundle bundle = getIntent().getExtras();
Now get the your desired value from the bundle
String value=bundle.getString(Value);


if(value!=null)
{

if(value.equals(Some Value1))
{
 //some stuff
}
if(value.equals(Some Value2))
{
 //some stuff
}

if(value.equals(Some Value3))
{
 //some stuff
}
}

I think this will solve your problem




Tanmay Mandal
Finding myself in me



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Will service be restarted with all unfinished intents that returned start status START_REDELIVER_INTENT?

2010-11-01 Thread Jonas Schwertfeger
Hi there,

Suppose you have a download service that downloads files
asynchronously. For each download intent received it will put the URL
of the file to download and the start ID into a job queue and return
START_REDELIVER_INTENT. A worker thread then processes that list and
calls stopSelf with the start ID it just processed.

My question is: If the service's process gets killed and the service
restarted, will the service receive all the intents (with the URLs) it
hasn't called stopSelf on before it was killed or does the service
receive the last intent only? It seems the API docs are ambiguous on
this.

The docs say

if this service's process is killed while it is started [...], then
it will be scheduled for a restart and the last delivered Intent re-
delivered to it again [...],

indicating that only the last intent gets redelivered (which would be
terrible in this use case), but they also say

The service will [...] be re-started if it is not finished processing
all Intents sent to it (and any such pending events will be delivered
at the point of restart).

Which is it now?

Thanks,
-Jonas

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: weird compiler warning

2010-11-01 Thread DanH
It's referring to the attributes inside the class file -- either the
compiler screwed up or the class verifier is slightly broken.  Since
the virtual machine largely ignores the attributes, you can ignore the
message.

On Nov 1, 6:44 am, ping bernd.warm...@gmail.com wrote:
 Hey guys,

 i recognized that when i'm building my android project in eclipse i
 get a lot of warnings saying:

 warning: Ignoring InnerClasses attribute for an anonymous inner class
 that doesn't come with an associated EnclosingMethod attribute. (This
 class was probably produced by a broken compiler.)

 I don't have any idea how to solve this. How can i get rid of this
 warning?

 greets

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Developing games for Galaxy Tab

2010-11-01 Thread Michael A.
Are you using OS version 2.1. In principle (as I understand it),
drawable-large should work based on the theory:
http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources
http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch

Wouldn't be the first time that theory and practice in this respect
are non-aligned, though.

Regards,

Michael A.

On Nov 1, 11:12 am, limtc thyech...@gmail.com wrote:
 Wow, that's good suggestion.

 My initial test seems to indicate that drawable-large does not work,
 but drawable-large-hdpi works.

 I will do more test and let everybody know!

 On 11月1日, 下午5时21分, Michael A. michael.aki...@gmail.com wrote:

  Haven't looked at this yet (though I plan to), but isn't the 1024x600
  a Large screen? You might be able to use drawable-large or drawable-
  large-hdpi.

  Regards,

  Michael A.

  On Nov 1, 9:56 am, limtc thyech...@gmail.com wrote:

   Hi,

   I just tested Galaxy Tab AVD, and my games using SurfaceView looks
   suck. I would like to create drawable that is specified to 1024x600
   resolution, but Galaxy Tab insists of using drawable-hdpi - which has
   resources specified for WVGA resolutions.

   How do I create a drawable folder that just specified to 1024x600
   resolution? Is there something like drawable-1024x600? Or what's the
   best strategy of creating images for this resolution without screwing
   it resources for WVGA?

   Thanks!



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] web service access from net

2010-11-01 Thread Dalvinder Singh
It seems you just want to get the xml data from servers instead of local
Assets folders. So the approach should be to deploy these xml resources on
some server like Tomcat or JBoss etc. Then in your application you can make
simple HTTP request to get these resources and use it in your application.


On Fri, Oct 29, 2010 at 9:23 PM, TreKing treking...@gmail.com wrote:

 On Fri, Oct 22, 2010 at 11:39 PM, nena joy nenaj...@gmail.com wrote:

 but I want to create this application with data from a web service in the
 net.


 You need to expand on this - your question is so vague you're never going
 to get any help like this.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] any information regarding printing on android

2010-11-01 Thread MG
hi all!

do you have any idea on how to connect an android device to a printer?
for example, i will create an application that will manually input the
IP address of the printer.
and then, a notification will pop up that i have successfully
connected to the printer.
how can i implement this on android?

any information or idea is appreciated.

thank you in advance.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Bezier curve has end points connecting

2010-11-01 Thread jb
Hi,

I'm drawing a very simple bezier curve that looks like a ).  The odd
thing is that the beginning and ending points connect with a straight
line.

I'm new in doing this type of thing. Is this to be expected or not?

Here's the code segment that defines the points, path and draws the
curve:

paint.setStyle(Paint.Style.STROKE);
paint.setStrokeWidth(4.0f);
// Draw a bezier curve with end points s,e and control points cp1,cp2
Path path = new Path();
Point s = new Point(171, 114);
Point cp1 = new Point(181, 127);
Point cp2 = new Point(186, 141;
Point e = new Point(172, 159);
path.moveTo(s.x, s.y);
path.cubicTo(cp1.x, cp1.y, cp2.x, cp2.y, e.x, e.y);
path.close();
canvas.drawPath(path, paint);

Am I missing something in defining the path?

TIA,

jb

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: error code 5: database is locked

2010-11-01 Thread William Ferguson
I'm seeing the same thing.

And to answer the questions:
1 - There is no other app using my db, though it is accessed from both
my Activity and an IntentService within my app. Both of which needs
write access.
2 - I closed the cursor every time.

I cannot see any need for the entire DB to be locked (there is no DDL
being executed).
But its possible that there is a collision between the 2 Threads. Ie
both trying to write at the same time (though never to the same
record).
But I had presumed that one would halt (unless it times out) waiting
for the first to release a write lock.
But it doesn't look like there is any waiting being done.
Is that an option that can be configure? for an SQLite transaction? I
couldn't find anything that suggested that.

Stacktrace below.

William


11-01 23:40:30.173: ERROR/Database(8715): Error inserting ..
crane=large length=6
android.database.sqlite.SQLiteException: error code 5:
database is locked
at
android.database.sqlite.SQLiteStatement.native_execute(Native Method)
at
android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:
66)
at
android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:
1426)
at
android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:
1286)




On Oct 25, 10:48 pm, AJ ajeet.invinci...@gmail.com wrote:
 Hi gcstang,

 Very basic but check the following:-
 1- Is any other app using your DB?
 2- Did you close the cursor every time when you opened it?

 Thanks,
 AJ

 On Oct 25,5:41 pm, gcstang gcst...@gmail.com wrote:

  ping, anyone that can answer this?

  On Oct 16, 10:58 am, gcstang gcst...@gmail.com wrote:

   Here is the stack:

   android.database.sqlite.SQLiteException:errorcode5:databaseislocked
           at
   android.database.sqlite.SQLiteStatement.native_execute(Native Method)
           at
   android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:
   55)
           at
   android.database.sqlite.SQLiteDatabase.updateWithOnConflict(SQLiteDatabase.java:
   1779)
           at
   android.database.sqlite.SQLiteDatabase.update(SQLiteDatabase.java:
   1709)
           at com.myapp.MyDbAdapter.updateField2(MyDbAdapter.java:468)
           at com.myapp.MyView$13.run(MyView.java:1260)
           at java.lang.Thread.run(Thread.java:1102)

   On Oct 15, 11:54 am, DanH danhi...@ieee.org wrote:

Where is theerrorbeing thrown from?  (You might include the
exception traceback.)

On Oct 15, 9:44 am, gcstang gcst...@gmail.com wrote:

 Has anyone encountered this and is there a solution to work around it?

 I'm creating a Thread and in that thread I open adatabaseconnection
 using the DBHelper, perform an update on a field in mydatabaseand
 close it. I create a separate one in the Thread because if the View is
 closed the global one for that view is closed, causing my Thread
 update to throw anerror.

 The thread is in a View, that also has it's own instance of the
 DBHelper and
 opens thedatabaseonCreate
 closes it onPause
 opens it onResume
 closes it onDestroy

 The instance in my Thread is throwing this but not all the time :error
code5:databaseislocked

 Is there a known practice I should implement so I don't get thiserror?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Application Losing Connectivity after 30 minutes (on Wifi)

2010-11-01 Thread Alok Kulkarni
Thanks for sharing the info mark, i will try it out and post if there
are any further issues.
Regards,
Alok.

On Tue, Oct 26, 2010 at 1:03 PM, Mark Murphy mmur...@commonsware.com wrote:
 You may need a WakeLock and WifiLock, if the device is falling asleep.

 On Tue, Oct 26, 2010 at 3:28 AM, Alok Kulkarni kulsu...@gmail.com wrote:
 Hi,
 I have an application which continuously fetches data from the server
 , downloads and plays songs ..My app runs on WiFi. After around 30
 minutes , the application loses connectivity .. At that point of time
 if a browser is opened it connects to the internet.. But my app has
 lost connectivity.If i make explicit requests thru the app by user
 interaction the connectivity is regained, but automatic disconnection
 happens many times.. Even if the setting for Wifi always on is set ,
 this this happens.. This issue i observed on HTC Magic and Samsung
 Europa..Does anyone have an idea why this happends
 Thanks And Regards,
 Alok

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android 2.2 Programming Books: http://commonsware.com/books

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Google analytics install referrer problem

2010-11-01 Thread Alex Polyakov
I needed to track install information, so i used
com.android.vending.INSTALL_REFERRER intent for google
analytics:
http://code.google.com/mobile/analytics/docs/android/

I have put that intent into manifest as following:

receiver android:name=com.mycompany.MyReceiver
android:exported=true
  intent-filter
action android:name=com.android.vending.INSTALL_REFERRER /
  /intent-filter
/receiver


Inside MyReceiver class, i've implemented:

public void onReceive(Context context, Intent intent) {
String referrer =
URLDecoder.decode(intent.getStringExtra(referrer));
Log.d(TAG, referrer);

com.google.android.apps.analytics.AnalyticsReceiver
receiver = new com.google.android.apps.analytics.AnalyticsReceiver();
receiver.onReceive(context, intent);
 }

Then i installed app using generated at
http://code.google.com/mobile/analytics/docs/android/#android-market-tracking
url, and got this in log:

DEBUG/TestApplication(31977):
utm_source=androidmarketutm_medium=deviceutm_campaign=searchutm_term=pname:com.mycompany.test.marketrowindex=0hl=encorrectedQuery=
WARN/googleanalytics(31532): Badly formatted referrer missing
campaign, name or source
WARN/googleanalytics(31532): Badly formatted referrer, ignored

So, instead of referral data that was given at url generation, i've
got data which looks like i was searching for my app at Market

Does anyone have this kind of trouble, or knows how to help?




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Drag and Drop List Simple Example

2010-11-01 Thread ericharlow
I like those links too. Good Stuff.

On Oct 31, 7:55 pm, Mathias Lin m...@mathiaslin.com wrote:
 Thanks for sharing.
 Can also look 
 athttp://stackoverflow.com/questions/2909311/android-list-view-drag-and...http://github.com/commonsguy/cwac-touchlist
 for another example

 On Nov 1, 8:33 am, ericharlow eric.b.har...@gmail.com wrote:

  I struggled with finding and using a simple drag and drop list. I
  figured others would be looking for the same type of thing since
  android doesn't currently provide one. A simple Drag and Drop List
  Example can be found 
  athttp://ericharlow.blogspot.com/2010/10/experience-android-drag-and-dr
  Hope this is helpful to others.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android intent filter for SMS and call?

2010-11-01 Thread draf...@gmail.com
I am trying to register my Activity so that it can be used by the
Activity chooser/picker allowing a user to choose whether or not to
select my application/Activity to complete what they are trying to do.

I want to provide the option for the user to be able to select my
application when they want to send an SMS message and when they want
to place an outgoing call, to try to achieve this I added the
following pieces of code within my Activity tags in my manifest:

intent-filter
action android:name=android.intent.action.SENDTO /
category android:name=android.intent.category.DEFAULT /
data android:mimeType=text/plain /
/intent-filter

intent-filter
action android:name=android.intent.action.NEW_OUTGOING_CALL /
category android:name=android.intent.category.DEFAULT /
/intent-filter

However the Activity chooser never appears and the native apps are
used without providing a choice to the user. Can anyone see where I am
going wrong?

EDIT:

I have figured out I need to add

data android:scheme=sms /
data android:scheme=smsto /

for the SMS message but what do I use for the outgoing call?

EDIT 2:

I have tried the following for the outgoing call:

 intent-filter
 action android:name=android.intent.action.VIEW /
 action android:name=android.intent.action.DIAL /
 category android:name=android.intent.category.DEFAULT /
 category android:name=android.intent.category.BROWSABLE /
 data android:scheme=tel /
 /intent-filter

But again with no luck, has this been blocked from 1.6 on?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] image capture and get both the original image and a thumbnail

2010-11-01 Thread TreKing
On Wed, Oct 27, 2010 at 12:36 AM, niedhui nied...@gmail.com wrote:

 so is there an easy way to get both the thumbnail and the original picture
 ?


Try this? Never used it, so I don't know how it works, but seems useful.
http://developer.android.com/reference/android/media/ThumbnailUtils.html

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Bezier curve has end points connecting

2010-11-01 Thread Kostya Vasilyev

Take out path.close()

-- Kostya

01.11.2010 17:06, jb пишет:

Hi,

I'm drawing a very simple bezier curve that looks like a ).  The odd
thing is that the beginning and ending points connect with a straight
line.

I'm new in doing this type of thing. Is this to be expected or not?

Here's the code segment that defines the points, path and draws the
curve:

paint.setStyle(Paint.Style.STROKE);
paint.setStrokeWidth(4.0f);
// Draw a bezier curve with end points s,e and control points cp1,cp2
Path path = new Path();
Point s = new Point(171, 114);
Point cp1 = new Point(181, 127);
Point cp2 = new Point(186, 141;
Point e = new Point(172, 159);
path.moveTo(s.x, s.y);
path.cubicTo(cp1.x, cp1.y, cp2.x, cp2.y, e.x, e.y);
path.close();
canvas.drawPath(path, paint);

Am I missing something in defining the path?

TIA,

jb




--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how do i create a donate menu button

2010-11-01 Thread Raziel23x
So Something Along these Lines will work?

private static final int MENU_DONATE = 0;

/* Creates the menu items */
public boolean onCreateOptionsMenu(Menu menu)
{
menu.add(0, MENU_DONATE, 0, Home);
return true;
}
/* Handles item selections */
@Override
public boolean onOptionsItemSelected(MenuItem item)
{
switch (item.getItemId()) {
case MENU_DONATE:
Intent myIntent = new Intent(Intent.VIEW_ACTION, Uri.parse(https://
www.paypal.com/cgi-bin/webscr?cmd=_s-xclickhosted_button_id=A2L64XS44ZQ9S));
myweb.loadUrl();

return true;
}
return true;
}

On Oct 31, 3:44 pm, Kumar Bibek coomar@gmail.com wrote:
 You need to launch the default browser with yourdonationURL. After
 that, the browser app should take care of the further actions.

 To launch the Browser, you need to use a VIEW intent like this.

 http://developer.android.com/guide/appendix/g-app-intents.html

 Action - View
 Uri - YourdonationURL

 On Oct 31, 12:42 pm, Raziel23x raziel...@gmail.com wrote:

  Can you explain more I am still new to this mixture I have not worked
  with browser activity

  On Oct 30, 11:26 am, Kumar Bibek coomar@gmail.com wrote:

   You need to have Internet permission.  Instead of using thewebview, you 
   are
   better off using the Bowser activity for this.

   On Sat, Oct 30, 2010 at 11:23 PM, Raziel23x raziel...@gmail.com wrote:
I am having trouble creating a donatemenubutton but I am having
trouble

I tried doing it as a webview but my application is the use of the
listview
thisDonationMenuitem is the only item that requires the internet
permission everything else is internal workings.
[CODE]private static final int MENU_DONATE = 0;[/CODE]
[CODE]
/* Creates themenuitems */
public boolean onCreateOptionsMenu(Menumenu)
       {
               menu.add(0, MENU_DONATE, 0, Home);
               return true;
       }
/* Handles item selections */
      �...@override
       public boolean onOptionsItemSelected(MenuItem item)
       {
       switch (item.getItemId()) {
       case MENU_DONATE:
               myweb.loadUrl(
   https://www.paypal.com/cgi-bin/webscr?cmd=_s-
xclickhosted_button_id=A2L64XS44ZQ9S);

       return true;
       }
       return true;
       }[/CODE]

but it is not working and giving me errors what do i need to fix this
and get it to work correctly

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

   --
   Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Adventures with LVL

2010-11-01 Thread PorkChop
I've had one user complain that it 'would be better' if he could play
in airplane mode. That said, I shyed away from checking the licence
every time to app is fired up. I check 2 hours after first run (this
is because I am not entirely sure what would happen if the user copied
to SD card and then got a refund).

After the initial 2 hour check, I check once a day. So in theory if
someone wanted to play in airplane mode they could check the licence
key first and then go into airplane mode for the remainder of the day.



On Oct 31, 8:54 pm, jtoolsdev brianjto...@gmail.com wrote:
 I have only had one customer complain of a problem since I upgraded to
 LVL.  And who knows why that is happening as they could have changed
 emails since the original purchase under the old system or part of the
 problem which seems to be going on with the Market these days.   Also
 it was my understanding that the default policy was to check the first
 few days so authorization could be canceled if a refund was done.  But
 my app is still checking after several weeks.  Like a lot of Android
 documentation there needs to be more information on using LVL.

 And I also have an alternate third party system from my web site and
 haven't had any problems with it other than the eseller failing to
 tell me that the second try on a charge went through.

 Brian

 On Oct 31, 7:43 am, Pent tas...@dinglisch.net wrote:  If you have 
 published an app including LVL, what are your experiences?  

  99.9% no problem.

   Has it caused bad feedback from your users?

  Once or twice, a long time ago.

  But my implementation is very forgiving. It doesn't care if the
  licence can't be verified for the first 7 days, and only needs one
  positive response (per install). It validates in the background so
  most people don't even notice it.

  I also have a backup licence-code system they can use if all else
  fails (I needed it for paypal sales).

  Pent

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Bezier curve has end points connecting

2010-11-01 Thread jb
Thank you. I knew it was something simple.

jb

On Nov 1, 8:01 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Take out path.close()

 -- Kostya

 01.11.2010 17:06, jb пишет:



  Hi,

  I'm drawing a very simple bezier curve that looks like a ).  The odd
  thing is that the beginning and ending points connect with a straight
  line.

  I'm new in doing this type of thing. Is this to be expected or not?

  Here's the code segment that defines the points, path and draws the
  curve:

  paint.setStyle(Paint.Style.STROKE);
  paint.setStrokeWidth(4.0f);
  // Draw a bezier curve with end points s,e and control points cp1,cp2
  Path path = new Path();
  Point s = new Point(171, 114);
  Point cp1 = new Point(181, 127);
  Point cp2 = new Point(186, 141;
  Point e = new Point(172, 159);
  path.moveTo(s.x, s.y);
  path.cubicTo(cp1.x, cp1.y, cp2.x, cp2.y, e.x, e.y);
  path.close();
  canvas.drawPath(path, paint);

  Am I missing something in defining the path?

  TIA,

  jb

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Will service be restarted with all unfinished intents that returned start status START_REDELIVER_INTENT?

2010-11-01 Thread Dianne Hackborn
Yes,.

On Mon, Nov 1, 2010 at 5:39 AM, Jonas Schwertfeger
jschwertfe...@gmail.comwrote:

 Hi there,

 Suppose you have a download service that downloads files
 asynchronously. For each download intent received it will put the URL
 of the file to download and the start ID into a job queue and return
 START_REDELIVER_INTENT. A worker thread then processes that list and
 calls stopSelf with the start ID it just processed.

 My question is: If the service's process gets killed and the service
 restarted, will the service receive all the intents (with the URLs) it
 hasn't called stopSelf on before it was killed or does the service
 receive the last intent only? It seems the API docs are ambiguous on
 this.

 The docs say

 if this service's process is killed while it is started [...], then
 it will be scheduled for a restart and the last delivered Intent re-
 delivered to it again [...],

 indicating that only the last intent gets redelivered (which would be
 terrible in this use case), but they also say

 The service will [...] be re-started if it is not finished processing
 all Intents sent to it (and any such pending events will be delivered
 at the point of restart).

 Which is it now?

 Thanks,
 -Jonas

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Detect weather a phone is rooted or not

2010-11-01 Thread Tejas
Hi,

I would like to find out in my application if the phone is rooted or
not.
Is there any API that tests this ?

Regards,
Tejas

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Crash report for ActivityThread.createThumbnailBitmap

2010-11-01 Thread webmonkey
I got a crash report in my Android Market Publisher console for

android.app.ActivityThread.createThumbnailBitmap

I thought that function was not used and the system should never call
it, it not enabled in 2.3 is it?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Listing fat-finger-tapped overlays from a MapActivity?

2010-11-01 Thread TreKing
On Fri, Oct 29, 2010 at 1:42 PM, Mike Reed waterrock...@gmail.com wrote:

 If I add to a list in the ItemizedOverlay.onTap for each item clicked
 (returning false to not handle), the list owner has no way to know
 when the list is complete (last onTap has been called).


Who's the list owner?


 I tried onTouched in the MapView,


There is no onTouched function in MapView, AFAICT.


 Anybody else have an idea of how to solve this?


   1. Create a custom MapView that derives from the base and maintains this
   list of touched items.
   2. Override onTouchEvent, clear your list of touched items, and call
   super.onTouchEvent which calls onTap for all overlays
   3. Each overlay references the MapView that it's in and adds itself to
   that MapView's list of touched items in it's own onTap.
   4. After super.onTouchEvent completes, your MapView has a list of all
   touched overlays

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android 2.2 and SIM Toolkit

2010-11-01 Thread Adail Horst
Hi Guys,

   Someone know how to make a Toolkit for SIM to access SIM menu and use
multichip option on my droid (Nexus One) ?

[]s,
Adail

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to debug CursorIndexOutOfBoundsException with ListView?

2010-11-01 Thread Romain Guy
This kind of error usually happens when there's a concurrency issue in
the application.

On Mon, Nov 1, 2010 at 4:02 AM, Mariano Kamp mariano.k...@gmail.com wrote:
 Hi,
 I occasionally get exceptions like this one here:
 android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a
 size of 0
 at android.database.AbstractCursor.checkPosition(AbstractCursor.java:580)
 at
 android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:172)
 at
 android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:99)
 at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:194)
 at android.widget.CursorAdapter.getView(CursorAdapter.java:177)
 at android.widget.AbsListView.obtainView(AbsListView.java:1254)
 at android.widget.ListView.measureHeightOfChildren(ListView.java:1142)
 at android.widget.ListView.onMeasure(ListView.java:1055)
 at android.view.View.measure(View.java:7117)
 at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2929)
 at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
 at android.view.View.measure(View.java:7117)
 at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2929)
 at
 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:888)
 at android.widget.LinearLayout.measureVertical(LinearLayout.java:350)
 at android.widget.LinearLayout.onMeasure(LinearLayout.java:278)
 at android.view.View.measure(View.java:7117)
 at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2929)
 at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
 at android.view.View.measure(View.java:7117)
 at android.widget.LinearLayout.measureVertical(LinearLayout.java:464)
 at android.widget.LinearLayout.onMeasure(LinearLayout.java:278)
 at android.view.View.measure(View.java:7117)
 at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2929)
 at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
 at android.view.View.measure(View.java:7117)
 at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2929)
 at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
 at android.view.View.measure(View.java:7117)
 at android.view.ViewRoot.performTraversals(ViewRoot.java:866)
 at android.view.ViewRoot.handleMessage(ViewRoot.java:1718)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:123)
 at android.app.ActivityThread.main(ActivityThread.java:3948)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:521)
 at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
 at dalvik.system.NativeStart.main(Native Method)
 My own code isn't really touched in this stack trace and I am wondering what
 I might be doing wrong here?
 I suspect it is something about the coordination of redraw/invalidation
 events, but I don't know where to look exactly.
 When I update the model (the sqlitedatabase) I run the following code on the
 UI thread afterwards:

  void refreshUI() {

         ((BaseAdapter) getListAdapter()).notifyDataSetChanged();

         // the remaining calls are just included for completeness

         // they update different ui elements, but don't access the cursor in
 any way.

         updateButtons();

         updateControlPanelTitle();

         updateProgressBar();

     }

 Any other information I can provide?

 Cheers,

 Mariano

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Commands available for View Server class

2010-11-01 Thread Romain Guy
The ViewServer is not a public API and should NEVER be used as such.
It also won't be enabled on production devices (phones sold in stores,
for instance.) Do not rely on it. It's also not designed for real time
interaction and can be very slow. The protocol can also change without
warning in any version of Android.

On Mon, Nov 1, 2010 at 12:09 AM, manohar manohar...@gmail.com wrote:
 hello,

 i am working on some framework. This framework code will communicate
 with ViewServer class, to get the various details about views. Till
 now we could able find few commands which viewServer class recieves
 and responds. But we dont have complete set of command. If any one
 knows, could you please provide all the supported commands by this
 class and what exactly it returns?

 /Mano

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Google Maps API hidden maps and opengl

2010-11-01 Thread TreKing
On Fri, Oct 29, 2010 at 6:00 PM, Adam Hammer adamhamm...@gmail.com wrote:

 I get an error

 java.lang.RuntimeException: stub
   at com.google.android.maps.MapView.init (Unknown Source)


Is that really the entire error?

Regardless, read the MapView documentation. It explains where and how the
MapView can be used.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Adventures with LVL

2010-11-01 Thread Pent
 (this
 is because I am not entirely sure what would happen if the user copied
 to SD card and then got a refund).

Ah yes. I don't do any check at all till 26 hours has passed to avoid
the refund problem.

Pent

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can I create an aircraft-mounted-liked compass?

2010-11-01 Thread Maps.Huge.Info (Maps API Guru)
I'll bet it works a lot like electronic car compasses. The one I have
in my truck (GMC) is fairly accurate but once in a great while it goes
nuts. To recalibrate the thing the manual instructs to drive in a
circle slowly. If it still doesn't work right, drive in a figure 8
slowly. Don't know why it works but it does.

-John Coryat

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Streaming audio from windows c++ music studio application to android java application

2010-11-01 Thread Paul Griffiths
Hi, im in the process of creating a great music studio application on
windows pc. now I wish to stream live the audio output of my music
studio acoss the net to my android device.

Heres 2 screenshots of my music studio :
http://img31.imageshack.us/img31/2363/99841251.png
http://img535.imageshack.us/img535/7097/39138173.png

Im thinking about compessing the audio to ogg format and streaming it
to the android.

 Im a confidant programmer, but new to android and have not played
with java for a few years, but hey its east to pick up.

Any ideas how to do this? both the server and the client.

The server side will have to be c++ on windows.

Any ideas, links, or better, a tutorial would be great.

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Progress Dialog

2010-11-01 Thread piyush
--I am new to Android And i want to Show Two Progress Dialog one
after another??

--First i want to show when my image is load from internet, when this
process is done i have set A button on that Remote image.

--When i click that button i want Dialog for second time..(on
clicking button i have set video streaming code.. before video is
start i want to close that Dialog..)

Any Suggestion

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Independent Wallpapers on Multiple Screens

2010-11-01 Thread jexsk
Could it be possible to make each screen have a different wallpaper
while scrolling? I mean, taking as an example a case with three
screens, it will be necessary to set a x3 screen width wallpaper to
fit 1/3 on each screen, or directly setting different images for each
screen... so the scrolling make it visually a different wallpaper on
each screen rather than sliding the wallpaper a 50% each side.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: images in android

2010-11-01 Thread Aravind
You can have just one imageview and keep updating the view's image.

  public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ImageView o1 = (ImageView) findViewById(R.id.image);
o1.setOnClickListener(this);
}

public void onClick(View v)
 {
  switch (v.getId()) {
  case R.id.image:
   ImageView imageView = (ImageView) v;
   //Update view here. you can use any one of the setimage
functions
   imageView.setImageDrawable(Drawable drawable) OR
imageView.setImageBitmap(Bitmap bm)
   break;
}

All you need in your XML is an ImageView.

Cheers,
Aravind

On Oct 29, 1:33 am, alok upadhyay maddy.luck...@gmail.com wrote:
 hi nena!!!
  i am also trying to do something like this
 i am also having three images and i am trying something like this
 i have all the images in my drawable folder.till now i am successful to get
 all three imagebuttons on the screen.
 my code is something like this:

 package com.example.Trial;

 import android.app.Activity;
 import android.os.Bundle;
 import android.view.View;
 import android.view.View.OnClickListener;
 import android.widget.ImageButton;

 public class Trial extends Activity implements OnClickListener
 {
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState)
     {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         ImageButton o1 = (ImageButton) findViewById(R.id.btnSequence);
         o1.setOnClickListener(this);

         ImageButton o2 = (ImageButton) findViewById(R.id.btnVideo);
         o2.setOnClickListener(this);

         ImageButton o3 = (ImageButton) findViewById(R.id.btnInfo);
         o3.setOnClickListener(this);
     }
 �...@override
  public void onClick(View v)
  {
   switch (v.getId()) {
   case R.id.btnSequence:
    //here i want to write code so that a new intent open and on clicking
 this imagebutton a new image got opened
 //means on clicking this button a new image should be open in new screen

    break;
   case R.id.btnVideo:
    //here i want to write code so that a new intent open and on clicking
 this imagebutton a new video got opened
    break;

   case R.id.btnInfo:
    here i want to write code so that a new intent open and on clicking
 this imagebutton a new video got opened
    break;
   }

  }

 }

 i am thinking something like i have to call seperate activities after
 clicking on each button ! is it so??please correct me if i am wrong
 any kind of help will be appreciated!!!
 thanks









 On Fri, Oct 29, 2010 at 9:55 AM, nena joy nenaj...@gmail.com wrote:
  Hello,

   I want to display 3 images one by one from drawable folder.
  I did it using   seperate intents.Means when click the first image,itwill
  go the next intent and that loads second image and so on.
  As the no of images increasing it should be very complecated.
  So I want to show it in single intent.
  Any one have an idea please help.
  Thank you

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Thanks  Regards
 Alok Upadhyay
 9555758721

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Storing data on the SD card in Froyo - files deleted when upgrading

2010-11-01 Thread dipti seni
*www.ksrista.com* http://www.ksrista.com/
*search your life partner*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Unable to update packages with SDK Manager

2010-11-01 Thread Adam Sandler
Hello:

I'm completely frustrated with the Android SDK Manager.

I'm running Win 7 Home edition and have the SDK installed in it's own
top level directory on my D:\ drive.

When I run SDK Setup.exe from the command line (and I've even opened
the prompt as an administrator), I get an error when trying to update
the packages.

The SDK manager is telling me that I need to install the SDK Tools rev
7.  But when I accept the license, I get an error message stating:

A folder failed to be renamed or removed yada yada yada.  The
Installing Archives window says Failed to rename directory D:\android-
sdk-windows\tools to D:\android-sdk-windows\temp\ToolPackage.old01.

I looked here for help:

http://groups.google.com/group/android-developers/browse_thread/thread/4b784f3eb1e096fd/ecadfb28ce5daf5f?lnk=gstq=cannot+rename+folder#ecadfb28ce5daf5f

but the content there didn't help.

1.  I DO have my antivirus (AVG) disabled.

2.  I DO NOT have any other programs running -- just the command
prompt to launch the SDK Manager.

3.  I have even given the everyone group, for the D:\android-sdk-
windows\ folder, full control.

4.  I tried to rename the tools directory before starting the SDK
Manager but then I get an error that a batch file cannot be found when
I try to launch SDK Setup.exe.  G.

None of this works.

Suggestions how to get the package to update without error are greatly
appreciated.

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] button click

2010-11-01 Thread Jayu Sagar
Hi joy ,
what you can do is get all the text views in your activity by using the
Findviewbyid.

when clicked the button you can do get text from the First textView and
Second textview and keep Toggling it :) hope it was informative.



Jayu.




On Fri, Oct 29, 2010 at 3:56 PM, nena joy nenaj...@gmail.com wrote:

 Hello,

  I have an activity.Have an image view, 3 text views and a button.
 2 text views are hard coded.
 When click the button the other  shows first  value taken from an xml file
 (xml tag value).
 When click this again value of text view want to change.The value should be
 the second value from the xml file). and so on.
 But how this possible???

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android NDK - raw socket creation problem

2010-11-01 Thread Samy
I am creating a raw socket to sniff packets on android as below.

sock_raw = socket(AF_INET , SOCK_RAW , IPPROTO_TCP);
if(sock_raw  0)
{
fprintf(fs,Socket Error : %d %d\n,errno, EACCES);
if( errno == EACCES )
fprintf(fs,PERMISSIN DENIED\n);
return 1;
}

When I run the code on emulator, socket functions returns -1 and errno
has value 1 which means Operation not permitted. But the same code
runs fine on Ubuntu 10 under sudo.

By default, I have root access in emulator using adb shell. Also, My
App has below permissions
uses-permission android:name=android.permission.INTERNET /

uses-permission
android:name=android.permission.ACCESS_NETWORK_STATE /
uses-permission
android:name=android.permission.ACCESS_WIFI_STATE/

Can anyone help me to rectify this problem?
By the way, how to run an application in emulator under root?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Persisting preference data from onDialogClose in DialogPreference doesn't work

2010-11-01 Thread Martin Ström
In the API reference for the method onDialogClosed of DialogPreference
it says Called when the dialog is dismissed and should be used to
save data to the SharedPreferences.

My problem is that nothing gets persisted when I call persistString
from onDialogClose. I can listen to changes to my component and
persist data then, but of course the right way is to do it in
onDialogClose. But for some reason this doesn't work.

I'm using the emulator, API level for 2.1 update 2 in Ubuntu.

Any ideas?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] New to Android - Can't add Platform

2010-11-01 Thread James Thomas
I am running into errors while setting up my environment using Eclipse
Galileo. It appears to have loaded Eclipse and the SDK ok as I can see
the Android Icon in the About Eclipse and the Android SDK and AVD
Manager appear in the Window dropdown list.

But when trying to add platforms in Window-Preferences its says:
Location of the Android SDK has not been setup in preferences.

I selected Android on the left and tried to add: C:\Documents and
Settings\thomasji\My Documents\Android\android-sdk-windows
but nothing is populated in the list of SDK targets when I click
apply. Nothing happens.

Please help.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Query Content Provider from non-Activity class?

2010-11-01 Thread Argus
I have set up the model part of my application similar to the
MicroJobsDatabase file in the MicroJobs sample application.  As I like
how slick the structure is, I wanted to have all of my data in this
file, including data queried from content providers.

The way the MicroJobsDatabase class works is that it has several
cursor factories that are returned to an Activity that needs the
data.  This works great because the MicroJobsDatabase class extends
the SQLiteOpenHelper class.

What I would like to do is create content provider cursors in this
class in a similar fashion.  The caveat seems to be that content
resolvers and managed queries need to be called from an Activity
subclass.  So what is the common wisdom here?  Query the content
provider data in a separate Activity subclass and call it as a
startActivtyForResult and deal with it that way?  Or is there a way to
query a content provider from a class that does not extend Activity?

An example usage would be if I wanted to query the Contacts content
provider to give my app an arraylist of current contacts and then let
the user store user groups of those contacts in the SQLite
database.  In which case, the calling Activity would just request the
Contacts cursor created in the model class and then use it as the list
adapter.

All of this works fine if I call the content providers from an
Activity, but I would really lie to do that from my model class and
create a cursor factory for each content provider I query.

Any help would be greatly appreciated because I am kinda stumped here.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] SSLContext.getInstance(SSL) throws java.security.NosuchAlgorithmException: SSLContext SSL implementation not found

2010-11-01 Thread gato chlr
Hi list,

i want to implement a client for https, all in my localhost (in my apache,
it is configured to ask authentication), with a resource 
https://localhost:443/resources/resource1.xml;
the server works fine.

I have a client for desktop, and it works fine, the resources are consumed
using httpcomponents-client-4.0.3), i have readed that Android uses that
version.

This is the code of my client in Android (practically is the same of desktop
mapped to android) ,

in the line of   SSLContext sc = SSLContext.getInstance(TSL); the next
exception is thrown :

java.security.NosuchAlgorithmException: SSLContext SSL implementation not
found

Please does anybody know how to solve this issue?

i have tried with TSL and the exception continue.

import java.io.IOException;

import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;

import org.apache.http.HttpEntity;
import org.apache.http.HttpException;
import org.apache.http.HttpHost;
import org.apache.http.HttpRequest;
import org.apache.http.HttpRequestInterceptor;
import org.apache.http.HttpResponse;
import org.apache.http.auth.AuthScheme;
import org.apache.http.auth.AuthScope;
import org.apache.http.auth.AuthState;
import org.apache.http.auth.Credentials;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.CredentialsProvider;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.protocol.ClientContext;
import org.apache.http.impl.auth.BasicScheme;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.protocol.BasicHttpContext;
import org.apache.http.protocol.ExecutionContext;
import org.apache.http.protocol.HttpContext;
import org.apache.http.util.EntityUtils;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class androidNativeRest extends Activity {


/** Called when the activity is first created. */
public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

TextView tv = new TextView(this);

String res=nada;

DefaultHttpClient httpclient = new DefaultHttpClient();

httpclient.getCredentialsProvider().setCredentials(
new AuthScope(10.0.2.2, 443),
new UsernamePasswordCredentials(user, pass));

BasicHttpContext localcontext = new BasicHttpContext();

// Generate BASIC scheme object and stick it to the local
// execution context
BasicScheme basicAuth = new BasicScheme();
localcontext.setAttribute(preemptive-auth, basicAuth);

// Add as the first request interceptor
httpclient.addRequestInterceptor(new PreemptiveAuth(), 0);

HttpHost targetHost = new HttpHost(10.0.2.2, 443, https);

HttpGet httpget = new HttpGet(/resources/resource1.xml);

res+=executing request:  + httpget.getRequestLine()+/ln;
res+=to target:  + targetHost+/ln;
//--TRUST MANAGER---
//Create a trust manager that does not validate certificate chains
TrustManager[] trustAllCerts = new TrustManager[]{
new X509TrustManager() {
public java.security.cert.X509Certificate[]
getAcceptedIssuers() {
return null;
}
public void checkClientTrusted(
java.security.cert.X509Certificate[] certs, String
authType) {
}
public void checkServerTrusted(
java.security.cert.X509Certificate[] certs, String
authType) {
}
}
};
//install trust manager
try {

SSLContext sc = SSLContext.getInstance(TSL);

sc.init(null, trustAllCerts, new java.security.SecureRandom());


HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
} catch (Exception e) {
res+=error en trustmanage+e.toString()+ /ln;
}
//now we can access an https URL without having the certificate in
the truststore
//FINISH TRUST MANAGER
INSTALLATION-

 for (int i = 0; i  3; i++) {
try{
HttpResponse response = httpclient.execute(targetHost,
httpget, localcontext);
HttpEntity entity = response.getEntity();

res+= /ln;
res+=response.getStatusLine()+/ln;
if (entity != null) {
res+=Response content length:  +
entity.getContentLength()+/ln;
res+=EntityUtils.toString(entity)+/ln;
res = EntityUtils.toString(entity);
entity.consumeContent();

}
}catch(Exception e1){

[android-developers] Focus a key in on-screen keyboard

2010-11-01 Thread sjor
I wanna ask that how can i make a key in the virtual keyboard's user
interface focused(orange lighted maybe)? Which attribute or function
may i use for it while developing an on-screen keyboard? Waiting for
your help.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] use CSS to control the style of HTML in Android

2010-11-01 Thread Ellen
Hello,

I want to know how to use CSS to control the style of HTML.
it looks like anything defined in CSS does not apply to HTML.
here is the mytest.html

!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://
www.w3.org/TR/html4/loose.dtd
html
head
title TEST PAGE /title

link type=text/css rel=stylesheet media=only screen and (max-
device-width: 480px) href=android.css /
link rel=stylesheet href=android.css media=handheld type=text/
css /

/head
body
brbr
h1This header is 36 pt/h1
brbr
go to
brbr
/body
/html



here is the android.css:

style
@media handheld {
   body {
 background-color:yellow;
   }
 h1
{
font-size:35pt;
color:blue;

}
 }
 @media only screen and (max-device-width: 480px) {
   body {
  background-color:yellow;
   }
 h1
{
font-size:36pt;
color:blue;

}
 }
/style

Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can I create an aircraft-mounted-liked compass?

2010-11-01 Thread DanH
What do you tell the cop when he stops you?

On Nov 1, 12:06 pm, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 I'll bet it works a lot like electronic car compasses. The one I have
 in my truck (GMC) is fairly accurate but once in a great while it goes
 nuts. To recalibrate the thing the manual instructs to drive in a
 circle slowly. If it still doesn't work right, drive in a figure 8
 slowly. Don't know why it works but it does.

 -John Coryat

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] use CSS to control the style of HTML in Android

2010-11-01 Thread Kumar Bibek
http://techdroid.kbeanie.com/2010/10/android-webview-javascript-and-css.html

Hope that helps.

On Mon, Nov 1, 2010 at 6:56 PM, Ellen jzs...@gmail.com wrote:

 Hello,

 I want to know how to use CSS to control the style of HTML.
 it looks like anything defined in CSS does not apply to HTML.
 here is the mytest.html

 !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://
 www.w3.org/TR/html4/loose.dtd
 html
 head
 title TEST PAGE /title

 link type=text/css rel=stylesheet media=only screen and (max-
 device-width: 480px) href=android.css /
 link rel=stylesheet href=android.css media=handheld type=text/
 css /

 /head
 body
 brbr
 h1This header is 36 pt/h1
 brbr
 go to
 brbr
 /body
 /html



 here is the android.css:

 style
 @media handheld {
   body {
 background-color:yellow;
   }
  h1
 {
 font-size:35pt;
 color:blue;

 }
  }
  @media only screen and (max-device-width: 480px) {
   body {
  background-color:yellow;
   }
 h1
 {
 font-size:36pt;
 color:blue;

 }
  }
 /style

 Thanks in advance.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Local HTML files displayable application

2010-11-01 Thread KeiAiAm
Hello guys
Due to my little knowledge in Java programming, I've wondered if I'm
able to display local html files in my application?
(And when yes could you please give me a reference.)

Best Regards KeiAiAm

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] can we move file from sd card to apllication ?

2010-11-01 Thread nikki
i am developing an application and i am new to android. i would like
to know wheather i can import/move text file saved in sdcard of
android phone into the database of application developing. i would
like to know the code for doing this thing?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How can i move cursor in on-screen keyboard with external keyboard?

2010-11-01 Thread sjor
I am working to make an on-screen keyboard which can be visitable via
arrow(direction) keys of my external keyboard. I mean i wanna move
left, right, up and down in the on-screen keyboard's keys on its UI
with pressing arrow keys from my external(hardware) keyboard. The key
that cursor is on should be focused(orange lighted maybe), when i
press an arrow key from my external keyboard the focused key should be
changed and when i press enter from my external keyboard it should
be operated.(written to the screen etc.) How can i make this? Is there
any idea? How can i make virtual keyboard's keys visitable? It doesn't
look like moving around a matrix of buttons. Please, help me.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Menu in contacts

2010-11-01 Thread Евгений Григорьев
Hi all!

When you click on picture on the left of any contact - there is a
dialog, that shows some possible actions(like phone or write e-mail).
Set of actions is different from context menu or option menu.
Is it some standard widget, or is there any simple way to get such
dialog for custom list item?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] LVL advice in the Android Developer Blog

2010-11-01 Thread Zsolt Vasvari
Under the part Make your application temper-resistant Tim Bray
advises:

The most obvious mechanism is to use a lightweight hash function,
such as CRC32, and build a hash of your application’s code. You can
then compare this checksum with a known good value. You can find the
path of your application’s files by calling
context.GetApplicationInfo() — just be sure not to compute a checksum
of the file that contains your checksum! 

It's the last part I have a problem with.  How do I compute the CRC32
of the app that already contains the said CRC32?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] CSS in Android

2010-11-01 Thread Ellen
I want to know how to use CSS to control the style of HTML.
it looks like anything defined in CSS does not apply to HTML.
here is the mytest.html

!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://
www.w3.org/TR/html4/loose.dtd
html
head
title TEST PAGE /title

link type=text/css rel=stylesheet media=only screen and (max-
device-width: 480px) href=android.css /
link rel=stylesheet href=android.css media=handheld type=text/
css /

/head
body
brbr
h1This header is 36 pt/h1
brbr
go to
brbr
/body
/html



here is the android.css:

style
@media handheld {
   body {
 background-color:yellow;
   }
 h1
{
font-size:35pt;
color:blue;

}
 }
 @media only screen and (max-device-width: 480px) {
   body {
  background-color:yellow;
   }
 h1
{
font-size:36pt;
color:blue;

}
 }
/style

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] interactive notification?

2010-11-01 Thread jakob
Is it possible to insert buttons into a notification?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Streaming Audio Support on Android

2010-11-01 Thread Nicholas Campion
I am looking for a bit of help understanding the implications of the
'Android Supported Media Formats'[1].

I see that the AAC formats are only supported for decoding when using
3GPP or MPEG-4 container and that there is no support for raw AAC.

My question is this, I am working on a project which would require
playing audio from an aac audio stream from an http server.[2]  Not my
server, nothing I can change about that.  The supported formats seems to
suggest I should move to 'wrapping' my aac audio in either 3gp or mp4.

I am able to, with assistance from several tools, convert a sample of
the stations audio from aac to aac embedded in both 3gp and mp4
containers.  I'm not really clear on what is happening when I do this
conversion and if it would be possible to do this on the phone without
the assistance of one of these tools.  Not really sure where else to
reach out to with this as reviewing this mailing list and the internet
for a few days haven't really moved me forward.

I'll list what I think my options are, and maybe someone can chime in if
they think they can steer me in the right direction:
1. ) Figure out how to slip an mp4 or 3gp 'container' around the aac
audio stream using an internal proxy.
2. ) Obtain a aac license and do my own decoding or license a 3rd party
tool in the same way
3. ) Try to convert my client to use another audio format for their
radio station.
4. ) Provide a proxy service for the client where I capture the stream
and then convert it to 3gp/mp4 content and then stream that

Any help is appreciated.

[1] - http://developer.android.com/guide/appendix/media-formats.html
[2] - example: http://wnyc-wqxr-ice.streamguys.com:80/wqxr.aac

-- 
Nick Campion
Android Development and Release Pipeline
www.doapps.com

Also follow us at http://www.twitter.com/doapp
And fan us at http://www.facebook.com/DoApps
Plus our blog is here: http://www.doapps.com/blog/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] drag and drop between layouts

2010-11-01 Thread Slim
I want to have a scrollview with several images and the ability to
drop those images onto a layout beside the scrollview.  I can drag and
drop but only within the scrollview.  I can't use that because the
whole screen scrolls when the images scroll.  I have tried
implementing my own custom views via extending view thinking I could
capture the parent view but am no closer to a solution.  Any help
would be greatly appreciated!!!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Cannot Get to My Application in Market as a Developer

2010-11-01 Thread claytan...@sightlyinc.com
Hey all,

Something really strange happened today and I could really use some
help figuring it out. I believe its related to Google's SSO
infrastructure, and I don't really know how to contact Google to get
my application rescued.

I have a google apps account I used to create the application, its
claytantor at sightlyinc dot com not a f...@gmail.com account but its a
Google Apps account, so I used it to upload and distribute my
application. Today when I was using blogger my account said do you
want to use claytantor at sightlyinc dot com or claytantor at
sightlyinc dot com for this account? what kind of choice is that they
are both the same? Well my guess is that somehow I chose the one that
locks me out of my Android Market account because when I went to try
to upload a new version of my app it thinks I don't have an Android
Market account.

Paying the extra 20 bucks wouldn't bug me but there is a version of my
software out there that I cant access or manage now, and that *really*
bothers me. If I create a new account I will have two versions of mys
software floating around the new one and the old one that has been
stranded! Arrg I cant live with that.

It also doesn't feel good that I cant figure out how to contact google
directly.

Scared,

Clay

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] I want to distinguish why onPause() is called

2010-11-01 Thread Chungha Yun
Hi, all.
I really want to know how to distinguish what brings onPause() between
pressing Home Key or being hid by another activity for a moment.
I read the SDK document about activity life-cycle and found the following
sentence.
An example when
onPause()http://developer.android.com/reference/android/app/Activity.html#onPause()
is
called and not 
onSaveInstanceState(Bundle)http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)
is
when activity B is launched in front of activity A: the system may avoid
calling 
onSaveInstanceState(Bundle)http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)
on
activity A if it isn't killed during the lifetime of B since the state of
the user interface of A will stay intact.
but onSaveInstanceState() is always called. OTL.
Please help me.

-- 
Chungha Yun
blog : http://sozu.tistory.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: One process, two live Application objects?

2010-11-01 Thread Tim in Boulder
On Oct 31, 12:17 pm, Dianne Hackborn hack...@android.com wrote:
 On Sun, Oct 31, 2010 at 11:12 AM, Mark Murphy mmur...@commonsware.comwrote:

  On Sun, Oct 31, 2010 at 2:07 PM, Dianne Hackborn hack...@android.com
  wrote:
   As far as using Application to clean up statics -- this simply doesn't
   really make sense, for the reasons above.  For a legacy application with
   statics that can't be re-used again in the same process, your only choice
  is
   probably to just self-kill your process when the user leave the game.
  Wait, what? I was under the distinct impression we should not be
  killing processes this way.

 You should not be, but if you have a bunch of legacy code that can't cleanly
 work without doing so...  well, sometimes you need to compromise.  This does
 have other negative consequences, so nobody writing Android applications
 should do this.

 Games, though, games are sometimes so special.

Yes, and those special games sometimes rely on existing libraries that
a developer can't control. I just was made aware of this thread by
Mark; thanks for clarifying that what I'm doing is valid, if
undesirable. I can detect a restart when it happens (as I've described
on the NDK list), but the problem is that the client library has a lot
of state in a singleton and resetting it without breaking it might
be ... complex.

Honestly I'd rather find a way to fix the underlying static reset
issue(s), but I don't want to throw a lot of hours at it without
approval (being paid by the hour). And a kill of the app in onStop()
makes the problem go away; in onDestroy() it would be too late, since
the next instance has (typically) already been created by then. I may
spend a few hours to see if I can find any other relevant statics that
need cleaning up, but more than that and I'd need the client to tell
me they really care whether it's being done the right way.

On the plus side, it runs great on Android, and the client's happy.
Sometime in December there will be another popular iPhone game
released on Android, if all goes well, and it will be my first Android
release (of many, I hope!). :)

Tim

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to take an image using ACTION_IMAGE_CAPTURE, and not having it appear in the gallery

2010-11-01 Thread Anders Kjærgaard Hansen
Hi all

I am writing an application that uses the built-in camera activity for
taking pictures and sending them to a server along with some other
data.

Since our users will use this application in their jobs, I would like
the images taken, not to be available in the general gallery on the
phone.

I have tried some different approaches, with my currently implemented
solution is this:

Start the camera application using MediaStore.ACTION_IMAGE_CAPTURE
intent, and EXTRA_OUTPUT pointing to a an Uri on the SD card. The
following code is used:
imageUri = Uri.fromFile(new File(FotoDok.EXTERNALIMAGEDIR,
UUID.randomUUID() + .jpg));
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);
intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1);
startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);

In the folder the FotoDok.EXTERNALIMAGEDIR is pointing at, I have
placed a .nomedia file to disable media indexing.

The folder is placed at the sd card under Android/data/myPackage/images.

But the problem is that when using DDMS I can see that the camera
application leaves an identical image under e.g.
sdcard/DCIM/100MEDIA/IAMGE0283.jpg

And this image shows up in the gallery.

Are there any way to avoid images taken with the built-in camera
application showing up in the gallery. And here I would prefer a
general solution that works both on SE, HTC, Google, etc, devices.

I hope somebody out there have a solution for this.

Best regards
/Anders

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] intent filter/image

2010-11-01 Thread meakin
Hello,

I'm developing a game based on the images.
I would like when you select an image in the gallery, my application
appears in the list complete action using. and when I select my
application, it loads the image.
My question is in two stages:
- In the AndroidManifest.xml, I did:
...
intent-filter
action android:name=android.intent.action.VIEW /
category android:name=android.intent.category.DEFAULT /
data android:mimeType=image/png /
/ Intent-filter
...
it does not work.

but in my application, I created an intent:
Intent i = new Intent (Intent.ACTION_PICK,
android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);
i.setType (image / png);
i.putExtra (return-data, true);
startActivityForResult (i IMAGE_PICK);

I like to do something similar in the AndroidManifest.xml but how? can
we do?

- What is the name of the method that retrieves the selected image?
startActivityForResult? another?

Thank you in advance for any help

Meakin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] youtube player app

2010-11-01 Thread Hobbes
hi ,

developing a simple youtube player app (for fun). since flash is
supported, it is possible to develop a player , by hosting javascript
in app as described in
http://code.google.com/apis/youtube/js_api_reference.html
?

thanks
-hobbes

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to use bringchildtofront in List

2010-11-01 Thread TreKing
On Sat, Oct 30, 2010 at 11:55 AM, Dev Android devandroid1...@gmail.comwrote:

 Please suggest me how to use bringchildtofront in the listview of an
 activity.


Please explain what you're trying to do.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Enhancing text input for all apps

2010-11-01 Thread v6ak
Hello.
Is it possible to add e.g. an menu option for text inputs in all apps?
Vít Šesták AKA v6ak

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to XOR pixel values with Canvas

2010-11-01 Thread monstermunch
Hi,

I have a Bitmap object called A and a Bitmap object called B. I want
to produce a Bitmap object C that is produced by XORing the pixels
values from A against the pixel values from B. Specifically, the
integer pixel values should be combined using bitwise XOR.

The reason I want this is when transforming some bitmap from image A
to B, I want to produce an image of the differences C so that I can
convert B back to A by XORing C onto B.

I've tried drawing bitmap A onto B using a Paint object
with .setXferMode(PorterDuffXfermode(PorterDuff.Mode.XOR))) but this
does not perform a bitwise XOR on the pixel values as the alpha values
are treated as special cases as it says in the documentation (i.e.
XORing C onto B does not generate A when non-opaque pixels are used):

http://developer.android.com/reference/android/graphics/PorterDuff.Mode.html
PorterDuff.ModeXOR [Sa + Da - 2 * Sa * Da, Sc * (1 - Da) + (1
- Sa) * Dc]  

I tried variations of .setXfermode(new PixelXorXfermode(0)) but the
documentation says PixelXorXfermode does not consider the alpha values
at all.

Is there any efficient ways to do what I want here with API calls? If
there really isn't a XOR paint mode I can use, perhaps there are some
weird tricks I could use to do this.

The only method I can see is to use .copyPixelsToBuffer to copy A and
B into int arrays, XOR the arrays with a for loop, then copy the
pixels into C. This uses a lot of memory and could be done faster if
it was performed in-place by some native function. Or perhaps there
are smarter ways to do this?

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] glTexImage2D is too slow

2010-11-01 Thread 袁堂夫
Hi,how are you?
We use Opengl 2.0 to develop a video programme on android with nexus one.
We find that the fuction glTexImage2D is too slow,but we write a
shader programme accord to  the sample GL2JNILib.
I guess the GPU is not working, why it happened? how to fix it?
help me,please.Thank you very much.
--some important  code---
   VideoView(Context context)
   {
super(context);
   //   m_Activity=(hello)context;
m_AndroidHolder = getHolder();
m_AndroidHolder.addCallback(this);
m_AndroidHolder.setType(SurfaceHolder.SURFACE_TYPE_GPU);
m_AndroidHolder.setFormat(PixelFormat.RGB_565);
.
.
.}
--
 public void initEGL()
   {
   mEGL = (EGL10)EGLContext.getEGL();
   mGLDisplay = mEGL.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
   int[] curGLVersion = new int[2];
   mEGL.eglInitialize(mGLDisplay, curGLVersion);
   ConfigChooser configChooser=  new ConfigChooser(5, 6, 5, 0, 0, 0);
   mGLConfig = configChooser.chooseConfig(mEGL,mGLDisplay);
   mGLSurface = mEGL.eglCreateWindowSurface(mGLDisplay,
mGLConfig,m_View.m_AndroidHolder, null);
   int[] attrib_list = {0x3098, 2, EGL10.EGL_NONE };
   mGLContext = mEGL.eglCreateContext(mGLDisplay, mGLConfig,
EGL10.EGL_NO_CONTEXT, attrib_list);
   mEGL.eglMakeCurrent(mGLDisplay, mGLSurface, mGLSurface, mGLContext);
   }
--
   glActiveTexture ( GL_TEXTURE0 );
   glBindTexture ( GL_TEXTURE_2D, userData.textureId[0] );
   glUniform1i ( userData.samplerLocY, 0);
   glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
   glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
   glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S,
GL_CLAMP_TO_EDGE);
   glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T,
GL_CLAMP_TO_EDGE);
   glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, width, height, 0,
GL_LUMINANCE, GL_UNSIGNED_BYTE, pict-data[0]);

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Is it possible to use Window Media Service to Streaming Video on demand to Android?

2010-11-01 Thread Oattie
I am try to streaming video on demand from Window Media Service
( Window Server 2008 R2 ) to Android mobile. I searched for a while
but I can not find the solution.. Is it possible?

Any help would be appreciate
Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] make Surface View scrollable

2010-11-01 Thread UniPassau
Hallo.

In my project there are robots which explore an unknown area and this
should be shown in my android application as a map. I used a Surface
View and it works well but I have one problem, if the map gets larger
then the display I cannot scroll the Surface View to see the whole
map.

Has anyone any idea??

Thank you.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to use Opengl 2.0 on android?

2010-11-01 Thread 袁堂夫
how to do with the framebuffer and  renderbuffer?

when we develop on iphone the  function presentRenderbuffe  is
working.but on android ,how to display the renderbuffer?
 (![context presentRenderbuffer:GL_RENDERBUFFER])

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] android sdk

2010-11-01 Thread sunitha anandan
http://123maza.com/35/picture782/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Java and Android phones?

2010-11-01 Thread Carthaigh
The Dalvik JVM is not Java and the Dalvik byte code is not the same as
Java byte code. Are you trying to deploy native Java apps to the
phone? Check out the google developer site or just google Dalvik Java
lawsuit or Dalvik is not Java for some articles on the differences
and how Dalvik came about.

On Oct 29, 11:07 pm, kypriakos demet...@ece.neu.edu wrote:
 Hi all,

 some Android phones do not have Java installed on them - that's
 what their specs list. What does that mean? Isn't every app written
 for an Android phone developed for a java runtime? What do these
 phone lack?

 Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Apps interaction

2010-11-01 Thread Fabio GRANDE
Hi all.
I've seen a beta version of Navigator from Google.
Since I've read some Android's book, I know about intents and actions.

I'm wondering if there's a way to know, more generally, how to use a
particular application from others.

For instance, with Navigator I would add my own Point of Interest
taken from a web service, or dinamically build a trip.

Will this be possible ? Where I can find more documentation about
entry points of existing apps ?

Hope the question is clear enough.

Best Regards
FabioG

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Problem downloading files

2010-11-01 Thread Sakubo
Since I installed someapp (don't know which app did this) everytime I
try to download an MKV file on the default web browser it changes the
extension to TXT how can I fix this? thanks in advance.

Using: Xperia 10, Android OS 1.6

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Bluetooth Problem

2010-11-01 Thread Benni
Hi all,

I have got a problem. I wrote a Bluetooth app for J2me. It uses
btl2cap and the UUID btl2cap://
localhost:A55665EE9F9146109085C2055C888B39
How to use this UUID in Android? Some code examples would be nice.

Benni

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] [Feedback] Android Development Service: Mobile Application CMS

2010-11-01 Thread Sascha
I am an Android and iPhone developer myself and frequently had to
include some dynamically loaded content into different apps. Content
like a tip of the day, store locations of a retail chain, cocktail
recipes etc.

I think this is always way too much effort. I either have to create a
small web application with a database myself to manage and serve the
content in JSON or XML or configure a large open source CMS to do this
(which is a pain). And I have to host and maintain those systems,
which costs time and money.

My hosted solution is cheaper, flexible and allows developers to
configure many different data sets. Your own editors can manage the
content for these data sets and you can then easily load that content
into your mobile apps with JSON (with search and advanced queries).
You could also load the JSON into your website with JSONP or into a
desktop app, but this is currently not the focus.

Basically a CMS for non-HTML applications. I already developed a
prototype and a landing page for this service. Before I continue with
further development I would love to get some feedback from fellow
developers.

What do you think of this idea? Would you use it? I am looking forward
to your comments. Thanks.

http://storageroomapp.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] help with Handler class to update UI

2010-11-01 Thread QueryMan
Hi Everyone, I am hoping you can help me:

I need to update my ui for an android app and I'm trying to use the
Handler class to do it, using 
http://developer.android.com/resources/articles/timed-ui-updates.html
and the android developer resources Common Task for using Handlers
as guides.

Basically, I need something between the two - a timed update of the
user interface, but without a button. So here is the relevent code
that I am working on. All help is greatly appreciated.

public class Activity1 extends Activity {
[… variables]

final Handler mHandler = new Handler();

final Runnable mUpdateResults = new Runnable() {
public void run() {

UpdateDisplay();
mHandler.postDelayed(mUpdateResults, 200);
}
};


/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
[…]

startLongRunningOperation();

}


protected void startLongRunningOperation() {

Thread t = new Thread() {
public void run() {
 if (mStartTime == 0L) {
 mStartTime = System.currentTimeMillis();
 mHandler.postDelayed(mUpdateResults, 200);}
mHandler.post(mUpdateResults);
}
};
t.start();
}
Thanks again!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Hourglass

2010-11-01 Thread albertsmus
How can i display an hourglass while i try to load a new activity;
Thanks for help

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Problems with intent filters

2010-11-01 Thread Eros Pedrini
Dear all,
probably my problem is really silly, but I already spent two days
without any results :(

I'm writing a client application for an Italian social network (Meemi)
and I'd like to give the possibility to users to share their calendar
events via my client.
I noticed on my device (HTC Desire) that is possible to access to a
share chooser from the Calendar event list: in fact I can share via
email, sms, and bluetooth.
I'd like to add my client to the this sharing list: but I'm not able
to found the right intent filter to use.

Thanks in advance for the help.
Eros

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Playing default ringtone with SoundPool or MediaPlayer

2010-11-01 Thread Kyle
Apologies in advance for asking a question I should be able to figure
out, but I've been banging my head for hours on this and have
obviously got crossed wires in my brain.

How do I get the default ringtone to play? I've tried using SoundPool
(preferred method) and MediaPlayer to play it but I'm getting nowhere.
I've done so many dumb things, I'll just include the last fail. In the
following snippet:

String ringtone = Settings.System.DEFAULT_RINGTONE_URI.getPath();
SoundPool ringPhone = new SoundPool(1, AudioManager.STREAM_RING, 0);
int soundID =
ringPhone.load(Settings.System.DEFAULT_RINGTONE_URI.getPath(), 1);
ringPhone.play(soundID, 0.99f, 0.99f, 1, 0, 1.0f);

loads but plays nothing. When I display
Settings.System.DEFAULT_RINGTONE_URI.getPath(), it's returning /system/
ringtone

Anything that would get me pointed in the right direction would be
greatly appreciated. Thanks,

kyle

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


  1   2   3   >