[android-developers] Your Opinion between android native app or HTML-5 Web App.

2011-06-13 Thread Ishwar Chawla
I just want your opinion which option is better I am about to start a
project looking at ease of coding and UI which according to you is
better native app or HTML-5 Web App.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 - SQLLite

2011-06-13 Thread Sivaprakash
It is like this,

- I am creating database in default way hence it will be created in my
application private storage and other applications will not get access to
it. Still I the user login as root user he would right? Anyways to prevent
this?

- What is the best mechanism to store secret data like bank accounts in my
phone memory?

On Sun, Jun 12, 2011 at 9:44 PM, Kumar Bibek coomar@gmail.com wrote:

 Encrypt and Store.

 Use remote wipe, it would of course need a lot of work.

 *Thanks and Regards,
 Kumar Bibek*
 *
 http://techdroid.kbeanie.com
 http://www.kbeanie.com*



 On Sun, Jun 12, 2011 at 9:42 PM, Sivaprakash 
 sivaprakashshanmu...@gmail.com wrote:

 Alright, but any way what is the best mechanism to protect my data? Even
 if I loose my mobile someone should not gain access to my data.

 On Sun, Jun 12, 2011 at 5:52 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Sun, Jun 12, 2011 at 1:37 AM, Sivaprakash
 sivaprakashshanmu...@gmail.com wrote:
  Thanks !! What should I do if I want to protect my data in more secure
 way
  meaning even if someone steels my memory card they should not gain
 access to
  my data or immediately it should be erased ?

 Don't put the data on the memory card in the first place.

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

 Android Training in NYC: 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




 --
 - Prakash.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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




-- 
- Prakash.

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

[android-developers] Re: Android - SQLLite

2011-06-13 Thread Zsolt Vasvari
 - I am creating database in default way hence it will be created in my
 application private storage and other applications will not get access to
 it. Still I the user login as root user he would right? Anyways to prevent
 this?

No, of course, not.  Given access to the hardware, no software
solution is secure.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 protect the selection of vibrate mode or silent mode?

2011-06-13 Thread shanmu nathan
Hi guys,
 I develop one application in android. i need ur help. i want
protect to select the Silent and vibration mode in android.. i dnt knw how
to do that.. can anybody help me?

-- 
With Regards,

SHANMUGANATHAN. A
Software Engineer Trainee,
Citrisys Solution,
Phone: +91.44.22311173
Mail To: sayyadu...@citrisys.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] Working with Activities

2011-06-13 Thread Felix Garcia Lainez
Hi,

The case is that i need to create an activity that will download some
data via http rest API. This activity will be launched from a main
activity included in a tabwidget. Really i don't have any technical
problem on how to implement it, it is not really difficult.

I have doubts on what is the best way to structure the code. My idea
is to start loading data in the onCreate method of my activity that
shows this data. So the first time this activity is shown (via
startActivity(Intent)) then start loading this data. Once this
activity is loaded first time and data is downloaded, the next times
this activity is shown i would like to use previously downloaded data.
Really it is not very difficult, as i could store this data in other
class than activity, and simply check if this data exists in the
onCreate method of activity shown. Other idea could be to keep
downloaded data in a static variable of the activity...

But really i am not sure if those options are the most natural way to
do it on Android... On other platforms i would instantiate the view
only once (activity on Android case) and show it all the times is
necessary, storing on the instance the downloaded data. After checking
activity docs, i don't see a way to reuse activity instances.. Any
time i do startactivity(intent), the activity is recreated and
onCreate called...

Any ideas or suggestions on how to do it?

Regards.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Want to capture screenshot of current screen from phone

2011-06-13 Thread rich friedel
I am only throwing the permissions thing out there as it was the easiest to 
illustrate my point. I fully understand the implications of an app having 
the ability to take a screenshot. However, sometime this is a reasonable 
need by a user. What I was trying to say is that there must be a better way 
than to just say: It's a security risk therefore it is not feasible.

And you address that here:

If/when we do have an API for an application to take a screenshot, this will 
probably be something along the lines of making a request for the 
screenshot, resulting in the system taking the screenshot and showing it to 
the user for them to confirm they want it given to the app before it is 
actually returned.

That, to me, would be a perfectly acceptable solution where you would make 
it so there is no other option but to show what image the app just grabbed 
and it would be managed by the system.

As far as permissions go and their vagueness making them useless... well 
that is a whole other debate. 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Data Access

2011-06-13 Thread Sivaprakash
Hi

I want to transfer data between Mobile client and Server application through
web service. Can I use normal object serialization? Any specific
recommendation given to use processor effectively?

-- 
- Prakash.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Nexus S,how to exchange ndef data via p2p.

2011-06-13 Thread Tommy
Hi all:
 I have some questions about android2.3 NFC of p2p.
 1.  i send the ndef data by the enableForegroundNdefPush(this,
mMessage)function in onResume,but how can i known that the mMessage is
send over,can i got the notification or Intent?
 2.  As i know,in p2p module there have two parts,the initiator
and the target.I think int the question one activity called
enableForegroundNdefPush(this, mMessage) , it's initiator ,am is think
right?
 3.  If in question tow i'm right,the target(another Nexus S
phone,or a nfc reader in my desktop) received the ndef data
mMessage,and send a response to initiator,how can i got the ndef
response.
 4. In target terminal such as another Nexus s phone,how can i get
the p2p inittiator pushed ndef data.
  Ndef myTag=Ndef.get(tag);
  myTag.connect();
  if (myTag.isConnected())
  {
myTag.getNdefMessage();
  }

 Thanks  for any hints.
 Tommy

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


[android-developers] Re: How to get Map on signed Android application?

2011-06-13 Thread Bost
Hallo,
you need another map api key with the fingerprint of your private key
store.

s. http://code.google.com/android/add-ons/google-apis/mapkey.html#getfingerprint
Regards
Bost

On Jun 13, 6:29 am, Sivasankar K sivasanka...@greatinnovus.com
wrote:
 in my i have a map application. I have got my finger print and my api key.
 When i run the app from my eclipse to device straightly i am able to see the
 map, but when i run the app after creating as a zip aligned .apk file there
 is  No map backgrounds Was able browse and search but still no map
 backgrounds.

 Please help me to solve my issue.

 --
 K Siva Sankar

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: etting SIGNAL 11 error

2011-06-13 Thread vmalykhin
In our case the cause of bug is invocation of

_byteChannel.close(); // java.nio.channels.ByteChannel

In our app we use a library which uses java.nio.* package a lot
(channels, sockets, selectors etc).
We researched code of that library. Commenting the code line where
channel are closing resolved a problem.
But after that fix app are working well few hours and then crashing
with another error: out-of-memory-error or something similar, because
of a lot of not closed channels.

It seems that bug is similar to 
http://code.google.com/p/android/issues/detail?id=3531
issue.
But how to fix that in our case exactly?

Thank you

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


Re: [android-developers] Re: etting SIGNAL 11 error

2011-06-13 Thread Daniel Drozdzewski
On Mon, Jun 13, 2011 at 11:01 AM, vmalykhin vladimir.malyk...@gmail.com wrote:
 In our case the cause of bug is invocation of

 _byteChannel.close(); // java.nio.channels.ByteChannel

 In our app we use a library which uses java.nio.* package a lot
 (channels, sockets, selectors etc).
 We researched code of that library. Commenting the code line where
 channel are closing resolved a problem.
 But after that fix app are working well few hours and then crashing
 with another error: out-of-memory-error or something similar, because
 of a lot of not closed channels.

 It seems that bug is similar to 
 http://code.google.com/p/android/issues/detail?id=3531
 issue.
 But how to fix that in our case exactly?


Who knows?
What library do you use? Commenting stuff out (especially
Channel.close() ) is not the way to do it.
Did you contact the someone who knows the library with your problem?
What is your source code?
Is this NDK?

Daniel

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Want to capture screenshot of current screen from phone

2011-06-13 Thread Mark Murphy
On Mon, Jun 13, 2011 at 4:26 AM, rich friedel rich.frie...@gmail.com wrote:
 And you address that here:

 If/when we do have an API for an application to take a screenshot, this will
 probably be something along the lines of making a request for the
 screenshot, resulting in the system taking the screenshot and showing it to
 the user for them to confirm they want it given to the app before it is
 actually returned.

 That, to me, would be a perfectly acceptable solution where you would make
 it so there is no other option but to show what image the app just grabbed
 and it would be managed by the system.

Agreed.

When I cite not possible for security reasons, I'm referring to the
present day, not a statement for all time. I will try to work
presently into my statements in the future.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 customize the list view...list view resource id is invalid???

2011-06-13 Thread Atik
HI All,
i m developing a list view and on top, it will have a auto complete
textview, when user clicks on a certain item from the list, i want to
display it in that auto complete text field. but i m getting some
error..pls advice me..my codes are


right now i m unable to load the view..so i have just written the code
for the click on list item..

Thanks



**package com.example;


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.AdapterView.OnItemClickListener;

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


  ListView lv= (ListView) findViewById(R.id.listview);

  lv.setAdapter(new ArrayAdapterString(this, R.id.listview,
COUNTRIES));



  lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView? parent, View view,
int position, long id) {
  // When clicked, show a toast with the TextView text
  Toast.makeText(getApplicationContext(), ((TextView)
view).getText(),
  Toast.LENGTH_SHORT).show();
}
  });
}
static final String[] COUNTRIES = new String[] {
Afghanistan, Albania, Algeria, American Samoa};
}

***xml file

?xml version=1.0 encoding=utf-8?

RelativeLayout android:id=@+id/main1
xmlns:android=http://schemas.android.com/apk/res/android;
android:padding=4dip android:layout_width=fill_parent
android:layout_height=fill_parent



AutoCompleteTextView android:id=@+id/searchText
android:layout_width=fill_parent
android:layout_height=wrap_content
android:singleLine=true android:textSize=16sp
android:autoText=false
android:capitalize=none android:layout_alignParentLeft=true
android:scrollHorizontally=true

/AutoCompleteTextView

Button android:id=@+id/searchButton
android:layout_width=wrap_content
android:layout_height=wrap_content android:text=

android:layout_alignParentRight=true
/Button



ListView android:id=@+id/listview
android:layout_width=fill_parent
android:layout_height=fill_parent android:padding=10dp
android:textSize=16sp
/ListView
/RelativeLayout

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 customize the list view...list view resource id is invalid???

2011-06-13 Thread νιנαソkum
   ListView lv= (ListView) findViewById(R.id.listview);

 lv.setAdapter(new ArrayAdapterString(this, R.id.listview,
COUNTRIES));


android.R.layout.simple_list_item_1


remove* R.id.listiew* add this one* android.R.layout.simple_list_item_1*

