[android-developers] Я не могу зарегистриваться Разработчиком по Украинскому паспорту, почему ?

2023-05-30 Thread Ga Me
Я не могу зарегистриваться Разработчиком по Украинскому паспорту, почему ?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/28fddc76-0076-4e68-9398-b151301ee88an%40googlegroups.com.


[android-developers] wlan blacklisting

2016-12-22 Thread me
Hey guys!

in our app, i use wifimanager to manually connect to wlan networks. since 
android 7
on a pixel phone wlan connections get rejected with:

12-22 21:52:18.499 1070-1450/? E/WifiQualifiedNetworkSelector:: 
MyWifi:84:dd:20:a6:96:84 is in blacklist.

Is there any way to unblacklist wifi configurations? Connecting via 
settings also fails for an amount of time,
so this blacklisting times out.

Greetings,
dimatosaurus

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/ae1bec66-4374-4d52-a7d7-5dcb9e68743b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] removing items from listview and array list problem

2012-03-04 Thread minnie me
I have this code i am used to pass an array list to another page and
show it as a listview. When the list shows up, i want to be able to
check an item and remove it at button click which will modify the
array.

public class Oppout extends Activity {
int selectedPosition;
/** Called when the activity is first created. */

@Override
public void onCreate(Bundle savedInstanceState) {

  super.onCreate(savedInstanceState);
  setContentView(R.layout.oppout);

 final ListView lv2 = (ListView) findViewById
(R.id.custom_list_view);
 lv2.setClickable(true);
 lv2.setAdapter(new ArrayAdapterString(Oppout.this,
   android.R.layout.simple_list_item_checked,
Entername.playerList));

 lv2.setOnItemClickListener
 (
new AdapterView.OnItemClickListener()
{
public void onItemClick(AdapterView adapterView, 
View
view,int arg2, long arg3)
{
   int selectedPosition =
adapterView.getSelectedItemPosition();

   Toast.makeText(getBaseContext(), mu+
selectedPosition,
   Toast.LENGTH_SHORT).show();

}
}
 );


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

public void onClick(View view) {
//on click call the adapterview and 
delete string at selected
position..this is my problem,
//i just don't know how to do it
 int selectedPosition = 
adapterView.getSelectedItemPosition();
 
adapterView.remove(player.SelectedPosition);

Intent myIntent = new Intent 
(view.getContext(),
Callacab.class);

startActivityForResult(myIntent, 0);

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


[android-developers] 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 treking...@gmail.com wrote:
 On Wed, Feb 29, 2012 at 12:53 AM, minnie me mgm...@gmail.com 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 http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


[android-developers] Re: EditText input into array

2012-02-28 Thread minnie me
It doesn't store array and allow me to display it on click

On Feb 28, 8:45 am, TreKing treking...@gmail.com wrote:
 On Mon, Feb 27, 2012 at 9:45 PM, minnie me mgm...@gmail.com wrote:
  Add more button and storing to array doesn't quite work

 Would you explain what doesn't quite work 
 means?http://www.catb.org/~esr/faqs/smart-questions.html

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

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


[android-developers] Re: EditText input into array

2012-02-28 Thread minnie me
This is my new updated code, it prints out blank input in the
array...so why is it not storing my user input?
public class Screen2 extends Activity {
 EditText txt1;
String player;
ArrayListString playerList = new ArrayListString();


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

// edittext1 or textview1
txt1 = (EditText) findViewById(R.id.editText1);
player = txt1.getText().toString();


//add more items button
Button more = (Button) findViewById(R.id.button1);
more.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view){
if (txt1.getText().toString().length() !=0){
playerList.add(player);
}
System.out.println(playerList.toString());
}

});


On Feb 28, 12:54 pm, TreKing treking...@gmail.com wrote:
 On Tue, Feb 28, 2012 at 11:46 AM, minnie me mgm...@gmail.com wrote:
  It doesn't store array and allow me to display it on click

 That's still quite ambiguous. Read the link I gave you, then please try
 again, with more detail. Explain what you are doing. Pretend we have no
 knowledge of your problem since, you know, we don't.

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

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


[android-developers] EditText input into array

2012-02-27 Thread minnie me


I have an input box (EditText1) 1. that i want to keep adding values
and save them to an Array 2. then when am done, i can click the done
button and it can take me to the next screen and I can display the
values or call the values of the array.. this is what i have so far 1.
Done Button Works 2. Add more button and storing to array doesn't
quite workHELP PLZ,

Thanks

public class Screen2 extends Activity {
private EditText txt1;
String ag;

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

// edittext1 or textview1
txt1 = (EditText) findViewById(R.id.editText1);
ag = txt1.getText().toString();

// done button
// -done button---
Button done = (Button) findViewById(R.id.button2);
done.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {

if(txt1.getText().length() != 0){
String ag = Players:, +txt1.getText().toString();
Toast.makeText(getBaseContext(), ag,
Toast.LENGTH_SHORT).show();

Intent myIntent = new Intent(view.getContext(),
Screen3.class);
startActivityForResult(myIntent, 0);

}else if (txt1.getText().length() == 0){
String ag = Error!! Enter Player Name;
Toast.makeText(getBaseContext(), ag,
Toast.LENGTH_SHORT).show();
}}

});

//add more items button need help on how to go about the array
Button more = (Button) findViewById(R.id.button1);
more.setOnClickListener(new View.OnClickListener() {
public void onClick(View view){
Intent myIntent = new Intent(view.getContext(),
Screen2.class);
startActivityForResult(myIntent, 0);
}

});

}}

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


[android-developers] Re: check box states

2012-02-27 Thread minnie me
thanks, it work

On Feb 23, 10:45 am, chanakyaraichur chanakyaraic...@gmail.com
wrote:
 Instead of checkbox.ispressed()
 Use !checkbox.ischecked
 On Feb 23, 2012 8:32 PM, TreKing treking...@gmail.com wrote:







  On Tue, Feb 21, 2012 at 9:39 PM, minnie me mgm...@gmail.com wrote:

  Am trying to get the count of how many check boxes are selected and if
  you de-select one, it's suppose to update the counter to -1..So if
  i select 4 check boxes and it says check less = count 4...then i
  pick 3 and the counter=3..this is what i have:

  And the problem is ... ?
 http://www.catb.org/~esr/faqs/smart-questions.html

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

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

-- 
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] check box states

2012-02-23 Thread minnie me
Am trying to get the count of how many check boxes are selected and if
you de-select one, it's suppose to update the counter to -1..So if
i select 4 check boxes and it says check less = count 4...then i
pick 3 and the counter=3..this is what i have:
// ---CheckBox 1---
   final CheckBox checkBox = (CheckBox)
findViewById(R.id.checkBox1);

   // ---CheckBox 2---
   final CheckBox checkBox2 = (CheckBox)
findViewById(R.id.checkBox2);

   // ---CheckBox 3---

   final CheckBox checkBox3 = (CheckBox)
findViewById(R.id.checkBox3);


   // ---CheckBox 4---

   final CheckBox checkBox4 = (CheckBox)
findViewById(R.id.checkBox4);

   Button next = (Button) findViewById(R.id.button1);
   next.setOnClickListener(new View.OnClickListener() {
   public void onClick(View view) {
   if (checkBox.isChecked())
   count++;
   if (checkBox.isPressed())
   count--;
   if (checkBox2.isChecked())
   count++;
   if (checkBox2.isPressed())
   count--;
   if (checkBox3.isChecked())
   count++;
   if (checkBox3.isPressed())
   count--;
   if (checkBox4.isChecked())
   count++;
   if (checkBox4.isPressed())
   count--;
   if (count == pubsSelected){
   Intent myIntent = new Intent(view.getContext(),
Screen2.class);
   startActivityForResult(myIntent, 0);
   }
   else if (count  pubsSelected)
   DisplayToast(Pick more pubs/holes);
   else if (count  pubsSelected)
   DisplayToast(Pick less pubs/holes);
   }

   });
   }

-- 
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 set the preferred APN through code?

