[android-developers] How to update the Android SDK and AVD Manager on Eclipse?

2012-02-29 Thread Terry
When I try to update all installed packages - or see Available
packages, I get the following error message:

Failed to fetch URL 
https://dl-ssl.google.com/android/repository/addons_list.xml,
reason: File not found

Any suggestions on how to fix this problem?

Regards, Terry

-- 
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] onActivityResult never invoked under tab activity

2012-02-29 Thread MOHANAKRISHNAN
main.xml file:

http://schemas.android.com/apk/res/android”
android:orientation=”vertical”
android:layout_width=”fill_parent”
android:layout_height=”fill_parent” >




2. Add the following statements in bold to Activity2.java:
package net.learn2develop.Activities;
import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
import android.net.Uri;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class Activity2 extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity2);
//---get the OK button---
Button btn = (Button) findViewById(R.id.btn_OK);
//---event handler for the OK button---
btn.setOnClickListener(new View.OnClickListener()
{
public void onClick(View view) {
Intent data = new Intent();
//---get the EditText view---
EditText txt_username =
(EditText) findViewById(R.id.txt_username);
//---set the data to pass back---
data.setData(Uri.parse(
txt_username.getText().toString()));
setResult(RESULT_OK, data);
//---closes the activity---
finish();
}
});
}
}
3. Add the following statements in bold to the MainActivity.java file:
package net.learn2develop.Activities;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Window;
import android.view.KeyEvent;
import android.widget.Toast;
import android.content.Intent;
public class MainActivity extends Activity {
String tag = “Events”;
int request_Code = 1;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//---hides the title bar---
//requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.main);
Log.d(tag, “In the onCreate() event”);
}
public boolean onKeyDown(int keyCode, KeyEvent event)
{
if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER)
{
//startActivity(new Intent(“net.learn2develop.ACTIVITY2”));
//startActivity(new Intent(this, Activity2.class));
startActivityForResult(new Intent(
“net.learn2develop.ACTIVITY2”),
request_Code);
}
return false;
}
public void onActivityResult(int requestCode, int resultCode, Intent data)
{
if (requestCode == request_Code) {
if (resultCode == RESULT_OK) {
Toast.makeText(this,data.getData().toString(),
Toast.LENGTH_SHORT).show();
}
}
}
public void onStart() { //... }
public void onRestart() { //... }
public void onResume() { //... }
public void onPause() { //... }
public void onStop() { //... }
public void onDestroy() { //... }
}

-- 
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] onActivityResult never invoked under tab activity

2012-02-29 Thread vani reddy
no

On Thu, Mar 1, 2012 at 1:19 PM, MOHANAKRISHNAN  wrote:

> is it working now?
>
>
> On Thu, Mar 1, 2012 at 1:17 PM, vani reddy 
> wrote:
> > yes i have given the request code
> >
> > On Thu, Mar 1, 2012 at 1:13 PM, MOHANAKRISHNAN 
> wrote:
> >>
> >> import android.app.Activity;
> >> import android.os.Bundle;
> >> import android.util.Log;
> >> import android.view.Window;
> >> import android.view.KeyEvent;
> >> import android.widget.Toast;
> >> import android.content.Intent;
> >> public class MainActivity extends Activity {
> >> String tag = “Events”;
> >> int request_Code = 1;
> >> /** Called when the activity is first created. */
> >> @Override
> >> public void onCreate(Bundle savedInstanceState) {
> >> super.onCreate(savedInstanceState);
> >> //---hides the title bar---
> >> //requestWindowFeature(Window.FEATURE_NO_TITLE);
> >> setContentView(R.layout.main);
> >> Log.d(tag, “In the onCreate() event”);
> >> }
> >> public boolean onKeyDown(int keyCode, KeyEvent event)
> >> {
> >> if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER)
> >> {
> >> //startActivity(new Intent(“net.learn2develop.ACTIVITY2”));
> >> //startActivity(new Intent(this, Activity2.class));
> >> startActivityForResult(new Intent(
> >> “net.learn2develop.ACTIVITY2”),
> >> request_Code);
> >> }
> >> return false;
> >> }
> >> public void onActivityResult(int requestCode, int resultCode, Intent
> data)
> >> {
> >> if (requestCode == request_Code) {
> >> if (resultCode == RESULT_OK) {
> >> Toast.makeText(this,data.getData().toString(),
> >> Toast.LENGTH_SHORT).show();
> >> }
> >> }
> >> }
> >>
> >> activity 2
> >>
> >> public class Activity2 extends Activity {
> >> @Override
> >> public void onCreate(Bundle savedInstanceState) {
> >> super.onCreate(savedInstanceState);
> >> setContentView(R.layout.activity2);
> >> //---get the OK button---
> >> Button btn = (Button) findViewById(R.id.btn_OK);
> >> //---event handler for the OK button---
> >> btn.setOnClickListener(new View.OnClickListener()
> >> {
> >> public void onClick(View view) {
> >> Intent data = new Intent();
> >> //---get the EditText view---
> >> EditText txt_username =
> >> (EditText) findViewById(R.id.txt_username);
> >> //---set the data to pass back---
> >> data.setData(Uri.parse(
> >> txt_username.getText().toString()));
> >> setResult(RESULT_OK, data);
> >> //---closes the activity---
> >> finish();
> >> }
> >> });
> >> }
> >> }
> >>
> >> --
> >> 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
> >
> >
> >
> >
> > --
> > Regards,
> > Vani Reddy
> >
> > --
> > 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
>



-- 
Regards,
Vani Reddy

-- 
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: View height changes when image set as background by 1.25 times of the image height

2012-02-29 Thread MOHANAKRISHNAN
hi do this , first drag a txtview , then in properties go background
and select icon from drawable. then remove txt from the text view

On Thu, Mar 1, 2012 at 12:21 PM, moktarul anam  wrote:
> Reddy,
> hmm... do this way..
> in textview setbackground .. one xml file .. that file will be in drawable
> file
>
> and there u set background. Basically u add set background drawable xml
>
> Moktarul
>
>
>
>
> On Wednesday, 29 February 2012 17:21:40 UTC+5:30, Reddy wrote:
>>
>> Hi Moktarul,
>>
>> Still i am facing the same problem.
>>
>> Let me clarify my problem clearly.
>>
>> My .png height is 53px.
>> When png set as BG of TextView, and the textview properties are wrap
>> context, the height of the textview is becoming big.
>> When i set the textview height to 53px then the height of the TextView
>> is 53px.
>>
>> Please provide me solution if u have.
>>
>> Regards,
>> Murali
>>
>> On Feb 29, 4:35 pm, moktarul anam  wrote:
>> > hi Murali ,
>> > use  *android*:*scaleType*="*fitXY* "
>> > Moktarul
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Wednesday, 29 February 2012 16:58:35 UTC+5:30, Reddy wrote:
>> >
>> > > Hi,
>> >
>> > > I have a .png file. I set this as the background of a TextView and the
>> > > height and width of the TextView are wrap context. The ideal behavior
>> > > here is that the height and width of the textview should be of height
>> > > and width of the .png file.
>> >
>> > > But what i am getting is that size of text view is getting increased
>> > > 1.25 times of the image size.
>> > > If any has solved this issue, please help me.
>> >
>> > > Thanks in advance.
>> >
>> > > Regards,
>> > > Murali
>
> --
> 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


Re: [android-developers] onActivityResult never invoked under tab activity

2012-02-29 Thread MOHANAKRISHNAN
is it working now?


On Thu, Mar 1, 2012 at 1:17 PM, vani reddy  wrote:
> yes i have given the request code
>
> On Thu, Mar 1, 2012 at 1:13 PM, MOHANAKRISHNAN  wrote:
>>
>> import android.app.Activity;
>> import android.os.Bundle;
>> import android.util.Log;
>> import android.view.Window;
>> import android.view.KeyEvent;
>> import android.widget.Toast;
>> import android.content.Intent;
>> public class MainActivity extends Activity {
>> String tag = “Events”;
>> int request_Code = 1;
>> /** Called when the activity is first created. */
>> @Override
>> public void onCreate(Bundle savedInstanceState) {
>> super.onCreate(savedInstanceState);
>> //---hides the title bar---
>> //requestWindowFeature(Window.FEATURE_NO_TITLE);
>> setContentView(R.layout.main);
>> Log.d(tag, “In the onCreate() event”);
>> }
>> public boolean onKeyDown(int keyCode, KeyEvent event)
>> {
>> if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER)
>> {
>> //startActivity(new Intent(“net.learn2develop.ACTIVITY2”));
>> //startActivity(new Intent(this, Activity2.class));
>> startActivityForResult(new Intent(
>> “net.learn2develop.ACTIVITY2”),
>> request_Code);
>> }
>> return false;
>> }
>> public void onActivityResult(int requestCode, int resultCode, Intent data)
>> {
>> if (requestCode == request_Code) {
>> if (resultCode == RESULT_OK) {
>> Toast.makeText(this,data.getData().toString(),
>> Toast.LENGTH_SHORT).show();
>> }
>> }
>> }
>>
>> activity 2
>>
>> public class Activity2 extends Activity {
>> @Override
>> public void onCreate(Bundle savedInstanceState) {
>> super.onCreate(savedInstanceState);
>> setContentView(R.layout.activity2);
>> //---get the OK button---
>> Button btn = (Button) findViewById(R.id.btn_OK);
>> //---event handler for the OK button---
>> btn.setOnClickListener(new View.OnClickListener()
>> {
>> public void onClick(View view) {
>> Intent data = new Intent();
>> //---get the EditText view---
>> EditText txt_username =
>> (EditText) findViewById(R.id.txt_username);
>> //---set the data to pass back---
>> data.setData(Uri.parse(
>> txt_username.getText().toString()));
>> setResult(RESULT_OK, data);
>> //---closes the activity---
>> finish();
>> }
>> });
>> }
>> }
>>
>> --
>> 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
>
>
>
>
> --
> Regards,
> Vani Reddy
>
> --
> 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


Re: [android-developers] onActivityResult never invoked under tab activity

2012-02-29 Thread vani reddy
yes i have given the request code

On Thu, Mar 1, 2012 at 1:13 PM, MOHANAKRISHNAN  wrote:

> import android.app.Activity;
> import android.os.Bundle;
> import android.util.Log;
> import android.view.Window;
> import android.view.KeyEvent;
> import android.widget.Toast;
> import android.content.Intent;
> public class MainActivity extends Activity {
> String tag = “Events”;
> int request_Code = 1;
> /** Called when the activity is first created. */
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> //---hides the title bar---
> //requestWindowFeature(Window.FEATURE_NO_TITLE);
> setContentView(R.layout.main);
> Log.d(tag, “In the onCreate() event”);
> }
> public boolean onKeyDown(int keyCode, KeyEvent event)
> {
> if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER)
> {
> //startActivity(new Intent(“net.learn2develop.ACTIVITY2”));
> //startActivity(new Intent(this, Activity2.class));
> startActivityForResult(new Intent(
> “net.learn2develop.ACTIVITY2”),
> request_Code);
> }
> return false;
> }
> public void onActivityResult(int requestCode, int resultCode, Intent data)
> {
> if (requestCode == request_Code) {
> if (resultCode == RESULT_OK) {
> Toast.makeText(this,data.getData().toString(),
> Toast.LENGTH_SHORT).show();
> }
> }
> }
>
> activity 2
>
> public class Activity2 extends Activity {
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.activity2);
> //---get the OK button---
> Button btn = (Button) findViewById(R.id.btn_OK);
> //---event handler for the OK button---
> btn.setOnClickListener(new View.OnClickListener()
> {
> public void onClick(View view) {
> Intent data = new Intent();
> //---get the EditText view---
> EditText txt_username =
> (EditText) findViewById(R.id.txt_username);
> //---set the data to pass back---
> data.setData(Uri.parse(
> txt_username.getText().toString()));
> setResult(RESULT_OK, data);
> //---closes the activity---
> finish();
> }
> });
> }
> }
>
> --
> 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
>



-- 
Regards,
Vani Reddy

-- 
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] onActivityResult never invoked under tab activity

2012-02-29 Thread MOHANAKRISHNAN
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Window;
import android.view.KeyEvent;
import android.widget.Toast;
import android.content.Intent;
public class MainActivity extends Activity {
String tag = “Events”;
int request_Code = 1;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//---hides the title bar---
//requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.main);
Log.d(tag, “In the onCreate() event”);
}
public boolean onKeyDown(int keyCode, KeyEvent event)
{
if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER)
{
//startActivity(new Intent(“net.learn2develop.ACTIVITY2”));
//startActivity(new Intent(this, Activity2.class));
startActivityForResult(new Intent(
“net.learn2develop.ACTIVITY2”),
request_Code);
}
return false;
}
public void onActivityResult(int requestCode, int resultCode, Intent data)
{
if (requestCode == request_Code) {
if (resultCode == RESULT_OK) {
Toast.makeText(this,data.getData().toString(),
Toast.LENGTH_SHORT).show();
}
}
}

activity 2

public class Activity2 extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity2);
//---get the OK button---
Button btn = (Button) findViewById(R.id.btn_OK);
//---event handler for the OK button---
btn.setOnClickListener(new View.OnClickListener()
{
public void onClick(View view) {
Intent data = new Intent();
//---get the EditText view---
EditText txt_username =
(EditText) findViewById(R.id.txt_username);
//---set the data to pass back---
data.setData(Uri.parse(
txt_username.getText().toString()));
setResult(RESULT_OK, data);
//---closes the activity---
finish();
}
});
}
}

-- 
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: sip demo

2012-02-29 Thread Jagruti Sangani
Hello,
I am using  sip demo its work perfectly in Emulator but its not work
in mobile.That means in mobile application will load but user
registation not occure.There is internet is on in mobile although the
reigistarion is not done?So what can i do for that plz reply me on
jagruti.sang...@inextrix.com