On Mon, Jun 13, 2011 at 4:24 PM, Atik atik0...@gmail.com wrote:

 HI All,
 i m developing a list view and on top, it will have a auto complete
 textview, when user clicks on a certain item from the list, i want to
 display it in that auto complete text field. but i m getting some
 error..pls advice me..my codes are


 right now i m unable to load the view..so i have just written the code
 for the click on list item..

 Thanks



 **package com.example;


 import android.app.Activity;
 import android.os.Bundle;
 import android.view.View;
 import android.widget.AdapterView;
 import android.widget.ArrayAdapter;
 import android.widget.ListView;
 import android.widget.TextView;
 import android.widget.Toast;
 import android.widget.AdapterView.OnItemClickListener;

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


  ListView lv= (ListView) findViewById(R.id.listview);

  lv.setAdapter(new ArrayAdapterString(this, R.id.listview,
 COUNTRIES));



  lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView? parent, View view,
int position, long id) {
  // When clicked, show a toast with the TextView text
  Toast.makeText(getApplicationContext(), ((TextView)
 view).getText(),
  Toast.LENGTH_SHORT).show();
}
  });
}
static final String[] COUNTRIES = new String[] {
Afghanistan, Albania, Algeria, American Samoa};
 }

 ***xml file

 ?xml version=1.0 encoding=utf-8?

 RelativeLayout android:id=@+id/main1
xmlns:android=http://schemas.android.com/apk/res/android;
android:padding=4dip android:layout_width=fill_parent
android:layout_height=fill_parent



AutoCompleteTextView android:id=@+id/searchText
android:layout_width=fill_parent
 android:layout_height=wrap_content
android:singleLine=true android:textSize=16sp
 android:autoText=false
android:capitalize=none
 android:layout_alignParentLeft=true
android:scrollHorizontally=true

/AutoCompleteTextView

Button android:id=@+id/searchButton
 android:layout_width=wrap_content
android:layout_height=wrap_content android:text=

android:layout_alignParentRight=true
/Button



ListView android:id=@+id/listview
 android:layout_width=fill_parent
android:layout_height=fill_parent android:padding=10dp
android:textSize=16sp
/ListView
 /RelativeLayout

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




-- 




Nobody can go back and start a new beginning, but anyone can start today
and make a new ending
-
Thanks,
Regards,
νιנαソαkum@r M
BloG:http://iamvijayakumar.blogspot.com/
Mob.No:09048382536(Kerala)
Mob.No:09751076707(TN)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] bottom stroke on a shape

2011-06-13 Thread ABSOLUT
Hello to all,

I'd like to know if it is possible to declare stroke only for the
bottom of a shape?

Many thanks and sorry for my english!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Layout problem: equal margins in XML

2011-06-13 Thread Mark Murphy
On Sun, Jun 12, 2011 at 10:23 PM, Ted Hopp ted.h...@gmail.com wrote:
 I thought I had addressed that. Assuming that the smaller margins are at
 least the minimum, then the larger margins should shrink (the ListView
 should expand in that dimension) until they are equal all around. I think
 you are right that this cannot be done in XML alone, but I asked hoping that
 I'm wrong.

Well, if you create and open source a custom layout manager that does
all that, then the rest of us can do it in XML alone... :-)

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] opening a url in browser with post data from an activity

2011-06-13 Thread Shashidhar
Hi,
 I need to open a browser with a URL when I click on a button in my
activity.
The URL has some parameters which I need to send it using HTTP POST method.
I am able to get it working with the GET request where we append the
parameters to the end of the URL.
But, I need the POST method way.
Any Ideas on how to send the URL data using POST method to open it in
browser.

Thanks,
Shashidhar

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Force close in example taken from book Inflation Error

2011-06-13 Thread Raghav Sood
Hi

I was trying out an example from one of the android books I have. It worked
fine earlier but when I tried to modify the textview and list view it
started force closing. The logcat output is as follows (relevant part):

06-13 15:48:33.338: ERROR/AndroidRuntime(453):
android.view.InflateException: Binary XML file line #2: Error inflating
class com.raghavsood.listdroid.ListDroidItemView
06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by:
java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView
in loader
dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
06-13 17:16:09.262: ERROR/AndroidRuntime(477):
android.view.InflateException: Binary XML file line #2: Error inflating
class com.raghavsood.listdroid.ListDroidItemView
06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by:
java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView
in loader
dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]


The ListDroidViewClass is as follows:

package com.ragahvsood.listdroid;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.widget.TextView;


public class ListDroidItemView extends TextView {
 public ListDroidItemView (Context context, AttributeSet ats, int ds) {
super(context, ats, ds);
init();
}
 public ListDroidItemView (Context context) {
super(context);
init();
}
 public ListDroidItemView (Context context, AttributeSet attrs) {
super(context, attrs);
init();
}
 private Paint marginPaint;
private Paint linePaint;
private int paperColor;
private float margin;
 private void init() {
//Get reference to resource table
Resources myResources = getResources();
 //Create paint brushes
marginPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
marginPaint.setColor(myResources.getColor(R.color.notepad_margin));
 linePaint = new Paint(Paint.ANTI_ALIAS_FLAG);
linePaint.setColor(myResources.getColor(R.color.notepad_lines));
 paperColor = myResources.getColor(R.color.notepad_paper);
margin = myResources.getColor(R.dimen.notepad_margin);
}
 @Override
public void onDraw(Canvas canvas) {
//Color as paper
canvas.drawColor(paperColor);
 //Draw ruled lines
canvas.drawLine(0, 0, getMeasuredHeight(), 0, linePaint);
canvas.drawLine(0, getMeasuredHeight(), getMeasuredWidth(),
getMeasuredHeight(), linePaint);
 //Draw margin
canvas.drawLine(margin, 0, margin, getMeasuredHeight(), marginPaint);
 //Move text
canvas.save();
canvas.translate(margin, 0);
//Use TextView to render text
super.onDraw(canvas);
canvas.restore();
}
}

The application is a to do list. There is an Edittext and a listview. The
force close occurs when you press enter to add the text from the edittext to
the listview. The app example was taken from Professional Android 2
Application Development. I am developing on a macbook pro, Java is installed
correctly.

Thanks
-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
http://www.telstop.tel/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Force close in example taken from book Inflation Error

2011-06-13 Thread Mark Murphy
On Mon, Jun 13, 2011 at 7:53 AM, Raghav Sood raghavs...@gmail.com wrote:
 I was trying out an example from one of the android books I have. It worked
 fine earlier but when I tried to modify the textview and list view it
 started force closing. The logcat output is as follows (relevant part):
 06-13 15:48:33.338: ERROR/AndroidRuntime(453):
 android.view.InflateException: Binary XML file line #2: Error inflating
 class com.raghavsood.listdroid.ListDroidItemView
 06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by:
 java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView
 in loader
 dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
 06-13 17:16:09.262: ERROR/AndroidRuntime(477):
 android.view.InflateException: Binary XML file line #2: Error inflating
 class com.raghavsood.listdroid.ListDroidItemView
 06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by:
 java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView
 in loader
 dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]

As the error indicates, com.raghavsood.listdroid.ListDroidItemView is
not in your APK.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Force close in example taken from book Inflation Error

2011-06-13 Thread Raghav Sood
That occurred to me. I opened it up and decompiled the .dex file and its
quite definitely there.

On Mon, Jun 13, 2011 at 5:28 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Mon, Jun 13, 2011 at 7:53 AM, Raghav Sood raghavs...@gmail.com wrote:
  I was trying out an example from one of the android books I have. It
 worked
  fine earlier but when I tried to modify the textview and list view it
  started force closing. The logcat output is as follows (relevant part):
  06-13 15:48:33.338: ERROR/AndroidRuntime(453):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
  06-13 17:16:09.262: ERROR/AndroidRuntime(477):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]

 As the error indicates, com.raghavsood.listdroid.ListDroidItemView is
 not in your APK.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

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




-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
http://www.telstop.tel/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 find version of ARM on android phone

2011-06-13 Thread Bharathiraja R
Hi All,

I am uninstall to sl4a application on 2.2 tablet phone.
getting error:
Failure [installed_failed_invalid_apk]

Log show: Native ABI mismatch.
it's related to ARM there in phone has an NDK shared library that is
incompatible.

wanted to know how to find the version of ARM on android phone.

please help me.

Regards,
Bharathiraja R

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 find version of ARM on android phone

2011-06-13 Thread Nikolay Elenkov
On Mon, Jun 13, 2011 at 9:20 PM, Bharathiraja R
bharathiraja.andr...@gmail.com wrote:
 Hi All,

 I am uninstall to sl4a application on 2.2 tablet phone.
 getting error:
 Failure [installed_failed_invalid_apk]

 Log show: Native ABI mismatch.
 it's related to ARM there in phone has an NDK shared library that is
 incompatible.

 wanted to know how to find the version of ARM on android phone.


This should do it:

adb shell  getprop ro.product.cpu.abi

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Options for Too Many Views

2011-06-13 Thread Capt Spaghetti
I am admittedly no expert on traceviewe. I'm barely a beginner but it
looks like the time is spent loading the views.

The file is at the following locaTION:

http://www.onyoursixinc.com/gfatrace.trace

Any help would be greatly appreciated.

Thanks,
Gene

On Jun 13, 1:01 am, Dianne Hackborn hack...@android.com wrote:
 Let me promise you -- it is not taking 18 seconds to load just because you
 have 100 views.

 Where is traceview showing you spending most of your time?

 On Sun, Jun 12, 2011 at 2:16 PM, Capt Spaghetti gene_august...@msn.comwrote:





  I took the time to read up on traceview and hierarchyviewer. I will
  try and attach
   a png file of the running application. It's the only proof I have
  other than the
  actual application. I will attach a pdf file of the screenshots of the
  different
  views. I have been able to remove one of LinearLayout views but I am
  stil at 107.
  I have not been able to find out how I can put editable fields in a
  ListView or
  AdapterView but I will keep looking. What I have works but is
  incredibly slow.
  About 18 seconds to load 18 scores for 4 people.

  On May 30, 10:23 am, Mark Murphy mmur...@commonsware.com wrote:
   On Mon, May 30, 2011 at 10:11 AM, Capt Spaghetti gene_august...@msn.com
  wrote:
I have it functioning but it is slow to load because of the number of
  views.

   And your proof of this is... what, exactly?

   Use Traceview to determine where your time is being spent. Don't just
  guess.

What are my options for handling large amounts of data without slowing
down the load time?

   Use a ListView or some other AdapterView, so only the views that are
   needed by the user at the moment are in memory.

   Or, try to consolidate multiple views (e.g., use a SpannedString,
   perhaps from Html.fromHtml(), to populate a single TextView rather
   than several in a horizontal LinearLayout).

   Or, if this is a game, use the 2D or 3D graphics APIs.

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

   Android Training in Oslo:http://bit.ly/fjBo24

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

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

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.- 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] file transfer trough xmpp in android?