2012-01-23 Thread Putti Me
Thanks Sayed for the sample code. But unfortunately even that didn't work.
The 'insert' i.e. the line:


getContentResolver().insert(*PREFERRED_CONTENT_URI*, values);


always returns null.

I'm using 2.3.3. Looks like there is something missing.


 Note that, as of Android 4.0, this is no longer possible.
We can at least change the individual APN values, right.

i.e. use the following line of code:


getContentResolver().update(Uri.*parse(content://telephony/carriers**),
values, blah, blah, blah);
*

Otherwise APNDroid won't work.


Thanks

On Tue, Jan 24, 2012 at 12:17 AM, Tom t...@malcolmson.ca wrote:

 Note that, as of Android 4.0, this is no longer possible.

 The permission still exists, but any attempt to write the APN will fail.

 Presumably the carriers put pressure on Google to block this capability...
too bad.

 --
 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] Runtime.exec(su) issue.

2012-01-17 Thread Putti Me
I try to execute the following code:

*

try
{
 Process process = Runtime.getRuntime().exec(su);
// blah blah
}
catch (Exception e)
{
 res += ERROR  + e.getMessage() + \n;
}

*

And I get the following exception::

Error running exec(). Command: [su] Working Directory: null Environment:
null

Any reason why?
Do I need root access on my 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

Re: [android-developers] Wifi is currently being used.

2012-01-16 Thread Putti Me
Thanks for that info.


getTotalRxByteshttp://developer.android.com/reference/android/net/TrafficStats.html#getTotalRxBytes()()
+ 
getTotalTxByteshttp://developer.android.com/reference/android/net/TrafficStats.html#getTotalRxBytes()()
gives me the total bytes transferred.

Does this include all data i.e.

   - mobile
   - wifi
   - bluetooth
   - anything else



I can get the individual usage for mobile by using
getMobileRxByteshttp://developer.android.com/reference/android/net/TrafficStats.html#getMobileRxBytes()
and
getMobileTxByteshttp://developer.android.com/reference/android/net/TrafficStats.html#getMobileRxBytes()
.

To get wifi usage, will the following code work?

long b1 = 
getMobileRxByteshttp://developer.android.com/reference/android/net/TrafficStats.html#getMobileRxBytes()()
+ 
getMobileTxByteshttp://developer.android.com/reference/android/net/TrafficStats.html#getMobileRxBytes()
();
long b2 = 
getTotalRxByteshttp://developer.android.com/reference/android/net/TrafficStats.html#getTotalRxBytes()()
+ 
getTotalTxByteshttp://developer.android.com/reference/android/net/TrafficStats.html#getTotalRxBytes()
();

long   wifi_usage = b2 - b1;   // is this correct?



Is there any other way of getting the individual usage for WiFi only?


Thanks


On Mon, Jan 16, 2012 at 8:33 PM, Mark Murphy mmur...@commonsware.comwrote:

 TrafficStats can tell you the number of bytes/packets/etc. transferred
 over WiFi or mobile data.

 On Mon, Jan 16, 2012 at 6:49 AM, Put_tiMe putt...@gmail.com wrote:
  I want to determine if the Wifi is being used currently.
 
  AFAIK, Wifi can be in a connected state, but there need not be any
  data being transferred currently.
 
  I can get whether the Wi-fi is connected or not by doing this:
 
 
 
  android.net.ConnectivityManager pCM =
 
 (android.net.ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
 if(null != pCM)
 {
 NetworkInfo aNI =
  pCM.getNetworkInfo(android.net.ConnectivityManager.TYPE_WIFI);
 if(null != aNI)
 {
 NetworkInfo.DetailedState
 aDS = aNI.getDetailedState();
 
 if(NetworkInfo.DetailedState.IDLE
 == aDS ||
  NetworkInfo.DetailedState.FAILED == aDS ||
 
  NetworkInfo.DetailedState.DISCONNECTED == aDS ||
  NetworkInfo.DetailedState.SUSPENDED == aDS)
 {
 WifiManager
   theWiFi =
  (WifiManager)getSystemService(WIFI_SERVICE);
 
 if(null != theWiFi)
 {
 // do something
   }
  }
 else
 {
 // do something
 }
 }
 }
 
 
 
  But I am not able find an API if the Wifi data transfer is happening.
  Is there any way I can know this?
 
  Thanks
 
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



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

 Android Training in DC: http://marakana.com/training/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

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

Re: [android-developers] Custom list and onClick

2011-07-04 Thread Me
Hi Dawid Fixus ;
 It should work for single click . . .
Have you put the breakpoint in method

public void onClick(View v) {
   Log.i(testy, this.news.getName());
   }

and see if the control is coming into this method on single click  . . ..


On Fri, Jul 1, 2011 at 9:47 PM, fixus dpacholc...@gmail.com wrote:

 Hi everyone.
 I have a problem with my custom list. I`ve created my own adapter and
 everything works great. I have a nice list.
 But no I want to add an OnClickListener so I can click on a row and
 actualy do something. I`ve created the listener and added it to the
 one item of my row BUT it works only at the second click/touch. On the
 first nothing happens. I mean that I need to click 2 times on a item
 to get some action

 Below my adapter, onclick and row.xml

@Override
public View getView(int position, View convertView, ViewGroup
 parent) {
View v = convertView;

if(v == null) {
LayoutInflater vi =
 (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = vi.inflate(R.layout.row, null);
}

News news = this.items.get(position);
if(news != null) {
TextView tt = (TextView) v.findViewById(R.id.toptext);
TextView bt = (TextView)
 v.findViewById(R.id.bottomtext);
if (tt != null) {
  tt.setText(Name: + news.getName());
  tt.setOnClickListener(new TestOnClick(news));
  }
if(bt != null){
  bt.setText(Status: +
 news.getUrl().toString());
}
}

return v;
}
}

private class TestOnClick implements OnClickListener {
News news;
public TestOnClick(News n) {
this.news = n;
}
public void onClick(View v) {
Log.i(testy, this.news.getName());
}
}

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
android:layout_width=fill_parent
android:layout_height=?android:attr/listPreferredItemHeight
android:padding=6dip
ImageView
android:id=@+id/icon
android:layout_width=wrap_content
android:layout_height=fill_parent
android:layout_marginRight=6dip
android:src=@drawable/icon /
LinearLayout
android:id=@+id/item
android:orientation=vertical
android:layout_width=0dip
android:layout_weight=1
android:layout_height=fill_parent
TextView
android:id=@+id/toptext
android:layout_width=fill_parent
android:layout_height=0dip
android:layout_weight=1
android:gravity=center_vertical
android:focusable=true
android:focusableInTouchMode=true
android:clickable=true
/
TextView
android:id=@+id/bottomtext
android:layout_width=fill_parent
android:layout_height=0dip
android:layout_weight=1
android:gravity=center_vertical
android:focusable=true
android:focusableInTouchMode=true
android:clickable=true
/

/LinearLayout
 /LinearLayout

 Please help

 Best regards
 Dawid Fixus Pacholczyk

 --
 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 :*
   *Muhammad Nasir Aftab*
---

-- 
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] Connect via Bluetooth without Permission

2011-06-23 Thread Me
Dear Shaurim . .
 It is not possible to remove/replace the Permission
Request Message (Its due to security reason) ,

On Tue, Jun 21, 2011 at 5:12 AM, Shaurin shauringh...@gmail.com wrote:

 I have to connect two devices via Bluetooth in such a way that the
 sending device sends a string (for example,'Hello world') to the
 device found in Device Discovery. It should be noted that this should
 not ask for the second device to accept the connection request. The
 string should automatically be sent to the found device.

 Please help me in 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




-- 
---
*Regards :*
   *Muhammad Nasir Aftab*
---

-- 
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] HTML ImageGetter not working, showing a square with text obj

2011-06-07 Thread Agnes Despicable Me
Hi all,

I have a TextView in a ScrollView. Within the TextView there are
instructions on how to walk to a particular destination (like Google
maps directions). What I want to do is display an image before the
line of instruction.
E.g: [image here] Turn to left.