On Jan 31, 6:30 pm, zelenooq  wrote:
> Emulator suport SIP but You have to do 
> this:http://code.google.com/p/android/issues/detail?id=13037
>
> Tablet suport SIP but only if You are wireless connected.
>
> On Jan 30, 10:56 am, Jagruti Sangani 
> wrote:
>
>
>
>
>
>
>
> > hello,
> > i have used the sip demo which was 
> > onhttp://developer.android.com/guide/topics/network/sip.html
> > link.but i got sipmanager as null result.and also api and voip support
> > result me as false.i m using android 4.0.3 api 15 and try to call from
> > emulator to asterisk.but not work bcz of may be manager as null.so
> > reply me as soon as posible.

-- 
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]

2012-02-29 Thread moutaz al-azab
Hi Everyone,

I am trying to install Android online banking application in the Emulator.
unfortunately I couldn't find any apps, can anyone help to find online
applications?
2-Also How can I install application from the Android market in the
Emulator. Is it possible to install application from the Android market
without having mobile device?
Who can Help?

Cheers,
Mo

-- 
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] onActivityResult never invoked under tab activity

2012-02-29 Thread MOHANAKRISHNAN
did u gave the request code?


On Thu, Mar 1, 2012 at 12:25 PM, vani reddy  wrote:
> Hi friends,,
> In my tabactiviy i am doing a startActivityForResult from ActivityA which is
> under activity group to a new class ActivityB which is not under
> Tabactivity,
> From ActivityB when i do setResult(RESULT_OK,intent); finish();
> onActivityResult is never invoked in ActivityA.
> It is not working.
>
> I referred this link but did not understand much .
> http://stackoverflow.com/questions/2497205/how-to-return-a-result-startactivityforresult-from-a-tabhost-activity
>
> --
> Regards,
> Vani Reddy
>
> --
> 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


Re: [android-developers] switching between api level targets in eclipse (solved)

2012-02-29 Thread Ray Tayek

At 06:56 PM 2/29/2012, you wrote:

At 06:03 PM 2/29/2012, you wrote:
On Wed, Feb 29, 2012 at 7:05 PM, Ray Tayek 
<rta...@ca.rr.com> wrote:
sorry, my bad. it is uses the 2.3.3 avd even though the 4.0.3 
target is checked in eclipse. so it seems to be stuck using the 2.3.3 target.



Your build target and AVDs are two separate things.


ok.

The build target specifies which version of the platform you are 
building against. This is usually the latest.
The AVD defines a configurable runtime environment to test your app 
against. You need to create a 4.0.3 AVD and choose it when launching your app.


i have both. i created the 4.0.3 first.

how do i tell eclipse to use the 4.0.3 one?


this under run configurations.

thanks


---
co-chair http://ocjug.org/

--
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] onActivityResult never invoked under tab activity

2012-02-29 Thread vani reddy
Hi friends,,
In my tabactiviy i am doing a startActivityForResult from ActivityA which
is under activity group to a new class ActivityB which is not under
Tabactivity,
>From ActivityB when i do setResult(RESULT_OK,intent); finish();
onActivityResult is never invoked in ActivityA.
It is not working.

I referred this link but did not understand much .
http://stackoverflow.com/questions/2497205/how-to-return-a-result-startactivityforresult-from-a-tabhost-activity

-- 
Regards,
Vani Reddy

-- 
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: View height changes when image set as background by 1.25 times of the image height

2012-02-29 Thread moktarul anam
Reddy, 
hmm... do this way..
in textview setbackground .. one xml file .. that file will be in drawable 
file 

and there u set background. Basically u add set background drawable xml 

Moktarul 




On Wednesday, 29 February 2012 17:21:40 UTC+5:30, Reddy wrote:
>
> Hi Moktarul, 
>
> Still i am facing the same problem. 
>
> Let me clarify my problem clearly. 
>
> My .png height is 53px. 
> When png set as BG of TextView, and the textview properties are wrap 
> context, the height of the textview is becoming big. 
> When i set the textview height to 53px then the height of the TextView 
> is 53px. 
>
> Please provide me solution if u have. 
>
> Regards, 
> Murali 
>
> On Feb 29, 4:35 pm, moktarul anam  wrote: 
> > hi Murali , 
> > use  *android*:*scaleType*="*fitXY* " 
> > Moktarul 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Wednesday, 29 February 2012 16:58:35 UTC+5:30, Reddy wrote: 
> > 
> > > Hi, 
> > 
> > > I have a .png file. I set this as the background of a TextView and the 
> > > height and width of the TextView are wrap context. The ideal behavior 
> > > here is that the height and width of the textview should be of height 
> > > and width of the .png file. 
> > 
> > > But what i am getting is that size of text view is getting increased 
> > > 1.25 times of the image size. 
> > > If any has solved this issue, please help me. 
> > 
> > > Thanks in advance. 
> > 
> > > Regards, 
> > > Murali

-- 
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: Can you give me the answer...about 'Unable to stop activity'...

2012-02-29 Thread moktarul anam
Hi 

This issue is coming because of media player if ur see 


02-29 21:19:31.765: E/AndroidRuntime(5374): Caused by: 
*java.lang.**IllegalStateException* 

02-29 21:19:31.765: E/AndroidRuntime(5374): at 
*android.media.MediaPlayer*._stop(Native Method) 

02-29 21:19:31.765: E/AndroidRuntime(5374): at 
*android.media.MediaPlayer.**stop*(MediaPlayer.java:964) 


this is basically memory leak issue.
http://code.google.com/p/android/issues/detail?id=957 
http://stackoverflow.com/questions/7089201/android-media-player-returns-illegalstateexception
 
http://stackoverflow.com/questions/4445663/mediaplayer-prepare-is-throwing-an-illegalstateexception-when-playing-m4a-file
 

this s common issue in  android .. just go through these link and will 
solve ur problem 

Enjoy 
Moktarul Anam 


On Wednesday, 29 February 2012 18:08:17 UTC+5:30, Jae-young Yun wrote:
>
> Logcat 
>
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): 
> java.lang.RuntimeException: Unable to stop activity 
> {com.android.sinsunby/com.android.sinsunby.SevenActivity}: 
> java.lang.IllegalStateException 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> android.app.ActivityThread.performDestroyActivity(ActivityThread.java: 
> 3607) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> android.app.ActivityThread.handleDestroyActivity(ActivityThread.java: 
> 3673) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> android.app.ActivityThread.access$2900(ActivityThread.java:125) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> android.os.Handler.dispatchMessage(Handler.java:99) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> android.os.Looper.loop(Looper.java:123) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> android.app.ActivityThread.main(ActivityThread.java:4627) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> java.lang.reflect.Method.invokeNative(Native Method) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> java.lang.reflect.Method.invoke(Method.java:521) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> com.android.internal.os.ZygoteInit 
> $MethodAndArgsCaller.run(ZygoteInit.java:858) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> dalvik.system.NativeStart.main(Native Method) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): Caused by: 
> java.lang.IllegalStateException 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> android.media.MediaPlayer._stop(Native Method) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> android.media.MediaPlayer.stop(MediaPlayer.java:964) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> com.android.sinsunby.SevenActivity.onStop(SevenActivity.java:236) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> android.app.Instrumentation.callActivityOnStop(Instrumentation.java: 
> 1171) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> android.app.Activity.performStop(Activity.java:3857) 
>
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at 
> android.app.ActivityThread.performDestroyActivity(ActivityThread.java: 
> 3602) 
>
> i don't know why this happen,,,

-- 
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: Re : DOMParser

2012-02-29 Thread moktarul anam

Hi 

i.putExtra(name,name); 
 this will me 
i.putExtra("name",name);

Enjoy 
Moktarul anam 

 


On Thursday, 1 March 2012 10:08:17 UTC+5:30, vivek elangovan wrote:
>
> Hi members,
> Using DOMParser i m able to retrieve XML data from my 
> database.Now i need to pass the "name" which i retrieved  to other class 
> using intenet,but i m not able to read it here is my code :
>
>  void parseByDOM(String response) throws ParserConfigurationException, 
> SAXException, IOException {//response is ur xml as string 
> DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
> DocumentBuilder db = dbf.newDocumentBuilder();
> Document doc = db.parse(new InputSource(new 
> StringReader(response)));
> // normalize the document
> doc.getDocumentElement().normalize();
> // get the root node
> NodeList nodeList = doc.getElementsByTagName("user");
> Node node=nodeList.item(0);
> // the  node has three child nodes
> for (int i = 0; i < node.getChildNodes().getLength(); i++) {
> Node temp=node.getChildNodes().item(i);
> if(temp.getNodeName().equalsIgnoreCase("name")){
>  String name = temp.getTextContent();
>  System.out.println("name :"+name);
>
> }
> else if(temp.getNodeName().equalsIgnoreCase("mail")){
>  String mail=temp.getTextContent();
> }
> else if(temp.getNodeName().equalsIgnoreCase("phno")){
>  String phno=temp.getTextContent();
> }
>
> }
> 
> Intent i = new Intent(getApplicationContext(), test.class);
> i.putExtra(name,name);
> startActivity(i);
>}
>
>
> and in my test.java i m using like this :
>
> name.setText(getIntent().getStringExtra("name"));
>
>

-- 
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: Android widget: dinamically list from own combiled string (as template)

2012-02-29 Thread moktarul anam
hi Stan, 
its not clear... can u send me ur sample template ir images ? or can u 
clearly explain 

Moktarul 


On Wednesday, 29 February 2012 18:10:03 UTC+5:30, Stan Prihodko wrote:
>
> HI,
>
> I'm now develop my first widget (not application) and I want to generate 
> dynamically strings, there each string should be as: 
> "image(left)+text(left)+text(right)".
> I has been prepared this string in layout,  and I want to use my 
> template-string as "template" to generate all strings a few times, as list. 
> But I can't understood how it do.
>
> Could you please explain how do correct my idea? 
> (Or may be key words to search in google...)
>
> Thanks.
>
>
>
On Wednesday, 29 February 2012 18:10:03 UTC+5:30, Stan Prihodko wrote:
>
> HI,
>
> I'm now develop my first widget (not application) and I want to generate 
> dynamically strings, there each string should be as: 
> "image(left)+text(left)+text(right)".
> I has been prepared this string in layout,  and I want to use my 
> template-string as "template" to generate all strings a few times, as list. 
> But I can't understood how it do.
>
> Could you please explain how do correct my idea? 
> (Or may be key words to search in google...)
>
> Thanks.
>
>
>
On Wednesday, 29 February 2012 18:10:03 UTC+5:30, Stan Prihodko wrote:
>
> HI,
>
> I'm now develop my first widget (not application) and I want to generate 
> dynamically strings, there each string should be as: 
> "image(left)+text(left)+text(right)".
> I has been prepared this string in layout,  and I want to use my 
> template-string as "template" to generate all strings a few times, as list. 
> But I can't understood how it do.
>
> Could you please explain how do correct my idea? 
> (Or may be key words to search in google...)
>
> Thanks.
>
>
>
On Wednesday, 29 February 2012 18:10:03 UTC+5:30, Stan Prihodko wrote:
>
> HI,
>
> I'm now develop my first widget (not application) and I want to generate 
> dynamically strings, there each string should be as: 
> "image(left)+text(left)+text(right)".
> I has been prepared this string in layout,  and I want to use my 
> template-string as "template" to generate all strings a few times, as list. 
> But I can't understood how it do.
>
> Could you please explain how do correct my idea? 
> (Or may be key words to search in google...)
>
> 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] Sip Demo run problem on samsung galaxy Y 2.3.6

2012-02-29 Thread Jagruti Sangani
Hello,

I am using the SIP demo example from the link "developer.android.com/
resources/samples/SipDemo/index.html".It is work perfectly on emulator
but when i plugin the samsung galaxy Y 2.3.6 with pc and try to run on
mobile then user not registered in that and also the manager is come
as null.Internet in mobile is on but still registration of user not
occure in that.whle in emulator run then all things work perfectly.So
can anybody know what is the problem ?Why it is not run in mobile?Is
there any require to run on phone.

-- 
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: How to send DTMF?

2012-02-29 Thread Jagruti Sangani
Thanks but it is now working, no need to use this class.just i need to dtmf
coed like for * 10 and for  # 11.

On Wed, Feb 29, 2012 at 8:34 PM, santhosh b wrote:

> Hi,
>
> use below int  Constants ToneGenerator class in android api
>
> TONE_DTMF_Pinstead
>  of  key #
>
> TONE_DTMF_Sinstead
>  of  key *
>
>
> may help you refer below link
>
> http://developer.android.com/reference/android/media/ToneGenerator.html
>
> Thanks,
> Santhosh.
>
>
>
>
> On Fri, Feb 24, 2012 at 12:03 PM, Jagruti Sangani <
> jagruti.sang...@inextrix.com> wrote:
>
>> hello all
>> I want to send dtmf in android.I had use the call.sendDtmf(2).its
>> working fine but i want to send * and # as dtmf.when i sen d * or # in
>> send Dtmf then application will close.Can anybody know how to send *
>> and # as dtmf.actually call.sendDtmf(Int var); this is only send
>> integer data.so i have make the digital Ascii code for * and # and
>> then try to send but this is not send more than one digit at the same
>> time like 123 you can not send.So any idea about that how to sned *
>> and #.
>>
>> --
>> 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

-- 
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: Mute button in call

2012-02-29 Thread Jagruti Sangani
Ok, now you had mute the call and whenever you want to comeback from mute
that means not mute at that time you do just reverse process of this.That
means first check is it mute if yes then make  mAudioManager.
>
> setMicrophoneMute(false);

I have not tried but it might be working.


On Wed, Feb 29, 2012 at 9:51 PM, brian lee  wrote:

> Here is the code that I am using mute within a broadcast receiver to
> capture the button:
> if(inCall==true){
>mAudioManager =
> (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
>if(mAudioManager.isMicrophoneMute()==true){
>Log.v(LOG_TAG, "Unmuting Mic");
>Toast.makeText(context, "Mic Unmuted",
> Toast.LENGTH_LONG).show();
>
>mAudioManager.setMicrophoneMute(false);
>
>
>}
>else{
>
>Log.v(LOG_TAG, "Muting Mic");
>mAudioManager.setMicrophoneMute(true);
>Toast.makeText(context, "Mic Muted",
> Toast.LENGTH_LONG).show();
>
>}
>
> Let me know if you need any more code to understand what I am doing,
> but the above code is muting the call, just not updating the mute
> button in the phone app.
>
> -Brian
>
>
> On Feb 28, 11:24 pm, Jagruti Sangani 
> wrote:
> > please put the code then and then its posssible bcz if we make the mute
> the
> > call then also change the state of call.
> >
> >
> >
> >
> >
> >
> >
> > On Tue, Feb 28, 2012 at 2:02 AM, brian lee  wrote:
> > > I am trying to have a app mute the call when the camera button is
> > > pressed.
> >
> > > I have that part of the code working, but I can not for the life of me
> > > figure out if there is a way to change the state of the mute button in
> > > the call so you know that it is currently muted. Anyone know how to do
> > > that?
> >
> > > -Brian
> >
> > > --
> > > 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
>

-- 
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 "flick" using monkeryrunner? not just "drag".

2012-02-29 Thread mQdg
I am trying to automatically scroll the browser by "flicking". So far,
I can do scrolling by using "drag" event.
I appreciate if you can give me hints to accomplish this.

-- 
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] Application Licensing for 7 days trial period in Android

2012-02-29 Thread Prince Kumar
Where i have to change in the Server Managed Policy class so that it
works only for 7 days trial and after that user have to buy the app
from android market place?

Thanks & Regards,
Prince

-- 
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 : DOMParser

2012-02-29 Thread vivek elangovan
Hi members,
Using DOMParser i m able to retrieve XML data from my 
database.Now i need to pass the "name" which i retrieved  to other class 
using intenet,but i m not able to read it here is my code :

 void parseByDOM(String response) throws ParserConfigurationException, 
SAXException, IOException {//response is ur xml as string 
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(new InputSource(new 
StringReader(response)));
// normalize the document
doc.getDocumentElement().normalize();
// get the root node
NodeList nodeList = doc.getElementsByTagName("user");
Node node=nodeList.item(0);
// the  node has three child nodes
for (int i = 0; i < node.getChildNodes().getLength(); i++) {
Node temp=node.getChildNodes().item(i);
if(temp.getNodeName().equalsIgnoreCase("name")){
 String name = temp.getTextContent();
 System.out.println("name :"+name);

}
else if(temp.getNodeName().equalsIgnoreCase("mail")){
 String mail=temp.getTextContent();
}
else if(temp.getNodeName().equalsIgnoreCase("phno")){
 String phno=temp.getTextContent();
}

}

Intent i = new Intent(getApplicationContext(), test.class);
i.putExtra(name,name);
startActivity(i);
   }


and in my test.java i m using like this :

name.setText(getIntent().getStringExtra("name"));

-- 
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] switching between api level targets in eclipse

2012-02-29 Thread TreKing
On Wed, Feb 29, 2012 at 8:56 PM, Ray Tayek  wrote:

> how do i tell eclipse to use the 4.0.3 one?


The Debug tool bar icon has a dropdown, at the bottom is an entry for
"Debug Configurations". Open that, select your application, the select the
Target tab, and change "Automatic" to "Manual".

Or, launch the AVD first, then launch the app to debug - it should choose
the open AVD.

-
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] Can you give me the answer...about 'Unable to stop activity'...

2012-02-29 Thread TreKing
On Wed, Feb 29, 2012 at 6:38 AM, Jae-young Yun  wrote:

> i don't know why this happen,,,
>

Step 1, read your stack track "Cause by" line.


> 02-29 21:19:31.765: E/AndroidRuntime(5374): Caused by:
> java.lang.IllegalStateException
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at
> android.media.MediaPlayer._stop(Native Method)
> 02-29 21:19:31.765: E/AndroidRuntime(5374): at android.media.*
> MediaPlayer.**stop*(MediaPlayer.java:964)
>

Step 2, read the documentation to see why that method would throw that
exception.
http://developer.android.com/reference/android/media/MediaPlayer.html#stop%28%29

-
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] Android widget: dinamically list from own combiled string (as template)

2012-02-29 Thread TreKing
On Wed, Feb 29, 2012 at 6:40 AM, Stan Prihodko wrote:

> Could you please explain how do correct my idea?


Your idea is not very clear. You should try to clarify.

-
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] switching between api level targets in eclipse

2012-02-29 Thread Ray Tayek

At 06:03 PM 2/29/2012, you wrote:
On Wed, Feb 29, 2012 at 7:05 PM, Ray Tayek 
<rta...@ca.rr.com> wrote:
sorry, my bad. it is uses the 2.3.3 avd even though the 4.0.3 target 
is checked in eclipse. so it seems to be stuck using the 2.3.3 target.



Your build target and AVDs are two separate things.


ok.

The build target specifies which version of the platform you are 
building against. This is usually the latest.
The AVD defines a configurable runtime environment to test your app 
against. You need to create a 4.0.3 AVD and choose it when launching your app.


i have both. i created the 4.0.3 first.

how do i tell eclipse to use the 4.0.3 one?

thanks

---
co-chair http://ocjug.org/

--
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] Disable window or screen resize when soft keyboard is displayed

2012-02-29 Thread tsukishiro yamazaki
Hi,

I am working on a customized IME. Basically, I want to create a
transparent keyboard (similar to Tranparent Keyboard app on the
market). I want my IME to be on top of the UI or application behind
it. So I really don't want the window or screen to resize when the
keyboard is displayed. Does anyone know how to disable window or
screen resizing for IMEs?

Please offer suggestions,
Thanks and best regards,
tsukishiro

-- 
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] Android Market - Test Marketing

2012-02-29 Thread TreKing
2012/2/29 JJ B 

> please clarify if this also works with the full paid versions if you know)


Paid apps will show that an update is available, but the user will not be
able to update it if they have not paid for it via the Android Market.

This is easily evidenced by getting an app on the Amazon Appstore that is
then abandoned there and updated on the Android Market instead.

-
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] switching between api level targets in eclipse

2012-02-29 Thread TreKing
On Wed, Feb 29, 2012 at 7:05 PM, Ray Tayek  wrote:

> sorry, my bad. it is uses the 2.3.3 avd even though the 4.0.3 target is
> checked in eclipse. so it seems to be stuck using the 2.3.3 target.


Your build target and AVDs are two separate things.
The build target specifies which version of the platform you are building
against. This is usually the latest.
The AVD defines a configurable runtime environment to test your app
against. You need to create a 4.0.3 AVD and choose it when launching your
app.

-
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] How to change default HIPRI connection expiry?

2012-02-29 Thread flumby
In my project, I need to access an IP Address through mobile connection 
--irrespective of whether it is connected to mobile or WIFI network. My 
code is similar to below:


   connMan = (ConnectivityManager) 
getSystemService(Context.CONNECTIVITY_SERVICE);
   int res = 
connMan.startUsingNetworkFeature(ConnectivityManager.TYPE_MOBILE, 
"enableHIPRI");

Then when I get the notification that HIPRI is available, I call:
   boolean reqRes = 
connMan.requestRouteToHost(ConnectivityManager.TYPE_MOBILE_HIPRI, 
ipAddress);

This is working fine. My app can connect to the URL specified in the 
ipAddress. My app can send requests, and receive responses. However, the 
connection gets disconnected after about a minute. Is there a way to have 
HIPRI connection for longer time?

To make a short story long,  I see the following in the log:
D/ConnectivityService( 1640): ignoring as dup is found 
stopUsingNetworkFeature for net 5: enableHIPRI by 9683/10033(expire - 
created 60026 mSec ago)

I took a look at the source and I see that in ConnectivityService.java, in 
the implementation of requestRouteToHost method, it calls:

  mHandler.sendMessageDelayed (mHandler.obtainMessage 
(NetworkStateTracker.EVENT_RESTORE_DEFAULT_NETWORK, f), 
getRestoreDefaultNetworkDelay());

And I see that getRestoreDefaultNetworkDelay is returning 6. So, I know 
why my app is getting disconnected after about a minute.
My question is, how can I have HIPRI connection for a longer period -at 
least 30 minutes?

-- 
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: No TOUCHABLE_INSETS_REGION constant field under InputMethodService.Insets class in SDK

2012-02-29 Thread tsukishiro yamazaki
Sorry if this sounds annoyingly persistent but what is the use of
TOUCHABLE_INSETS_REGION constant in the first place? I thought it's
supposed to limit the touchable regions in the input view of the soft
keyboard. Is this wrong?

On Feb 17, 3:32 pm, Jim Andresakis  wrote:
> I think she means that as long as you use the android keyboard without
> totally creating your own from scratch you wont be able to register
> touch events any where other than on the keyboard while its in view.
>
> On Feb 16, 10:17 pm,tsukishiroyamazaki 
> wrote:
>
>
>
>
>
>
>
> > Hi Dianne,
>
> > By "not supported" do you mean the TOUCHABLE_INSETS_REGION constant
> > field?
> > If so, why is it mentioned under InputMethodService.Insets?
> > (refer 
> > tohttp://developer.android.com/reference/android/inputmethodservice/Inp...)
>
> > On Feb 17, 11:15 am, Dianne Hackborn  wrote:
>
> > > Sorry, this is not supported.
>
> > > On Thu, Feb 16, 2012 at 3:55 PM,tsukishiroyamazaki 
> > > > wrote:
> > > > Can anyone help me with this one? If it's hard to imagine, you can
> > > > refer to my rough sketch below.
>
> > > > --
> > > > |                |
> > > > |                |
> > > > ||
>
> > > > Let's say the above drawing is the input view for the soft keyboard.
> > > > It basically is located at the bottom of the screen filling the entire
> > > > width of the screen.
>
> > > > --
> > > > |        ||
> > > > |        ||
> > > > ||
>
> > > > Let's say the above drawing is the input view for the soft keyboard
> > > > that I am planning to implement.
> > > > The portion filled with 'X's is the area where my keys will be placed.
> > > > So I want that this area is the only touchable region for the soft
> > > > keyboard.
> > > > This means that if there are any widgets (ex. button) on the Activity
> > > > behind the soft keyboard, that button should be touchable/clickable
> > > > provided that it is not covered by the keys in the soft keyboard.
>
> > > > On Feb 14, 1:24 pm,tsukishiroyamazaki 
> > > > wrote:
> > > > > Hi,
>
> > > > > I'm making a custom-shaped softkeyboard. I am using the softkeyboard
> > > > > sample from developers.android.com.
> > > > > I want that only certain parts in thekeyboardwill betouchableso I
> > > > > though of using the constant field
> > > > > TOUCHABLE_INSETS_REGION to set the touchableInsets member field.
> > > > > However, this does not seem to be
> > > > > supported in the SDK. Only the following 3 constant fields are
> > > > > available :
> > > > > 1. TOUCHABLE_INSETS_CONTENT
> > > > > 2. TOUCHABLE_INSETS_FRAME
> > > > > 3. TOUCHABLE_INSETS_VISIBLE
>
> > > > > Can someone help me with this problem? Has this constant field been
> > > > > removed?
> > > > > Thanks and best regards,
> > > > > -tsukishiro
>
> > > > --
> > > > 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
>
> > > --
> > > 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] How to prevent window from adjusting when soft keyboard is displayed

2012-02-29 Thread tsukishiro yamazaki
Hello all,

I came upon an IME called Transparent Keyboard.apk
It's an onscreen keyboard that keeps everything behind it in tack.
In other words, it doesn't resize or pan the contents behind to make
room for the keyboard.
Does anyone know how this was done?
I want my own IME to do this as well and I found "adjustNothing" value
for windowSoftInputMode.
But if I think this is only applicable to activity and not to service.
Can someone help me with this one?

Thanks and best regards,
tsukishiro

-- 
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] OEM USB Driver for Pantech

2012-02-29 Thread John Lussmyer
On another thread, someone pointed me to the Pantech PC Suite, which also
installs the USB drivers.
That worked for me.

On Sun, Feb 26, 2012 at 10:16 AM, moon do seo  wrote:

> what is the your device model #? i might start with IM-
>
> thx
>
> On Sun, Feb 26, 2012 at 11:35 AM, John Lussmyer 
> wrote:
> > Did you ever figure this out?  I'm having the same problem.
> >
> >
> > On Fri, Oct 21, 2011 at 7:26 PM, John Ransom 
> wrote:
> >>
> >> Hi all,
> >>I am trying to put my android game onto my hardware for testing.
> >> It is a Pantech. The problem is I need to get the OEM USB Driver to do
> >> this but the link the android developers site sends me to is a foreign
> >> language site. I can't even get Google to translate it for me. This is
> >> the link http://www.isky.co.kr/cs/software/software.sky?fromUrl=index
> >> . I have also tried Google search to find one with no success. Could
> >> someone who knows whatever asian language it is possibly download and
> >> send me a copy? I would really appreciate it. 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
>
>
>
> --
> =
> Moon Do Seo
> 224 433 0603
>
> --
> 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
>



-- 
--
CasaDelGato Sensible Email package:
https://sourceforge.net/projects/sensibleemail/

-- 
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] Android Market - Test Marketing

2012-02-29 Thread JJ B
Great, Thanks (and please clarify if this also works with the full paid
versions if you know)

2012/2/29 Kostya Vasilyev 

> Just email them the apk files (or links), then bump the version code in
> the manifest before publishing so Market picks up the update (I know this
> works for free apps).
> 01.03.2012 3:29 пользователь "JJ B"  написал:
>
>> Hello,
>>
>> Is it allowable (or possible) to test market apps by sending out to a few
>> colleagues prior to full publication. I understand that Google allows Beta
>> publication on Android Market but, to me, that may be less useful than
>> controlling the test market population.
>>
>> Thanks in Advance,
>>
>> JJ
>>
>> --
>> 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

-- 
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] Android Project