2011-06-13 Thread Hitendrasinh Gohil
Hi,

I am using asmack lib for chatting.its works fine for chatting.but
dont know how can i do file transfer with asmack.
can anybody give me some ideas or links?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 find version of ARM on android phone

2011-06-13 Thread Max Lv
try this:

cat /proc/cpuinfo


On Mon, Jun 13, 2011 at 8:28 PM, Nikolay Elenkov
nikolay.elen...@gmail.comwrote:

 On Mon, Jun 13, 2011 at 9:20 PM, Bharathiraja R
 bharathiraja.andr...@gmail.com wrote:
  Hi All,
 
  I am uninstall to sl4a application on 2.2 tablet phone.
  getting error:
  Failure [installed_failed_invalid_apk]
 
  Log show: Native ABI mismatch.
  it's related to ARM there in phone has an NDK shared library that is
  incompatible.
 
  wanted to know how to find the version of ARM on android phone.
 

 This should do it:

 adb shell  getprop ro.product.cpu.abi

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


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

[android-developers] Re: Can't write to sdcard

2011-06-13 Thread Mike
check the file name and be sure it's ok.

Running a modified version of your code on a 2.3.3 emulator

File sdDir = Environment.getExternalStorageDirectory();
sdDir.mkdirs();
String currentTripName = testtrip;
File file = new File(sdDir + currentTripName + .kml);
FileWriter sdWriter;
try {
sdWriter = new FileWriter(file, false);
String fileContents = This is a test trip file;
sdWriter.write(fileContents);
sdWriter.close();

} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

yeilds this error

06-13 12:45:03.358: WARN/System.err(1663):
java.io.FileNotFoundException: /mnt/sdcardtesttrip.kml (Read-only file
system)


maybe try

File file = new File(sdDir + / + currentTripName + .kml);


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] opening a url in browser with post data from an activity

2011-06-13 Thread Kumar Bibek
AFAIK, you cant do it.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Mon, Jun 13, 2011 at 5:11 PM, Shashidhar shashi.zep...@gmail.com wrote:

 Hi,
  I need to open a browser with a URL when I click on a button in my
 activity.
 The URL has some parameters which I need to send it using HTTP POST method.
 I am able to get it working with the GET request where we append the
 parameters to the end of the URL.
 But, I need the POST method way.
 Any Ideas on how to send the URL data using POST method to open it in
 browser.

 Thanks,
 Shashidhar

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

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

[android-developers] Re: Android Layoutinflator for embedding WebView objects created on the fly

2011-06-13 Thread redVirus

Thanks for your reply.

 For inflating a web view on demand, I'm using a ViewStub in my current
 project, and it works without any issues. A ViewStub lets you only
 instantiate a view if needed, and yet still specify layout paramters in the
 XML.

I am able to inflate WebView using a view inflator and adding my View
on top of it.

I wonder why is it so? first and foremost I had to add the following
code.

static final FrameLayout.LayoutParams FULL_SCREEN_PARAMS =
new FrameLayout.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT);

FrameLayout frameLayout =  (FrameLayout)
getWindow().getDecorView(); // not clear with
why this works!!

mInflator = (FrameLayout)
LayoutInflater.from( this ).inflate(R.layout.launch, null);
mContentView = (FrameLayout)
mInflator.findViewById( R.id.webview_wrapper);

as per your suggestion I am adding layout params to view here -

frameLayout.addView( mInflator ,FULL_SCREEN_PARAMS );

that is a frameLayout view holder for my activity. And the rest of the
code is same.

My problem now is I am unable to save WebView state.
I want to display the same WebView each time a specific page loads
that has been sent to background.

I tried calling mWebView.onResume() specific to WebView object that I
have.
But it doesn't seem to work. Can you suggest me how to achieve this.

Thanks
-- Prateek

On Jun 10, 6:38 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Your code seems to go in two directions at once: by inflating a layout, and
 creating a WebView with new.

 For instantiation with new, I think you might need to set layout paramters
 when calling addView - I would try FILL_PARENT / FILL_PARENT first.

 For inflating a web view on demand, I'm using a ViewStub in my current
 project, and it works without any issues. A ViewStub lets you only
 instantiate a view if needed, and yet still specify layout paramters in the
 XML.

 Also note that you can reuse one WebView object for as many page load
 operations as needed.

 -- Kostya

 2011/6/10 redVirus prateekmand...@gmail.com







  Hello,

  My requirement is to create an activity that holds WebView.
  I want my activity to load WebView by creating WebView objects as per
  the requirements i.e. for every new web pageI want to reuse my
  activity.

  For this I have a layout for my activity. And I create new WebView for
  each request.

  Now my problem is I am unable to view the contents of the object I am
  creating.

  here is my code snippet please tell me what am I missing here.

         public void onCreate(Bundle savedInstanceState) {
                 super.onCreate( savedInstanceState );

  /* Layout of My Activity */
                 mInflator = (FrameLayout)
  LayoutInflater.from( this ).inflate(R.layout.main, null);
                 mContentView = (FrameLayout)
  mInflator.findViewById( R.id.webview_wrapper);

  /* View having WebView */

                 webViewInflator = (FrameLayout)
  LayoutInflater.from( this ).inflate(R.layout.subLayout, null);
                 myView = (WebView)
  webViewInflator .findViewById( R.id.webview );

                 WebView obj = new WebView
  (this);                                                           //
  this is my requirement
                 obj .setWebViewClient( new
  myWebViewClient( getApplicationContext() ) );
                 obj .setWebChromeClient( new myWebChromeClient() );
                 obj .getSettings().setJavaScriptEnabled(true);
                 obj .loadUrl( url );

                 myView = obj;
                 mInflator.addView( webViewInflator );
         }

  As per my requirement myView should load url that I am passing. Where
  am I wrong?

  Thanks for suggestions

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

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


Re: [android-developers] opening a url in browser with post data from an activity

2011-06-13 Thread Shashidhar
On Mon, Jun 13, 2011 at 6:32 PM, Kumar Bibek coomar@gmail.com wrote:

 AFAIK, you cant do it.


I have tried the below code.

WebView webview = new WebView(this);
setContentView(webview);
byte[] post = EncodingUtils.getBytes(un=us...@gmail.com,
BASE64);
webview.postUrl(http://www.example.com/;, post);

But it doesn't work.

Thanks,
Shashi



 *Thanks and Regards,
 Kumar Bibek*
 *
 http://techdroid.kbeanie.com
 http://www.kbeanie.com*



 On Mon, Jun 13, 2011 at 5:11 PM, Shashidhar shashi.zep...@gmail.comwrote:

 Hi,
  I need to open a browser with a URL when I click on a button in my
 activity.
 The URL has some parameters which I need to send it using HTTP POST
 method.
 I am able to get it working with the GET request where we append the
 parameters to the end of the URL.
 But, I need the POST method way.
 Any Ideas on how to send the URL data using POST method to open it in
 browser.

 Thanks,
 Shashidhar

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


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

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

[android-developers] design of accessing to system service

2011-06-13 Thread Tomas Prochazka
I still can't understand some aspects of Android API design or reason
to use this design.

For example why Android use this:

AlarmManager am =
(AlarmManager)getSystemService(Context.ALARM_SERVICE);

instead of much easier:

AlarmManager am = getSystemService(AlarmManager.class);

AlarmManager.class is possible convert to String a use as key in the
same way as constant. Android also support generics.

Developer also must remember, that Context.ALARM_SERVICE constant will
provide AlarmManager instance. Constant has different name that
class :-(

Or first one is so much faster?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] opening a url in browser with post data from an activity

2011-06-13 Thread Mark Murphy
HTTP POST requests are not normally encoded in Base64. They are
normally encoded as application/x-www-form-urlencoded.

On Mon, Jun 13, 2011 at 9:07 AM, Shashidhar shashi.zep...@gmail.com wrote:


 On Mon, Jun 13, 2011 at 6:32 PM, Kumar Bibek coomar@gmail.com wrote:

 AFAIK, you cant do it.


 I have tried the below code.
         WebView webview = new WebView(this);
         setContentView(webview);
         byte[] post = EncodingUtils.getBytes(un=us...@gmail.com,
 BASE64);
         webview.postUrl(http://www.example.com/;, post);

 But it doesn't work.
 Thanks,
 Shashi


 Thanks and Regards,
 Kumar Bibek

 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Mon, Jun 13, 2011 at 5:11 PM, Shashidhar shashi.zep...@gmail.com
 wrote:

 Hi,
  I need to open a browser with a URL when I click on a button in my
 activity.
 The URL has some parameters which I need to send it using HTTP POST
 method.
 I am able to get it working with the GET request where we append the
 parameters to the end of the URL.
 But, I need the POST method way.
 Any Ideas on how to send the URL data using POST method to open it in
 browser.
 Thanks,
 Shashidhar

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

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

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



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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] opening a url in browser with post data from an activity

2011-06-13 Thread Daniel Drozdzewski
On Mon, Jun 13, 2011 at 2:07 PM, Shashidhar shashi.zep...@gmail.com wrote:


 On Mon, Jun 13, 2011 at 6:32 PM, Kumar Bibek coomar@gmail.com wrote:

 AFAIK, you cant do it.


 I have tried the below code.
         WebView webview = new WebView(this);
         setContentView(webview);
         byte[] post = EncodingUtils.getBytes(un=us...@gmail.com,
 BASE64);
         webview.postUrl(http://www.example.com/;, post);


BASE64 is not a charset.
In getBytes(String, String), second string encodes charset, for example UTF-8.

Daniel

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Force close in example taken from book Inflation Error (SOLVED)

2011-06-13 Thread Raghav Sood
Problem solved. The app didn't re-install correctly on the emulator. The one
I was checking was the new apk. Sorry to bother you.

Thanks

On Mon, Jun 13, 2011 at 5:34 PM, Raghav Sood raghavs...@gmail.com wrote:

 That occurred to me. I opened it up and decompiled the .dex file and its
 quite definitely there.


 On Mon, Jun 13, 2011 at 5:28 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Mon, Jun 13, 2011 at 7:53 AM, Raghav Sood raghavs...@gmail.com
 wrote:
  I was trying out an example from one of the android books I have. It
 worked
  fine earlier but when I tried to modify the textview and list view it
  started force closing. The logcat output is as follows (relevant part):
  06-13 15:48:33.338: ERROR/AndroidRuntime(453):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
  06-13 17:16:09.262: ERROR/AndroidRuntime(477):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]

 As the error indicates, com.raghavsood.listdroid.ListDroidItemView is
 not in your APK.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

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




 --
 Raghav Sood
 http://www.raghavsood.com/
 http://www.androidappcheck.com/
 http://www.telstop.tel/




-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
http://www.telstop.tel/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Force close in example taken from book Inflation Error

2011-06-13 Thread Raghav Sood
I seem to have fixed that problem but now my app is force closing again but
the error is different:

06-13 15:48:33.338: ERROR/AndroidRuntime(453):
android.view.InflateException: Binary XML file line #2: Error inflating
class com.raghavsood.listdroid.ListDroidItemView
06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by:
java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView
in loader
dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
06-13 17:16:09.262: ERROR/AndroidRuntime(477):
android.view.InflateException: Binary XML file line #2: Error inflating
class com.raghavsood.listdroid.ListDroidItemView
06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by:
java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView
in loader
dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
06-13 18:57:59.895: ERROR/AndroidRuntime(484):
android.view.InflateException: Binary XML file line #2: Error inflating
class com.raghavsood.listdroid.ListDroidItemView
06-13 18:57:59.895: ERROR/AndroidRuntime(484): Caused by:
java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView
in loader
dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
06-13 18:58:09.745: ERROR/AndroidRuntime(491):
android.view.InflateException: Binary XML file line #2: Error inflating
class com.raghavsood.listdroid.ListDroidItemView
06-13 18:58:09.745: ERROR/AndroidRuntime(491): Caused by:
java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView
in loader
dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]