I use html imageGetter to accomplish this, however I fail to display
the image, I've tried many different implementations and none of them
works =( What I get
I'm so disappointing now, because on the Internet everybody seems to
have it working!

Below some codes I'm using:

ImageGetter imageGetter = new ImageGetter() {
public Drawable getDrawable(String source) {
 Drawable drawFromPath;
 int path = Route.this.getResources().getIdentifier(source,
drawable,com.prj56.tracingapp);
 drawFromPath = (Drawable)
Route.this.getResources().getDrawable(path);
 drawFromPath.setBounds(0, 0,
drawFromPath.getIntrinsicWidth(), drawFromPath.getIntrinsicHeight());
return drawFromPath;
  }
};

and calling it with:

directions += Html.fromHtml(img src=\smiley\, imageGetter, null)
+  Turn to left\n;


My other (attempts of) implementations of imageGetter:

ImageGetter imageGetter2 = new ImageGetter() {
public Drawable getDrawable(String source) {
Drawable d = null;
d = Drawable.createFromPath(source);
d.setBounds(0,0, d.getIntrinsicWidth(), d.getIntrinsicHeight());
return d;
}
};

ImageGetter imageGetter3 = new ImageGetter() {
public Drawable getDrawable(String source) {
int id=0;
if (source.equals(smiley)) {
id = R.drawable.smiley;
}
Drawable d = getResources().getDrawable(id);
d.setBounds(0, 0, d.getIntrinsicWidth(), 
d.getIntrinsicHeight());
return d;
}
};



-- 
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] Help needed in.android tabs

2011-05-07 Thread Me
Can't understand what you exactly need ,for tabs you can visit below links
...

http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

http://developer.android.com/resources/tutorials/views/hello-tabwidget.html
http://kpbird.blogspot.com/2011/05/androidbottom-tabbar-control.html#more

2011/5/6 आशुतोष हिन्दुस्तानी ashutosh.h...@gmail.com

 Hi all,
 Please share the xml code for adding multiple edittexts in a single tab .
 Thanks alot

 --
 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 :*
   *Muhammad Nasir Aftab*
---

-- 
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: onBackPressed to hide Not destroy activity

2011-05-07 Thread Me
On back button you need to save the instance state of activity . . .


On Fri, May 6, 2011 at 11:51 PM, Kevin TeslaCoil Software 
ke...@teslacoilsw.com wrote:

 moveTaskToBack is what you're asking for, but check the rest of the
 documentation about the lifecycle too to make sure it's what you
 actually need.
 http://developer.android.com/reference/android/app/Activity.html

 On May 6, 11:07 am, Cel kristjan.la...@gmail.com wrote:
  i know how to cancel back keypress, so that the activity / main window
  stays visible:
 
  public void onBackPressed() {
  return;
  }
 
  my aim is to hide the activity, however, without finishing it, how do
  you do that in the onBackPressed event?
 
  i.e. I would like to get as far as onPause(), but not evoke the
  onBackPressed() default behaviour that essentially calls finish().
  another way to put it is that i would like to mimic
  onUserLeaveHint() ?
 
  any help 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




-- 
---
*Regards :*
   *Muhammad Nasir Aftab*
---

-- 
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] Fwd: How to Implement onChildClick Listener

2011-05-07 Thread Me
Repeating Message
I also put this issue on
http://stackoverflow.com/questions/5897093/android-expandablelistview-using-baseexpandablelistadapter
http://stackoverflow.com/questions/5897093/android-expandablelistview-using-baseexpandablelistadapterbut
still not able what I am doing wrong to get the onChildClick Listener ...

-- Forwarded message --
From: Me tonasirin...@gmail.com
Date: Thu, May 5, 2011 at 6:53 PM
Subject: How to Implement onChildClick Listener
To: android-developers@googlegroups.com


I am following the example code given on android developer site for develop
Expandable List View link as
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.html

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.htmlHere
I am trying to implement onChildClick Listener ...
For this I am doing as

  super.onCreate(savedInstanceState);
mAdapter = new MyExpandableListAdapter();
setListAdapter(mAdapter);
   getExpandableListView().setOnChildClickListener(this);

in ExpandableList1

and overriding this method

@Override
 public boolean onChildClick(ExpandableListView parent, View v, int
groupPosition, int childPosition, long id){
 System.out.print(This is the test);
 return false;
 }
in same ExpandableList1 as it extend ExpandableListActivity
But control not coming inside the onChildClick () method .
Anyone guide me where I am doing the wrong ...
Hope someone teach where is my mistake 


---
Regards :
   Aftab
---



-- 
---
*Regards :*
  * Aftab*
---

-- 
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 Implement onChildClick Listener

2011-05-05 Thread Me
I am following the example code given on android developer site for develop
Expandable List View link as
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.html

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.htmlnow
I am trying to implement onChildClick Listener ...
For this I am doing as
  super.onCreate(savedInstanceState);
mAdapter = new MyExpandableListAdapter();
setListAdapter(mAdapter);
   getExpandableListView().setOnChildClickListener(this);

in ExpandableList1

and overriding this method

@Override
 public boolean onChildClick(ExpandableListView parent, View v, int
groupPosition, int childPosition, long id){
System.out.print(This is the test);
 return false;
 }
in same ExpandableList1 as it extend ExpandableListActivity
But control not coming inside the onChildClick () method .
Anyone guide me where I am doing the wrong ...
Hope someone teach where is my mistake 


---
Regards :
   Aftab
---

-- 
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] encryption give different result in android and jsp

2011-04-28 Thread me mine
Hi all,
I use encryption method like at post:
http://groups.google.com/group/android-developers/browse_thread/thread/091d69976f4b9362.

public class SimpleCrypto {

public static String encrypt(String seed, String cleartext)
throws
Exception {
byte[] rawKey = getRawKey(seed.getBytes());
byte[] result = encrypt(rawKey,
cleartext.getBytes());
return toHex(result);
}

public static String decrypt(String seed, String encrypted)
throws
Exception {
byte[] rawKey = getRawKey(seed.getBytes());
byte[] enc = toByte(encrypted);
byte[] result = decrypt(rawKey, enc);
return new String(result);
}

private static byte[] getRawKey(byte[] seed) throws Exception
{
KeyGenerator kgen = KeyGenerator.getInstance(AES);
SecureRandom sr =
SecureRandom.getInstance(SHA1PRNG);
sr.setSeed(seed);
kgen.init(128, sr); // 192 and 256 bits may not be
available
SecretKey skey = kgen.generateKey();
byte[] raw = skey.getEncoded();
return raw;
}

private static byte[] encrypt(byte[] raw, byte[] clear) throws
Exception {
SecretKeySpec skeySpec = new SecretKeySpec(raw, AES);
Cipher cipher = Cipher.getInstance(AES);
cipher.init(Cipher.ENCRYPT_MODE, skeySpec);
byte[] encrypted = cipher.doFinal(clear);
return encrypted;
}

private static byte[] decrypt(byte[] raw, byte[] encrypted)
throws
Exception {
SecretKeySpec skeySpec = new SecretKeySpec(raw, AES);
Cipher cipher = Cipher.getInstance(AES);
cipher.init(Cipher.DECRYPT_MODE, skeySpec);
byte[] decrypted = cipher.doFinal(encrypted);
return decrypted;
}

public static String toHex(String txt) {
return toHex(txt.getBytes());
}
public static String fromHex(String hex) {
return new String(toByte(hex));
}

public static byte[] toByte(String hexString) {
int len = hexString.length()/2;
byte[] result = new byte[len];
for (int i = 0; i  len; i++)
result[i] =
Integer.valueOf(hexString.substring(2*i, 2*i+2),
16).byteValue();
return result;
}

public static String toHex(byte[] buf) {
if (buf == null)
return ;
StringBuffer result = new StringBuffer(2*buf.length);
for (int i = 0; i  buf.length; i++) {
appendHex(result, buf[i]);
}
return result.toString();
}
private final static String HEX = 0123456789ABCDEF;
private static void appendHex(StringBuffer sb, byte b) {
 
sb.append(HEX.charAt((b4)0x0f)).append(HEX.charAt(b0x0f));
}

}