2012-02-29 Thread TreKing
On Tue, Feb 28, 2012 at 3:13 PM, Ahmed Mahmoud wrote:

> so i hope to find anyone here to help me to choise a good idea


Anyone here with a "good" idea is probably already working on it and
keeping it to themselves.

Ask yourself:
"What do I need?"
"What would I pay for?"
"What is not already available?"
"What is lacking in some app I already use?"

Answer one or more of those and you should get some ideas, pimp.

-
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] switching between api level targets in eclipse

2012-02-29 Thread Ray Tayek

At 04:36 PM 2/29/2012, you wrote:
On Wed, Feb 29, 2012 at 5:05 PM, Ray Tayek 
<rta...@ca.rr.com> wrote:
i wanted to switch back to 4.0.3, but eclipse seems to be stuck on 
the 4.0.3 target.



That's not very clear. Like, what is "seems to be stuck"?


sorry, my bad. it is uses the 2.3.3 avd even though the 4.0.3 target 
is checked in eclipse. so it seems to be stuck using the 2.3.3 target.


thanks

---
co-chair http://ocjug.org/

--
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: Performance issue executing native code on ICS

2012-02-29 Thread Chris Stratton
On Wednesday, February 22, 2012 7:28:59 AM UTC-5, Michael wrote:
>
> When comparing method traces on this test project, we noticed a 
> difference. On ICS we see lots of gaps in the execution of the native 
> function call (i.e. in the JNI function call). On Gingerbread, these 
> gaps are not present. 
> We cannot explain why these gaps are there, since nothing else seems 
> to be happening on other threads [that we can observe using 
> traceview]. But they account for a large difference between the 
> measured ‘excl real msec’ and ‘incl real msec’ on the ICS device. 
>

I think the most interesting question would be to figure out what is 
happening during that time - something in another process, something in the 
kernel, or something in a somehow invisible (?) thread in your process? 
 One contrasting tool your might throw at the problem would be top - ie

adb shell 'top -t -m 5'  

Should show the top 5 five cpu-hogging threads system wide regardless of 
the process they belong to.

An interesting question would be what happens if you do the same 
processing, but on data not derived from the camera, ie without activating 
the camera.  

Perhaps something else is looking at the camera - is the platform trying to 
do something fancy like software focusing, face recognition, scaling?  Is 
the new implementation 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

Re: [android-developers] Re: How to make this complex view

2012-02-29 Thread TreKing
On Wed, Feb 29, 2012 at 7:49 AM, Farhan Tariq  wrote:

> just can't figure out how to get only those values from the listView that
> the box is covering. Any suggestions?


So, basically what you need is a simple intersection test: does this View
(your draggable box) intersect with these views in the ListView.

Have you looked at the ListView and base View class docs? Literally just
reading their pages and looking at all the functions available to you
should give you some ideas.

For example, the ListView base class has this:
http://developer.android.com/reference/android/widget/AbsListView.html#pointToPosition%28int,%20int%29

And the View class has this:
http://developer.android.com/reference/android/view/View.html#getHitRect%28android.graphics.Rect%29

That's what I found in a 60 second review. If you put some time into
researching the classes you're working with, I'm sure you'll find even more
useful methods.
Hope that helps.

-
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] Why explicit need for Permissions to be specified in Manifest File

2012-02-29 Thread Kristopher Micinski
> As for the various static analysis comments in the thread, in the denial
> role its quite weak as self-modifying code will hide possibilities from it.
>  As a granting mechanism in the context of the present "everything not
> explicitly granted is denied" model, it could work in the sense of being
> secure in that anything too obscure in its construct would not be granted
> and would simply result in failure (errors or exceptions which would be
> caught or cause crashes).  But I fail to see how this is superior to
> declaring what you want.  Someone who does think it is superior is welcome
> to package their static analysis algorithm as a tool which will scan your
> code base and automatically generate a manifest file...
>

The stowaway tool previous mentioned does tell you (in an approximate
sense) what you need.  Sure, it doesn't handle all reflection well,
and maybe not get all instances of content providers, etc... But I
believe that the majority of apps won't do lots of reflection or
obscure string manipulations to content providers.  (Obviously there
will be some, as you point out, which is why permissions weren't
inferred in the first place..)

kris

-- 
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] switching between api level targets in eclipse

2012-02-29 Thread TreKing
On Wed, Feb 29, 2012 at 5:05 PM, Ray Tayek  wrote:

> i wanted to switch back to 4.0.3, but eclipse seems to be stuck on the
> 4.0.3 target.


That's not very clear. Like, what is "seems to be stuck"?

-
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] Why explicit need for Permissions to be specified in Manifest File

2012-02-29 Thread Mark Murphy
On Wed, Feb 29, 2012 at 7:06 PM, Chris Stratton  wrote:
> Yes, but the downside is that a fixed, install-time request requires that
> all users of the app grant blanket permission for something which the app
> may want to do rarely, only if optional feature are enabled, etc.  Consider
> an app which is quite useful for interacting with files on the sdcard, but
> which a minority of users would like to use with external network content as
> well, or which could optionally integrate with contacts from the address
> book, but doesn't have to.

Oh, well, you're preaching to the choir on that point, which is why I
am busily documenting various approaches for implementing plugins, to
help isolate excess permissions in separate APKs. Google seems
dead-set on not supporting optional permissions or revocable
permissions, which means a plugin model is our only real option for
providing that kind of flexibility to users.

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

_Android Programming Tutorials_ Version 4.1 Available!

-- 
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] Why explicit need for Permissions to be specified in Manifest File

2012-02-29 Thread Chris Stratton
On Thursday, February 23, 2012 8:23:38 AM UTC-5, Mark Murphy (a Commons 
Guy) wrote:
>
> > Basically looking for why android is designed for explicit permissions
> > declaration.. when it can be automatically discovered at compiler time
> > or at run time..
>
> While the need for permissions could be determined at runtime, if you
> would prompt the user for the permission then, you wind up with a
> Vista-style "The CPU would like to execute an instruction: allow?
> deny?" UX, which is not pleasant.
>
Yes, but the downside is that a fixed, install-time request requires that 
all users of the app grant blanket permission for something which the app 
may want to do rarely, only if optional feature are enabled, etc.  Consider 
an app which is quite useful for interacting with files on the sdcard, but 
which a minority of users would like to use with external network content 
as well, or which could optionally integrate with contacts from the address 
book, but doesn't have to.

As for the various static analysis comments in the thread, in the denial 
role its quite weak as self-modifying code will hide possibilities from it. 
 As a granting mechanism in the context of the present "everything not 
explicitly granted is denied" model, it could work in the sense of being 
secure in that anything too obscure in its construct would not be granted 
and would simply result in failure (errors or exceptions which would be 
caught or cause crashes).  But I fail to see how this is superior to 
declaring what you want.  Someone who does think it is superior is welcome 
to package their static analysis algorithm as a tool which will scan your 
code base and automatically generate a manifest file... 

>

-- 
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] want to add some more buttons to the android default keyboard

2012-02-29 Thread Mark Murphy
You can create your own input method editor (IME) that implements your
own keyboard. You can use the open source implementation of Android's
"default keyboard" as a starting point, if you wish. Users can then
elect to install your IME and elect to use it if they so choose. You
cannot, however, actually change the behavior of any other installed
IME.

On Wed, Feb 29, 2012 at 8:10 AM, chalavadi sagar
 wrote:
> Can anybody please explain me is there any procedure for adding few
> more buttons to the android default keyboard and changing the button
> position from one place to another place
>
> --
> 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 Programming Tutorials_ Version 4.1 Available!

-- 
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] Mutual authentication using X.509 certificate

2012-02-29 Thread Pankaj
I want to consume WCF web-service which uses X.509 certificate for
mutual authentication. I had imported certificates using keytools in
BKS keystore & able to use in android code. Now for mutual
authentication i need to create web-request which have message digest
& signature in it

I am using KSOAP 2. MY android Application working fine till my client
is using https using srever side certificate.
But now my client want X.509 certificate based mutual authentication.
For which I need to form my request as per below mention format which
i had extracted using wireshark (client is developed in Visual studio
8 which is working fine).

As per the blogs & articles i need to create message digest then
create signature but before creating message digest i need to create
XML canonicalization

Referenced Urls :
http://java.sun.com/developer/technicalArticles/xml/dig_signatures/
http://docs.oracle.com/javase/6/docs/technotes/guides/security/xmldsig/XMLDigitalSignature.html
http://java.sun.com/developer/technicalArticles/xml/dig_signature_api/
http://svn.apache.org/repos/asf/santuario/xml-security-java/trunk/samples/javax/xml/crypto/dsig/samples/GenEnveloped.java
http://www.xml.com/pub/a/ws/2002/09/18/c14n.html?page=1
http://www.w3.org/TR/2000/CR-xmldsig-core-20001031/


http://docs.oasis-open.org/wss/2004/01/
oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1">

2012-02-21T04:45:06.429Z
2012-02-21T04:50:06.429Z

http://docs.oasis-open.org/wss/
2004/01/
oasis-200401-wss-x509-token-profile-1.0#X509v3" EncodingType="http://
docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-
security-1.0#Base64Binary">
MIICbzCCAdygAwIBAgIQfjyZ229iN4tAbV0fiYiVyTAJBgUrDgMCHQUAMD8xPTA7BgNVBAMTNGNsaWVudC5iNTRiYTFkN2U2NzY0ZDdkOWRiMDA3YTgyNmM5ZGE5Ny5jbG91ZGFwcC5uZXQwHhcNMTIwMjE2MTY0MjI1WhcNMzkxMjMxMjM1OTU5WjA/
MT0wOwYDVQQDEzRjbGllbnQuYjU0YmExZDdlNjc2NGQ3ZDlkYjAwN2E4MjZjOWRhOTcuY2xvdWRhcHAubmV0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDRW
+Di90XDGulLybdBboUlOilxvbcnfow+NhoNW80uNjmGQiQpxP0oNnYT7RKJ
+nP3+sZxUfRfazLgvOTFn0F9SIFQ9T4I5LNFMHhDfExoT0k/
aeF870Euy07BiwF7eXw6toSv1dKwKavq20szbIr/NeabIEDS/GzKY6P0/
TOQfwIDAQABo3QwcjBwBgNVHQEEaTBngBCNb6YOYI3RBR64WvVUjQtPoUEwPzE9MDsGA1UEAxM0Y2xpZW50LmI1NGJhMWQ3ZTY3NjRkN2Q5ZGIwMDdhODI2YzlkYTk3LmNsb3VkYXBwLm5ldIIQfjyZ229iN4tAbV0fiYiVyTAJBgUrDgMCHQUAA4GBAG5v1DZmXQKcaxNzz2VYDZ8aYYrYRQwU4lrBKlI0CnrkcZwQGPmRxdkiET9D91kcN/
fmq90nj1F5FZoqhzeT1moqGKXKT9HRX8j6Ln1QDhsr+0JfgJW9/
IFaQI14xKwr8bw4+DxIyp0IMpSw9biULmIQ1QuTzfKDEowlcQhsik+E

http://www.w3.org/2000/09/xmldsig#";>

http://www.w3.org/2001/10/xml-exc-
c14n#"/>
http://www.w3.org/2000/09/xmldsig#rsa-
sha1"/>


http://www.w3.org/2001/10/xml-exc-c14n#"/>

http://www.w3.org/2000/09/xmldsig#sha1"/>
Soj1m/E157CempDHHC6c6gZBd1E=



kqsIYUc3uYoQpuWVWYOio4KcGpon+3wDDhsAzVgZVljQxEhF7z1JS/
qzw9ELYCn2JbYIkWMtEeYfXRtPvjrPM1fjJiqbXSKq7jHEeVtMQnOytAHRL1ZFA
+dLq4spJQR7uYnmJ1lmgQnu1kYcteSmD29Xm5e5dPUnz4yap3p7zC4=



http://docs.oasis-open.org/wss/2004/01/
oasis-200401-wss-x509-token-profile-1.0#X509v3" URI="#uuid-
e35f5271-3c4e-47c7-ba34-8d995e414ba3-1"/>






But to create message digest we need perform XML canonicalization with
"http://www.w3.org/2001/10/xml-exc-c14n#"; transform algorithm. I am
not able to found any API or library which perform above task.

I had used xmlsec jar but I guess it is not supported by android and
also used all the option which I found after googling.

I had find out that android don’t have support of following JAVA
packages:
•   javax.xml.crypto.dom
•   javax.xml.crypto.dsig
•   javax.xml.crypto.dsig.dom
•   javax.xml.crypto.dsig.keyinfo
•   javax.xml.crypto.dsig.spec


Please guide me how to call WCF web-service which involve X.509
certificate based mutual authentication. ASAP

-- 
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: Good OpenGL ES Tutorials

2012-02-29 Thread Catherine Darrow
Last time I looked, I found I needed different sources to cover the
Android/Java/ES specific things and to cover OpenGL itself.  Putting
Android and OpenGL into Google should turn up the sort of tutorial
that will let you successfully draw a triangle to the screen.  For
going farther with OpenGL itself, here is the most valuable thing I've
found:

http://www.arcsynthesis.org/gltut/

-- 
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: MediaPlayer setDisplay

2012-02-29 Thread Pierre Souchay
Hi Cliffus,

I have exactly the same issue here. A service handing the MediaPlayer,
and I would like to disconnect/reconnect the video when activities are
launched/stopped. I tried several strategies :
 - creatig a "false" Surface Holder that would hide the surface
destroyed and delegating to the real SurfaceHolder when set.
 - Using setDisplay(null), not setting it to null when surface is
destroyed...

None of these strategies seems to work, at least on the two devices I
am testing. IMHO, when using setDisplay(null) or when the Surface
becomes invalid, the MediaPlayer is not working for Video anymore... I
see two possibilities to solve this :
 - use two separate streams, one for video, the other for audio, and
enable only video when creating the activities
 - when creating an activity if setDisplay() has already been called