The ListDroidItemView class has not changed from the mail above except I
fixed a typo in the package name. Any ideas?

Thanks

On Mon, Jun 13, 2011 at 5:34 PM, Raghav Sood raghavs...@gmail.com wrote:

 That occurred to me. I opened it up and decompiled the .dex file and its
 quite definitely there.


 On Mon, Jun 13, 2011 at 5:28 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Mon, Jun 13, 2011 at 7:53 AM, Raghav Sood raghavs...@gmail.com
 wrote:
  I was trying out an example from one of the android books I have. It
 worked
  fine earlier but when I tried to modify the textview and list view it
  started force closing. The logcat output is as follows (relevant part):
  06-13 15:48:33.338: ERROR/AndroidRuntime(453):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
  06-13 17:16:09.262: ERROR/AndroidRuntime(477):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]

 As the error indicates, com.raghavsood.listdroid.ListDroidItemView is
 not in your APK.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

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




 --
 Raghav Sood
 http://www.raghavsood.com/
 http://www.androidappcheck.com/
 http://www.telstop.tel/




-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
http://www.telstop.tel/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] When will android automatically launch a process when force closed?

2011-06-13 Thread gunanar...@gmail.com

I tried killing an app's process, and expected it to destroy all the
activities contained in it, but what I do see is that the app gets
launched again automatically.

Can you please let me know under what conditions will android
automatically start the process after force close, and if there is a
way to instruct the system to not do this for my app? This is a
requirement for my app, to be not auto-restarted when the user kills
the app.

-
gunanaresh

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] .SWF file not opening in WebView Android

2011-06-13 Thread subrat kumar panda
Hi all,
i have a problem, i would like to open .swf file in webview in android.
i have stored the file locally in asset folder. but i am not able to access it .
when i try to open it the screen looks white , sometimes it looks like
encoded dada.
anybody have knowlwdge please help me.


Thanks in advance
Subrat

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Saving as Bitmap .BMP in android

2011-06-13 Thread Streets Of Boston
Maybe it is faster to compress and un-compress than to read a bigger file 
from the SD-card/network

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Your Opinion between android native app or HTML-5 Web App.

2011-06-13 Thread Streets Of Boston
That depends on sooo many factors. 
Are you a company that has many Web developers and no or few Java 
developers?
Does you app need background processing or tight integration with native 
elements (e.g. contacts)?
Do your customers want a native look and feel or a web/html look and feel?
You still have to design (and test(!)) your web-app for the various 
form-factors (screen-sizes, densities, keyboard only, no keyboard).
Have you looked at PhoneGap, AppCelerator, RhoMobile, etc.?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Diagram of Android internals

2011-06-13 Thread Constantine
Hi Android developers,

I am designing detailed diagram of Android internals. You can find it
here: http://www.makelinux.net/android/internals/
What do you think about it?
Have you any ideas how to improve it?

Thank you in advance.


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


[android-developers] Mobile App Testing at www.testing4success.com

2011-06-13 Thread JamesT
Hello,

We thought you might like to know that we have now expanded our Mobile
App Testing services to include Android, Blackberry and Nokia devices.
We have a variety of App testing solutions available to suit any
budget.


Our list of test devices now includes:

Apple - iPhone 4, iPhone 3GS, iPod-Touch, iPad, iPad 2

Android - Google Nexus S, Motorola DroidX, T-Mobile G2, HTC Evo, Sony
Ericsson X10, Dell Streak, Samsung Galaxy Tab.plus, many, many
more!

Blackberry - BlackBerry Bold 9700, BlackBerry Bold 9000, BlackBerry
Tour 9630, Blackberry Curve.plus, many, many more!

Nokia - X6, X3, N97, N96, 5800ExpressMusic, E75, E72, E71.plus,
many, many more!



Why Choose Us?

We believe the following features of our mobile App testing services
set us apart from any other mobile testing company out there:

We test on real devices

All testing is performed on real devices. We do not perform any test
on simulators, ensuring that your App is tested in the same
environment that the end user will be using.

We use proven testing techniques

Many App testing services use a 'cloud' approach. While this is fine
as a method to find simple defects within the App, it is not as
effective as a structured test approach. Our testing is performed
using our proven App test plan and test cases built up from hundreds
of previously successful App testing projects. This highly-effective
testing approach digs far deeper into the Apps functionality than a
cloud-type test can, and provides much greater test coverage.

We use professional App testers

All App testing performed at Testing4Success is performed by Senior
App Testers. Each of our Senior App Testers have a wealth of knowledge
in testing mobile Apps. Their experience includes functionality
testing, usability testing, performance testing, compatibility testing
and much more. All Senior Testers at Testing4Success are also ISEB and
ISTQB Certified Testing Professionals.

We are highly flexible

We ensure our testing services are 100% flexible. Not only can we
modify our App testing services to suit your requirements, but we are
also flexible with regards to dead-lines. We understand that testing
can be a last-minute exercise before an App's release, and so we make
every effort to get you the test results you need, in a matter of
hours if you need it.

Contact us today to ensure the quality of your future, or current
Mobile Apps!



Kind Regards,


Jon

www.testing4success.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] Image gallery, folders view

2011-06-13 Thread Rich
I have installed a number of apps that have their own image gallery 
functionality (not using another app via intents).  The default view is 
usually a list of the folders in my SD card that contain images (usually 
with some kind of thumbnail representing the folder), and then when I drill 
down into one of these folders they display the thumbs of the images that 
the folder contains.

Is the folder list part of the MediaStore api, or are the developers doing 
this manually (query the file system for a list of folders, scan files in 
folder for common image extensions, etc)?  The tutorials I'm finding online 
for creating an image gallery using the MediaStore api usually just query 
the whole SD card and fill a GridView with a Cursor returned from 
managedQuery.  Are there better tutorials and documentation for making a 
custom image gallery?

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: Galaxy S2 problems / tester wanted

2011-06-13 Thread Andy
my game crashes on the galaxy s2 without any usable Stacktrace, any hint 
would be very helpful

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

[android-developers] Mobile App Testing at www.testing4success.com

2011-06-13 Thread JamesT
Hello,

We thought you might like to know that we have now expanded our Mobile
App Testing services to include Android, Blackberry and Nokia devices.
We have a variety of App testing solutions available to suit any
budget, starting from just $65.


Why Choose Us?

We test on real devices
We use proven testing techniques
We use professional App testers
We are highly flexible


Contact us today to ensure the quality of your future, or current
Mobile Apps!

Kind Regards,

Jon
www.testing4success.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: Mobile App Testing at www.testing4success.com

2011-06-13 Thread John Coryat
Ok, now you're starting to sound like spam.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 store places on google maps?

2011-06-13 Thread TreKing
On Sun, Jun 12, 2011 at 11:37 PM, danhpc phamcongdanh06hc...@gmail.comwrote:

 I don't know can I use google maps maker to do that in android?
 without storing on my database?


You would have to look at the Google Map Maker and see if it has an API for
you to do this sort of thing.

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

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

Re: [android-developers] How to protect the selection of vibrate mode or silent mode?

2011-06-13 Thread TreKing
On Mon, Jun 13, 2011 at 2:02 AM, shanmu nathan win.sha...@gmail.com wrote:

 i want protect to select the Silent and vibration mode in android.. i dnt
 knw how to do that.. can anybody help me?


You might want to explain what you mean by protect.

-
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] Using jbcrypt in app

2011-06-13 Thread Simon
Hi,

I am trying to use the jbcrypt library (http://code.google.com/p/
jbcrypt/) within my android application, but am having issues.  When I
try running the code as a standalone program, it works perfectly.
However, once I try to incorporate it into my Android Eclipse project,
it hangs when computing the hash.  I have tried adding it to the
Eclipse project as both source and by packaging up the working .class
file as a jar, and importing that.  Both methods give the same result:
100% CPU usage and an unresponsive app.

Has anybody else successfully used this within their app, or have any
suggestions as to what else I could try?

Thanks,

Simon

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 USSD

2011-06-13 Thread Tsolmon Narantsogt
Dude I don't understand
I just wanna know about Android USSD .

On Sun, Jun 12, 2011 at 1:11 PM, Sophie thedawg 
sdawgisinthebuildi...@gmail.com wrote:

 HEY DUDE THIS IS SDAWG. Email me wahtever I want I love emails from cool
 dudes like you guys I am sdawg WOOF WOOF!

 On Sat, Jun 11, 2011 at 12:52 PM, Tsolmon Narantsogt mgltsol...@gmail.com
  wrote:

 Dear Comrade.

 I wanna make ussd checker ( i think it's a widget ). So i don't know more
 about ussd command and code.
 So help me ?

 Anybody knows open source project ussd on android?

 ---

 Regards
 Tsolmon

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


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




-- 
---

Хүндэтгэсэн:
Н.Цолмон

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

Re: [android-developers] Using jbcrypt in app

2011-06-13 Thread Mark Murphy
Have you set breakpoints in their code to figure out where it is hanging?

On Mon, Jun 13, 2011 at 2:58 PM, Simon simon.wilkin...@gmail.com wrote:
 Hi,

 I am trying to use the jbcrypt library (http://code.google.com/p/
 jbcrypt/) within my android application, but am having issues.  When I
 try running the code as a standalone program, it works perfectly.
 However, once I try to incorporate it into my Android Eclipse project,
 it hangs when computing the hash.  I have tried adding it to the
 Eclipse project as both source and by packaging up the working .class
 file as a jar, and importing that.  Both methods give the same result:
 100% CPU usage and an unresponsive app.

 Has anybody else successfully used this within their app, or have any
 suggestions as to what else I could try?

 Thanks,

 Simon

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Using jbcrypt in app

2011-06-13 Thread Simon
I have.  Its within the 'private byte[] crypt_raw(byte password[],
byte salt[], int log_rounds)' method, within the for loop where
key(password) and key(salt) are being called.  It never gets past this
loop.