since i can not get work same encryption method in php webserver, i do
it using jsp webserver.
but the result of the encryption is not same.
example:
plain: test
key: 123456
encrypt: 1D402811E4FDD1B14412B3E1AA328450

but in the android, i got: ACE3D0F0C96B2B13DDD6372A61DFCAA5

i did print both of the code, to check if one of them have different,
but it is same.

can someone help what possible wrong or what i should check in both
code?
or.. the encryption method is not match by the one done with jsp ?

-- 
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] Fwd: Handle Multi Screen

2011-04-23 Thread Me
-- Forwarded message --
From: Me tonasirin...@gmail.com
Date: Wed, Apr 20, 2011 at 6:11 PM
Subject: Handle Multi Screen
To: android-developers@googlegroups.com


Hi Community I am using smack for a chatting module in my application …

Now there is need to handle the multi chat screens.

Right now I am opening my chat screen activity as below

Intent chatIntent=new Intent(HomeActivity.this,ChatActivity.class);

startActivity(chatIntent);

When a user press back button/receive call/other function to that away
him/her from current screen There I need to handle the activity GUI with
data..

What should I do for this ?

Is there other way I can user other View else start to new activity for chat
windows . . . .

How I can handle the multi chat screens ….

Thanks  . .
---
Regards :
   Aftab
---



-- 
---
Regards :
   Muhammad Nasir Aftab
---

-- 
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] Handle Multi Screen

2011-04-20 Thread Me
Hi Community I am using smack for a chatting module in my application …

Now there is need to handle the multi chat screens.

Right now I am opening my chat screen activity as below

Intent chatIntent=new Intent(HomeActivity.this,ChatActivity.class);

startActivity(chatIntent);

When a user press back button/receive call/other function to that away
him/her from current screen There I need to handle the activity GUI with
data..

What should I do for this ?

Is there other way I can user other View else start to new activity for chat
windows . . . .

How I can handle the multi chat screens ….

Thanks  . .
---
Regards :
   Aftab
---

-- 
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] Activity Restart On Rotate Phone

2011-04-20 Thread Me
Dear Anik Ralhan;
Add below lines to your menifest file
android:configChanges=orientation and one of activty
method need to override  . .
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);

}

If still you are facing problem feel free to ask . . .


On Mon, Apr 11, 2011 at 10:54 PM, anik ralhan rebellion.a...@gmail.comwrote:

 hey can you please send me the steps that you followed,actually m also
 facing the same problem


 On Sun, Apr 10, 2011 at 2:56 PM, Me tonasirin...@gmail.com wrote:

 Hi thanks group  I solved this one 



 On Mon, Apr 11, 2011 at 1:34 AM, TreKing treking...@gmail.com wrote:

 On Sun, Apr 10, 2011 at 1:12 AM, Jons Jean tonasirin...@gmail.comwrote:

 problem is this when I rotate phone its activity got restart , How I can
 handle it ?


 Read the documentation. This is covered extensively in the life cycle
 documentation.

 From google I find the way to handle this to add below line in menifest
 fine  I add this line but same problem  ,
  android:configChanges=orientation


 That's a hack around the main problem of saving state. Doing this so that
 you don't have to save your state will only mask the problem. You may not
 restart on orientation change, but your app will restart when you press Home
 and come back to it some time later. You should be able to handle this and
 switching orientation is the quickest and easiest way to test this.


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

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




 --
 ---
 Regards :
Muhammad Nasir Aftab
 ---

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




 --
 *
 --
 Anik Ralhan*
 *3rd year Student *
 *Chitkara University*

  --
 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 :
   Muhammad Nasir Aftab
---

-- 
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] pen source XMPP client for android

2011-04-17 Thread Me
Dear All ;
   Anyone can point me *o**pen source XMPP client for android ?*
**I am working on a social network application where I need to handle client
side .I can't know which xmpp client I use for this . .

thanks

---
Regards :
   Muhammad Aftab
---

-- 
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] pen source XMPP client for android