once, create a new MediaPlayer, prepare it and when it is ready,
replace the old MediaPlayer... but unfortunatly, it will create an
Audio artifact :(

Do you have other ideas ?

Cheers

Pierre Souchay

On 27 fév, 17:01, Cliffus  wrote:
> Hi
>
> we're creating an application for a radio station. The concept of the
> application is a little bit different than a normal radio application.
> When the user hits the play button, a video starts playing (webcam)
> and with the audio in the background. To accomplish this, a have a
> background service with a Mediaplayer object. From activity A, I start
> the service and connect a surfaceview to it with the 'setDisplay'
> method.
>
> When navigating from Activity A to Activity B, in 'onPause', I
> disconnect the surfaceview from the mediaplayer. When Activity B is
> created, you can stil hear the audio from the video stream playing in
> the background (that's a good thing!).
>
> When the user hits the back button, Activity B is finishing and
> Activity A resumes. In 'onResume', I reconnect the surfaceview with
> the mediaplayer (which is playing in the background surface). But now
> the surfaceview stays black, the audio is stil playing though.
>
> I don't have this issue on my Galaxy nexus (Android 4), but I wonder
> if anyone has a solution for this 'bug'?
>
> Thanks in advance!
> Cliff

-- 
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: Confusion over Services / Singletons / Static data

2012-02-29 Thread John Sheehy
Thanks for the reply.

For my 4th question I had read somewhere (perhaps stackoverflow) that
after android (ActivityManager?) unloads Application, Activities,
Services etc., it doesn't kill the actual kernel process but instead
somehow keeps it around in a pool to avoid the overhead of new linux
process creation. Given that static heap variables are "outside" the
android components, I was worried my static instances would persist
and dirty a new process! I haven't been able to find much on this
however..

-- 
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] Application Licensing for 7 days trial period in Android

2012-02-29 Thread Prince Kumar
Where i have to change in the Server Managed Policy class so that it
works only for 7 days trial and after that user have to buy the app
from android market place?

-- 
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] Routing TTS to SCO bluetooth headset

2012-02-29 Thread RedBullet
I am trying to get my android app to use the TTS engine to send the
audio to my old BT headset.

I have tried starting SCO, then setting it to on. Nothing. Audio still
comes out the speakers...

Anyone ever done this? I am sure there is just something I am
missing...

-- 
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: USB Webcam

2012-02-29 Thread Bhasker Raj
Perumal

I am interested in buying Novo 7 Advanced or ELF Tablet.

Did you buy from any Indian selling company or from abroad?

Please send the source and the contacts.

Where are you staying?

Waiting for your reply

Best Wishes

A. S. Bhasker Raj
Secunderabad
Mobile: +919247332574

On Wed, Feb 29, 2012 at 7:07 AM, perumal316  wrote:

> Hi Saurabh,
>
> I am trying in Novo 7 Advanced running on ICS. It is rooted. Even
> though it can access /dev/video0, must I have an application to view
> the feeds from the camera?
>
> Basically when I plugged in the USB webcam, I could see the info,
> using USB Hosts application , but not sure how to view the feeds.
>
> Is it possible?
>
> Thanks and Regards,
> Perumal
>
> On Feb 28, 6:48 pm, "s.rawat"  wrote:
> > Which tablet you are using.We have tried it on Acer Iconia Tab a501 which
> > has the Host support as well USB A type.It has to bee rooted and the
> > application needs to have the root access to access the /dev/video0 node
> .
> > It is very much possible but not for the commercial solution i guess.Only
> > for our own rnd .
> > Rgds,
> > Saurabh
> > "..pain is temporary.quitting lasts forever.."
> >
> > On Tue, Feb 28, 2012 at 4:07 PM, MOHANAKRISHNAN  >wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Actually i think it won't support any cam in emulator . i also tried
> > > in lap. it didn't work.
> >
> > > On Tue, Feb 28, 2012 at 1:57 PM, perumal316 
> wrote:
> > > > Hi All,
> >
> > > > Is it possible to plug in a USB Webcam to an Android tablet that has
> > > > USB host?
> >
> > > > I tried and nothing happens. If I plug in a thumbdrive, the contents
> > > > can be viewed using File Manager, but nothing happens for USB
> Webcams,
> > > > could be due to lack of drivers?
> >
> > > > Has anyone got it to work? How about the drivers?
> >
> > > > Thanks In Advance,
> > > > Perumal
> >
> > > > --
> > > > 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
>
> --
> 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

Re: [android-developers] WMV Easter Egg?

2012-02-29 Thread Riley Porter
File re-named to wmv? Perhaps it is a mp4 really?

Riley

On Wed, Feb 29, 2012 at 4:33 PM, bob  wrote:

> I tried playing back a WMV file on my VIZIO Tablet in a VideoView, and it
> worked.  Any ideas why it works?
>
> As far as I can tell, Android only supports MP4 and 3GP according to the
> docs.
>
>
>
>  --
> 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] .JPEG to .MP4 Conversion

2012-02-29 Thread NAVI NEW
Hello Android Developers,

I having pictures .JPEG file, I want to convert it in video
format .mp4.

There is ffmpeg command for .mp4  typecast

ffmpeg -r 30 -i foo-%03d.jpeg -r 30 -b 8973kb -minrate 8973kb -maxrate
8973kb -bufsize 1kb foo2.mp4


Please help me how to convert images in form of video mp4.

Thanking of you.

Navi

-- 
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 you give me the answer...about 'Unable to stop activity'...

2012-02-29 Thread Jae-young Yun
Logcat


02-29 21:19:31.765: E/AndroidRuntime(5374):
java.lang.RuntimeException: Unable to stop activity
{com.android.sinsunby/com.android.sinsunby.SevenActivity}:
java.lang.IllegalStateException

02-29 21:19:31.765: E/AndroidRuntime(5374): at
android.app.ActivityThread.performDestroyActivity(ActivityThread.java:
3607)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:
3673)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
android.app.ActivityThread.access$2900(ActivityThread.java:125)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
android.os.Handler.dispatchMessage(Handler.java:99)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
android.os.Looper.loop(Looper.java:123)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
android.app.ActivityThread.main(ActivityThread.java:4627)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
java.lang.reflect.Method.invokeNative(Native Method)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
java.lang.reflect.Method.invoke(Method.java:521)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:858)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
dalvik.system.NativeStart.main(Native Method)

02-29 21:19:31.765: E/AndroidRuntime(5374): Caused by:
java.lang.IllegalStateException

02-29 21:19:31.765: E/AndroidRuntime(5374): at
android.media.MediaPlayer._stop(Native Method)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
android.media.MediaPlayer.stop(MediaPlayer.java:964)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
com.android.sinsunby.SevenActivity.onStop(SevenActivity.java:236)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
android.app.Instrumentation.callActivityOnStop(Instrumentation.java:
1171)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
android.app.Activity.performStop(Activity.java:3857)

02-29 21:19:31.765: E/AndroidRuntime(5374): at
android.app.ActivityThread.performDestroyActivity(ActivityThread.java:
3602)

i don't know why this happen,,,

-- 
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] Migrate Android Code error

2012-02-29 Thread Atif Farrukh
I am making a menu for my menu... i am using the following code..


switch(item.getItemId()){
case R.id.aboutUs

break;

case R.id.feedback:

break;


}

gave an error, "Migrate Android Code" , eclipse converted it into if
else statment as below, from the android site,
still getting the same error



int id =  item.getItemId();

if (id == R.id.abooutUs) {}
else if (id == R.id.feedback) {
}
else if (id == R.id.exit) {}


}


on the android site it says that the "R" file is now like "public
static int menu=0x7f05;"
but mine is still "public static final int menu=0x7f05;".  i mean
the "final" type.

plz help me out.. i m new to android...


-- 
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: ActionBar and Tabs question:

2012-02-29 Thread Craig Smith
Just put the modes in drop down beside the category in the Action Bar.

It still looks good that way, even with another set of clicks.

-Craig

On Feb 29, 9:07 am, Mark Winchester  wrote:
> I'm having trouble with the ActionBar and tabs, trying to get the look and
> feel that I've got in mind.  I want an action bar, at the top, with a
> couple of Spinners, TextViews, and a button.  Underneath that, I'd like a
> row of Tabs, and below that the actual content.  The top portion of my
> ActionBar is coded up, working, and looking how I want it.  I'm struggling
> with the tab portion, though.  I started out trying to add a TabHost,
> TabWidget, etc. to the layout, which would appear under the ActionBar.  It
> seems that all of that functionality is deprecated, and we're supposed to
> be using the ActionBar for the tabs.  If I can achieve the look that I'm
> going for, I haven't found a way to do it.  Anybody got any examples of
> what I'm looking for?  I appreciate any help.
>
> -Mark

-- 
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: View height changes when image set as background by 1.25 times of the image height

2012-02-29 Thread emil10001
It may be easier to do this programmatically. You can build your bitmap 
image first, figure out the dimensions of that and resize it if needed. 
Then, change the dimensions of the TextView, if necessary, to match the 
size of the image, probably using LayoutParams. Finally, you can set it as 
the background of the resized TextView as the resized image.

-John

On Wednesday, February 29, 2012 6:51:40 AM UTC-5, Reddy wrote:
>
> Hi Moktarul, 
>
> Still i am facing the same problem. 
>
> Let me clarify my problem clearly. 
>
> My .png height is 53px. 
> When png set as BG of TextView, and the textview properties are wrap 
> context, the height of the textview is becoming big. 
> When i set the textview height to 53px then the height of the TextView 
> is 53px. 
>
> Please provide me solution if u have. 
>
> Regards, 
> Murali 
>
> On Feb 29, 4:35 pm, moktarul anam  wrote: 
> > hi Murali , 
> > use  *android*:*scaleType*="*fitXY* " 
> > Moktarul 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Wednesday, 29 February 2012 16:58:35 UTC+5:30, Reddy wrote: 
> > 
> > > Hi, 
> > 
> > > I have a .png file. I set this as the background of a TextView and the 
> > > height and width of the TextView are wrap context. The ideal behavior 
> > > here is that the height and width of the textview should be of height 
> > > and width of the .png file. 
> > 
> > > But what i am getting is that size of text view is getting increased 
> > > 1.25 times of the image size. 
> > > If any has solved this issue, please help me. 
> > 
> > > Thanks in advance. 
> > 
> > > Regards, 
> > > Murali

-- 
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] want to add some more buttons to the android default keyboard

2012-02-29 Thread chalavadi sagar
Can anybody please explain me is there any procedure for adding few
more buttons to the android default keyboard and changing the button
position from one place to another place

-- 
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: ActionBar and Tabs question:

2012-02-29 Thread emil10001
I just posted a sample project on my github that demos how to do 
this: https://github.com/emil10001/SimpleActionBarTabs

-John

On Wednesday, February 29, 2012 10:07:42 AM UTC-5, Mark Winchester wrote:
>
> I'm having trouble with the ActionBar and tabs, trying to get the look and 
> feel that I've got in mind.  I want an action bar, at the top, with a 
> couple of Spinners, TextViews, and a button.  Underneath that, I'd like a 
> row of Tabs, and below that the actual content.  The top portion of my 
> ActionBar is coded up, working, and looking how I want it.  I'm struggling 
> with the tab portion, though.  I started out trying to add a TabHost, 
> TabWidget, etc. to the layout, which would appear under the ActionBar.  It 
> seems that all of that functionality is deprecated, and we're supposed to 
> be using the ActionBar for the tabs.  If I can achieve the look that I'm 
> going for, I haven't found a way to do it.  Anybody got any examples of 
> what I'm looking for?  I appreciate any help.
>
> -Mark
>

On Wednesday, February 29, 2012 10:07:42 AM UTC-5, Mark Winchester wrote:
>
> I'm having trouble with the ActionBar and tabs, trying to get the look and 
> feel that I've got in mind.  I want an action bar, at the top, with a 
> couple of Spinners, TextViews, and a button.  Underneath that, I'd like a 
> row of Tabs, and below that the actual content.  The top portion of my 
> ActionBar is coded up, working, and looking how I want it.  I'm struggling 
> with the tab portion, though.  I started out trying to add a TabHost, 
> TabWidget, etc. to the layout, which would appear under the ActionBar.  It 
> seems that all of that functionality is deprecated, and we're supposed to 
> be using the ActionBar for the tabs.  If I can achieve the look that I'm 
> going for, I haven't found a way to do it.  Anybody got any examples of 
> what I'm looking for?  I appreciate any help.
>
> -Mark
>

-- 
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 widget: dinamically list from own combiled string (as template)

2012-02-29 Thread Stan Prihodko
HI,

I'm now develop my first widget (not application) and I want to generate 
dynamically strings, there each string should be as: 
"image(left)+text(left)+text(right)".
I has been prepared this string in layout,  and I want to use my 
template-string as "template" to generate all strings a few times, as list. 
But I can't understood how it do.

Could you please explain how do correct my idea? 
(Or may be key words to search in google...)

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] wonder of face lock: The code is open and complete?

2012-02-29 Thread cnisme
hi,all
  I have got android 4.0 has face lock, when I search the  android
code, I just have found the code of face lock in application layer,
but I did not get any code in "frameworks" or others paths, and it
needs "com.android.facelock". Then I ask engineer in QCOM, They said
it't part of GMS which should contact Google, so I want to know, how
should I do if I want to implement Face Lock?
 Any of your reply will be 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


Re: [android-developers] Re: conversion to dalvik format failed error 1

2012-02-29 Thread Chalavadi Sagar
right click on project and then select the JavaBuildPath in that select the
libraries tab and check whether there are two android jar files .If yes
delete one of them and then save the project and clean it after that your
error may get disappeared.

Kind Regards.

Ch.B.Sagar

On Wed, Feb 29, 2012 at 7:11 PM, Todd Sjolander wrote:

> I've seen this happen from time to time in Eclipse.  It's not a code
> issue.  I would recommend trying a few things:
>
> 1. Make sure you have the right SDK version and APIs included in your
> project.  Sometimes Eclipse will change these on you.  Once or twice
> when seeing this error, I've had to change to another SDK version, do
> a clean build, change back to my original SDK version, and then do
> another clean build.
> 2. Do a clean build
> 3. Reboot Eclipse
> 4. If none of those work, you might need to rebuild your environment.
> (Maybe there's a better way to deal with the issue, but this will
> almost certainly work.)  So that means you've got to remove the
> Android SDK(s) entirely, and re-download them.  Then you'll have to re-
> select the right SDK version for your project and rebuild.
>
> I hope this helps!
>
> On Feb 29, 2:37 am, rajesh  wrote:
> > Hi all,
> >   How can i overcome the following error "Dx 1 error;
> > aborting  Conversion to Dalvik format failed with error 1"
>
> --
> 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] Livestreams on Android 2.2 and above

2012-02-29 Thread Patrick Gregorio
There are 2 types of videos that I want to be able to play on a
project I've been working on. One is live streams and the other one is
video on demand.

I was able to make the video on demand fully functional using WebView.

My problem now is with the live streams. I couldn't make the WebView
and even VideoView to work. Also I've been researching about this for
some time now, and found out that HTTP Live Stream is only available
to Android 3.0 and above.

Is what I'm trying to accomplish even possible. If so, how do I go
about doing this? If you need more information, feel free to ask and I
could provide 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] Arduino ADK

2012-02-29 Thread lazer
I am trying to use a button on an arduino board to reload a 
webview. Unfortunately I am having a very hard time understanding how 
Android parses the data from the arduino board. Can anyone clarify how I 
would go about using a button on an arduino board to reload a webview?

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] monkeyrunner device.type() dropping characters

2012-02-29 Thread John
trying to write a simple demo monkeyrunner python script

 
device.startActivity( component='com.android.calculator2/.Calculator' )
time.sleep(1)
device.type( '2*3=' )

this works as I expect,  starts the calculator and it displays the
correct result, having some difficulty with the browser.  I can start
it with a given url

 
device.startActivity( component='com.android.browser/.BrowserActivity',
uri='http://www.amazon.com' )

but if I try to send a url after the browser starts with
device.type()  leading characters are getting dropped:

 
device.startActivity( component='com.android.browser/.BrowserActivity' )
time.sleep(5)
device.press('KEYCODE_ENTER', 'DOWN_AND_UP')
device.type('www.yahoo.com')
device.press('KEYCODE_ENTER', 'DOWN_AND_UP')

logcat shows the correct string, but the first two 'w' are dropped
when the string is reported by the SearchDialog.  Any idea what is
causing the dropped characters?

logcat ( minus dalvik msgs)

I/ActivityManager(   61): Start proc com.android.browser for activity
com.android.browser/.BrowserActivity: pid=1421 uid=10033 gids={3003,
1015}
I/ActivityThread( 1421): Pub browser:
com.android.browser.BrowserProvider
I/BrowserSettings( 1421): Selected search engine:
ActivitySearchEngine{android.app.SearchableInfo@405998b0}
I/ActivityManager(   61): Displayed
com.android.browser/.BrowserActivity: +1s524ms
D/MonkeyStub( 1404): translateCommand: press KEYCODE_ENTER
W/KeyCharacterMap( 1421): No keyboard for id 0
W/KeyCharacterMap( 1421): Using default keymap: /system/usr/keychars/
qwerty.kcm.bin
D/MonkeyStub( 1404): translateCommand: type www.yahoo.com
W/KeyCharacterMap( 1404): No keyboard for id 0
W/KeyCharacterMap( 1404): Using default keymap: /system/usr/keychars/
qwerty.kcm.bin
W/KeyCharacterMap( 1421): No keyboard for id 0
W/KeyCharacterMap( 1421): Using default keymap: /system/usr/keychars/
qwerty.kcm.bin
W/KeyCharacterMap( 1421): No keyboard for id 0
W/KeyCharacterMap( 1421): Using default keymap: /system/usr/keychars/
qwerty.kcm.bin
D/MonkeyStub( 1404): translateCommand: press KEYCODE_ENTER
D/MonkeyStub( 1404): Quit requested
D/SearchDialog( 1421): launching Intent
{ act=android.intent.action.SEARCH flg=0x1000
cmp=com.android.browser/.BrowserActivity (has extras) }
I/SearchDialog( 1421): Starting (as ourselves)
#Intent;action=android.intent.action.SEARCH;launchFlags=0x1000;component=com.android.browser/.BrowserActivity;S.query=w.yahoo.com;S.user_query=w.yahoo.com;end
I/ActivityManager(   61): Starting: Intent
{ act=android.intent.action.SEARCH flg=0x1000
cmp=com.android.browser/.BrowserActivity (has extras) } from pid 1421
V/webkit  ( 1421): guessURL before queueRequest: w.yahoo.com
W/SuggestionsAdapter( 1421): Tried to change cursor after adapter was
closed.

-- 
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] Focus problem

2012-02-29 Thread Markus Lindner
Hello,

In my small application I have 2 EditTexts and a Button. If something
is entered in EditText1 and confirmed by "Enter", the focus should be
set to EditText-Field2. Therefore I use an OnKeyListener on the first
EditText. The method requestFocus is called in onKey on the second
EditText.

But there is problem. After something is entered in EditText1, the
focus changes to the Button.

Why does that happen?

Here is the layout and the actitivity:


http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >















package de.mih.myandroidtest;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnKeyListener;
import android.widget.Button;
import android.widget.EditText;

public class MyAndroidTestActivity extends Activity {

EditText _t1;
EditText _t2;

Button _b1;

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

_t1 = (EditText) findViewById(R.id.editText1);
_t1.setOnKeyListener(new OnKeyListener() {

public boolean onKey(View v, int keyCode, KeyEvent event) {
switch (keyCode) {
case KeyEvent.KEYCODE_ENTER:
_t1.setEnabled(false);
_t2.requestFocus();
}
return false;
}
});

_t2 = (EditText) findViewById(R.id.editText2);

_b1 = (Button) findViewById(R.id.button1);
_b1.setOnClickListener(new OnClickListener() {

public void onClick(View v) {
_t1.setEnabled(true);
_t1.setText("");
_t2.setEnabled(true);
_t2.setText("");

_t1.requestFocus();
}
});
}
}

Thanks a lot

-- 
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: ActionBar and Tabs question:

2012-02-29 Thread emil10001
Take a look at the demos available for 
ActionBarSherlock. 
It may not be exactly the same if you aren't using that lib, but he tries 
to get very close to the normal experience. Anyway, from what I've seen 
(I'm using a Nav List in my ActionBar), you get one main type of navigation 
that is assigned to the ActionBar, whether it's tabs or a navigation list. 
Other buttons assigned to the ActionBar can be used for navigation, but 
will need to be implemented separately. I haven't used tabs myself (not 
attached to the ActionBar anyway), but from what it looks like, if you set 
it up correctly, the tabs will show up either in-line or stacked depending 
on whether or not there's space. I would download the demo's that I linked 
and follow along with the app that 
implementsall
 of those demos.

The alternative would be to do what you did and build the tabs separately. 
I did this for my Reddit 
Mailapp without issue. If I 
were to re-do that app, I would probably use the 
ActionBar to handle it, mainly because I now have a pretty good idea of how 
those work.

-John

On Wednesday, February 29, 2012 10:07:42 AM UTC-5, Mark Winchester wrote:
>
> I'm having trouble with the ActionBar and tabs, trying to get the look and 
> feel that I've got in mind.  I want an action bar, at the top, with a 
> couple of Spinners, TextViews, and a button.  Underneath that, I'd like a 
> row of Tabs, and below that the actual content.  The top portion of my 
> ActionBar is coded up, working, and looking how I want it.  I'm struggling 
> with the tab portion, though.  I started out trying to add a TabHost, 
> TabWidget, etc. to the layout, which would appear under the ActionBar.  It 
> seems that all of that functionality is deprecated, and we're supposed to 
> be using the ActionBar for the tabs.  If I can achieve the look that I'm 
> going for, I haven't found a way to do it.  Anybody got any examples of 
> what I'm looking for?  I appreciate any help.
>
> -Mark
>

On Wednesday, February 29, 2012 10:07:42 AM UTC-5, Mark Winchester wrote:
>
> I'm having trouble with the ActionBar and tabs, trying to get the look and 
> feel that I've got in mind.  I want an action bar, at the top, with a 
> couple of Spinners, TextViews, and a button.  Underneath that, I'd like a 
> row of Tabs, and below that the actual content.  The top portion of my 
> ActionBar is coded up, working, and looking how I want it.  I'm struggling 
> with the tab portion, though.  I started out trying to add a TabHost, 
> TabWidget, etc. to the layout, which would appear under the ActionBar.  It 
> seems that all of that functionality is deprecated, and we're supposed to 
> be using the ActionBar for the tabs.  If I can achieve the look that I'm 
> going for, I haven't found a way to do it.  Anybody got any examples of 
> what I'm looking for?  I appreciate any help.
>
> -Mark
>

On Wednesday, February 29, 2012 10:07:42 AM UTC-5, Mark Winchester wrote:
>
> I'm having trouble with the ActionBar and tabs, trying to get the look and 
> feel that I've got in mind.  I want an action bar, at the top, with a 
> couple of Spinners, TextViews, and a button.  Underneath that, I'd like a 
> row of Tabs, and below that the actual content.  The top portion of my 
> ActionBar is coded up, working, and looking how I want it.  I'm struggling 
> with the tab portion, though.  I started out trying to add a TabHost, 
> TabWidget, etc. to the layout, which would appear under the ActionBar.  It 
> seems that all of that functionality is deprecated, and we're supposed to 
> be using the ActionBar for the tabs.  If I can achieve the look that I'm 
> going for, I haven't found a way to do it.  Anybody got any examples of 
> what I'm looking for?  I appreciate any help.
>
> -Mark
>

On Wednesday, February 29, 2012 10:07:42 AM UTC-5, Mark Winchester wrote:
>
> I'm having trouble with the ActionBar and tabs, trying to get the look and 
> feel that I've got in mind.  I want an action bar, at the top, with a 
> couple of Spinners, TextViews, and a button.  Underneath that, I'd like a 
> row of Tabs, and below that the actual content.  The top portion of my 
> ActionBar is coded up, working, and looking how I want it.  I'm struggling 
> with the tab portion, though.  I started out trying to add a TabHost, 
> TabWidget, etc. to the layout, which would appear under the ActionBar.  It 
> seems that all of that functionality is deprecated, and we're supposed to 
> be using the ActionBar for the tabs.  If I can achieve the look that I'm 
> going for, I haven't found a way to do it.  Anybody got any examples of 
> what I'm looking for?  I appreciate any help.
>
> -Mark
>

On Wednesday, February 29, 2012 10:07:42 AM UTC-5, Mark Winchester wrote:
>
> I'm having trouble with the ActionBar and tabs, trying to get the look and 
> feel that 

[android-developers] Drawing 2D

2012-02-29 Thread Анастасия Сергеевна
Hello. 

I want creates shapes(rectangle, oval, square, etc) in runtime. Also I want 
drag and drop shapes that I create. 
My question is: may I for my goals create one class named, for example, 
Shape extended View and simply provide different constructors for each kind 
of shape or I must create many classes for different shapes?
And how I can implement drag and drop? in extended View class or in 
Activity class?

-- 
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 do I speeding up a click notification from GridView inside a Fragment to an Activity Listener?

2012-02-29 Thread emil10001
For prettier formatting of this message, this question has been posted
on StackOverflow - http://stackoverflow.com/q/9490558/974800 . I am
posting here due to a lack of response there.

I am writing an app that has a couple of fragment views managed by an
activity. The fragments are basically a GridView with a bunch of
images and a details view that is triggered when the user clicks on an
image in the GridView.

This all works fine, except that since there is a lot of other stuff
going from the activity to the grid fragment (I am continuously adding
things to the grid view and displaying them immediately), it takes
several seconds for the click to be recognized. I had assumed that
building the image would be the time-consuming bit, and that when I
click the item, that that event should be sent to the activity
immediately, since there isn't any heavy lifting involved. Once the
message gets to the activity, the activity will stop updating the grid
view, and work on building the details view.

The issue here is that clicking an element in the grid view is taking
several seconds (5 to 10 on a slower phone) to register. What do I
need to do to speed this action up?

Relevant GridFragment code:

public class GridFragment extends Fragment{
...
public class ImageAdapter extends BaseAdapter  {
private GridContent gridContent;
private Context mContext;

...
public View getView(final int position, View convertView,
ViewGroup parent) {
// ImageView is my private holder class
ImageView imageView;
imageView = new ImageView(mContext);
 
imageView.setImageBitmap(gridContent.get(position).getThumb());

imageView.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View view) {
// This is what I expect to see immediately upon
clicking something,
//  but takes several seconds to show up in logcat
if (Constants.DEBUG){ Log.d(TAG, "an item was clicked
- "
+ gridContent.get(position).getId());}
//mListener is a listener implemented by my
activity
// gridContent.get(position) just returns a small
object,
//  it shouldn't be doing much work
 
mListener.onItemSelected(gridContent.get(position));
}

  });

return imageView;
}
}
}

Relevant Activity code:

@Override
public void onItemSelected(Item item) {
// Displays a loading dialog
showLoadDialog();
Item pi = item;
// This builds an image from the web, it might be slow depending
on the
//  phone's connection
pi.genImage();
FragmentTransaction ft =
getSupportFragmentManager().beginTransaction();
hideLoadDialog();
ft.addToBackStack(Constants.DETAILS_STACK)
.add(android.R.id.content, DetailsFragment.newInstance(0,pi))
.commit();
}

-- 
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] Error : Security Exception : android.permission.CALL_PHONE. INSTRUMENTATION_CODE: 0

2012-02-29 Thread sangam
Hi,

I just wrote a instrumentation test case for the Contacts app,
my test app is just to make a phone call,

i used the  ITelephony  API,s to make a call ,