Simon

On Jun 13, 3:06 pm, Mark Murphy mmur...@commonsware.com wrote:
 Have you set breakpoints in their code to figure out where it is hanging?



 On Mon, Jun 13, 2011 at 2:58 PM, Simon simon.wilkin...@gmail.com wrote:
  Hi,

  I am trying to use the jbcrypt library (http://code.google.com/p/
  jbcrypt/) within my android application, but am having issues.  When I
  try running the code as a standalone program, it works perfectly.
  However, once I try to incorporate it into my Android Eclipse project,
  it hangs when computing the hash.  I have tried adding it to the
  Eclipse project as both source and by packaging up the working .class
  file as a jar, and importing that.  Both methods give the same result:
  100% CPU usage and an unresponsive app.

  Has anybody else successfully used this within their app, or have any
  suggestions as to what else I could try?

  Thanks,

  Simon

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Working with Activities

2011-06-13 Thread TreKing
On Mon, Jun 13, 2011 at 3:19 AM, Felix Garcia Lainez 
fgarcialai...@gmail.com wrote:

 Any ideas or suggestions on how to do it?


Some kind of static data holder should work just fine. In addition, if this
data does not need to be updated too frequently, you can save it to your
cache directory for retrieval if and when your application gets killed.

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

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

Re: [android-developers] Emulator .ini files

2011-06-13 Thread Xavier Ducrohet
Window size can be configured only through the -scale option.  You can
set this from the launch config dialog.

You cannot control its location. See emulator -help for the full
command line options.

Xav

On Sun, Jun 12, 2011 at 10:17 AM, mlybrand mlybr...@gmail.com wrote:
 Is there a good reference for what options are available for me to put
 in these files:

 avd-nam.ini
 config.ini
 emulator-user.ini

 The documentation shows several command line options for further
 controlling the emulators, but I would prefer to do some sort of
 configuration customization for when it launches from Eclipse.  The
 specific issue I am trying to control is the window size and position.
 But I can imagine that other options might make me come up with other
 stuff I would prefer my emulator to do. So some sort of cheat sheet
 would be ideal.

 TIA.

 Mark

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




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

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


Re: [android-developers] Re: Using jbcrypt in app

2011-06-13 Thread Mark Murphy
On Mon, Jun 13, 2011 at 3:10 PM, Simon simon.wilkin...@gmail.com wrote:
 I have.  Its within the 'private byte[] crypt_raw(byte password[],
 byte salt[], int log_rounds)' method, within the for loop where
 key(password) and key(salt) are being called.  It never gets past this
 loop.

Well, I don't know anything about their code. Perhaps they are
tripping over some subtle difference between Dalvik and a standard
Java VM. However, if you can get this far, you should be able to work
with the library's authors to try to figure out why you're in a
(presumably) infinite loop.

Perhaps somebody else has already done this and will chime in on the thread.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SoundPool and DualCore (Samsung Galaxy S2) : Random Crashes ingame

2011-06-13 Thread Andy
I have a strange Problem in my Game. I use SoundPool for my FX Sounds and it 
worked fine so far.
But with the new Samsung Galaxy S2 some bad reviews where incoming 
concerning random crashes.

I narrowed it down to the SoundPool but have no idea how to prevent the 
random HeapDumps (not even a stack trace)

Because it's a tower defense game...i have currently 32 
maxStreams(enough for all other devices)

Is there a known bug concerning SoundPool, multiple Streams and the Samsung 
S2 ? (Dual Core ?)







-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Introducing ActionBarSherlock v3

2011-06-13 Thread Jake Wharton
I would like to formally announce the release of ActionBarSherlock 
v3http://actionbarsherlock.com, 
a library built on top of the official compatibility library to extend 
support for the native action bar API back through Android 1.6.

The library will automatically wrap your pre-3.0 activities with a custom 
action bar implementation that has been designed to mimic the native bar 
included with Android 3.0+. Interaction is handled through a single API that 
will automatically call through to either the native action bar or the 
custom action bar automatically. Theming is also unified through the 
introduction of both light and dark base themes and a set of custom 
attributes that mirror those of the native action bar which will be applied 
appropriately to the correct implementation.

For more information please take a look at the samples on the 
websitehttp://actionbarsherlock.com/samples.htmland in 
the repository https://github.com/JakeWharton/ActionBarSherlock/. You can 
also find information on using the 
APIhttp://actionbarsherlock.com/usage.htmlas well as 
theming http://actionbarsherlock.com/theming.html. Support is 
availablehttp://actionbarsherlock.com/support.htmlin a few places and I 
welcome all suggestions, comments, critiques, and 
(most importantly) pull requests on the GitHub 
repohttps://github.com/JakeWharton/ActionBarSherlock
.

Zip and tar archives are available under the Download Tags section of the 
repository 
downloads page https://github.com/JakeWharton/ActionBarSherlock/downloads. 
(Make sure you get the latest version, 3.0.1)

Thank you and enjoy.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Emulator .ini files

2011-06-13 Thread David Turner
On Sun, Jun 12, 2011 at 7:17 PM, mlybrand mlybr...@gmail.com wrote:

 Is there a good reference for what options are available for me to put
 in these files:

 avd-nam.ini
 config.ini
 emulator-user.ini

 The documentation shows several command line options for further
 controlling the emulators, but I would prefer to do some sort of
 configuration customization for when it launches from Eclipse.  The
 specific issue I am trying to control is the window size and position.
 But I can imagine that other options might make me come up with other
 stuff I would prefer my emulator to do. So some sort of cheat sheet
 would be ideal.

 For the files themselves, there is no documentation, you will have to read
the source code.
Generally speaking, these files, or the way they are used, are likely to
change in the future (they already did).
We're certainly not going to support third-party tools trying to modify them
in any way.

The command-line options, and the console commands, on the other hand, will
be supported as much as we can.

- David



 TIA.

 Mark

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] file transfer trough xmpp in android?

2011-06-13 Thread TreKing
On Mon, Jun 13, 2011 at 7:47 AM, Hitendrasinh Gohil 
hitendra.virtuei...@gmail.com wrote:

 I am using asmack lib for chatting.its works fine for chatting.but
 dont know how can i do file transfer with asmack.
 can anybody give me some ideas or links?


This is not a asmack forum. Try Googling.

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

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

Re: [android-developers] When will android automatically launch a process when force closed?

2011-06-13 Thread TreKing
On Mon, Jun 13, 2011 at 8:44 AM, gunanar...@gmail.com
gunanar...@gmail.comwrote:

 Can you please let me know under what conditions will android automatically
 start the process after force close, and if there is a way to instruct the
 system to not do this for my app?


I believe that if an activity is forced to close (crashes), then the system
goes to the previous activity in the stack.


  This is a requirement for my app, to be not auto-restarted when the user
 kills the app.


If the user kills the app (i.e., they go to the app management screen and
Force Stop it) then it should not be auto-restarted.

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

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

Re: [android-developers] Emulator .ini files

2011-06-13 Thread Xavier Ducrohet
For config.ini you can look at $SDK/tools/lib/hardware-properties.ini
which describe *some* prop that can go in there.

(the ones that aren't describe in there are set by the AVD Manager and
you really shouldn't change them anyway).

Xav

On Mon, Jun 13, 2011 at 1:11 PM, David Turner di...@android.com wrote:


 On Sun, Jun 12, 2011 at 7:17 PM, mlybrand mlybr...@gmail.com wrote:

 Is there a good reference for what options are available for me to put
 in these files:

 avd-nam.ini
 config.ini
 emulator-user.ini

 The documentation shows several command line options for further
 controlling the emulators, but I would prefer to do some sort of
 configuration customization for when it launches from Eclipse.  The
 specific issue I am trying to control is the window size and position.
 But I can imagine that other options might make me come up with other
 stuff I would prefer my emulator to do. So some sort of cheat sheet
 would be ideal.

 For the files themselves, there is no documentation, you will have to read
 the source code.
 Generally speaking, these files, or the way they are used, are likely to
 change in the future (they already did).
 We're certainly not going to support third-party tools trying to modify them
 in any way.
 The command-line options, and the console commands, on the other hand, will
 be supported as much as we can.
 - David


 TIA.

 Mark

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

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



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. 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] Services and Alarm Manager

2011-06-13 Thread Simon Platten
I finally got my application to continue after a reboot, however if I use a
task manager to kill the application the scheduled alarms also appear to
stop.

I have scheduled a repeating alarm in the alarm manager and this goes off at
regular intervals, after a reboot the alarm is set-up again and continues to
be scheduled, but if I kill my application with a task manager the alarm
also ceases to be scheduled.  I've tried using the debugger to see whats
going on and all I can say is that the process isn't there any more which is
what I would expect, but I would have thought the scheduled alarm should
have remained scheduled?

Thank you for any assistance.

-- 
Regards,
Sy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Services and Alarm Manager

2011-06-13 Thread Mark Murphy
On Mon, Jun 13, 2011 at 4:52 PM, Simon Platten
simonaplat...@googlemail.com wrote:
 I finally got my application to continue after a reboot, however if I use a
 task manager to kill the application the scheduled alarms also appear to
 stop.

Correct. Same goes if the user force-stops you through the Settings app.

 I have scheduled a repeating alarm in the alarm manager and this goes off at
 regular intervals, after a reboot the alarm is set-up again and continues to
 be scheduled, but if I kill my application with a task manager the alarm
 also ceases to be scheduled.  I've tried using the debugger to see whats
 going on and all I can say is that the process isn't there any more which is
 what I would expect, but I would have thought the scheduled alarm should
 have remained scheduled?

Nope. If the user wants you gone, you're gone.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Services and Alarm Manager

2011-06-13 Thread Simon Platten
Ty, makes sense I guess, but then how does the alarm clock keep its
scheduled alarms?
I'm sure that no alarm clock is running or at least it does appear to be...

Regards,Sy

On 13 Jun 2011 21:58, Mark Murphy mmur...@commonsware.com wrote:

On Mon, Jun 13, 2011 at 4:52 PM, Simon Platten
simonaplat...@googlemail.com wrote:
 I finally got...
Correct. Same goes if the user force-stops you through the Settings app.


 I have scheduled a repeating alarm in the alarm manager and this goes off
at
 regular intervals,...
Nope. If the user wants you gone, you're gone.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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

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

[android-developers] Re: Force close in example taken from book Inflation Error

2011-06-13 Thread Bagatelle: David Lee Evans
My guess, is that you forgot to change the prefix package name in your
xml file to match
the new package name in your class. Maybe your new package name for
your class is com.ragahvsood.listdroid-1
and in your xml file you still have
com.ragahvsood.listdroid.ListDroidItemView instead of
com.ragahvsood.listdroid-1.ListDroidItemView.
Or something like that. Thats my guess