2011-04-17 Thread Me
Thanks* luixal and *A.TNG ;
*  As I try it to download from SVN
its giving error as ERROR OPTIONS of 'http://www.beem-project.com/hg/trunk':
200 Script output follows (http://www.beem-project.com) .*
*
*
*So I download the beem in zip from that is available on
http://www.beem-project.com/hg/trunk ,*
I import it in eclipse it was showing errors (Missing classes) then I
add smack_3_1_0 jar file to project Libraries it remove some errors but
still It missing some classes and eclipse displaying as missing classes
*
*
*The import org.jivesoftware.smack.Connection cannot be resolved*
*The type org.jivesoftware.smack.util.Base64 is not visible*
*The import org.jivesoftware.smack.Connection cannot be resolved*
*
*
*so on some more . .*
*
*
*I don't know what libraries I am missing ?*
*
*
* *
*
*
*
*
*
*
On Sun, Apr 17, 2011 at 4:43 PM, luiX_ lui...@gmail.com wrote:

 Important point, I've working on this last week and could only solve the
 problems I was having by using the jar in the beem souce, they have fixed
 the one from aSmack that doesn't work at all... take that in mind ;)

 2011/4/17 A.TNG tang.j...@gmail.com

 Maybe you can check this out. http://www.beem-project.com/.


 On Sun, Apr 17, 2011 at 7:55 PM, Me tonasirin...@gmail.com wrote:

 Dear All ;
Anyone can point me *o**pen source XMPP client for
 android ?*
 **I am working on a social network application where I need to handle
 client side .I can't know which xmpp client I use for this . .

 thanks

 ---
 Regards :
Muhammad Aftab
 ---

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

  --
 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 :
   Muhammad Nasir Aftab
---

-- 
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+Google Docs

2011-04-16 Thread Me
Dear Reptil ;
  In some past I use smack jar for this ..

On Sat, Apr 16, 2011 at 2:01 PM, Reptil christophepeix...@gmail.com wrote:

 How can i develop a Android Application that allow someone to login in
 his Google Docs account?
 And which library i much use?

 --
 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 :
   Muhammad Nasir Aftab
---

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

Re: [android-developers] How to Access Gmail Account Contact in Android

2011-04-12 Thread Me
Hi Marcin Orlowski;
* else you all are in my contacts -:)P,  It
means s/he have hotmail contact as you also have hotmail contact -:)P ,
*
On Tue, Apr 12, 2011 at 6:57 PM, Marcin Orlowski
webnet.andr...@gmail.comwrote:

 On 12 April 2011 16:19, Jons Jean tonasirin...@gmail.com wrote:

 Hi Dears ; I am working on a messenger type application where I need
 to access all contacts (gmail-ID) related to a specific user ,
 Anyone can give me the hint how I can do this ? Can I use google
 contact API for this ?


 Whoever is in your contacts, s/he do no have to have any Google account and
 no gmail-ID

 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule
 handy...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/* and 
 *Twitterhttp://webnetmobile.com/twitter/
 *



  --
 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 :
   Muhammad Nasir Aftab
---

-- 
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] Bluetooth in Android

2011-04-10 Thread Me
Dear Vishal Rajpal ;
*Android BlueTooth example on developer site
is an good example to connect and discover devices *
*using both discovering and pairing method .*
*Tell me where you are facing problem ?*
*
*
On Sat, Apr 9, 2011 at 5:55 PM, Vishal Rajpal
vishalrajpal.ap...@gmail.comwrote:

 Hello Everyone..

 I want to connect another android device using bluetooth. I have tried
 but was nt able to..
 Can anyone help me

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




-- 
---
Regards :
   Muhammad Nasir Aftab
---

-- 
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] Activity Restart On Rotate Phone

2011-04-10 Thread Me
Hi thanks group  I solved this one 



On Mon, Apr 11, 2011 at 1:34 AM, TreKing treking...@gmail.com wrote:

 On Sun, Apr 10, 2011 at 1:12 AM, Jons Jean tonasirin...@gmail.com wrote:

 problem is this when I rotate phone its activity got restart , How I can
 handle it ?


 Read the documentation. This is covered extensively in the life cycle
 documentation.

 From google I find the way to handle this to add below line in menifest
 fine  I add this line but same problem  ,
  android:configChanges=orientation


 That's a hack around the main problem of saving state. Doing this so that
 you don't have to save your state will only mask the problem. You may not
 restart on orientation change, but your app will restart when you press Home
 and come back to it some time later. You should be able to handle this and
 switching orientation is the quickest and easiest way to test this.


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

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




-- 
---
Regards :
   Muhammad Nasir Aftab
---

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

[android-developers] Android 2.0 source group

2009-11-30 Thread me
Would someone be kind enough to zipup the android 2.0 source code
related to the MediaRecorder class and email it to me?  My code works
fine in the emulator but MediaRecorder.Start() is failing on the
droid.  There error message only says could not start.

Thanks
michaelto...@yahoo.com

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


[android-developers] Re: Eclair install choked with errors about locks and died horribly leaving corrupted install

2009-11-05 Thread Call Me Paul
Hello,

I am having the same issue, can someone post the steps to solve this?
I got v1.1 working on eclipse (still not sure why) for for the rest I
get the warning temp error.

Thanks!


On Nov 5, 12:07 am, ekwang ekwa...@gmail.com wrote:
 When I try to upgrade Android SDK Tools, revision 3, by SDK Setup.exe
 I meet same problem.
 I think it has obvious problem.
 Because SDK Setup.exe running with some files on /tools. (maybe
 android.bat and some lib files)
 So When SDK Setup try to rename old toolsfoldername after download
 complete, this issue is happen.
 Actually I checked java process handling /toolsfolderwhen SDK Setup
 running.

 On Oct 28, 6:31 am, Jim Showalter jamesleeshowal...@gmail.com wrote:

  Followed the instructions 
  inhttp://developer.android.com/sdk/adding-components.htmlforadding 2.0 as
  components to an existing 1.6 SDK, from within Eclipse.

  It didn't work. Not by a long shot. Instead, it got partway through and then
  said that C:\android-sdk-windows-1.6_r1\
  temp\DocPackage.new01 couldn't be copied because of a lock, and similarly
  for PlatformPackage.new01.

  It said to shut down running programs, but the only program running was
  Eclipse, which was needed to do the upgrade.

  The cancel button was disabled, and the close box didn't work. Shutting down
  Eclipse killed it, but left C:\android-sdk-windows-1.6_r1 in a corrupted
  state. Restarting Eclipse showed the Android projects with errors, no SDK,
  and a disabled Android SDK and AVD Manager (which means no ability to rerun
  the install).

  Shutting down Eclipse, renaming the corrupted SDK directory, unzipping 1.6
  again into C:, and restarting Eclipse made it as if nothing had ever
  happened, which is good. But it is not possible to complete the install from
  Eclipse, which is bad.

  The dialog says:

 Failedto rename directory
  C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
  C:\android-sdk-windows-1.6_r1\docs
  -= Warning ! =-
  Afolderfailedto berenamedormoved. On Windows this typically means that
  a program is using thatfolder(for example Windows Explorer.) Please close
  all running programs that may be locking the directory
  'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.

 Failedto rename directory
  C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
  C:\android-sdk-windows-1.6_r1\docs
  -= Warning ! =-
  Afolderfailedto berenamedormoved. On Windows this typically means that
  a program is using thatfolder(for example Windows Explorer.) Please close
  all running programs that may be locking the directory
  'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.
  Installed: SDK Platform Android 2.0, API 5 (tools rev: 3)

-- 
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] SDK installation problems on Vista

2009-11-05 Thread Call Me Paul
Hello, I am having troubles installation the SDK on vista. I get a
warning telling me that it could't move data from a /temp directory to
its final destination under /platform/androidxx and that I should
check if any program was using windows explorer or that folder.

I tried several times, I tried doing it as the first and only thing I
do when my computer stats but no luck.

Is anyone experiencing the same problem? Can you help me?

Thanks!

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


[android-developers] Re: webview to show large picture zoomed out

2009-05-19 Thread me tun

There is a new scale type in ImageView which will shrink (but not
grow) an image to make it fit within the specified bounds.  Not sure
if there is the same for WebView.

On May 19, 6:04 pm, rukiman ruksh...@optushome.com.au wrote:
 How can I get the WebView to make any content it loads for example a
 large picture to fit to page when it is loaded?
--~--~-~--~~~---~--~~
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: RingtoneManager.ACTION_RINGTONE_PICKER

2009-04-20 Thread me

Why doesn’t this work?

  Uri ringtoneuri=Uri.parse(/sdcard/myapp/customsounds/test.3gpp);
RingtoneManager.setActualDefaultRingtoneUri(this,
RingtoneManager.TYPE_RINGTONE, ringtoneuri);

When I run this my ringtone ends up getting set to the default.  I
know the file is accessible because right after the above code I have
this and the ringtone plays.
RingtoneManager.getRingtone(this, ringtoneuri).play()


On Mar 26, 10:21 pm, for android forandr...@gmail.com wrote:
 Yes you are missing in the onActivityResult

 U need to check the result code.

 Look @ the sample i have attached.

 @Override
     protected void onActivityResult(int requestCode, int resultCode, Intent
 data) {
         switch (resultCode) {
         /*
          * case RESULT_OK: this.setResult(RESULT_OK); this.finish(); break;
          */

         case RESULT_OK:
             Uri uri = data

 .getParcelableExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI);
             Log.i(Sample, uri  + uri);
             RingtoneManager.setActualDefaultRingtoneUri(this,
                     RingtoneManager.TYPE_RINGTONE, uri);
             break;
         }
     }

 On Thu, Mar 26, 2009 at 10:00 AM, damnesia r.spencer.wh...@gmail.comwrote:





  Hello. I tried to post earlier and my browser was acting funky. I
  don't see the post, so I am adding another. I apologize if both show
  up.

  I am using Android SDK 1.1_r1. I want a user to be able to open the
  ringtone picker, select a ringtone, it the OK button and have the
  result sent back to the parent activity. When I start the ringtone
  picker as a sub-activity, it appears to call setResult() immediately.
  I could be way off and just not understand how this works. Here is the
  code that I am using to lauch the sub-activity:

  mPickRingTone.setOnClickListener(new View.OnClickListener()
  {
     public void onClick( View v )
     {
          ringMe.startRingPick();
      }
  });

  private void startRingPick()
  {
     Intent i = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER);
     startActivityForResult(i, ACTIVITY_SET_RINGTONE);
  }

  @Override
  protected void onActivityResult( int requestCode, int resultCode,
  Intent data )
  {
     switch( requestCode )
     {
         case ACTIVITY_SET_RINGTONE:
              Log.d(toString(), ACTIVITY_SET_RINGTONE DONE);
             // this method takes the data
             getToneToRing(data);
      }

     super.onActivityResult(requestCode, resultCode, data);
  }

  When I press the button the ringtone picker dialog opens and
  immediately I see ACTIVITY_SET_RINGTONE DONE via LogCat. This is on
  a physical device.

  Do I not understand something?



  Sample.zip
 34KViewDownload- Hide quoted text -

 - Show quoted text -

--~--~-~--~~~---~--~~
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] RingtoneManager.setActualDefaultRingtoneUri not working

2009-04-20 Thread me

Why doesn’t this work?

  Uri ringtoneuri=Uri.parse(/sdcard/myapp/customsounds/test.3gpp);
RingtoneManager.setActualDefaultRingtoneUri(this,
RingtoneManager.TYPE_RINGTONE, ringtoneuri);

When I run this my ringtone ends up getting set to the default.  I
know the file is accessible because right after the above code I have
this and the ringtone plays.
RingtoneManager.getRingtone(this, ringtoneuri).play()