code :
 private void doITelephonyCall() {
  log("doITelephonyCall()...");

  // Get a phone number from the EditText widget
  String number = "6505551234";

  try {
  ITelephony phone =
ITelephony.Stub.asInterface(ServiceManager.checkService("phone"));
  log("- phone: " + phone);
  log("- calling call()...");
  phone.call(number);
  log("  Done.");
  } catch (RemoteException ex) {
  Log.w(LOG_TAG, "RemoteException!", ex);
  }
  }


while running the test app on mobile i am getting error as :
com.android.contacts.activities.DialtactsActivityTest:INSTRUMENTATION_RESULT:
shortMsg=java.lang.SecurityException
INSTRUMENTATION_RESULT: longMsg=java.lang.SecurityException: Neither
user 10002 nor current process has android.permission.CALL_PHONE.
INSTRUMENTATION_CODE: 0

even though i given all permissions
  


  
 
 


  




Can anybody pls help me how to solve this


-- 
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] hola

2012-02-29 Thread federico federico
diculpe mi telefono no me quiere aceptar la cuenta google en es el u20a

-- 
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 to Intercept Post request in Android WebView?

2012-02-29 Thread Chris Stratton
If you don't figure out anything at the java level, you could probably 
build a proxy into your app and configure the webview to work through it

On Thursday, February 23, 2012 3:58:21 AM UTC-5, xu xuzhuo wrote:
>
> Hi guys, 
>
> I am trying to use WebView to intercept post request. 
> I found in the WebViewClient we can override 
> shouldInterceptRequest(WebView view, String url) method. 
> My question is , here we can only intercept the url, how can we touch 
> the post request body? 
> Or, how can we intercept http post request message in WebView? 
> if  there's anybody has the same situation, please discuss with 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] Android Project

2012-02-29 Thread Ahmed Mahmoud
Hi guys
i'm CS student and on my way to start the graduation project

  but i dont hava an idea yet
so i hope to find anyone here to help me to choise a good idea

-- 
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] Importing source code from book

2012-02-29 Thread BiPoLar
Hi I'm completely new to Android game development and tried to search
within the group to find an answer to my question without any luck.

My problem is I bought the book "Beginning Android Games" and I'm
trying to use the source code they provide here 
http://www.apress.com/9781430230427
in their download page called 'ch06-mrnom'.

I import the folder into Eclipse by going to File>New>Android
Project>Create project from existing source and then I choose the path
directly to the folder 'ch06-mrnom'. It loads the project but it has
61 errors.

 The code is all correct because I've Googled and Googled and that's
the way it is wrote in the book as well. So I know I'm just missing
something. The problem is I don't know what I'm missing that will make
this source code work.

Any help is very appreciated. 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] monkeyrunner device.type() dropping characters

2012-02-29 Thread John
trying to learn how to write monkeyrunner scripts in python:

 
device.startActivity( component='com.android.calculator2/.Calculator' )
time.sleep(1)
device.type( '2*3=' )

starts the calculator, accepts the input and displays the proper
result.  However

 
device.startActivity( component='com.android.browser/.BrowserActivity',
uri='http://www.amazon.com' )
time.sleep(5)
device.type('www.yahoo.com')
device.press('KEYCODE_ENTER', 'DOWN_AND_UP')

starts the browser with www.amazon.com just fine, but then the first
two 'w' from www.yahoo.com get dropped.  I've tried varying the sleep
time and also sending each individual character one device.press() at
a time, but trying to send keystrokes to the browser always results in
leading characters getting dropped.

What am I missing?

-- 
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: USB serial with D2XXSamplefrom FTDI doesn't detect my device.

2012-02-29 Thread Flavien Aubelle
This is a question I myself have !! I'd like to get an answer on that
as well.