On Jun 13, 1:40 pm, Raghav Sood raghavs...@gmail.com wrote:
 I seem to have fixed that problem but now my app is force closing again but
 the error is different:

 06-13 15:48:33.338: ERROR/AndroidRuntime(453):
 android.view.InflateException: Binary XML file line #2: Error inflating
 class com.raghavsood.listdroid.ListDroidItemView
 06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by:
 java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView
 in loader
 dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
 06-13 17:16:09.262: ERROR/AndroidRuntime(477):
 android.view.InflateException: Binary XML file line #2: Error inflating
 class com.raghavsood.listdroid.ListDroidItemView
 06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by:
 java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView
 in loader
 dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
 06-13 18:57:59.895: ERROR/AndroidRuntime(484):
 android.view.InflateException: Binary XML file line #2: Error inflating
 class com.raghavsood.listdroid.ListDroidItemView
 06-13 18:57:59.895: ERROR/AndroidRuntime(484): Caused by:
 java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView
 in loader
 dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
 06-13 18:58:09.745: ERROR/AndroidRuntime(491):
 android.view.InflateException: Binary XML file line #2: Error inflating
 class com.raghavsood.listdroid.ListDroidItemView
 06-13 18:58:09.745: ERROR/AndroidRuntime(491): Caused by:
 java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView
 in loader
 dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]

 The ListDroidItemView class has not changed from the mail above except I
 fixed a typo in the package name. Any ideas?

 Thanks



 On Mon, Jun 13, 2011 at 5:34 PM, Raghav Sood raghavs...@gmail.com wrote:
  That occurred to me. I opened it up and decompiled the .dex file and its
  quite definitely there.

  On Mon, Jun 13, 2011 at 5:28 PM, Mark Murphy mmur...@commonsware.comwrote:

  On Mon, Jun 13, 2011 at 7:53 AM, Raghav Sood raghavs...@gmail.com
  wrote:
   I was trying out an example from one of the android books I have. It
  worked
   fine earlier but when I tried to modify the textview and list view it
   started force closing. The logcat output is as follows (relevant part):
   06-13 15:48:33.338: ERROR/AndroidRuntime(453):
   android.view.InflateException: Binary XML file line #2: Error inflating
   class com.raghavsood.listdroid.ListDroidItemView
   06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by:
   java.lang.ClassNotFoundException:
  com.raghavsood.listdroid.ListDroidItemView
   in loader
   dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
   06-13 17:16:09.262: ERROR/AndroidRuntime(477):
   android.view.InflateException: Binary XML file line #2: Error inflating
   class com.raghavsood.listdroid.ListDroidItemView
   06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by:
   java.lang.ClassNotFoundException:
  com.raghavsood.listdroid.ListDroidItemView
   in loader
   dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]

  As the error indicates, com.raghavsood.listdroid.ListDroidItemView is
  not in your APK.

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

  Warescription: Three Android Books, Plus Updates, One Low Price!

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

  --
  Raghav Sood
 http://www.raghavsood.com/
 http://www.androidappcheck.com/
 http://www.telstop.tel/

 --
 Raghav 
 Soodhttp://www.raghavsood.com/http://www.androidappcheck.com/http://www.telstop.tel/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Services and Alarm Manager

2011-06-13 Thread Mark Murphy
On Mon, Jun 13, 2011 at 5:21 PM, Simon Platten
simonaplat...@googlemail.com wrote:
 Ty, makes sense I guess, but then how does the alarm clock keep its
 scheduled alarms?
 I'm sure that no alarm clock is running or at least it does appear to be...

Correct.

A user can only task-kill or force-stop you when your code is actively
running. That's what you did to your own app, and it nuked the
scheduled alarms.

One imagines that if you do the same to the alarm clock app, it would
have the same effect. The alarm clock app's code is only running
around the time the user is setting an alarm or when an alarm is
occurring.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Rotating a View around an arbitrary point using ViewPropertyAnimator

2011-06-13 Thread jsera
Is this possible, or are do we need to do it ourselves using a
combination of rotate(), x(), and y()?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Users unable to download from the market

2011-06-13 Thread JonFHancock
Over the last couple of  hours I have had an unusually high number of
comments from users giving low stars and complaining that they can't
download/install from the market.  Haven't had any sales in the last
hour either.

Anybody else having the same problem?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Using jbcrypt in app

2011-06-13 Thread Simon
So after more digging, I've discovered that the library actually just
runs much slower when used in my Android app.  Testing it as a
standalone algorithm, jbcrypt hashes several strings per second, but
under the same conditions within the app its takes close to 6 minutes
to run!  There is a paramater that I can tweak that controls the
number of rounds of hashing to apply - the work factor increases
exponentially as 2**log_rounds.  If I push this value to its lowest
limit, the hashing happens within 5 seconds or so.  Still not ideal,
but possibly acceptable.

I'm wondering if anybody has any ideas why this type of performance
difference exists in the execution of the same piece of code.  What
types of limitions does Android place on memory/CPU that is available
to apps?  I believe I might be able to move forward with what I have
now, but I would still like to better understand what is causing the
issue.

Thanks,

SImon


On Jun 13, 3:24 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, Jun 13, 2011 at 3:10 PM, Simon simon.wilkin...@gmail.com wrote:
  I have.  Its within the 'private byte[] crypt_raw(byte password[],
  byte salt[], int log_rounds)' method, within the for loop where
  key(password) and key(salt) are being called.  It never gets past this
  loop.

 Well, I don't know anything about their code. Perhaps they are
 tripping over some subtle difference between Dalvik and a standard
 Java VM. However, if you can get this far, you should be able to work
 with the library's authors to try to figure out why you're in a
 (presumably) infinite loop.

 Perhaps somebody else has already done this and will chime in on the thread.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: In Android, how to get the keyevent of 'home Key' ?

2011-06-13 Thread Indicator Veritatis
@TreKing

Yet another of my typos! I meant Mark M., not Bob M.

On Jun 8, 2:26 pm, TreKing treking...@gmail.com wrote:
 On Wed, Jun 8, 2011 at 4:14 PM, Indicator Veritatis mej1...@yahoo.comwrote:

  But you are wrong to deny the causal link between pressing Home and the
  lifecycle in turn causing onPause() and onStop() to be called. It is not
  only perfectly correct, but even important to understand the lifecycle as
  a more mediate sort of cause, the press of Home the more proximate, e.g.,
  the one as formal, the other as efficient cause.

 True - indeed, in this case, it is precisely the press of the Home key that
 triggers the lifecycle flow. I should have said neither of those actions is
 *uniquely triggered* due to HOME being pressed - *it would happen with any
 other app coming to the foreground*

  but coverage of these is where Bob M.'s post is particularly good, so I
  have nothing to add to that.

 Who is Bob M.? I'm assuming you don't mean Bob
 Marleyhttp://www.google.com/search?q=Bob+M
 .

 -
 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: In Android, how to get the keyevent of 'home Key' ?

2011-06-13 Thread Indicator Veritatis
But as Mark Murphy already pointed out in this thread, Do not request
the HOME category unless *you
are a home screen*.

Mark Murphy is not only an outstanding Android programmer, one with
experience from very early in Android's short history, but one of the
star contributors to this forum, as well as the author of some very
good Android books. No one should disagree with his Android judgments
without a VERY good reason. Simply wanting to ignore the intended
design of Android and intercept the Home key is NOT one of these very
good reasons.

On Jun 7, 11:24 pm, shunty vikasbisl...@gmail.com wrote:
 action android:name=android.intent.action.MAIN /
   category android:name=android.intent.category.HOME /
   category android:name=android.intent.category.DEFAULT /

 Add this intent filter for the activity you want to invoke on the
 press of home button.

 On Jun 8, 1:05 pm, TreKing treking...@gmail.com wrote:

  2011/6/7 执迷不悟 goblin_...@foxmail.com

   In Android, how to get the keyevent of 'home Key' ?

  Make a Home replacement app.

i want to do something on the 'home Key' onKeydown, but can not get the
   event.

  That's right - you can'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] Re: Users unable to download from the market

2011-06-13 Thread Zsolt Vasvari
I've had slow sales for the last 3 days and 0 ratings/comments.  My
install stats are stuck also.  Looks like the Market is not working
properly.  Or should I say, it's working as poorly as it usually does.

On Jun 14, 8:19 am, JonFHancock jonfhanc...@gmail.com wrote:
 Over the last couple of  hours I have had an unusually high number of
 comments from users giving low stars and complaining that they can't
 download/install from the market.  Haven't had any sales in the last
 hour either.

 Anybody else having the same problem?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Using jbcrypt in app

2011-06-13 Thread Streets Of Boston
Is the slowness on an actual device or on the emulator.
Anyways...it seems that you need to calculate the hash on a background 
thread as not to hang your app and risk an ANR force-close.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Stop Thread started by bindService

2011-06-13 Thread Eduardo Luz
Guys, With Matthew Johnson hint, I SOLVED the problem. I was not
setting the boolean flag to false when my Parent Class onDestroy
method. So when I was intent to unbind the service the service doesn't
exists anymore. With a boolean flag my thread dont start again and the
method dont call the unbindService.


The class [Service with Thread]

I put this instructions to correct the bug:
  public void onCreate() {
state = true;
new Thread(this).start();
}

public void onDestroy() {
state = false;
}


 [Main Activity]