--~--~-~--~~~---~--~~
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] setActualDefaultRingtoneUri doesnt work

2009-04-20 Thread me

Why doesn’t this work?

  Uri ringtoneuri=Uri.parse(/sdcard/myapp/customsounds/test.3gpp);
RingtoneManager.setActualDefaultRingtoneUri(this,
RingtoneManager.TYPE_RINGTONE, ringtoneuri);

When I run this my ringtone ends up getting set to the default.  I
know the file is accessible because right after the above code I have
this and the ringtone plays.
RingtoneManager.getRingtone(this, ringtoneuri).play()

--~--~-~--~~~---~--~~
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] A quick question about the Roadmap

2009-04-02 Thread me tun

I just noticed on the roadmap http://source.android.com/roadmap that
there will be support for additional types of displays beyond 2009.
Is this limited to support for WVGA and QVGA, or will you guys perhaps
be rolling out dual display support?  Is this going to occur in the
foreseeable future?

Just curious really, I think it would be cool to have the soft
keyboard input on one display and the editor on another.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun

Thanks Dianne, I'm not sure if I have been completely clear.  When I
start my application from the launcher, I want to pass it some of my
own data (left or right for example) if I'm talking about
handedness...  How do I go about doing this?  I've tried passing it as
above but it doesn't seem to work.

On Mar 24, 5:23 pm, Dianne Hackborn hack...@android.com wrote:
 http://developer.android.com/reference/android/content/Intent.html#pu...)

 And all of the other overloaded methods for various types.



 On Mon, Mar 23, 2009 at 10:40 PM, me tun a...@tpg.com.au wrote:

  How can I do that?  Is there a reference you can point me to?

  On Mar 24, 4:35 pm, Dianne Hackborn hack...@android.com wrote:
   Please don't make up URI schemes.  If you are passing app-private data,
  you
   should probably just put it in as extra fields of whatever type you want.

   On Mon, Mar 23, 2009 at 10:20 PM, me tun a...@tpg.com.au wrote:

Hello,

I've tried something similar to this, intent.setData(Uri.parse
(screenmode://android.ds/ActivityType=MY_ACTIVITY));

Can I just put anything, or is there a specific format I need to
follow i.e. screenmode: something else, something else etc...

Cheers guys.

   --
   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.  All such questions should be posted on public
   forums, where I and others can see and answer them.

 --
 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.  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] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun

Yeah, I mean starting the application from the launcher!

Does this mean I essentially cannot initialize my application with any
data I want to pass to it this way?  It seems very strange?

Anyway, thanks heaps for your help, it's really appreciated.

On Mar 25, 10:41 am, Dianne Hackborn hack...@android.com wrote:
 I'm not really understanding.  When you say I start my application from the
 launcher, do you mean you as a user pressing the app icon?  If so, there is
 nothing you can add -- the launcher just starts you with a MAIN action
 intent.  You can't modify what that will be.

 If you are talking about adding a shortcut to the launcher, you should be
 able to put in extras and have them come back when the shortcut is
 executed.  Make sure you are only using basic types, string and int, since I
 don't think we support a lot of types for storing shortcuts.



 On Tue, Mar 24, 2009 at 4:13 PM, me tun a...@tpg.com.au wrote:

  Thanks Dianne, I'm not sure if I have been completely clear.  When I
  start my application from the launcher, I want to pass it some of my
  own data (left or right for example) if I'm talking about
  handedness...  How do I go about doing this?  I've tried passing it as
  above but it doesn't seem to work.

  On Mar 24, 5:23 pm, Dianne Hackborn hack...@android.com wrote:
  http://developer.android.com/reference/android/content/Intent.html#pu..
  .)

   And all of the other overloaded methods for various types.

   On Mon, Mar 23, 2009 at 10:40 PM, me tun a...@tpg.com.au wrote:

How can I do that?  Is there a reference you can point me to?

On Mar 24, 4:35 pm, Dianne Hackborn hack...@android.com wrote:
 Please don't make up URI schemes.  If you are passing app-private
  data,
you
 should probably just put it in as extra fields of whatever type you
  want.

 On Mon, Mar 23, 2009 at 10:20 PM, me tun a...@tpg.com.au wrote:

  Hello,

  I've tried something similar to this, intent.setData(Uri.parse
  (screenmode://android.ds/ActivityType=MY_ACTIVITY));

  Can I just put anything, or is there a specific format I need to
  follow i.e. screenmode: something else, something else etc...

  Cheers guys.

 --
 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.  All such questions should be posted on
  public
 forums, where I and others can see and answer them.

   --
   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.  All such questions should be posted on public
   forums, where I and others can see and answer them.

 --
 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.  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] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun

LOL sorry, that was about as clear as before:

I meant the user pressing the app icon :)

On Mar 25, 10:52 am, me tun a...@tpg.com.au wrote:
 Yeah, I mean starting the application from the launcher!

 Does this mean I essentially cannot initialize my application with any
 data I want to pass to it this way?  It seems very strange?

 Anyway, thanks heaps for your help, it's really appreciated.

 On Mar 25, 10:41 am, Dianne Hackborn hack...@android.com wrote:

  I'm not really understanding.  When you say I start my application from the
  launcher, do you mean you as a user pressing the app icon?  If so, there is
  nothing you can add -- the launcher just starts you with a MAIN action
  intent.  You can't modify what that will be.

  If you are talking about adding a shortcut to the launcher, you should be
  able to put in extras and have them come back when the shortcut is
  executed.  Make sure you are only using basic types, string and int, since I
  don't think we support a lot of types for storing shortcuts.

  On Tue, Mar 24, 2009 at 4:13 PM, me tun a...@tpg.com.au wrote:

   Thanks Dianne, I'm not sure if I have been completely clear.  When I
   start my application from the launcher, I want to pass it some of my
   own data (left or right for example) if I'm talking about
   handedness...  How do I go about doing this?  I've tried passing it as
   above but it doesn't seem to work.

   On Mar 24, 5:23 pm, Dianne Hackborn hack...@android.com wrote:
   http://developer.android.com/reference/android/content/Intent.html#pu..
   .)

And all of the other overloaded methods for various types.

On Mon, Mar 23, 2009 at 10:40 PM, me tun a...@tpg.com.au wrote:

 How can I do that?  Is there a reference you can point me to?

 On Mar 24, 4:35 pm, Dianne Hackborn hack...@android.com wrote:
  Please don't make up URI schemes.  If you are passing app-private
   data,
 you
  should probably just put it in as extra fields of whatever type you
   want.

  On Mon, Mar 23, 2009 at 10:20 PM, me tun a...@tpg.com.au wrote:

   Hello,

   I've tried something similar to this, intent.setData(Uri.parse
   (screenmode://android.ds/ActivityType=MY_ACTIVITY));

   Can I just put anything, or is there a specific format I need to
   follow i.e. screenmode: something else, something else etc...

   Cheers guys.

  --
  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.  All such questions should be posted on
   public
  forums, where I and others can see and answer them.

--
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

  --
  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.  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] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun

OK, time to come clean, I know people who are hacking the framework
are not generally well received around here...

But when we launch an activity we want to pass some data (lets say
FULL_SCREEN / HALF_SCREEN) and we want the activity to start in full
screen or half screen.  Is this possible?

On Mar 25, 11:05 am, Mark Murphy mmur...@commonsware.com wrote:
 me tun wrote:
  Does this mean I essentially cannot initialize my application with any
  data I want to pass to it this way?  It seems very strange?

 Each activity usually only has one icon in the launcher. There is
 nothing to pass in that you could not just as easily have encoded into
 the activity itself.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun

Thanks, you've been a great help.  I understand that there is another
list for framework discussion but I thought there would be a way to do
it via the SDK so I asked here.

Cheers everyone!