On 27 fév, 22:28, Gett  wrote:
> Hello,
>
> I'm trying to use anFTDIUSB chip on Android following the
> instructions at:
>
> http://www.ftdichip.com/Android.htmhttp://www.ftdichip.com/Support/Documents/TechnicalNotes/TN_134_FTDI_...
>
> I've downloaded D2XXSample project and managed to install /data/data/
> com.ftdi.d2xx/libftd2xx-jni.so on the Android Tablet.
>
> The first question is: where should my usb device be listed? in /dev/
> ttyUSB or /dev/bus/usb ? (I don't even have any ttyUSB)
>
> I have given 777 permission to /dev/bus/usb/*
>
> The problem is that when I launch the D2XXSample app, the number of
> devices detected when I click the "Info" button is always 0.
>
> my FT232R doesn't get detected.
>
> I'm working with Android 2.3.4.
>
> Any advice 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] Android 4.x issue: Notification disappear when some time has elapsed, each of all

2012-02-29 Thread Miguel del Amor
Only occurs in Android 4.x.

We raise one notification with app in background when some time has
elapsed, notification disappear; when this ocurrs the logcat looks
this:

02-28 18:12:27.711: I/RegisteredComponentCache(464): ComponentInfo:
ResolveInfo{41884668 com.android.apps.tag.TagViewer p=0 o=0
m=0x108000}, techs: android.nfc.tech.Ndef,
02-28 18:12:27.711: D/PackageManager(206):
generateServicesMap(android.accounts.AccountAuthenticator): 7 services
unchanged
02-28 18:12:27.719: D/AccountTypeManager(5786): Registering
external account type=com.lopez, packageName=com.lopez
02-28 18:12:27.719: D/AccountTypeManager(5786): Registering
external account type=com.whatsapp, packageName=com.whatsapp
02-28 18:12:27.726: W/ResourceType(5786): getEntry failing because
entryIndex 598 is beyond type entryCount 195
02-28 18:12:27.726: W/ResourceType(5786): Failure getting entry
for 0x7f020256 (t=1 e=598) in package 0 (error -2147483647)
02-28 18:12:27.726: D/AccountTypeManager(5786): Registering
external account type=com.twitter.android.auth.login,
packageName=com.twitter.android
02-28 18:12:27.758: D/PackageManager(206):
generateServicesMap(android.content.SyncAdapter): 18 services
unchanged
02-28 18:12:27.765: I/AudioService(206):  AudioFocus
abandonAudioFocus() from android.media.AudioManager@41a65ca8
02-28 18:12:27.851: W/ResourceType(5786): getEntry failing because
entryIndex 206 is beyond type entryCount 195
02-28 18:12:27.859: W/ResourceType(5786): Failure getting entry
for 0x7f0200ce (t=1 e=206) in package 0 (error -2147483647)
02-28 18:12:27.859: D/AccountTypeManager(5786): Registering
external account type=com.facebook.auth.login,
packageName=com.facebook.katana
02-28 18:12:27.867: W/ResourceType(5786): getEntry failing because
entryIndex 280 is beyond type entryCount 195
02-28 18:12:27.867: W/ResourceType(5786): Failure getting entry
for 0x7f020118 (t=1 e=280) in package 0 (error -2147483647)
02-28 18:12:27.867: D/AccountTypeManager(5786): Registering 1
extension packages
02-28 18:12:27.875: E/ExternalAccountType(5786): Unsupported
attribute readOnly
02-28 18:12:27.875: W/ResourceType(5786): getEntry failing because
entryIndex 207 is beyond type entryCount 195
02-28 18:12:27.875: W/ResourceType(5786): Failure getting entry
for 0x7f0200cf (t=1 e=207) in package 0 (error -2147483647)
02-28 18:12:27.883: D/AccountTypeManager(5786): Registering
extension package account type=com.google, dataSet=plus,
packageName=com.google.android.apps.plus
02-28 18:12:27.883: I/AccountTypeManager(5786): Loaded meta-data
for 7 account types, 7 accounts in 167ms(wall) 14ms(cpu)
02-28 18:12:28.047: D/dalvikvm(22579): GC_FOR_ALLOC freed 2150K,
39% free 20337K/32967K, paused 24ms
02-28 18:12:28.492: D/dalvikvm(22579): GC_CONCURRENT freed 2628K,
41% free 19699K/32967K, paused 2ms+4ms
02-28 18:12:28.804: D/dalvikvm(22579): GC_CONCURRENT freed 1060K,
38% free 20513K/32967K, paused 2ms+5ms

The app have one service in background that will close by hisself when
finish the tasks.Code for showing notification is:

int icon = R.drawable.notification;
long when = System.currentTimeMillis();
Notification notification = new Notification(icon, title, when);
notification.flags |= Notification.FLAG_ONGOING_EVENT;
notification.flags &= ~Notification.FLAG_NO_CLEAR; notification.flags
&= ~Notification.FLAG_AUTO_CANCEL;
NotificationManager nm = (NotificationManager)
context.getSystemService(Context.NOTIFICATION_SERVICE);
nm.notify("Lopez",notificationId, 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


Re: [android-developers] Android Market - Test Marketing

2012-02-29 Thread Kostya Vasilyev
Just email them the apk files (or links), then bump the version code in the
manifest before publishing so Market picks up the update (I know this works
for free apps).
01.03.2012 3:29 пользователь "JJ B"  написал:

> Hello,
>
> Is it allowable (or possible) to test market apps by sending out to a few
> colleagues prior to full publication. I understand that Google allows Beta
> publication on Android Market but, to me, that may be less useful than
> controlling the test market population.
>
> Thanks in Advance,
>
> JJ
>
> --
> 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] Android Market - Test Marketing

2012-02-29 Thread JJ B
Hello,

Is it allowable (or possible) to test market apps by sending out to a few
colleagues prior to full publication. I understand that Google allows Beta
publication on Android Market but, to me, that may be less useful than
controlling the test market population.

Thanks in Advance,

JJ

-- 
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: Ethernet jack?

2012-02-29 Thread Chris Stratton
On Wednesday, February 22, 2012 1:04:16 PM UTC-5, bob wrote:
>
> Anyone know if there's a way to hook a tablet PC up to an Ethernet 
> jack? 
>

Buy whichever wireless router is on sale this week?   

-- 
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: File Explorer

2012-02-29 Thread Chris Stratton
On Thursday, February 23, 2012 7:49:45 AM UTC-5, bob wrote:
>
> If I create a file like so, is there a way for me to access this thru 
> the File Explorer? 
>
> FileOutputStream fos = openFileOutput("notes.txt", 0); 
>

If you set the permissions on the file (and any parent folders) to be world 
readable, then yes.  However, you cannot browse through the /data folder, 
so you must use an application which lets you explicitly specify the path 
to an app-specific folder where you have set permissions to enable 
browsing, or to the target file itself.  Most file manager apps won't 
permit that, nor is typing long explicit path names pleasant on most device 
soft keyboards.

Alternatively from the adb shell if your app is built with the debug 
setting you can use the run-as command to launch a shell or command line 
tool as the app's user_id - run-as your.package.name /full/path/of/some/tool

The simplest approach might be to create your files on the sdcard, at least 
during development.

-- 
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: ADB over WiFi

2012-02-29 Thread Chris Stratton
On Wednesday, February 22, 2012 5:12:21 PM UTC-5, Bret Foreman wrote:
>
> I'm considering running ADB over a WiFi connection rather than via the 
> USB cable. I've read a lot of blog posts about it but I want to verify 
> a few things: 
>
> 1) Is it true that the phone must be rooted? If so, is SuperOneClick 
> the preferred tool to use for rooting? 
>

If it's not a built in option as others have mentioned, then yes, you 
normally need root to switch on adb-over-tcp.  There may be some 
workarounds you could set up per-boot by first connecting on wired adb. 
 Launching an ssh server from wired adb after boot would give you shell 
capabilities as the usual shell userid, but not a jdwp debugger or 
integration with adb-based host-side tools.
 

> 2) Once I can connect with command-line ADB over WiFi, is it a simple 
> process to enable download/debugging over WiFi from within Eclipse? 
>

Yes it basically just works.
 

> 3) Are there any "gotchas" that I should look out for? 
>

ADB over TCP likes to timeout without realizing it, at which point you have 
to manually disconnect and reconnect.  The -s parameter to adb must be in 
the form of ipaddress:port when specifying a tcp target.  

-- 
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] switching between api level targets in eclipse

2012-02-29 Thread Ray Tayek

hi, i have an app that i was developing in 4.0.3. works fine.

i need to target a note, so i made a 2.3.3 target and selected it in 
eclipse|prject properties|android. works fine.


i wanted to switch back to 4.0.3, but eclipse seems to be stuck on 
the 4.0.3 target.


rebooting doesn't help.

i am on 64 bit windows 7.

is there some command line trick?

thanks

---
co-chair http://ocjug.org/

--
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: How to get the DB File from real android device

2012-02-29 Thread Chris Stratton
On Friday, February 24, 2012 5:52:51 AM UTC-5, Sridhar Reddy wrote:
>Hi.. Only in emulator we can able to access the db files, but it is not 
possible on Real devices? How to access the db file on real device?

If you have non-root ADB but your app is debug-able you have to use the 
run-as command (or apparently as Dianne notes on later version, su) 

It would be something like 

adb shell
run-as your.package.name /system/bin/sh
whatever shell commands you were trying to do

if you try the ps command after the run-as command, you should see that 
there is now a second copy of /system/bin/sh running as uid app_## in 
addition to the parent copy running as uid 'shell'

If you have neither root nor a debug-able app nor the ability to rebuild it 
as debug-able or with a built-in export capability, you are out of luck.

Beware the adb shell on stock devices is primitive - it seems 'permission 
denied' is the only error message it knows, and it uses it as a synonym for 
command not found, and just about anything else that can go wrong.

-- 
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: USB serial with D2XXSamplefrom FTDI doesn't detect my device.

2012-02-29 Thread Chris Stratton

>
> On Monday, February 27, 2012 4:28:46 PM UTC-5, Gett wrote:
>>
>> I'm trying to use an FTDI USB chip on Android following the 
>> instructions at: 
>>
>> http://www.ftdichip.com/Android.htm 
>>
>> http://www.ftdichip.com/Support/Documents/TechnicalNotes/TN_134_FTDI_Android_D2XX_Driver.pdf
>>  
>>
>  
>
>> The problem is that when I launch the D2XXSample app, the number of 
>> devices detected when I click the "Info" button is always 0. 
>>
>  
>
>> I'm working with Android 2.3.4. 
>>
>
> Are you working on an android device that is known to have usb host 
> capability, and has a host (or OTG) driver in its kernel and has decided to 
> go into usb host mode?
>

The most important thing you haven't mentioned is the android device you 
are testing on.
 
Some thing you could try:

- first search to see if anyone else has done usb host work with the 
android device in question
- use a voltmeter to verify the FTDI chip is powered - many 
pre-official-usb-host-support android devices aren't capable of providing 
this
- adb pull, uncompress, and examine /proc/config.gz  to see what options 
your kernel was compiled with
- run dmesg from the adb shell shortly after a host usage attempt (or even 
during it with a terminal app) and see if there's any mention of a new usb 
device

-- 
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: USB serial with D2XXSamplefrom FTDI doesn't detect my device.

2012-02-29 Thread Chris Stratton
On Monday, February 27, 2012 4:28:46 PM UTC-5, Gett wrote:
>
> I'm trying to use an FTDI USB chip on Android following the 
> instructions at: 
>
> http://www.ftdichip.com/Android.htm 
>
> http://www.ftdichip.com/Support/Documents/TechnicalNotes/TN_134_FTDI_Android_D2XX_Driver.pdf
>  
>
 

> The problem is that when I launch the D2XXSample app, the number of 
> devices detected when I click the "Info" button is always 0. 
>
 

> I'm working with Android 2.3.4. 
>

Are you working on an android device that is known to have usb host 
capability, and has a host (or OTG) driver in its kernel and has decided to 
go into usb host mode?

Some thing you could try:
 

-- 
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: Differences in USB Host support between Embedded Linux and Android phone

2012-02-29 Thread Chris Stratton
On Tuesday, February 28, 2012 1:40:18 AM UTC-5, David Henning wrote:
>
> I'm looking for some help understanding the current USB Host capabilities 
> of the latest Android smartphones versus an embedded processor running a 
> standard Linux build.  I've done quite a bit of driver-level Linux 
> development, but I'm totally new to Android.  
>

If you are in a position to install a customized kernel and alter the 
system partition of the devices, you can use ordinary embedded linux 
methods.  Your main hiccup is figuring out how to give an android 
application user id - which is usually allocated by the package manager - 
access to the device files, though if you are okay with giving all user 
id's access that's a non issue.  What android itself typically does for 
hardware is give ownership of them to semi-privileged GIDs which some 
system apps are able to acquire via matching android permissions.  Many of 
even first generation android devices are able to be USB hosts in this 
manner (see thread on the android kernel group, and on xda developers), 
though most of them would require custom wiring as they are unable to power 
usb peripherals.

I believe Honeycomb and later introduce some android-style APIs for talking 
to USB peripherals from userspace without per-device kernel drivers - 
something akin to libusb, though obviously not libusb.  It's not something 
I've yet had cause to try it personally, but the docs are at h
ttp://developer.android.com/guide/topics/usb/host.html
.

As a general comment, working on a USB host project (using either linux or 
android methods) on and android device will be an exercise in extreme 
frustration unless you have a uid-shell (or better) shell session running 
on it via some non-usb channel that remains available while testing your 
USB host project.  That likely means either getting ADB's daemon listening 
on TCP (if you have root) or else launching an ssh server from the adb 
shell before unplugging from the pc and switching to host mode. 


-- 
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] BrowserFrame Class

2012-02-29 Thread Mark Murphy
On Wed, Feb 29, 2012 at 4:12 PM, JoeyZee  wrote:
> What is the purpose of BrowserFrame.java in the webkit code within
> frameworks/base?

Questions regarding the Android source code belong on a list hosted at
http://source.android.com. This list is for developing apps with the
Android SDK.

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

_Android Programming Tutorials_ Version 4.1 Available!

-- 
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] WMV Easter Egg?

2012-02-29 Thread Mark Murphy
On Wed, Feb 29, 2012 at 4:33 PM, bob  wrote:
> I tried playing back a WMV file on my VIZIO Tablet in a VideoView, and it
> worked.  Any ideas why it works?

Because they licensed codecs for it.

> As far as I can tell, Android only supports MP4 and 3GP according to the
> docs.

That is simply what the AOSP provides, and therefore what should exist
on most devices.

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

_Android Programming Tutorials_ Version 4.1 Available!

-- 
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: fragment transactions in onLoadFinished()

2012-02-29 Thread Nadeem Hasan
I have this in my base Activity:

protected View createContentView( int id ) {
View view = inflate( id );
return createContentView( view );
}

public View createContentView( View view ) {
FrameLayout root = new FrameLayout( this );
root.setLayoutParams(new FrameLayout.LayoutParams(
ViewGroup.LayoutParams.FILL_PARENT, 
ViewGroup.LayoutParams.FILL_PARENT ) );

LinearLayout pframe = new LinearLayout( this );
pframe.setId( R.id.INTERNAL_PROGRESS_CONTAINER_ID );
pframe.setOrientation( LinearLayout.VERTICAL );
pframe.setGravity( Gravity.CENTER );

ProgressBar progress = new ProgressBar( this, null, 
android.R.attr.progressBarStyleLarge );
pframe.addView( progress, new FrameLayout.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT, 
ViewGroup.LayoutParams.WRAP_CONTENT ) );
root.addView( pframe, new FrameLayout.LayoutParams(
ViewGroup.LayoutParams.FILL_PARENT, 
ViewGroup.LayoutParams.FILL_PARENT ) );

FrameLayout lframe = new FrameLayout( this );
lframe.setId( R.id.INTERNAL_FRAGMENT_CONTAINER_ID );
lframe.setVisibility( View.GONE );

lframe.addView( view, new FrameLayout.LayoutParams(
ViewGroup.LayoutParams.FILL_PARENT, 
ViewGroup.LayoutParams.FILL_PARENT ) );
root.addView( lframe, new FrameLayout.LayoutParams(
ViewGroup.LayoutParams.FILL_PARENT, 
ViewGroup.LayoutParams.FILL_PARENT ) );

return root;
}

public void setContentShown( View view, boolean shown ) {
View progress = view.findViewById( R.id.INTERNAL_PROGRESS_CONTAINER_ID 
);
View content = view.findViewById( R.id.INTERNAL_FRAGMENT_CONTAINER_ID );
if ( shown ) {
progress.startAnimation( AnimationUtils.loadAnimation( this, 
R.anim.fade_out ) );
content.startAnimation( AnimationUtils.loadAnimation( this, 
R.anim.fade_in ) );
progress.setVisibility( View.GONE );
content.setVisibility( View.VISIBLE );
} else {
progress.startAnimation( AnimationUtils.loadAnimation( this, 
R.anim.fade_in ) );
content.startAnimation( AnimationUtils.loadAnimation( this, 
R.anim.fade_out ) );
progress.setVisibility( View.VISIBLE );
content.setVisibility( View.GONE );
}
}

protected void setContentShown( boolean shown ) {
View root = findViewById( android.R.id.content );
setContentShown( root, shown );
}


Then in my Fragment I do the following:

@Override
public View onCreateView( LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState ) {
View view = inflater.inflate( R.layout.detail_view, container, false );
return createContentView( view );
}


Here detail_view is the actual content layout.

When my data is ready, I populate it in detail_view and then call:

   setContentShown( true );


Hope this helps. BTW, this is fully inspired by ListFragment implementation 
of content.

-- 
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] WMV Easter Egg?

2012-02-29 Thread bob
 

I tried playing back a WMV file on my VIZIO Tablet in a VideoView, and it 
worked.  Any ideas why it works?

As far as I can tell, Android only supports MP4 and 3GP according to the 
docs.



-- 
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] BrowserFrame Class

2012-02-29 Thread JoeyZee
What is the purpose of BrowserFrame.java in the webkit code within
frameworks/base?  I see that it is instantiated by WebViewCore and
seems to handle the frame related functions of webview, but what
exactly is its purpose ?  What is meant by a frame in this context?
Is it equivalent to a tab in the browser ?

-- 
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: EditText input into array

2012-02-29 Thread minnie me
got it..i put it after the button click now..and i don't have tiime to
learn java first..i need to do both. thanks

On Feb 29, 8:27 am, TreKing  wrote:
> On Wed, Feb 29, 2012 at 12:53 AM, minnie me  wrote:
> > This is my new updated code, it prints out blank input in the
> > array...so why is it not storing my user input?
>
> Your variable player is never set to the text after clicking your button.
> I think you need to spend some time learning Java before you jump into
> Android.
>
> -
> 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] What happend on 02/14 on Verizon?

2012-02-29 Thread Mark Ayers
No news articles I can find.

On Wed, Feb 29, 2012 at 1:35 AM, Mirko Schenk  wrote:

> Hi,
>
> maybe it's just some strange coincidence, but thanks to the improved
> statistics I noticed that according to those stats, about 10,000 users
> uninstalled my app on 02/14 - almost all of them being Verizon users.
> All other countries and providers remained stable. I also didn't do an
> update or anything else on that day or the few before.
> Did something special happen that day on Verizon, like a special
> offer, an own Market alternative, or something like that?
> Did this only happen to my app, regard a category (it's a music
> player), or is this a general phenomenon?
>
> Regards
> Mirko
>
> --
> 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] Re: Losing memory on tablet but not phone

2012-02-29 Thread Mark Ayers
I've noticed a LOT of memory management issues with Honeycomb on my ASUS 
Transformer. I think there might be a defect in Honeycomb, because after my 
ICS OTA got pushed, all of those issues are gone.

On Monday, February 27, 2012 8:53:30 PM UTC-8, Yan wrote:
>
> The following eats away the heap on the Toshiba Thrive but not on the 
> LG G2X: 
>
> byteBuf = ByteBuffer.allocateDirect(vertices.length * 4); 
> byteBuf.order(ByteOrder.nativeOrder()); 
> vertexBuffer = byteBuf.asFloatBuffer(); 
> vertexBuffer.put(vertices); 
> vertexBuffer.position(0); 
>
> I've tried byteBuf.clear, byteBuf.reset, making byteBuf static, 
> System.gc, and combinations of these, but nothing works. I wonder why 
> this is only a problem on the Toshiba but not the LG? 
>

-- 
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] I want to learn the android os ,have any suggestion?

2012-02-29 Thread Mark Ayers
Agreed. Android uses a lot of defaults and it's nice to have access to the
source. It's worth more to have the source than 2 or 3 extra AVDs.

On Wed, Feb 29, 2012 at 10:24 AM, Kristopher Micinski <
krismicin...@gmail.com> wrote:

> Not for this list: you want to check out
>
> source.android.com
>
> There are a few things: the vm, the framework, and the OS.  The OS is
> linux, kernel development isn't that easy, so hopefully you've got
> some C experience.  The vm is nontrivial, though not that bad.
> However, reading the frameworks are probably the most useful for
> someone who wants to be a better android developer.
>
> kris
>
> On Wed, Feb 29, 2012 at 10:05 AM, ttgdz  wrote:
> >  I have seen some applications in android ,and I know something about
> > the upper development,now I want to learn deeper in the native,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
>
> --
> 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] Re: is there a way to know the length of an streaming audio file?

2012-02-29 Thread IS SOA
anybody?

On Wednesday, February 29, 2012 12:02:55 AM UTC-5, IS SOA wrote:
>
> i am streaming the audio files and wondering is there a way in the 
> code can find out the length (time) of the song for displaying purpose 
>
> something like this: 
>
> Song Name 05.20 
>

-- 
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] I want to learn the android os ,have any suggestion?

2012-02-29 Thread Kristopher Micinski
Not for this list: you want to check out

source.android.com

There are a few things: the vm, the framework, and the OS.  The OS is
linux, kernel development isn't that easy, so hopefully you've got
some C experience.  The vm is nontrivial, though not that bad.
However, reading the frameworks are probably the most useful for
someone who wants to be a better android developer.

kris

On Wed, Feb 29, 2012 at 10:05 AM, ttgdz  wrote:
>  I have seen some applications in android ,and I know something about
> the upper development,now I want to learn deeper in the native,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

-- 
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 Map API usage

2012-02-29 Thread Krishna Kumaar Natarajan
I started my basic application.
Followed this video lecture.

http://www.youtube.com/watch?v=vgr4l1nsFdU&feature=g-hist&context=G2d64a1fAHT05jLwADAA

3 chapters.

At the end, he was using R.id attribute but no such attribute available in
my R.java file.
Any solution for this ?

On Mon, Feb 20, 2012 at 7:13 PM, dEEPESH PPM  wrote:

> Hi,
>
> Please refer the following links
>
> https://code.google.com/apis/console/#project:58720998082:access
> http://eagle.phys.utk.edu/guidry/android/mapOverlayDemo.html
>
> http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/
>
> http://www.nutiteq.com/system/files/Hello%20Map%20tutorial%20-%20Android_1_0_2.pdf
>
> Deepesh
>
> On Sun, Feb 19, 2012 at 11:00 PM, Krishna Kumaar Natarajan <
> nikrish...@gmail.com> wrote:
>
>> Hi All,
>>
>> I am new to android development.
>> Can I get some links where I can learn using google Maps API ?
>>
>> Thanks in advance
>>
>> --
>> Regards,
>>
>> Krishna Kumaar N.I.
>>
>> --
>> 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




-- 
Regards,

Krishna Kumaar N.I.

-- 
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] Notification area remains open on ICS

2012-02-29 Thread TreKing
On Wed, Feb 29, 2012 at 7:52 AM, bt  wrote:

> Is there any solution to close it automatically after click?


You have this flag set?
http://developer.android.com/reference/android/app/Notification.html#FLAG_AUTO_CANCEL


-
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] I want to learn the android os ,have any suggestion?

2012-02-29 Thread luciofm
Read the documentation maybe?

Lúcio Maciel
luci...@gmail.com


On Wed, Feb 29, 2012 at 12:05, ttgdz  wrote:

>  I have seen some applications in android ,and I know something about
> the upper development,now I want to learn deeper in the native,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

-- 
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   >