//bindingService
public void onClick(View v) {
if (!state) {
Class classeServico = 
ServicoComConexao.class;
bindService(new 
Intent(ExemploBindService.this,
classeServico), 
conexao, Context.BIND_AUTO_CREATE);
state = true;
}

unbindingService

public void onClick(View v) {
if (state){
  unbindService(conexao);
}
}

2011/6/11 The NaP luz.edua...@gmail.com:
 Hello guys, I start a thread with a simple counter from 1 to 1000. My
 interface has Start and Stop functions.
 I want to stop the counter but when I click on Stop my App is
 returning the exception
  java.lang.IllegalArgumentException: Service not registered .

 Anyone knows how to solve this problem.
 I using the interface Runnable...

 Thanks...

 [Main Activity] - Not the entire code

 public class ServiceConnectionMain extends Activity implements
 ServiceConnection{



     //interface ServiceConnection
        final ServiceConnection conexao = this;

        //Iniciar servico
        Button btStart = (Button) findViewById(R.id.btnstart);
        btStart.setOnClickListener(new Button.OnClickListener(){
            public void onClick( View v ){

                //cria uma intent para a classe de servico
                Class classeServico = ServicoComConexao.class;
                Intent itService = new
 Intent( ServiceConnectionMain.this, classeServico);

                bindService( itService, conexao,
 Context.BIND_AUTO_CREATE );

                }
        });

        //Parar Servico
        Button btStop = (Button) findViewById(R.id.btnstop);
        btStop.setOnClickListener(new Button.OnClickListener(){
            public void onClick(View v){
                    unbindService( conexao );
                    mBound = false;
            }
        });
    }

    public void onServiceConnected(ComponentName className, IBinder
 service) {
        // Recupera a interface para interagir com o serviÁo
        LocalBinder binder = (LocalBinder) service;
        contador = binder.getService();
    }

    public void onServiceDisconnected(ComponentName className) {
        contador = null;
    }
 }


 [Service with Thread] not entire code


 public class ExemploServico extends Service implements Runnable {

    private static final String CATEGORIA = exemplo;

    protected int count;
    private static final int MAX = 1000;
    private boolean ativo;

    public void run() {
        // TODO Auto-generated method stub
        ativo = true;
        while (ativo  count = MAX){
            Log.i(CATEGORIA, Contador está em:  + count);
            doThing();
            count++;
        }

    }

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



-- 
Eduardo Luz

talk:    luz.edua...@gmail.com
msn:   luz.edua...@hotmail.com
Tumb: luzeduardo.tumblr.com
         21 7292-4741
          21 8404-7270

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Your Opinion between android native app or HTML-5 Web App.

2011-06-13 Thread Thomas
Keeping in mind that you're asking a very vague question, opinions on
this subject will differ widely.

Having only experience in Android native development (no HTML-5), what
I can point out to you is:
1.  Android Java apps are not portable at all
2.  HTML-5 web apps presumably are portable to other devices
3.  Assuming you know one of the two languages, its probably worth
sticking to it since you discuss 'ease', and learning a whole new
language (plus all the quirks of web development vs native
development) is definitely not a small thing.

On Jun 12, 11:20 pm, Ishwar Chawla chawla.ish...@gmail.com wrote:
 I just want your opinion which option is better I am about to start a
 project looking at ease of coding and UI which according to you is
 better native app or HTML-5 Web App.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Users unable to download from the market

2011-06-13 Thread Kevin TeslaCoil Software
Earlier today I had a ton of Customer review in progress stalls,
market comments and a user that email me asking if I was planning on
doing something about the download issues people were experiencing.
Oh I wish I could.

Anyway now things have picked up and my total sales for the day still
look normal (Using Appmonger for the summary, highly recommended BTW)


If anyone is interested, here is my standard Market issues canned
response. Usually send it a few times a day, unless Google is
updating the Market in which case I usually craft a custom canned
response just for that day that basically says it's out of my control
and to wait it out or let me know the order number and I can cancel. I
also have a canned response for I looked up your order and it shows
as Customer Review in Progress and then just includes what Google
says that means and explain that it's out of my control.

Canned response:

If you send me your order number I can check the status, you can find
your Google Checkout Order Number at http://checkout.google.com . But
here's a few common Market problems/hints:

1) Incorrect billing information. The Android Market does not directly
notify you of this problem and often looks like it's successfully
authorized when it has not. Supposedly Google sends you an email
notifying you when this occurs. You can check on this and remedy it by
checking http://checkout.google.com from a desktop computer and
updating your billing information.

2) Reset Market Connection:
Make sure that your phone is logged into Google Talk by following
these steps:

Go to your phone’s app launcher, and press the Talk app
If you’re already logged into Talk, press Menu, and then touch Sign
out
Launch Talk again to sign in

https://market.android.com/support/bin/answer.py?hl=enanswer=1067233

3) Customer Review In Progress . If this is your first purchase on the
Market, Google may be reviewing your account and stalling
authorization/downloads until this process is completely.
Unfortunately this is completely out of my control.
https://checkout.google.com/support/sell/bin/answer.py?answer=45175hl=en_US

-Kevin





On Jun 13, 10:54 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 I've had slow sales for the last 3 days and 0 ratings/comments.  My
 install stats are stuck also.  Looks like the Market is not working
 properly.  Or should I say, it's working as poorly as it usually does.

 On Jun 14, 8:19 am, JonFHancock jonfhanc...@gmail.com wrote:







  Over the last couple of  hours I have had an unusually high number of
  comments from users giving low stars and complaining that they can't
  download/install from the market.  Haven't had any sales in the last
  hour either.

  Anybody else having the same problem?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Force close in example taken from book Inflation Error

2011-06-13 Thread Raghav Sood
Nope. My old package was com.ragahvsood.listdroid and now it is
com.raghavsood.listdroid The xml and class files link to the correct one.

Any other ideas?

Thanks

On Tue, Jun 14, 2011 at 2:51 AM, Bagatelle: David Lee Evans 
dle.ev...@gmail.com wrote:

 My guess, is that you forgot to change the prefix package name in your
 xml file to match
 the new package name in your class. Maybe your new package name for
 your class is com.ragahvsood.listdroid-1
 and in your xml file you still have
 com.ragahvsood.listdroid.ListDroidItemView instead of
 com.ragahvsood.listdroid-1.ListDroidItemView.
 Or something like that. Thats my guess

 On Jun 13, 1:40 pm, Raghav Sood raghavs...@gmail.com wrote:
  I seem to have fixed that problem but now my app is force closing again
 but
  the error is different:
 
  06-13 15:48:33.338: ERROR/AndroidRuntime(453):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
  06-13 17:16:09.262: ERROR/AndroidRuntime(477):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
  06-13 18:57:59.895: ERROR/AndroidRuntime(484):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 18:57:59.895: ERROR/AndroidRuntime(484): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
  06-13 18:58:09.745: ERROR/AndroidRuntime(491):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 18:58:09.745: ERROR/AndroidRuntime(491): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
 
  The ListDroidItemView class has not changed from the mail above except I
  fixed a typo in the package name. Any ideas?
 
  Thanks
 
 
 
  On Mon, Jun 13, 2011 at 5:34 PM, Raghav Sood raghavs...@gmail.com
 wrote:
   That occurred to me. I opened it up and decompiled the .dex file and
 its
   quite definitely there.
 
   On Mon, Jun 13, 2011 at 5:28 PM, Mark Murphy mmur...@commonsware.com
 wrote:
 
   On Mon, Jun 13, 2011 at 7:53 AM, Raghav Sood raghavs...@gmail.com
   wrote:
I was trying out an example from one of the android books I have. It
   worked
fine earlier but when I tried to modify the textview and list view
 it
started force closing. The logcat output is as follows (relevant
 part):
06-13 15:48:33.338: ERROR/AndroidRuntime(453):
android.view.InflateException: Binary XML file line #2: Error
 inflating
class com.raghavsood.listdroid.ListDroidItemView
06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by:
java.lang.ClassNotFoundException:
   com.raghavsood.listdroid.ListDroidItemView
in loader
   
 dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
06-13 17:16:09.262: ERROR/AndroidRuntime(477):
android.view.InflateException: Binary XML file line #2: Error
 inflating
class com.raghavsood.listdroid.ListDroidItemView
06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by:
java.lang.ClassNotFoundException:
   com.raghavsood.listdroid.ListDroidItemView
in loader
   
 dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
 
   As the error indicates, com.raghavsood.listdroid.ListDroidItemView is
   not in your APK.
 
   --
   Mark Murphy (a Commons Guy)
  http://commonsware.com|http://github.com/commonsguy
  http://commonsware.com/blog|http://twitter.com/commonsguy
 
   Warescription: Three Android Books, Plus Updates, One Low Price!
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
   --
   Raghav Sood
  http://www.raghavsood.com/
  http://www.androidappcheck.com/
  http://www.telstop.tel/
 
  --
  Raghav Soodhttp://
 www.raghavsood.com/http://www.androidappcheck.com/http://www.telstop.tel/

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post 

Re: [android-developers] Re: Force close in example taken from book Inflation Error

2011-06-13 Thread νιנαソkum
hi,

Check your manifest file package name




On Tue, Jun 14, 2011 at 10:08 AM, Raghav Sood raghavs...@gmail.com wrote:

 Nope. My old package was com.ragahvsood.listdroid and now it is
 com.raghavsood.listdroid The xml and class files link to the correct one.

 Any other ideas?

 Thanks

 On Tue, Jun 14, 2011 at 2:51 AM, Bagatelle: David Lee Evans 
 dle.ev...@gmail.com wrote:

 My guess, is that you forgot to change the prefix package name in your
 xml file to match
 the new package name in your class. Maybe your new package name for
 your class is com.ragahvsood.listdroid-1
 and in your xml file you still have
 com.ragahvsood.listdroid.ListDroidItemView instead of
 com.ragahvsood.listdroid-1.ListDroidItemView.
 Or something like that. Thats my guess

 On Jun 13, 1:40 pm, Raghav Sood raghavs...@gmail.com wrote:
  I seem to have fixed that problem but now my app is force closing again
 but
  the error is different:
 
  06-13 15:48:33.338: ERROR/AndroidRuntime(453):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
  06-13 17:16:09.262: ERROR/AndroidRuntime(477):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
  06-13 18:57:59.895: ERROR/AndroidRuntime(484):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 18:57:59.895: ERROR/AndroidRuntime(484): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
  06-13 18:58:09.745: ERROR/AndroidRuntime(491):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 18:58:09.745: ERROR/AndroidRuntime(491): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
 
  The ListDroidItemView class has not changed from the mail above except I
  fixed a typo in the package name. Any ideas?
 
  Thanks
 
 
 
  On Mon, Jun 13, 2011 at 5:34 PM, Raghav Sood raghavs...@gmail.com
 wrote:
   That occurred to me. I opened it up and decompiled the .dex file and
 its
   quite definitely there.
 
   On Mon, Jun 13, 2011 at 5:28 PM, Mark Murphy mmur...@commonsware.com
 wrote:
 
   On Mon, Jun 13, 2011 at 7:53 AM, Raghav Sood raghavs...@gmail.com
   wrote:
I was trying out an example from one of the android books I have.
 It
   worked
fine earlier but when I tried to modify the textview and list view
 it
started force closing. The logcat output is as follows (relevant
 part):
06-13 15:48:33.338: ERROR/AndroidRuntime(453):
android.view.InflateException: Binary XML file line #2: Error
 inflating
class com.raghavsood.listdroid.ListDroidItemView
06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by:
java.lang.ClassNotFoundException:
   com.raghavsood.listdroid.ListDroidItemView
in loader
   
 dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
06-13 17:16:09.262: ERROR/AndroidRuntime(477):
android.view.InflateException: Binary XML file line #2: Error
 inflating
class com.raghavsood.listdroid.ListDroidItemView
06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by:
java.lang.ClassNotFoundException:
   com.raghavsood.listdroid.ListDroidItemView