On Mar 25, 11:20 am, Mark Murphy mmur...@commonsware.com wrote:
 me tun wrote:
  OK, time to come clean, I know people who are hacking the framework
  are not generally well received around here...

 It's more that there are other lists for those who are hacking the
 framework:

 http://source.android.com/discuss

  But when we launch an activity we want to pass some data (lets say
  FULL_SCREEN / HALF_SCREEN) and we want the activity to start in full
  screen or half screen.  Is this possible?

 Not directly. And, when you are hacking the framework, you might
 consider making a patch to allow one to define extras in the manifest
 to put in the Intent used to launch from the launcher. Or, perhaps you
 can use an alternative home screen (e.g., dxTop) and work with that
 developer on this project.

 However, it should be fairly trivial for you to create a shallow
 activity class hierarchy to handle this, at least as a workaround.

 For example, suppose the name of the activity you presently have is
 FooActivity. You're trying to launch FooActivity in one of two modes,
 and your attempts to do so via modifying the Intent used to launch the
 activity has been foiled.

 So, do the following:

 1. Make FooActivity abstract, requiring a boolean useFullScreen() method

 2. Create FullFooActivity and HalfFooActivity, each extending
 FooActivity, with FullFooActivity implementing useFullScreen() to return
 true and HalfFooActivity to implement useFullScreen() to return false

 3. Create separate entries in the manifest for FullFooActivity and
 HalfFooActivity, each with the standard launcher intent-filter

 4. Use useFullScreen() to do whatever it was you were looking to handle
 via the customized Intent

 Clunky, but it works, until you can amend a home application that is
 more amenable to your requirements.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun

Yeah, I understand, there would be a flow however if my app had a flag
in it that requested the application to take up only half the screen
or something.  I think?

I had already tried Mark's way (great book btw) which does work but
isn't quite an elegant solution nor is it exactly what I'm trying to
achieve.

On Mar 25, 11:47 am, Dianne Hackborn hack...@android.com wrote:
 On Tue, Mar 24, 2009 at 4:52 PM, me tun a...@tpg.com.au wrote:
  Does this mean I essentially cannot initialize my application with any
  data I want to pass to it this way?  It seems very strange?

 The user installed your app.  Its icon showed up in the launcher.  They
 tapped on the icon.  There is nowhere in this flow where you can or it
 really makes sense for you to insert some custom data in an intent.  You
 already get an intent whose action and category tells you that the user
 launched it from its icon.  Use the to decide to do whatever you want.

 --
 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.  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] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun

That's right, it's a nice group here :)

On Mar 25, 11:57 am, Mark Murphy mmur...@commonsware.com wrote:
 me tun wrote:
  I had already tried Mark's way (great book btw)

 Thanks!

  which does work but
  isn't quite an elegant solution nor is it exactly what I'm trying to
  achieve.

 Oh, well. In these support forums, it's win a few, lose a few.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun

How about I add a half screen theme and interpret it from that
(perhaps via the history record class)?

i.e: android:theme=@android:style/Theme.HalfScreen

How would one go about creating their own theme?

On Mar 25, 11:59 am, me tun a...@tpg.com.au wrote:
 That's right, it's a nice group here :)

 On Mar 25, 11:57 am, Mark Murphy mmur...@commonsware.com wrote:

  me tun wrote:
   I had already tried Mark's way (great book btw)

  Thanks!

   which does work but
   isn't quite an elegant solution nor is it exactly what I'm trying to
   achieve.

  Oh, well. In these support forums, it's win a few, lose a few.

  --
  Mark Murphy (a Commons Guy)http://commonsware.com
  Android App Developer Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How do I pass data in an intent from an activity started from the launcher?

2009-03-23 Thread me tun

Hello,

I've tried something similar to this, intent.setData(Uri.parse
(screenmode://android.ds/ActivityType=MY_ACTIVITY));

Can I just put anything, or is there a specific format I need to
follow i.e. screenmode: something else, something else etc...

Cheers guys.

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



[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-23 Thread me tun

How can I do that?  Is there a reference you can point me to?

On Mar 24, 4:35 pm, Dianne Hackborn hack...@android.com wrote:
 Please don't make up URI schemes.  If you are passing app-private data, you
 should probably just put it in as extra fields of whatever type you want.

 On Mon, Mar 23, 2009 at 10:20 PM, me tun a...@tpg.com.au wrote:

  Hello,

  I've tried something similar to this, intent.setData(Uri.parse
  (screenmode://android.ds/ActivityType=MY_ACTIVITY));

  Can I just put anything, or is there a specific format I need to
  follow i.e. screenmode: something else, something else etc...

  Cheers guys.

 --
 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.  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] Re: A simple question regarding inter-process communication.

2009-03-22 Thread me tun

Yeah, I got my example above to work across processes with intents.  I
actually managed to send the soft keyboard character sequence and
cursor position to another text edit view via a bundle in
intent.PutExtra()...  So basically, I can type in one application and
have it appear in another one which I needed to do for something I'm
working on.  Thanks for all your help.

On Mar 21, 5:11 am, David Turner di...@android.com wrote:
 On Fri, Mar 20, 2009 at 10:46 AM, Kenny yxw...@gmail.com wrote:

  I wonder if intents are sent across Linux processes too. Very anxious
  to know the answer.

 Of course, they are transparently send across processes when necessary, or
 sent locally if the receiver is in the same process.
 This magic is the exact purpose of the Android Binder.



  Kenny

  On Mar 19, 1:05 pm, me tun a...@tpg.com.au wrote:
   Thanks Dianne, a colleague was telling me basically this too.  Does it
   matter that the activities are running on different processes?

   On Mar 19, 3:50 pm, Dianne Hackborn hack...@android.com wrote:

If you are communicating between activities, you wouldn't use
  interfaces at
all -- all of the communication with be by sending Intents between them
  in
various ways, and you can use Intent.putExtra() to put strings and
  other
data in them.

If you are communicating via a Service, you can use Messenger as the
interface returned by onBind(), and you can stuff fairly arbitrary data
  in
the Message with message.setData().

On Wed, Mar 18, 2009 at 9:22 PM, me tun a...@tpg.com.au wrote:

 Just say I have two applications, each with one activity running on
 separate processes and I want to send a simple string between them.
 For the purposes of this example, let us say I have a button that
 sends whatever is typed into an EditText view to the other
  application
 where it is then displayed.

 Do I have to expose a remote interface via a service that co-resides
 between the two applications?

 Or can I do something simpler (is there a way to pass data between
 processes without defining your interface using AIDL)?

 Thanks for clearing this up for me, as I seem to be struggling with
 performing IPC at the moment.  I'm pretty sure I have to use the
 Android IPC path and generate a remote interface using AIDL.  I'm
  just
 not sure about the binding to service part.

 Cheers!

--
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.  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] Re: Is there a flag I can enable to permanently display the virtual keyboard in my app?

2009-03-22 Thread me tun

My apologies for resurrecting this thread, but is it possible now to
not display the soft keyboard when the EditText view receives an on
touch event?

I've looked at IMM code and the closest thing I can find for doing
such a thing is hideSoftInputFromWindow(IBinder windowToken) but I'm
not too sure how to call it.

Request to hide the soft input window from the context of the window
that is currently accepting input.  This should be called as a result
of the user doing some actually than fairly explicitly requests to
have the input window hidden.

I've tried a couple of different things, and the only way I've been
able to hide the soft keyboard is by hacking the onTouchEvent method
the TextView class!  And of course, I don't want to do this!

On Mar 18, 1:47 pm, me tun a...@tpg.com.au wrote:
 One can set, android:windowSoftInputMode=stateVisible in the
 AndroidManifest...

 Cheers.

 On Mar 17, 2:14 pm, me tun a...@tpg.com.au wrote:

  Thanks Dianne, I've had a quick look through the code and have seen
  how the onTouchEvent in the TextView Class has been modified to
  display the soft keyboard if it is both focused and touched (how
  profound).  I've managed to get it to display by clicking a button,
  but really I'd like it called in OnCreate I think it has something to
  do with the focusing, not sure but I'll look into it.

  On Mar 17, 1:56 pm, Dianne Hackborn hack...@android.com wrote:

   If you are going to use new features before these is an SDK, you will want
   to read through the source code java docs and the code itself to figure 
   out
   what you want to do.  In this case WindowManager.LayoutParams has new
   options for controlling the input method, View has new methods, and the
   InputMethodManager class has the start of some documentation for how these
   things go together.

   On Mon, Mar 16, 2009 at 3:08 PM, me tun a...@tpg.com.au wrote:

In the InputMethodManager class, there seems to be a method
showSoftInput(view) @param view: The currently focused view, which
would like to receive soft keyboard input.  I have tried calling this
as follows:

       InputMethodManager imm = (InputMethodManager)
               getContext().getSystemService
(Context.INPUT_METHOD_SERVICE);
       imm.showSoftInput(mTextEntry);

But it seems to only work with an Edit Text view, I understand it
makes little sense to do so but is there a way I can have it
permanently raised for say an image view?

On Mar 16, 11:03 am, me tun a...@tpg.com.au wrote:
 I want to permanently display the virtual keyboard in my application,
 but it seems bound by focus to an edit text field.  Is there a way
 around this?

 Thanks!

   --
   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.  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] A simple question regarding inter-process communication.