in loader
   
 dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
 
   As the error indicates, com.raghavsood.listdroid.ListDroidItemView is
   not in your APK.
 
   --
   Mark Murphy (a Commons Guy)
  http://commonsware.com|http://github.com/commonsguy
  http://commonsware.com/blog|http://twitter.com/commonsguy
 
   Warescription: Three Android Books, Plus Updates, One Low Price!
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
   --
   Raghav Sood
  http://www.raghavsood.com/
  http://www.androidappcheck.com/
  http://www.telstop.tel/
 
  --
  Raghav Soodhttp://
 

[android-developers] Re: Introducing ActionBarSherlock v3

2011-06-13 Thread Josh Burton
Looks very promising. I have recently been upgrading an app to honeycomb and 
this looks like it solves the big issue I came across with having to 
implement the action bar twice. I'll try it out.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Services and Alarm Manager

2011-06-13 Thread Simon Platten
Ok, so how do  you schedule an alarm in the same way the alarm clock does?
So that once scheduled the application can be killed, but the alarm remains
?

On ny phone I regularly kill all processes using task manager, yet my alarn
continues to wake me up everyday.

Regards,Sy

On 13 Jun 2011 22:33, Mark Murphy mmur...@commonsware.com wrote:

On Mon, Jun 13, 2011 at 5:21 PM, Simon Platten
simonaplat...@googlemail.com wrote:
 Ty, makes sen...
Correct.

A user can only task-kill or force-stop you when your code is actively
running. That's what you did to your own app, and it nuked the
scheduled alarms.

One imagines that if you do the same to the alarm clock app, it would
have the same effect. The alarm clock app's code is only running
around the time the user is setting an alarm or when an alarm is
occurring.

--

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Introducing ActionBarSherlock v3

2011-06-13 Thread Zsolt Vasvari
Looks quite good.

On Jun 14, 4:01 am, Jake Wharton jakewhar...@gmail.com wrote:
 I would like to formally announce the release of ActionBarSherlock 
 v3http://actionbarsherlock.com,
 a library built on top of the official compatibility library to extend
 support for the native action bar API back through Android 1.6.

 The library will automatically wrap your pre-3.0 activities with a custom
 action bar implementation that has been designed to mimic the native bar
 included with Android 3.0+. Interaction is handled through a single API that
 will automatically call through to either the native action bar or the
 custom action bar automatically. Theming is also unified through the
 introduction of both light and dark base themes and a set of custom
 attributes that mirror those of the native action bar which will be applied
 appropriately to the correct implementation.

 For more information please take a look at the samples on the 
 websitehttp://actionbarsherlock.com/samples.htmland in
 the repository https://github.com/JakeWharton/ActionBarSherlock/. You can
 also find information on using the 
 APIhttp://actionbarsherlock.com/usage.htmlas well as
 theming http://actionbarsherlock.com/theming.html. Support is 
 availablehttp://actionbarsherlock.com/support.htmlin a few places and I 
 welcome all suggestions, comments, critiques, and
 (most importantly) pull requests on the GitHub 
 repohttps://github.com/JakeWharton/ActionBarSherlock
 .

 Zip and tar archives are available under the Download Tags section of the 
 repository
 downloads page https://github.com/JakeWharton/ActionBarSherlock/downloads.
 (Make sure you get the latest version, 3.0.1)

 Thank you and enjoy.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Stream live camera preview

2011-06-13 Thread kypriakos

Hi all,

I have been trying to stream the camera preview across phones. I am
using
the setPreviewCallback to get notified for each frame and then tried
to stream it
across to other peers. I am not sure this can be done over HTTP so I
am
looking into SIP. I found out the SIP only works in Android 2.3+ so I
am
wondering if there's any other method pre-2.3 that can be used in this
case.
If anyone has managed to do this I will appreciate any hints to
follow.

Thanks

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


Re: [android-developers] Services and Alarm Manager

2011-06-13 Thread Simon Platten
My alarm clock just went off 6:30 am, no sign of any process left running
after I dissmiss it, yet tomorrow it will go off again, thats what I want to
achieve.

Regards,Sy

On 14 Jun 2011 06:17, Simon Platten simonaplat...@googlemail.com wrote:

Ok, so how do  you schedule an alarm in the same way the alarm clock does?
So that once scheduled the application can be killed, but the alarm remains
?

On ny phone I regularly kill all processes using task manager, yet my alarn
continues to wake me up everyday.

Regards,Sy



 On 13 Jun 2011 22:33, Mark Murphy mmur...@commonsware.com wrote:


 On Mon, Jun 13, 2011 at 5:21 PM, Simon Platten
 simonaplat...@googlemail.com wrote:
 Ty, makes sen...



 Correct.

 A user can only task-kill or force-stop you when your code is actively
 running. ...


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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Failed to register input channel?

2011-06-13 Thread Nikolay Elenkov
On Mon, Jun 6, 2011 at 11:01 AM, Nikolay Elenkov
nikolay.elen...@gmail.com wrote:
 I've been getting this error a lot in ACRA lately. Seems it
 happens mostly when trying to display a Toast or a progress
 dialog. It is only happening on 2.3.3 so far, but across
 different devices. Any idea what can be causing this?

Sorry for the bump, but any ideas about this? I've been getting
more of these errors, probably as a results of carriers pushing
Gingerbread updates, all of which seem to be 2.3.3.

Stack traces below.


 Here are some stacktraces:
 java.lang.RuntimeException: Failed to register input channel.  Check logs
 for details.
 at android.view.InputQueue.nativeRegisterInputChannel(Native Method)
 at android.view.InputQueue.registerInputChannel(InputQueue.java:92)
 at android.view.ViewRoot.setView(ViewRoot.java:575)
 at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:203)
 at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:117)
 at android.widget.Toast$TN.handleShow(Toast.java:373)
 at android.widget.Toast$TN$1.run(Toast.java:302)
 at android.os.Handler.handleCallback(Handler.java:587)
 at android.os.Handler.dispatchMessage(Handler.java:92)
 at android.os.Looper.loop(Looper.java:123)
 java.lang.RuntimeException: Failed to register input channel.  Check logs
 for details.
 at android.view.InputQueue.nativeRegisterInputChannel(Native Method)
 at android.view.InputQueue.registerInputChannel(InputQueue.java:92)
 at android.view.ViewRoot.setView(ViewRoot.java:575)
 at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:203)
 at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:117)
 at android.view.Window$LocalWindowManager.addView(Window.java:424)
 at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2174)
 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1672)
 at android.app.ActivityThread.access$1500(ActivityThread.java:117)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:123)
 at android.app.ActivityThread.main(ActivityThread.java:3691)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:507)
 at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
 at dalvik.system.NativeStart.main(Native Method)
 java.lang.RuntimeException: Failed to register input channel.  Check logs
 for details.
 at android.view.InputQueue.nativeRegisterInputChannel(Native Method)
 at android.view.InputQueue.registerInputChannel(InputQueue.java:92)
 at android.view.ViewRoot.setView(ViewRoot.java:572)
 at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177)
 at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
 at android.view.Window$LocalWindowManager.addView(Window.java:424)
 at android.app.Dialog.show(Dialog.java:241)
 at android.app.ProgressDialog.show(ProgressDialog.java:107)
 at android.app.ProgressDialog.show(ProgressDialog.java:90)



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Force close in example taken from book Inflation Error

2011-06-13 Thread Raghav Sood
Its correct. All the package names are com.raghavsood.listdroid.

2011/6/14 νιנαソkum@r iamvijayaku...@gmail.com

 hi,

 Check your manifest file package name




 On Tue, Jun 14, 2011 at 10:08 AM, Raghav Sood raghavs...@gmail.comwrote:

 Nope. My old package was com.ragahvsood.listdroid and now it is
 com.raghavsood.listdroid The xml and class files link to the correct one.

 Any other ideas?

 Thanks

 On Tue, Jun 14, 2011 at 2:51 AM, Bagatelle: David Lee Evans 
 dle.ev...@gmail.com wrote:

 My guess, is that you forgot to change the prefix package name in your
 xml file to match
 the new package name in your class. Maybe your new package name for
 your class is com.ragahvsood.listdroid-1
 and in your xml file you still have
 com.ragahvsood.listdroid.ListDroidItemView instead of
 com.ragahvsood.listdroid-1.ListDroidItemView.
 Or something like that. Thats my guess

 On Jun 13, 1:40 pm, Raghav Sood raghavs...@gmail.com wrote:
  I seem to have fixed that problem but now my app is force closing again
 but
  the error is different:
 
  06-13 15:48:33.338: ERROR/AndroidRuntime(453):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
  06-13 17:16:09.262: ERROR/AndroidRuntime(477):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
  06-13 18:57:59.895: ERROR/AndroidRuntime(484):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 18:57:59.895: ERROR/AndroidRuntime(484): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
  06-13 18:58:09.745: ERROR/AndroidRuntime(491):
  android.view.InflateException: Binary XML file line #2: Error inflating
  class com.raghavsood.listdroid.ListDroidItemView
  06-13 18:58:09.745: ERROR/AndroidRuntime(491): Caused by:
  java.lang.ClassNotFoundException:
 com.raghavsood.listdroid.ListDroidItemView
  in loader
  dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
 
  The ListDroidItemView class has not changed from the mail above except
 I
  fixed a typo in the package name. Any ideas?
 
  Thanks
 
 
 
  On Mon, Jun 13, 2011 at 5:34 PM, Raghav Sood raghavs...@gmail.com
 wrote:
   That occurred to me. I opened it up and decompiled the .dex file and
 its
   quite definitely there.
 
   On Mon, Jun 13, 2011 at 5:28 PM, Mark Murphy 
 mmur...@commonsware.comwrote:
 
   On Mon, Jun 13, 2011 at 7:53 AM, Raghav Sood raghavs...@gmail.com
   wrote:
I was trying out an example from one of the android books I have.
 It
   worked
fine earlier but when I tried to modify the textview and list view
 it
started force closing. The logcat output is as follows (relevant
 part):
06-13 15:48:33.338: ERROR/AndroidRuntime(453):
android.view.InflateException: Binary XML file line #2: Error
 inflating
class com.raghavsood.listdroid.ListDroidItemView
06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by:
java.lang.ClassNotFoundException:
   com.raghavsood.listdroid.ListDroidItemView
in loader
   
 dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
06-13 17:16:09.262: ERROR/AndroidRuntime(477):
android.view.InflateException: Binary XML file line #2: Error
 inflating
class com.raghavsood.listdroid.ListDroidItemView
06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by:
java.lang.ClassNotFoundException:
   com.raghavsood.listdroid.ListDroidItemView
in loader
   
 dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk]
 
   As the error indicates, com.raghavsood.listdroid.ListDroidItemView
 is
   not in your APK.
 
   --
   Mark Murphy (a Commons Guy)
  http://commonsware.com|http://github.com/commonsguy
  http://commonsware.com/blog|http://twitter.com/commonsguy
 
   Warescription: Three Android Books, Plus Updates, One Low Price!
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
   --
   Raghav Sood
  http://www.raghavsood.com/