2009-03-18 Thread me tun

Just say I have two applications, each with one activity running on
separate processes and I want to send a simple string between them.
For the purposes of this example, let us say I have a button that
sends whatever is typed into an EditText view to the other application
where it is then displayed.

Do I have to expose a remote interface via a service that co-resides
between the two applications?

Or can I do something simpler (is there a way to pass data between
processes without defining your interface using AIDL)?

Thanks for clearing this up for me, as I seem to be struggling with
performing IPC at the moment.  I'm pretty sure I have to use the
Android IPC path and generate a remote interface using AIDL.  I'm just
not sure about the binding to service part.

Cheers!


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



[android-developers] Re: A simple question regarding inter-process communication.

2009-03-18 Thread me tun

Thanks Dianne, a colleague was telling me basically this too.  Does it
matter that the activities are running on different processes?

On Mar 19, 3:50 pm, Dianne Hackborn hack...@android.com wrote:
 If you are communicating between activities, you wouldn't use interfaces at
 all -- all of the communication with be by sending Intents between them in
 various ways, and you can use Intent.putExtra() to put strings and other
 data in them.

 If you are communicating via a Service, you can use Messenger as the
 interface returned by onBind(), and you can stuff fairly arbitrary data in
 the Message with message.setData().



 On Wed, Mar 18, 2009 at 9:22 PM, me tun a...@tpg.com.au wrote:

  Just say I have two applications, each with one activity running on
  separate processes and I want to send a simple string between them.
  For the purposes of this example, let us say I have a button that
  sends whatever is typed into an EditText view to the other application
  where it is then displayed.

  Do I have to expose a remote interface via a service that co-resides
  between the two applications?

  Or can I do something simpler (is there a way to pass data between
  processes without defining your interface using AIDL)?

  Thanks for clearing this up for me, as I seem to be struggling with
  performing IPC at the moment.  I'm pretty sure I have to use the
  Android IPC path and generate a remote interface using AIDL.  I'm just
  not sure about the binding to service part.

  Cheers!

 --
 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.  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] Re: Is there a flag I can enable to permanently display the virtual keyboard in my app?

2009-03-17 Thread me tun

One can set, android:windowSoftInputMode=stateVisible in the
AndroidManifest...

Cheers.

On Mar 17, 2:14 pm, me tun a...@tpg.com.au wrote:
 Thanks Dianne, I've had a quick look through the code and have seen
 how the onTouchEvent in the TextView Class has been modified to
 display the soft keyboard if it is both focused and touched (how
 profound).  I've managed to get it to display by clicking a button,
 but really I'd like it called in OnCreate I think it has something to
 do with the focusing, not sure but I'll look into it.

 On Mar 17, 1:56 pm, Dianne Hackborn hack...@android.com wrote:

  If you are going to use new features before these is an SDK, you will want
  to read through the source code java docs and the code itself to figure out
  what you want to do.  In this case WindowManager.LayoutParams has new
  options for controlling the input method, View has new methods, and the
  InputMethodManager class has the start of some documentation for how these
  things go together.

  On Mon, Mar 16, 2009 at 3:08 PM, me tun a...@tpg.com.au wrote:

   In the InputMethodManager class, there seems to be a method
   showSoftInput(view) @param view: The currently focused view, which
   would like to receive soft keyboard input.  I have tried calling this
   as follows:

          InputMethodManager imm = (InputMethodManager)
                  getContext().getSystemService
   (Context.INPUT_METHOD_SERVICE);
          imm.showSoftInput(mTextEntry);

   But it seems to only work with an Edit Text view, I understand it
   makes little sense to do so but is there a way I can have it
   permanently raised for say an image view?

   On Mar 16, 11:03 am, me tun a...@tpg.com.au wrote:
I want to permanently display the virtual keyboard in my application,
but it seems bound by focus to an edit text field.  Is there a way
around this?

Thanks!

  --
  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.  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] Is there a flag I can enable to permanently display the virtual keyboard in my app?

2009-03-16 Thread me tun

I want to permanently display the virtual keyboard in my application,
but it seems bound by focus to an edit text field.  Is there a way
around this?

Thanks!

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



[android-developers] Re: Is there a flag I can enable to permanently display the virtual keyboard in my app?

2009-03-16 Thread me tun

In the InputMethodManager class, there seems to be a method
showSoftInput(view) @param view: The currently focused view, which
would like to receive soft keyboard input.  I have tried calling this
as follows:

InputMethodManager imm = (InputMethodManager)
getContext().getSystemService
(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(mTextEntry);

But it seems to only work with an Edit Text view, I understand it
makes little sense to do so but is there a way I can have it
permanently raised for say an image view?

On Mar 16, 11:03 am, me tun a...@tpg.com.au wrote:
 I want to permanently display the virtual keyboard in my application,
 but it seems bound by focus to an edit text field.  Is there a way
 around this?

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



[android-developers] Re: Is it possible to set focus to a component programmatically?

2009-03-16 Thread me tun

Yes, you should be able to use button.requestFocus();

On Mar 17, 1:19 pm, Zia zia.cha...@gmail.com wrote:
 Wondering if we have few buttons on a LinearLayout, is it possible to
 set focus to a button programmatically?

 Please advice.

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



[android-developers] Re: Is there a flag I can enable to permanently display the virtual keyboard in my app?

2009-03-16 Thread me tun

Thanks Dianne, I've had a quick look through the code and have seen
how the onTouchEvent in the TextView Class has been modified to
display the soft keyboard if it is both focused and touched (how
profound).  I've managed to get it to display by clicking a button,
but really I'd like it called in OnCreate I think it has something to
do with the focusing, not sure but I'll look into it.



On Mar 17, 1:56 pm, Dianne Hackborn hack...@android.com wrote:
 If you are going to use new features before these is an SDK, you will want
 to read through the source code java docs and the code itself to figure out
 what you want to do.  In this case WindowManager.LayoutParams has new
 options for controlling the input method, View has new methods, and the
 InputMethodManager class has the start of some documentation for how these
 things go together.



 On Mon, Mar 16, 2009 at 3:08 PM, me tun a...@tpg.com.au wrote:

  In the InputMethodManager class, there seems to be a method
  showSoftInput(view) @param view: The currently focused view, which
  would like to receive soft keyboard input.  I have tried calling this
  as follows:

         InputMethodManager imm = (InputMethodManager)
                 getContext().getSystemService
  (Context.INPUT_METHOD_SERVICE);
         imm.showSoftInput(mTextEntry);

  But it seems to only work with an Edit Text view, I understand it
  makes little sense to do so but is there a way I can have it
  permanently raised for say an image view?

  On Mar 16, 11:03 am, me tun a...@tpg.com.au wrote:
   I want to permanently display the virtual keyboard in my application,
   but it seems bound by focus to an edit text field.  Is there a way
   around this?

   Thanks!

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