Re: [android-developers] Detect Sent Message!

2012-02-05 Thread Kristopher Micinski
http://stackoverflow.com/questions/4117701/android-sms-broadcast-receiver

??

kris

On Sun, Feb 5, 2012 at 9:32 PM, Pedrito  wrote:

> How can I do to detect a sent message??
>
> I've been trying to do this but it just doesn't work...
>
>
> ContentResolver contentResolver = context.getContentResolver();
> contentResolver.registerContentObserver(Uri.parse("content://sms/
> out"),true, yourObserver);
>
>
> Any idea?? It's drivingme crazy!!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Android testing

2012-02-05 Thread Kristopher Micinski
On Mon, Feb 6, 2012 at 1:02 AM, Dhaval Varia  wrote:

> Sorry but i dont think that we should give our application to some one
> else for testing.
> Please add if i am wrong


Sorry, I just don't see your point.. Your app is already going to be
"tested" by thousands of uses running it in the long run, these services
simply provide  services that will show what you will see "in real life."

If you're worried about your app "getting out there" and the tester ripping
it off, that's a valid concern.  My answer to this is to go with a trusted
tester who has a reputation that would be destroyed by them hurting you
like this..

kris

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

[android-developers] Re: SMS Manager

2012-02-05 Thread vivek elangovan
Hi members,
  Using SMS Manager i m able to send message from one
emulator to another emulator which is in my local machine and it is
working fine.Is it possible to send SMS from my emulator to another
emulator of another machine ?

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

2012-02-05 Thread Romain Guy
Are you loading 28 PNGs in a single 1024x1024 texture or are you
loading 28 1024x1024 textures? If it's the latter, you need 112 MB of
RAM.

On Sat, Feb 4, 2012 at 7:52 AM, chris2404  wrote:
> I think that some Android devices dont have enough memory to load the
> amount of textures, although it could be something else causing the
> issue, as I said I really dont know what to do with this.
>
> There are 28 PNG's being loaded all 1024x1024 which come to a total of
> 4.8megs. Below is the OpenGL method for loading textures
>
>    GL10 gl = glGraphics.getGL();
>    int[] textureIds = new int[1];
>    gl.glGenTextures(1, textureIds, 0);
>    textureId = textureIds[0];
>
>    InputStream in = null;
>    try {
>        in = fileIO.readAsset(fileName);
>        Bitmap bitmap = BitmapFactory.decodeStream(in);
>        gl.glBindTexture(GL10.GL_TEXTURE_2D, textureId);
>        GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
>        setFilters(GL10.GL_LINEAR , GL10.GL_LINEAR);
>        gl.glBindTexture(GL10.GL_TEXTURE_2D, 0);
>        width = bitmap.getWidth();
>        height = bitmap.getHeight();
>        bitmap.recycle();
>    } catch(IOException e) {
>        throw new RuntimeException("Couldn't load texture '" +
> fileName +"'", e);
>    } finally {
>        if(in != null)
>            try { in.close(); } catch (IOException e) { }
>    }
> There are no issues on my Desire HD, but on a HTC Cha Cha a lot of
> textures dont appear at all and on a Galaxy S two textures just appear
> white. The Cha Cha throws this error while loading textures
>
> 02-04 15:46:28.907: E/Adreno200-ES20(1501): override1= 0xfffe,
> override2= 0xfff *
>
> Oddly if the Cha Cha is locked (OpenGL textures are destroyed) and
> then unlocked (reloaded textures) the particular textures that were
> not there initally are now, however different textures are now not
> visable.
>
> Is this a memory issue? If so is there a way around this?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

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


Re: [android-developers] Android testing

2012-02-05 Thread Dhaval Varia
Sorry but i dont think that we should give our application to some one else
for testing.
Please add if i am wrong

On Mon, Feb 6, 2012 at 10:08 AM, Kristopher Micinski  wrote:

>
> http://stackoverflow.com/questions/1852248/is-there-an-android-testing-service-i-can-use-to-give-me-real-debug-information
>
> There are a few services doing this now.
>
> kris
>
>
> On Sun, Feb 5, 2012 at 8:06 PM, Jatin D Patel wrote:
>
>> Hi all,
>>
>> Can somebody please provide me suggestions to test my application on
>> various devices?
>>
>> Its targeted for all android mobile devices.
>>
>> --
>> Thanks,
>> Jatin D N Patel
>> You Got To Think HIGH to RISE.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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
>



-- 
Thanks & Best Regards.

Dhaval varia
Assistant Professor
Govt Engineering College,Modasa
(9924343883)

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

Re: [android-developers] Help!!!

2012-02-05 Thread Raghav Sood
Sounds like you have managed to brick your device. Anyways, try asking this
on a device specific forum. This list is only for developing applications
using the SDK provided by Google.

Thanks

On Mon, Feb 6, 2012 at 2:56 AM, PIERRE GALOIS GUEVARA DONGO <
pgueva...@upao.edu.pe> wrote:

> I need help with my Xperia X8, because try to unlock the bootloader
> and now does not run, as if dead, I connect to the PC and does not
> work, is literally dead, I can do something to get my phone? I need
> help please
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

2012-02-05 Thread Dhaval Varia
No sorry this is not possible in android.I have worked on it and wasted 3
days.


On Mon, Feb 6, 2012 at 2:30 AM, İbrahim Özdemir
wrote:

> i develop an app. While A and B are making a phone call. A press an
> button which play an audio file and B hear that audio in the
> conversation. Is that possible? if it is possible, how can i achieve
> this?
> Thank you for your replies..
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thanks & Best Regards.

Dhaval varia
Assistant Professor
Govt Engineering College,Modasa
(9924343883)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Calling Activity based on Content wrapped in a Activity

2012-02-05 Thread Abhishek Singh
Hi...

   I m Developing  2 activities both of them should be
fired when the mimeType is text/plain

   as shown below..

   





 now i want 1 of those activity to be started only when
the text content starts with  '@@'and other one for any general
text/plain should launch it.
 how can i do this.???

   Thanks in Advance




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


[android-developers] update skd error

2012-02-05 Thread alaa' attya
when tried to update my sdk i got this message

File not found: C:\Program Files\Android\android-sdk\temp
\android-2.2_r03-linux.zip (Access is denied)

please need your help

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


[android-developers] Get broadcast when media is unmounting. Before Media Unmounted

2012-02-05 Thread Vivek Khandelwal
I need to received intent when the media is unmounting.

So that I can save the file in sdcard.

I used MEDIA_UNMOUNTED, MEDIA_EJECT both are received after the media
is unmounted, and at that point it is not possible to save the file.

I don't want have a separate thread that will be working in background
to save the file when modified.

Is there any other way to save the file.

Thanks,
Vivek Khandelwal


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


[android-developers] Android Rendering / shaping for Pashto (Arabic)

2012-02-05 Thread Said Zazai
I'm a newbie Android developer. I'm looking for some help with
rendering or text shaping for Pashto language (http://
www.afghanwiki.com/en/index.php?title=Pashto_Script) which is written
in arabic script but has additional letters. What's the best way to
work on it? any help would be appreciated.

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


[android-developers] setText() not updating, appending() repeating the original button push's result

2012-02-05 Thread e0s
So I have this code:

buttonUpdateStatus.setOnClickListener(new View.OnClickListener(){

@Override
public void onClick(View v){

textViewStatus.setText(ni.getDetailedState().toString());


}

the ni ConnectivityManager reference is being created in the OnCreate
method as well. I have the ni.getDetailedState() method called
whenever a button is clicked, it works the first time, but when the
network changes status and i click it again, it only gives me the
response it gave the first time, and not the new detailedstate it
should have..what's going on? Also, when I turn the phone on it's side
to force it to destroy and recreate itself, I can get the new
detailedState to appear..
 I can give the source code if anyone wants to see what I'm talking
about

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

2012-02-05 Thread Uniser
Android-SDK: You can have as many stretchable sections as you want:
their relative size stays the same, so the largest sections always
remain the largest.

When I have 5 an less stretchable areas in nine-patch.png it work
good.
When I have 6 and more stretchable areas nine-patch is blur (diffuse).
This effect is obtained only on my device [LG Optimus One (P500)]
Android layout editor in eclipse and tools draw9patch displays the .
9.png correctly.
My goal is to create an image of chess-board :)

Five stretchable areas in tools draw9patch:
![source image](http://uniser.pl.ua/wp-content/uploads/2012/02/
cb5big.png)

Five stretchable areas on device is correct:
![result image](http://uniser.pl.ua/wp-content/uploads/2012/02/
cb5res.png)

Six stretchable areas on device is incorrect:
![diffuse image](http://uniser.pl.ua/wp-content/uploads/2012/02/
cb6res.png)

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

2012-02-05 Thread Zion
This Post on 
StackOverflowis
 really the only other post specifically about this that I sawAnd I 
am using Zxing library as was asked by one of the replies.  However I am 
not doing anything with the Zxing library at the times I get these messages.

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

2012-02-05 Thread Zion
I was just wondering the same thing myself...I'm doing some research and I 
will post anything I find

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

2012-02-05 Thread Jean-Francois Im
Set Photoshop to use 8 bits and use File > Save for Web and Devices...
to export your file.

On Sat, Feb 4, 2012 at 18:09, Oliviu Vais  wrote:
> I dont get it. So what do i have to do?
>
> On Feb 4, 10:38 pm, Romain Guy  wrote:
>> In PS 8 bits means 8 bits per channel. So 8 bits * 4 (RGBA) = 32 bits.
>>
>> On Sat, Feb 4, 2012 at 4:07 AM, Oliviu Vais  wrote:
>> > I am trying to make an icon for my android app. In the developers
>> > guide it says: "Launcher icons should be 32-bit PNGs with an alpha
>> > channel for transparency." I've made the icon in CS5 but i cannot save
>> > it as PNG if i select 32 bit. If i select 16 or 8 bit i can save in
>> > PNG. Any ideas?
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> Romain Guy
>> Android framework engineer
>> romain...@android.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

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

2012-02-05 Thread Ozone Apps
Hello Everyone! I am trying to use a spinner, and the program is
throwing a Source Not Found error when I set an array adapter to that
spinner.  The array I am referencing contains valid elements and no
null elements...it was working but all of a sudden it kept giving me
the error. Any ideas?

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


Re: [android-developers] 32bit PNG in CS5

2012-02-05 Thread Jean-Francois Im
I think the text in CS5 is a bit misleading, it refers to 32 bit per
channel(ie. 96 bits for R, G and B all together) whereas Android
expects 32 bit total(ie. 8 bit per channel, 32 bits total for R, G, B
and A).

In Photoshop CS5, you can save it as a PNG with an alpha channel using
File > Save for Web & Devices... and making sure the transparency
checkbox is checked.

On Sat, Feb 4, 2012 at 07:07, Oliviu Vais  wrote:
> I am trying to make an icon for my android app. In the developers
> guide it says: "Launcher icons should be 32-bit PNGs with an alpha
> channel for transparency." I've made the icon in CS5 but i cannot save
> it as PNG if i select 32 bit. If i select 16 or 8 bit i can save in
> PNG. Any ideas?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-02-05 Thread Dave D
I have a class that reads from an input file fine
but when I add it to an Async thread it errors on openFileInput with
the method being undefined even though I
have imported exactly the same classes
Am I not allowed to use this method in the background?

code snippet is:
public class buildcustomer extends AsyncTask {
@Override
protected String doInBackground(TextView... tv) {
  try {
  FileInputStream inFile  =
openFileInput("customer.csv");
  InputStreamReader   isr = new
InputStreamReader(inFile);
  BufferedReader  in  = new 
BufferedReader(isr);

  while(!end){
String l_line = in.readLine();


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


[android-developers] Android layout editor is plenty of bugs. Will google fix them?

2012-02-05 Thread eldruida
Hello,

I know that I can create activities writing xml code. However, the
layout would be very useful if weren't full of bugs.

I don't understand why doesn't do an effort to fix them. It's
stressfull

Better they improve the actual features than adding new ones.


Bye.

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

2012-02-05 Thread aaaanilkumar
share [tw]


Is their any way to inherit listactivity but not implementing any
Listview in activity . Because I want to inherit second activity from
first and my First activity is simply inherited from "Activity" while
second activity is inherited from "Listactivity" .

My first activity is :

public class DropboxSample extends Activity {

}

My Second activity is :

public class ListMobileActivity extends ListActivity {

}

And I want to inherit ListMobileActivity from DropboxSample.

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] Move all "upper left" actions somewhere else

2012-02-05 Thread philsward
I would like to make a gripe about the use of the UX upper left corner
of the screen.  Apple has done this with the iPhone since it's
inception and now Android is beginning to push that region of the
phone.  I personally find the upper left corner to be the absolute
worst possible location to have any type of "back" or "action" button
for an application or user experience.  I'm guessing the goober who
decided to use that area of the screen is left handed or something...
I feel like Android has copied the iPhone's use of this area to make
the people switching from an iPhone to Android, more at home but I
think overall, it is not a smart move.  I also don't like the idea of
Android copying something from the iPhone.  I like and use Android
because it's NOT an iPhone...

With phone screens getting bigger, the upper left corner of the screen
is becoming more and more difficult to reach without awkwardly moving
your hand to accommodate for it's poor location.  I predict that with
the rumored iPhone 5's large screen, Apple will move this action
somewhere else that is much more user friendly.  Up to this point, the
iPhone's screen real estate has been such that it hasn't been a big
hindrance but again, with larger screens this is flat out annoying.  I
am right handed and typically use my phone one handed.  I am male and
have reasonably long fingers.  If the use of the upper left area of
the screen annoys me on a Nexus S, how do people with smaller hands
feel about this?

To accommodate for this annoyance, I usually just hit the back arrow
but even that gives me undesired affects by occasionally taking me
completely out of an application.  I also realize that the upper
portion of the screen is usually reserved for a page title and there
is typically a lot of unused space in that area.  I also realize that
placing it in the upper right corner of the screen usually means "to
go forward" which would probably go against most people's natural
thinking since we have been conditionally taught that left is back,
right is forward...

What are other's thoughts on the use of the upper left corner of the
screen?  Sure it is fine for someone who is left handed, but the
percentage of left handed people is only around 10% (http://
en.wikipedia.org/wiki/Left-handedness) which doesn't cater very well
to the other 90%...  (Sorry lefties)

Do you find it as annoying as I do or am I just being hard to please?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get phone number if a contact has more than one number in Android

2012-02-05 Thread Mai Long Dao
I used this code, and I can get the number from a contact when clicked
to a contact. However, some contacts have more than one phone number.
How can I access to another cell number. Thanks in advance.

Here is my code:

//Choose number from phone book setup
btnPhonebook.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Intent pb = new Intent(Intent.ACTION_PICK,
ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(pb, 1);
}
});

}

//Listen the result from phone book button
@Override
protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
//super.onActivityResult(requestCode, resultCode, data);
ContentResolver cr = getContentResolver();
if (resultCode == Activity.RESULT_OK) {
Uri contactData = data.getData();
Cursor contactCursor = managedQuery(contactData, null, null,
null, null);
String cellNoFromPhonebook;
String phoneNumber = null;
if (contactCursor.moveToFirst()) {
cellNoFromPhonebook =
contactCursor.getString(contactCursor.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME));

Cursor phones =
getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,
null,null,null, null);
while (phones.moveToNext())
{
String name =
phones.getString(phones.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME));
if (name.compareTo(cellNoFromPhonebook) == 0) {
phoneNumber =
phones.getString(phones.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));
}

}
phones.close();

etNumber.setText(phoneNumber);
}
}
}

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

2012-02-05 Thread İbrahim Özdemir
i develop an app. While A and B are making a phone call. A press an
button which play an audio file and B hear that audio in the
conversation. Is that possible? if it is possible, how can i achieve
this?
Thank you for your replies..

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


[android-developers] Detect Sent Message!

2012-02-05 Thread Pedrito
How can I do to detect a sent message??

I've been trying to do this but it just doesn't work...


ContentResolver contentResolver = context.getContentResolver();
contentResolver.registerContentObserver(Uri.parse("content://sms/
out"),true, yourObserver);


Any idea?? It's drivingme crazy!!

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

2012-02-05 Thread Anbu
Can anyone pls say me how to integrate OSM in an android
application... pls pls im very new to android application
development and it is very urgent for my project... pls do help

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


[android-developers] How is 'End Call using power button' implemented?

2012-02-05 Thread Prashant Pathak
Hi all.

As we all know that there is an accessibility option to end call using
power button. What got me thinking was whether its possible to pick up
a call using a physical button.

This what I know so far.
- The API doesn't allow apps to change call state.
- Remapping the keys is not a solution.

So, it requires changes to the ROM itself.

Thus, I was wondering is how is the accessibility setting for end call
using power button implemented in the source code? Perhaps I can use
that as a starting point in trying to pick up a call.

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

2012-02-05 Thread Brandon
I'm trying to create a simple app to send and receive binary messages
between phones.  I'm using an EditText to get the message and I have
hardcoded my phone number in for testing on my phone for now.  The
function call looks something like:

sms_manager = SmsManager.getDefault();
try {
sms_manager.sendDataMessage(MY_NUMBER, null, (short) SMS_PORT,
msg.getBytes(), piSend, piDelivered);
} catch(NullPointerException e) {
((TextView)findViewById(R.id.error)).setText("NullPointerException
caught");
}

When I run it on a virtual device nothing happens but I don't get an
error (I can make a working text version of this which works on the
phone and also does nothing on the virtual device).  Every time I run
it on my phone it throws the NullPointerException without getting to
either of the PendingIntent objects (which make a Toast).  When I
debug it in eclipse it seems that ISms$Stub$Proxy.sendData() is
generating the NullPointerException.  I haven't been able to figure
out what that means exactly but I have read elsewhere that this
function works on GSM phones and throws a NullPointerException on CDMA
phones.  I am testing on a CDMA Droid2 Global.  Does anyone know if I
am doing something wrong if this function just doesn't work with
CDMA?  Any suggestions for a workaround?

Thanks,
Brandon

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

2012-02-05 Thread radadev
I'm an Android developer and I have a publisher account. My publisher
page is in Spanish for some reason, and I want to change it back to
English. It's not a huge problem because I know Spanish as a second
language, but English was my first language, so I'd much rather have
it back to that. I can't seem to find the option to do so, though.

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

2012-02-05 Thread Alex Tomas
hello,

i was trying to use usb keyboard with 2.3.4 and found I can't follow
links with the enter key.
iirc, everything was fine with 2.1. any ideas what's wrong?

thanks, Alex

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

2012-02-05 Thread Drun
I seen that google is trying to get developers to use action bars
instead of menus, but also know that action bars were not put in till
3.x, and I am targeting 2.1 as the min SDK.  I have seen that there
are a few libraries out there to try to imitate action bars for as far
back as 1.6.

My question is this, is it worth it to force action bars to older
version of android, or is it ok just to stay with menues, and use that
in the code.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Which is best method to implement Tabular data with fixed header

2012-02-05 Thread Sathish
Dear Friends,

I want to display tabular data with fixed header and dynamically
updating column data.(Eg. Stock market application which shows fixed
header and dynamic data which needs to updates particular column
value). Is it better to go for TableLayout or ListView with  custom
ArrayAdapter. The view should scroll as it contains many columns and
rows.

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


[android-developers] Android Application Database Maintainence

2012-02-05 Thread ankit.verma
Hi All,


I am trying to build an Information Portal type Android Application.
Please can anyone answer my 2 questions:



1) I want to build an Android app with a database table of 1000-2000
records.Please can anyone guide how this can be done, How I can build
table with all data inserted.



2) Later if I want to update my database table with 500 more records
what is the procedure to do it.



Please note the insertion/Updation of data is not to be done
programtically by Sqllite in the code rather by the creator of the app
himself



Thanks for any reply in advance!! :)

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


[android-developers] Re: Spinner with a custom dialog (with a searchbox - EditText -, ListView with custom Adapter - results)

2012-02-05 Thread Ravi Vyas
Why don't you just use a Textview which on click opens a 
dialog/activity with a listview & a edittext for search and return the 
selected value to the TextView. You can design the entire thing so that it 
looks like a spinner.

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

2012-02-05 Thread Ravi Vyas
You may refer the Google IO app  :  http://code.google.com/p/iosched/ after 
you get a hang on Android development

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

[android-developers] Android OpenGL: Possibly Running Out Of Memory?

2012-02-05 Thread chris2404
I think that some Android devices dont have enough memory to load the
amount of textures, although it could be something else causing the
issue, as I said I really dont know what to do with this.

There are 28 PNG's being loaded all 1024x1024 which come to a total of
4.8megs. Below is the OpenGL method for loading textures

GL10 gl = glGraphics.getGL();
int[] textureIds = new int[1];
gl.glGenTextures(1, textureIds, 0);
textureId = textureIds[0];

InputStream in = null;
try {
in = fileIO.readAsset(fileName);
Bitmap bitmap = BitmapFactory.decodeStream(in);
gl.glBindTexture(GL10.GL_TEXTURE_2D, textureId);
GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
setFilters(GL10.GL_LINEAR , GL10.GL_LINEAR);
gl.glBindTexture(GL10.GL_TEXTURE_2D, 0);
width = bitmap.getWidth();
height = bitmap.getHeight();
bitmap.recycle();
} catch(IOException e) {
throw new RuntimeException("Couldn't load texture '" +
fileName +"'", e);
} finally {
if(in != null)
try { in.close(); } catch (IOException e) { }
}
There are no issues on my Desire HD, but on a HTC Cha Cha a lot of
textures dont appear at all and on a Galaxy S two textures just appear
white. The Cha Cha throws this error while loading textures

02-04 15:46:28.907: E/Adreno200-ES20(1501): override1= 0xfffe,
override2= 0xfff *

Oddly if the Cha Cha is locked (OpenGL textures are destroyed) and
then unlocked (reloaded textures) the particular textures that were
not there initally are now, however different textures are now not
visable.

Is this a memory issue? If so is there a way around this?

Thanks

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


[android-developers] voice input for people with tremors (or large fingers)

2012-02-05 Thread James Hadley
Hi all,

The microphone "button" on all Android "keyboards"  that I've seen are
too small for people with tremors or large fingers.

My brother has tremors and was trying to use several of the Android
phones with the largest screens.

Using Google Mobile's Voice Actions app, he could easily open gmail
and then "compose new message".

But, to start using the voice input (which works well) he has to press
a tiny mic button, using either the QWERTY or Compact QWERTY input
method keyboard types.

This stopped him cold every time.

All that is needed is an Android keyboard with a really large mic
button.  Everything else needed for people with tremors or large
fingers comes standard with Android phones, for example: Voice Actions
and voice input.

Things we tried that didn't work:
  -  Eyes-Free Keyboard
  -  FlexT9 app (from nuance.com)
Both of these have the same issue as the QWERTY or Compact QWERTY
standard Android keyboards -- the mic buttons are too small.

Suggestions?  We'd happily give an award to anyone that makes a
keyboard to fix this!

Cheers,
JH

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


[android-developers] Help!!!

2012-02-05 Thread PIERRE GALOIS GUEVARA DONGO
I need help with my Xperia X8, because try to unlock the bootloader
and now does not run, as if dead, I connect to the PC and does not
work, is literally dead, I can do something to get my phone? I need
help please

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

2012-02-05 Thread Sachin Arora
hi all
I have several flash files and videos in sdcard ,and all the files are
linking with a single index file  .when i run the index.swf file in my
computer's browser ,all the files run by a single index file but when
i call that index file from java code in apk , then only the content
of the index is run while others files are not called
here is my source code

mWebView = (WebView)findViewById(R.id.webview001);
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setPluginsEnabled(true);
String html = "";

String mimeType = "text/html";
String encoding = "utf-8";
mWebView.loadDataWithBaseURL("null", html, mimeType, encoding, "");


Thanks in advance .Please help me

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


Re: [android-developers] Battery manager : temperature and voltage

2012-02-05 Thread Kristopher Micinski
On Mon, Feb 6, 2012 at 12:37 AM, Put_tiMe  wrote:

> If I listen to  *ACTION_BATTERY_CHANGED* intent, I get a callback where I
> get the data about the battery's temperature and voltage.
>
> What can be derived from these two values?
> Does it mean anything?
>
> Another question.
> I read it in other posts, but just wanted to clarify:
> A normal app *cannot* get details about which app is using how much
> battery, right?
>
>

Without root, I don't believe so, this could theoretically be a security
concern if it were possible, however..

krsi

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

2012-02-05 Thread Put_tiMe
If I listen to  *ACTION_BATTERY_CHANGED* intent, I get a callback where I 
get the data about the battery's temperature and voltage. 
 
What can be derived from these two values?
Does it mean anything?
 
Another question.
I read it in other posts, but just wanted to clarify:
A normal app *cannot* get details about which app is using how much 
battery, right?
 
 
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] Failure sending broadcast Intent { act=android.intent.action.SCREEN_ON

2012-02-05 Thread manoj
Hi all,

I am getting the following exception some times.


W/ActivityManager(  312): Failure sending broadcast Intent
{ act=android.intent.action.SCREEN_ON flg=0x4010 }
W/ActivityManager(  312): android.os.DeadObjectException
W/ActivityManager(  312):   at android.os.BinderProxy.transact(Native
Method)
W/ActivityManager(  312):   at android.content.IIntentReceiver$Stub
$Proxy.performReceive(IIntentReceiver.java:121)
W/ActivityManager(  312):   at
com.android.server.am.ActivityManagerService.performReceiveLocked(ActivityManagerService.java:
12799)
W/ActivityManager(  312):   at
com.android.server.am.ActivityManagerService.deliverToRegisteredReceiverLocked(ActivityManagerService.java:
12861)
W/ActivityManager(  312):   at
com.android.server.am.ActivityManagerService.processNextBroadcast(ActivityManagerService.java:
13068)
W/ActivityManager(  312):   at
com.android.server.am.ActivityManagerService.finishReceiver(ActivityManagerService.java:
12610)
W/ActivityManager(  312):   at android.content.BroadcastReceiver
$PendingResult.sendFinished(BroadcastReceiver.java:417)
W/ActivityManager(  312):   at android.content.BroadcastReceiver
$PendingResult.finish(BroadcastReceiver.java:393)
W/ActivityManager(  312):   at android.app.LoadedApk$ReceiverDispatcher
$Args.run(LoadedApk.java:744)
W/ActivityManager(  312):   at
android.os.Handler.handleCallback(Handler.java:605)
W/ActivityManager(  312):   at
android.os.Handler.dispatchMessage(Handler.java:92)
W/ActivityManager(  312):   at android.os.Looper.loop(Looper.java:137)
W/ActivityManager(  312):   at
com.android.server.ServerThread.run(SystemServer.java:748)

Could some one please explain about this. Will it cause the phone app
not to wake up?

Regards,
Manoj.

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

2012-02-05 Thread Kristopher Micinski
Can't offer you advice on this, but cool library nonetheless..

kris

On Mon, Feb 6, 2012 at 12:18 AM, Peter Liu  wrote:

> Hi,
>
> Anyone know if there is an open source license that prohibits people
> from republishing an app?
>
> I am the author of an open source library called AndroidQuery, and we
> have a demo app that has many users using it:
> https://market.android.com/details?id=com.androidquery.simplefeed
>
> We want to open source this app, but don't want people to grab the
> source code and dump it to the Android market with Ads. I understand
> there's no way to actually stop people from doing that, but we want to
> at least state that in the license:  that you can't republish it.
>
> Any suggestion on a suitable license or how we can create a new
> license out of the existing ones?
>
> Thanks.
>
> Peter
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] License for open source Android project

2012-02-05 Thread Peter Liu
Hi,

Anyone know if there is an open source license that prohibits people
from republishing an app?

I am the author of an open source library called AndroidQuery, and we
have a demo app that has many users using it:
https://market.android.com/details?id=com.androidquery.simplefeed

We want to open source this app, but don't want people to grab the
source code and dump it to the Android market with Ads. I understand
there's no way to actually stop people from doing that, but we want to
at least state that in the license:  that you can't republish it.

Any suggestion on a suitable license or how we can create a new
license out of the existing ones?

Thanks.

Peter

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

2012-02-05 Thread Nikolay Elenkov
On Mon, Feb 6, 2012 at 12:56 PM, Zsolt Vasvari  wrote:
> I guess Google cannot get the story straight:
>
>
> The doc says that the Action Bar icon sizes should be 24, 32, 48
> square pixels for MDPI, HDPI and XHDPI, repsectively:
>
> http://developer.android.com/guide/practices/ui_guidelines/icon_design_action_bar.html

Those are also the sizes, Android Asset studio generates.

http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html

>
>
> But the icon pack ( 
> http://developer.android.com/design/static/download/action_bar_icons-v4.0.zip
> ) has them as 32, 48 and 64 pixels and the LINT gives warning on those
> sizes.
>

The newly announced design guide, says 32x32dp, which is 32px for mdpi,
48px for hdpi, etc (as above).

http://developer.android.com/design/style/iconography.html

>
> Which one is correct?
>

I can't be sure, but 32/48/64 are the icon sizes in the actual ICS
source tree, so those should be the correct ones.

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

2012-02-05 Thread Kristopher Micinski
http://stackoverflow.com/questions/1852248/is-there-an-android-testing-service-i-can-use-to-give-me-real-debug-information

There are a few services doing this now.

kris

On Sun, Feb 5, 2012 at 8:06 PM, Jatin D Patel  wrote:

> Hi all,
>
> Can somebody please provide me suggestions to test my application on
> various devices?
>
> Its targeted for all android mobile devices.
>
> --
> Thanks,
> Jatin D N Patel
> You Got To Think HIGH to RISE.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] bindService fails when startService called in previous activity

2012-02-05 Thread James Black
I am not certain how to resolve this, but in one Activity I call
startService, and then immediately call to start the next Activity:
Intent myIntent = new Intent(mContext, MyService.class);
  myIntent.putExtra("data1", data1Array);
  myIntent.putExtra("data2", data2Array);
  myIntent.putExtra("names", namesList.toArray(new String[0]));
  startService(myIntent);   // <== This works, the service starts,
begins to process the data

  Intent intent = new Intent();
  myIntent.putExtra("data1", data1Array);
  myIntent.putExtra("data2", data2Array);
  myIntent.putExtra("names", namesList.toArray(new String[0]));

intent.setClassName(
"my.package",
"my.package.SecondActivity");
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP
| Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);  // <== This works, goes to the next activity

This works, the service starts, and begins to process the data as expected.

This works, so I am now in the new Activity, and want to connect to my
Service so I can get data from the callback interface.

So I have this in the second Activity:
@Override
protected void onResume() {
super.onResume();
if (bindService(new Intent(IMyService.class.getName()),
mConnection, Context.BIND_AUTO_CREATE)) {
Toast.makeText(mContext, "Bound to service succeeded",
Toast.LENGTH_LONG).show();
} else {
Toast.makeText(mContext, "Bound to service failed",
Toast.LENGTH_LONG).show();
}
}

And this fails.

So, if the service is already running, how do I connect to this service so
I can get the updates?

IMyService is created by using a .aidl file, btw.

-- 
"I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant."
- Robert McCloskey

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] camera: can I create star, diffraction (etc.) filters?

2012-02-05 Thread Romain Guy
> What I don't know is if, perhaps, there was already a software
> implementation (something that might detect glare similar to how an echo
> canceller in voice telephony detects an echo in the outgoing audio and
> injects the same signal, 180 deg. out of phase, to cancel it out) in
> Mediastore or in Camera that I missed.  No, I wouldn't try to implement a
> polarizer myself...but if I missed that as existing library code.  So
> I gather that I didn't miss it...it just isn't there (which I expected,
> but had to at least ask).

I have never seen a photo app with such a feature. The best result
I've seen so far is in Color Efex Pro from Nik Software, but their
filter mostly works on local contrast.

> My goal here is to develop a camera app with the best combination of ease
> of use and features I can manage.  If some 35mm filters can't be done in
> software, oh well.  That's why we still use film for some projects (I
> still love Kodak Ektar Pro 100 film...personal opinion, of course, not
> employed by Kodak...or anyone, for that matter, thanks to cancer #1
> putting me right out of the job market).

I fully support your project, I am still looking for a photo app on
Android that would make me happy. I was thinking of writing my own
but... :)

-- 
Romain Guy
Android framework engineer
romain...@android.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] Action Bar icon sizes?

2012-02-05 Thread Zsolt Vasvari
I guess Google cannot get the story straight:


The doc says that the Action Bar icon sizes should be 24, 32, 48
square pixels for MDPI, HDPI and XHDPI, repsectively:

http://developer.android.com/guide/practices/ui_guidelines/icon_design_action_bar.html


But the icon pack ( 
http://developer.android.com/design/static/download/action_bar_icons-v4.0.zip
) has them as 32, 48 and 64 pixels and the LINT gives warning on those
sizes.


Which one is correct?

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

2012-02-05 Thread Zsolt Vasvari
Well, the unbind() call that threw the "Service not registered" was
originally bound to from a WakefulIntentService, not an Activity.

I bound to the service in doWakefulWork() and unbind() in onDestroy()
as well as when I am done with the service.

Basically I have a cleanup() method which looks like this:

public synchronized void cleanup(Context context)
{
  if (this.serviceConnection != null)
  {
 
context.getApplicationContext().unbindService(this.serviceConnection);//
Used to be just context.unbindService()
this.serviceConnection = null;
  }
}

I've never even once since this error when I used to use
getApplicationContext() and now that I switched to just the
WakefulIntentService Context, I got it twice -- once myself and once
by a guy who's testing for me.

I am now back to using the Application Context, thought I don't
understand still why I have to.  After all, the Service Context should
remain the same throughout the lifecycle of the Service.




On Feb 6, 6:48 am, Mark Murphy  wrote:
> On Sun, Feb 5, 2012 at 5:38 PM, Zsolt Vasvari  wrote:
> > Well, I made my change, but one of the uses for the Context is bind to a
> > service.
>
> > This now fails sometimes on unbind() with a "Service not registered"
> > message.
>
> > I asuume I still have to use the Application Context to bind to services?
>
> "Have to" is a strong term. However, particularly for activities that you:
>
> -- want to have access to a bound service, and
> -- want to allow Android to destroy and recreate on a configuration change
>
> then binding from Application is a good idea.
>
> http://commonsware.com/blog/2010/09/29/another-use-getapplicationcont...
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.4
> Available!

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


Re: [android-developers] camera: can I create star, diffraction (etc.) filters?

2012-02-05 Thread Jim Graham
On Sun, Feb 05, 2012 at 06:22:18PM -0800, Romain Guy wrote:
> Emulating a polarizing filter properly will be very difficult. One of
> the most obvious effects of polarizing filters is increased contrast
> and color saturation. Polarizing filters are also used to reduce or
> eliminate various reflections in a scene: light bouncing of leaves,
> reflections in the water, etc.

:-)

Ok, yeah, of course, I do know what a polarizing filter is for.  :-)
I've got a few of them in my camera bag (and have had, for about
30 years).  :-)

What I don't know is if, perhaps, there was already a software
implementation (something that might detect glare similar to how an echo
canceller in voice telephony detects an echo in the outgoing audio and
injects the same signal, 180 deg. out of phase, to cancel it out) in
Mediastore or in Camera that I missed.  No, I wouldn't try to implement a
polarizer myself...but if I missed that as existing library code.  So
I gather that I didn't miss it...it just isn't there (which I expected,
but had to at least ask).

What about a star filter or (and this is another one that I REALLY expect
the answer to be no for) a diffraction filter (maybe somehow simulating
the effects of a difraction grating via software...if that's even
possible)?  I did see at least one example (Google search) of a
software-based star filter, but not for Android apps.

My goal here is to develop a camera app with the best combination of ease
of use and features I can manage.  If some 35mm filters can't be done in
software, oh well.  That's why we still use film for some projects (I
still love Kodak Ektar Pro 100 film...personal opinion, of course, not
employed by Kodak...or anyone, for that matter, thanks to cancer #1
putting me right out of the job market).

Right now, though, as I said, I'm spending enough time to (hopefully)
work through one chapter of the book[1] per day, and then fish on Google
and in the dev guide for links to references I can use when I actually
start on the app.  In this case, I'm here because I didn't find them, and
I'm hoping that I just missed something for at least one of these filter
types.  :-)

Thanks,
   --jim

[1] Pro Android Media

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| Tux (E Cat):  DS B+Wd Y 6 Y L+++ W++ C++/C++ I+++
spooky1...@gmail.com| T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC---
< Running FreeBSD 7.0 > | 
ICBM / Hurricane:   | Tiggerbelle:  DS W+S+Bts % 1.5 X L-- W- C+++/C+
   30.44406N 86.59909W  | I+++  T A E++ H S++ V+++ Q+++ P  B++ PA++ PL+ SC

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


[android-developers] Re: Problem loading HTML file from android_asset in Browser

2012-02-05 Thread Streets Of Boston
You already solved your problem by using a WebView instead of the Browser 
app.

I found the same issue:
You cannot launch an external browser (the Browser app at least) using an 
Intent for a URL with the "file:" scheme. I guess it's a security issue. 
You can type into the browser a "file://" URL manually, but the Browser 
app's Intents won't allow you to launch it with such a URL.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] camera: can I create star, diffraction (etc.) filters?

2012-02-05 Thread Romain Guy
Emulating a polarizing filter properly will be very difficult. One of
the most obvious effects of polarizing filters is increased contrast
and color saturation. Polarizing filters are also used to reduce or
eliminate various reflections in a scene: light bouncing of leaves,
reflections in the water, etc.

On Sun, Feb 5, 2012 at 4:32 PM, Jim Graham  wrote:
> I've got a long way to go (several chapters in the book I'm reading,
> at least) before I get to this, but right now, I'm just collecting
> info.
>
> I'm hoping to build a new camera app, with lots of extended capabilities.
> One thing I really want to add is support for photographic filters (like
> those you might attach on the lens for a 35mm camera).  The simpler
> filters should (I think...) be easy enough...but there are a few that I'm
> not so sure about (or even if they can be done at all):
>
>   1) star filters
>   2) diffraction filters
>   3) polarizing filters
>
> If anyone has any information on implementing these filters, I would
> appreciate any links to the docs.
>
> Thanks,
>   --jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)        | Peter da Silva:  No, try "rm -rf /"
> spooky1...@gmail.com    | Dave Aronson:    As your life flashes before
> < Running FreeBSD 7.0 > |      your eyes, in the unit of time known as an
> ICBM / Hurricane:       |      ohnosecond     (alt.sysadmin.recovery)
>   30.44406N 86.59909W  |
>
> Android Apps Listing at http://www.jstrack.org/barcodes.html
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Romain Guy
Android framework engineer
romain...@android.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: Problem loading HTML file from android_asset in Browser

2012-02-05 Thread Julian Bunn
Thanks, everyone. I went with WebView in the end, and it works nicely.

On Feb 4, 1:02 pm, Mark Murphy  wrote:
> On Sat, Feb 4, 2012 at 3:57 PM, Julian Bunn  wrote:
> > Thanks, Mark - now I understand what is going wrong. I suppose if the
> > help file were on the
> > sdcard it would work.
>
> Or if you served it up by a ContentProvider.
>
> > Is there a recommended way of showing a help file in assets from
> > within an app - I've searched around and can't find anything
> > appropriate. Using WebView seems like overkill.
>
> 1. WebView
>
> 2. TextView (with light HTML content) in a ScrollView
>
> 3. Launch the default browser on your Web site
>
> 4. Launch the default browser on a help file (and images, JS, CSS,
> etc.) you serve from a ContentProvider
>
> 5. Launch the default browser on a help file (and images, JS, CSS,
> etc.) you stick on external storage
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://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


Re: [android-developers] Android testing

2012-02-05 Thread James W.
And ?

On Mon, Feb 6, 2012 at 9:06 AM, Jatin D Patel  wrote:
> Hi all,
>
> Can somebody please provide me suggestions to test my application on
> various devices?
>
> Its targeted for all android mobile devices.
>
> --
> Thanks,
> Jatin D N Patel
> You Got To Think HIGH to RISE.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Android testing

2012-02-05 Thread Jatin D Patel
Hi all,

Can somebody please provide me suggestions to test my application on
various devices?

Its targeted for all android mobile devices.

-- 
Thanks,
Jatin D N Patel
You Got To Think HIGH to RISE.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] camera: can I create star, diffraction (etc.) filters?

2012-02-05 Thread Jim Graham
I've got a long way to go (several chapters in the book I'm reading,
at least) before I get to this, but right now, I'm just collecting
info.

I'm hoping to build a new camera app, with lots of extended capabilities.
One thing I really want to add is support for photographic filters (like
those you might attach on the lens for a 35mm camera).  The simpler
filters should (I think...) be easy enough...but there are a few that I'm
not so sure about (or even if they can be done at all):

   1) star filters
   2) diffraction filters
   3) polarizing filters

If anyone has any information on implementing these filters, I would
appreciate any links to the docs.

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| Peter da Silva:  No, try "rm -rf /"
spooky1...@gmail.com| Dave Aronson:As your life flashes before
< Running FreeBSD 7.0 > |  your eyes, in the unit of time known as an
ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.59909W  |

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


Re: [android-developers] Re: getApplicationContext() returns null?

2012-02-05 Thread Mark Murphy
On Sun, Feb 5, 2012 at 5:38 PM, Zsolt Vasvari  wrote:
> Well, I made my change, but one of the uses for the Context is bind to a
> service.
>
> This now fails sometimes on unbind() with a "Service not registered"
> message.
>
> I asuume I still have to use the Application Context to bind to services?

"Have to" is a strong term. However, particularly for activities that you:

-- want to have access to a bound service, and
-- want to allow Android to destroy and recreate on a configuration change

then binding from Application is a good idea.

http://commonsware.com/blog/2010/09/29/another-use-getapplicationcontext-binding-rotation.html

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.4
Available!

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


[android-developers] Re: getApplicationContext() returns null?

2012-02-05 Thread Zsolt Vasvari
Well, I made my change, but one of the uses for the Context is bind to a 
service.
 
This now fails sometimes on unbind() with a "Service not registered" 
message.
 
I asuume I still have to use the Application Context to bind to services?

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

2012-02-05 Thread Zsolt Vasvari
I am not using a Content Provider.  I open the database connections in the 
onCreate()  methods of my activities.

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

2012-02-05 Thread Streets Of Boston
Have you looked at the copyPixelsFromBuffer method of Bitmap?

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

2012-02-05 Thread String
On Sunday, February 5, 2012 1:17:54 PM UTC+1, Mark Murphy (a Commons Guy) 
wrote:

The 4.x WVGA emulator should run approximately as quickly as the
> Android 2.3 emulator.
>
It does run about as fast, but - in my experience - emulator stability has 
taken a progressive hit with every platform version past 2.2. I can't keep 
an ICE emulator running for more than a few minutes if I'm actually trying 
to do any work with it; pseudo-random reboots are the order of the day.

I long since came to believe that nobody at Google actually uses the 
emulator; they have too much access to the latest hardware. If they had to 
dogfood it, I can't believe it'd be in the state it is.

String

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

2012-02-05 Thread CodeOnWeed
Should I use Webkit source code and use it from native code to do
this ??


On Feb 2, 8:22 pm, CodeOnWeed  wrote:
> Hi all,
>     ( I am using a Samsung Galaxy Tab 10.1 ). I need to develop a
> HTML5 based app. I want to zoom the contents of a Html fragment ( like
> A small paragrah goes here. ).
> Currently the WebView only supports limited amount of zooming of the
> content. My application need to zoom a word in a paragram upto the
> maximum ( i.e. to fit the tablet's physical screen width ). Can anyone
> tell me, whether it is possible to do it with the Android.Webkit
> related classes ?
>     Any help would be appreciated...
>
> 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


[android-developers] SDK Manager won't launch

2012-02-05 Thread hhenault
Hello Android developpers,

since several days, when I try to launch the SDK manager, I get the
following set of error messages:

Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL 
https://dl-ssl.google.com/android/repository/addons_list-1.xml,
reason: Stub!
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml
Failed to fetch URL 
https://dl-ssl.google.com/android/repository/repository-5.xml,
reason: Stub!
Fetching URL: file://d:/java/android-sdk-windows/tools/repository-5.xml
Failed to fetch URL 
file://d:/java/android-sdk-windows/tools/repository-5.xml/addon.xml,
reason: Stub!
Done loading packages.


The network is running, correctly, I can access those URL's easily
with any Internet browser.

Uninstall-reinstall the SDK Manager does not fix the problem.

Is there a way to trace what the SDK manager does ?

Any help welcome, thanx 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


Re: [android-developers] Hi

2012-02-05 Thread ajaykumar kanchak
Hi,

To learn android you need
1) Internet in your pc or laptop
2) download eclipse
3) download adt plugin for android and add plugin in eclipse
4) download android sdk and add its location in eclipse android plugin

for the whole process just search in google and you android.com is the site
where you will get all the things and also videos are available for each
topic in google youtube.

On Fri, Jan 27, 2012 at 12:11 AM, Daniel Drummond wrote:

> Read everything at d.android.com, watch videos from Google IO, read some
> books, get on the android irc channel, read the Android blog. Above all
> code, try out different things, and enjoy it!
> On Jan 26, 2012 6:03 PM, "siri"  wrote:
>
>> Dear all i started to learn android plz guide me
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Thanks & Regards
K. Ajay Kumar
9700188853

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Image comparison problem: getPixel() in android and getRGB() in JDK return different values for the same image

2012-02-05 Thread Ergen
The problem was the JPG format.

On 3 Feb., 22:21, Romain Guy  wrote:
> First make sure that both return values in the same format (Android returns
> ARGB not RGBA.) Also, f I remember correctly, Java2D can apply color
> profiles when loading a bitmap.
> On Feb 3, 2012 11:05 AM, "Ergen"  wrote:
>
>
>
>
>
>
>
> > Hi.  I want to compare two images. One image is on the android client
> > and another image is on the server (with Tomcat, JDK).  I need also to
> > calculate two histograms - one for each image - and to compare they
>
> > The problem is: getPixel (x, y) (on Android) and getRGB (x, y) (JDK)
> > return different rgb color numbers for the point with the same
> > coordinates (x, y). The images are here identical (JPG, Size: 3x3).
>
> > Why are the results different?  And what to do? I've been looking for
> > the answer everywhere, but...
>
> > ***
> > Pseudocode for Androids Activity
> > ***
> > BitmapFactory.Options opt = new BitmapFactory.Options();
> > opt.inPreferredConfig = Bitmap.Config.ARGB_;
>
> > mBitmap = BitmapFactory.decodeFile(imageSource, opt);
>
> > int intColor = 0;
> > for (int x = 0; x < mBitmap.getWidth(); x++) {
> >   for (int y = 0; y < mBitmap.getHeight(); y++) {
> >        intColor = mBitmap.getPixel(x, y);
> >        System.out.print(" ("+ x + ","+ y +") c:" + intColor);
> >   }
> > }System.out.println();
>
> > Result for example image 3x3:
> > (0,0)c:-7882802   (0,1)c:-9859138   (0,2)c:-6507579
> > (1,0)c:-12883825 (1,1)c:-6574388   (1,2)c:-7948604
> > (2,0)c:-7489593   (2,1)c:-10579009 (2,2)c:-6573359
>
> > 
> > Pseudocode for JDK
> > 
> > BufferedImage img = ImageIO.read( file );
>
> > int intColor = 0;
> > for ( int x = 0; x < img.getWidth(); x++ )      {
> >   for ( int y = 0; y < img.getHeight(); y++ ) {
> >      intColor = img.getRGB( x, y );
> >      System.out.print(" ("+ x + ","+ y +") c:" + intColor);
> >   }
> > }System.out.println();
>
> > Result for the same image:
> >  (0,0)c:-7883056    (0,1)c:-9728065   (0,2)c:-6507579
> >  (1,0)c:-12818030  (1,1)c:-6377523   (1,2)c:-7883323
> >  (2,0)c:-7424055    (2,1)c:-10513470 (2,2)c:-6573358
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: Image comparison problem: getPixel() in android and getRGB() in JDK return different values for the same image

2012-02-05 Thread Ergen
The problem was the JPG format. With PNG it works


On 4 Feb., 01:42, gjs  wrote:
> Hi,
>
> Also maybe try .png format if possible.
>
> Regards
>
> On Feb 4, 8:21 am, Romain Guy  wrote:
>
>
>
>
>
>
>
> > First make sure that both return values in the same format (Android returns
> > ARGB not RGBA.) Also, f I remember correctly, Java2D can apply color
> > profiles when loading a bitmap.
> > On Feb 3, 2012 11:05 AM, "Ergen"  wrote:
>
> > > Hi.  I want to compare two images. One image is on the android client
> > > and another image is on the server (with Tomcat, JDK).  I need also to
> > > calculate two histograms - one for each image - and to compare they
>
> > > The problem is: getPixel (x, y) (on Android) and getRGB (x, y) (JDK)
> > > return different rgb color numbers for the point with the same
> > > coordinates (x, y). The images are here identical (JPG, Size: 3x3).
>
> > > Why are the results different?  And what to do? I've been looking for
> > > the answer everywhere, but...
>
> > > ***
> > > Pseudocode for Androids Activity
> > > ***
> > > BitmapFactory.Options opt = new BitmapFactory.Options();
> > > opt.inPreferredConfig = Bitmap.Config.ARGB_;
>
> > > mBitmap = BitmapFactory.decodeFile(imageSource, opt);
>
> > > int intColor = 0;
> > > for (int x = 0; x < mBitmap.getWidth(); x++) {
> > >   for (int y = 0; y < mBitmap.getHeight(); y++) {
> > >        intColor = mBitmap.getPixel(x, y);
> > >        System.out.print(" ("+ x + ","+ y +") c:" + intColor);
> > >   }
> > > }System.out.println();
>
> > > Result for example image 3x3:
> > > (0,0)c:-7882802   (0,1)c:-9859138   (0,2)c:-6507579
> > > (1,0)c:-12883825 (1,1)c:-6574388   (1,2)c:-7948604
> > > (2,0)c:-7489593   (2,1)c:-10579009 (2,2)c:-6573359
>
> > > 
> > > Pseudocode for JDK
> > > 
> > > BufferedImage img = ImageIO.read( file );
>
> > > int intColor = 0;
> > > for ( int x = 0; x < img.getWidth(); x++ )      {
> > >   for ( int y = 0; y < img.getHeight(); y++ ) {
> > >      intColor = img.getRGB( x, y );
> > >      System.out.print(" ("+ x + ","+ y +") c:" + intColor);
> > >   }
> > > }System.out.println();
>
> > > Result for the same image:
> > >  (0,0)c:-7883056    (0,1)c:-9728065   (0,2)c:-6507579
> > >  (1,0)c:-12818030  (1,1)c:-6377523   (1,2)c:-7883323
> > >  (2,0)c:-7424055    (2,1)c:-10513470 (2,2)c:-6573358
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, 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] update previous app

2012-02-05 Thread Talha Qamar
Hi,Before compiling your project just clean it.Click on Project in menu
then go to the "Clean".After that save your project and run the emulator.

On Sun, Feb 5, 2012 at 10:21 PM, Areesha kamran  wrote:

> Help
>
>   I made a simple android application (HelloWorld) in monoadroid. My
> applicatino run fine , But when i made some changes in my activity.cs and
> run  it these changes are not  in updated in emulator . Similarly when i
> made new project , new project not show in android kindly help me
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-02-05 Thread Kristopher Micinski
I guess the answer is that you can't control what people will put in their
firmware.

But if your users complain to you about the developer options, they're
dumb, and I'd hope that this is the minority of people using your app.

Obviously "they're dumb" doesn't help you all that much in terms of
ratings, etc.., however, :(

kris

On Sun, Feb 5, 2012 at 12:26 PM, guruk  wrote:

> hi there,
> the experimental "developer options" on the new Galaxy Nexus cause
> lots of confusion and problems with my users (as the FORCE CPU
> RENDERING) do not work with my app (and as i heard from lots of other
> developers, even has probs with their apps.
> Will this feature even be available in the next Firmwares. i hope
> not.. it should only be available for Developers.
> thx
> chris
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Hardware accleration slow down every Canvas app. Why?

2012-02-05 Thread guruk
just curios...

the experimental "developer options" on the new Galaxy Nexus cause
lots of confusion and problems with my users (as the FORCE CPU
RENDERING) do not work with my app (and as i heard from lots of other
developers, even has probs with their apps.
Will this feature even be available in the next Firmwares. i hope
not.. it should only be available for Developers, till it does not
cause so many problems.



On Jan 17, 1:52 am, Romain Guy  wrote:
> With or without hardware acceleration in this test? If it's with, note
> that theGalaxyNote has a better GPU.
>
> On Mon, Jan 16, 2012 at 3:46 PM, sblantipodi
>
>
>
>
>
>
>
>
>
>  wrote:
> > Adding some more data for Romain.
> > The same software runs at lightning speed onGalaxyNote (1280x800)
> > and it runs slow
> > onGalaxyNexus(1280x720). Do you really tell us that it is the CPU/
> > GPU hardware difference
> > to make a simple software like that runs slow, good, or smooth as
> > butter?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For moreoptions, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.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] Developer Options on Galaxy Nexus!?

2012-02-05 Thread guruk
hi there,
the experimental "developer options" on the new Galaxy Nexus cause
lots of confusion and problems with my users (as the FORCE CPU
RENDERING) do not work with my app (and as i heard from lots of other
developers, even has probs with their apps.
Will this feature even be available in the next Firmwares. i hope
not.. it should only be available for Developers.
thx
chris

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

2012-02-05 Thread Areesha kamran
Help

  I made a simple android application (HelloWorld) in monoadroid. My
applicatino run fine , But when i made some changes in my activity.cs and
run  it these changes are not  in updated in emulator . Similarly when i
made new project , new project not show in android kindly help me

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

Re: [android-developers] please help to replace lock screen theme

2012-02-05 Thread Kristopher Micinski
Trust me...  you can't do this...

I've been through the SDK, so have many other people on the list,
especially Mr. Murphy (one of the people answering the posts on SO).  If
there had been a way to do it, he would have told you.

kris

2012/2/5 Dhaval Varia 

> No..i m talking in general for android 1.6 or 2.1
> On Feb 5, 2012 5:07 PM, "Kostya Vasilyev"  wrote:
>
>> Are you talking about HTC Sense 3.*?
>>
>> That's built into their firmware.
>>
>> -- Kostya
>>
>> 5 февраля 2012 г. 15:30 пользователь Dhaval Varia > > написал:
>>
>>> I have seen that,when i am getting sms or email i am having notification
>>> on the locked screen.
>>>
>>> When i slide that notification then it open inbox.
>>>
>>> Is this possible that i put my own slider,so that my app gets open.
>>> On Feb 5, 2012 3:22 PM, "Dhaval Varia"  wrote:
>>>
 Thanks sir.for detaile amswer
 On Feb 5, 2012 2:27 PM, "Kristopher Micinski" 
 wrote:

> You can't directly do this.
>
> You can only "replace" the lock screen.
>
>
> http://thinkandroid.wordpress.com/2010/01/24/handling-screen-off-and-screen-on-intents/
>
> http://stackoverflow.com/questions/6737760/android-lockscreen-tutorial
>
>
> http://stackoverflow.com/questions/5529608/android-how-to-develop-custom-lock-screen
>
> Basically the answer is: don't do this.  If you do this, your app is
> basically, violating a security hole in the android system.  The behavior
> that older "lock screen" apps use is not good practice, and will be (if it
> has not already been) removed from the API so your app will cease to work.
>
> Perhaps you think "but my app is special."
>
> Answer: no, it's not.
>
> Perhaps you think "but only I will ever use my app, so I don't mind if
> it breaks good coding practices, might be removed from the market for
> violating security practices (highly unlikely..), and uses now considered
> deprecated pieces of the API."  Well, then perhaps the answer is to go
> right ahead.
>
> In general if you're wanting to modify the behavior of the *system*,
> you can't do it with an app.
>
> kris
>
> On Sun, Feb 5, 2012 at 3:06 AM, Dhaval Varia 
> wrote:
>
>> Any way to replace my custom theme to screen lock  theme?
>> --
>> Thanks & Best Regards.
>>
>> 
>> Dhaval varia
>> (9924343883)
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to
>> android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to
> android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: onResume start a duplicated activity

2012-02-05 Thread leslie.karpati
now it is looks like i found the solution.

I am just add android:launchMode="singleInstance" to my Activity in
the Mainfest.xml.

Thanks,
Leslie

On febr. 2, 02:46, "leslie.karpati"  wrote:
> Hi,
>
> You are right, the Eclipse launch is really makeing some mess:
> I have two condition:
> 1. Launch with eclipse:  It does't start a new activity if I make
> visible the application again with the notification, but start a
> 'second' activity if I try it with the launcher icon.
>
> 2. Normal launch: opposite of the previous one :).
>
> I tried your PendingIntent solution, but it does't solved the
> problem.
> Right now my NotificationHelper looks like this:
>
> public class NotifierHelper {
>
>         private Context context;
>         private NotificationManager notificationManager;
>
>         public NotifierHelper (Context context){
>                 Log.v(TAG, "NotifierHelper create");
>                 this.context = context;
>                 notificationManager =
> (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE) ;
>         }
>
>         public void showNotification(){
>                 Log.v(MediaService.TAG, "showNofitication called");
>
>                 Notification notification = new Notification();
>                 notification.icon = R.drawable.notification_icon;
>                 notification.flags = Notification.FLAG_ONGOING_EVENT |
> Notification.FLAG_NO_CLEAR;
>
>                 Intent baseIntent = new Intent(context, 
> ViewPagerActivity.class);
>                         baseIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
>                    
> baseIntent.addFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
>                    baseIntent.setAction(Intent.ACTION_MAIN);
>                    baseIntent.addCategory(Intent.CATEGORY_LAUNCHER);
>
>                 PendingIntent pendingIntent = 
> PendingIntent.getActivity(context, 0,
> baseIntent, PendingIntent.FLAG_UPDATE_CURRENT);
>
>                 notification.setLatestEventInfo(context, "Radio On", "You are 
> now
> listening a radio...", pendingIntent);
>                 notificationManager.notify(1, notification);
>         }
>
> }
>
> And I am initializing in the activity on this way:
> 
> public static NotifierHelper notifierHelper;
> .
>         @Override
>         public void onCreate( Bundle savedInstanceState ){
>                 super.onCreate(savedInstanceState);
>                 notifierHelper = new NotifierHelper(thist);
>          ...
>
> I guess the problem is somewhere on the this/context line, or i don't
> konow
>
> Thanks for your help ,
> Leslie
>
> On febr. 1, 23:37, Kostya Vasilyev  wrote:
>
>
>
>
>
>
>
> > Is the app originally launched from Eclipse?
>
> > If so, beware that Eclipse uses a different intent than would normally
> > be used by the Launcher(s), so you may get duplicates like this.
>
> > To get a good test, either don't launch from Eclipse, or first press
> > Back to close the initial activity, start a new one from Launcher, then
> > test your notifications.
>
> > Other than that, here is what I use for widgets / notifications.
>
> > It matches the intent used by Launcher(s), and so resumes an existing
> > activity if there is one:
>
> >          Intent baseIntent = new Intent(context,  ACTIVITY CLASS
> > HERE .class);
> >          baseIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> >          baseIntent.addFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
> >          baseIntent.setAction(Intent.ACTION_MAIN);
> >          baseIntent.addCategory(Intent.CATEGORY_LAUNCHER);
>
> >          PendingIntent pendingIntent =
> > PendingIntent.getActivity(context, 0, baseIntent,
> >                  PendingIntent.FLAG_UPDATE_CURRENT);
>
> > -- Kostya
>
> > On 02/02/2012 02:25 AM, leslie.karpati wrote:
>
> > > Hi!
>
> > > I'am writing an online radio streamer application. It's working very
> > > well (activity->bind service->notificiation bar, ...etc), but
> > > sometimes when I go back to the UI (ex.: click to the application icon
> > > from the menu, when the service and the activity are already running -
> > >> onResume) it's start a new/second/duplicated activity, but the old
> > > one does't killed. For example: when I press key back after that it's
> > > destroy the new activity and going to back to the old one, and I can
> > > kill it too.
>
> > > I put this code to the onResume:
> > > Log.v(TAG, "Activity onResume called. Context:"+context);
> > > and onlye when the problem is occured (stared the second activity
> > > above the old one), I got a different contex id.
>
> > > Where is the problem?
>
> > > Thanks,
> > > Leslie

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

Re: [android-developers] Lock screen customization

2012-02-05 Thread Raghav Sood
The other possibility has already been mentioned to you by Ibendlin. You
can either replace the entire lockscreen, which the majority of the users
will hate, or you can extend Android at the firmware level, in which case
you will have a very limited reach.

Thanks

On Sun, Feb 5, 2012 at 8:22 PM, Dhaval Varia  wrote:

> I think not all the application uses this kind of facility Extend
> Android from the firmware level..
> There must be some way...like overriding/overlays or something...
> If somebody knows,help me
>
> On 2/5/12, Raghav Sood  wrote:
> >>
> >> Look sir i m making survaliance system.in which i need some way through
> >> which user can call my app,without wasting much time,for unlocking the
> >> phone.
> >> Plz help
> >>
> > Extend Android at the firmware level. See
> > http://source.android.com/community/index.html for an appropriate list.
> >
> > Thanks
> >
> > --
> > Raghav Sood
> > http://www.androidactivist.org/ - Author
> > http://www.appaholics.in/ - Founder
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
> --
> Thanks & Best Regards.
>
> 
> Dhaval varia
> Assistant Professor
> Govt Engineering College,Modasa
> (9924343883)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

2012-02-05 Thread Dhaval Varia
I think not all the application uses this kind of facility Extend
Android from the firmware level..
There must be some way...like overriding/overlays or something...
If somebody knows,help me

On 2/5/12, Raghav Sood  wrote:
>>
>> Look sir i m making survaliance system.in which i need some way through
>> which user can call my app,without wasting much time,for unlocking the
>> phone.
>> Plz help
>>
> Extend Android at the firmware level. See
> http://source.android.com/community/index.html for an appropriate list.
>
> Thanks
>
> --
> Raghav Sood
> http://www.androidactivist.org/ - Author
> http://www.appaholics.in/ - Founder
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en


-- 
Thanks & Best Regards.

Dhaval varia
Assistant Professor
Govt Engineering College,Modasa
(9924343883)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Supporting Galaxy Note Issues Due To It Displaying Itself as a LARGE screen layout.

2012-02-05 Thread Daniele Segato

On 01/20/2012 02:40 PM, Chris wrote:

My app runs on Android 2.1+ , so I can't use the DPI based screen
differentiation ,


are you sure about this?

I never actually tried but I think that if you target a later version 
(say Android 4.0.3) you can define your resources, layouts and so on 
with the 4.0.3 specification, that allow you dpi differentiation.


Device that don't support it should just ignore them.

As I told you, I never tried but I would be surprised if it doesn't work 
this way.



and the Galaxy note is 2.3.5 I believe.


if my supposition is right the Galaxy note will ignore the dpi 
differentiation but you may be able to differentiate by using large + 
xlarge + dpi


let us know if you try it out,
bye

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Supporting Galaxy Note Issues Due To It Displaying Itself as a LARGE screen layout.

2012-02-05 Thread Mark Murphy
On Sun, Feb 5, 2012 at 8:42 AM, albnok  wrote:
> Er... since when could we do that? As far as I know the exact
> qualifiers only came about in Android 3.2.
>
> layout-large-port-xhdpi-1280x800

The exact qualifiers (-1280x800) were deprecated some time ago.

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

_Android Programming Tutorials_ Version 4.1 Available!

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


[android-developers] Re: Supporting Galaxy Note Issues Due To It Displaying Itself as a LARGE screen layout.

2012-02-05 Thread albnok
Er... since when could we do that? As far as I know the exact
qualifiers only came about in Android 3.2.

layout-large-port-xhdpi-1280x800

I am thinking layout-large-port-xhdpi would make sense, though.

I also want to target the Samsung Galaxy Tab 7" specifically, but
there isn't a better way besides doing layout-large-hdpi which will
sabotage future devices.

Meanwhile I would have to say that from an app statistics, these two
devices are actually at the top of the installs... and in fact, I
doubt there would truly be a layout-large-hdpi device that is anywhere
as popular as these two.


On Jan 22, 3:31 pm, Doug  wrote:
> You're right about the Note being stupid.  But I'll tell you exactly
> why it's stupid, because I went through this too.  There is a thread
> in this group if you want to find and follow that.
>
> The note is "large", which is technically within bounds.  Large
> screen, according to Google documentation, can be between roughly 4
> and 7 inches.  The docs also say "large screens are at least 640dp x
> 480dp".  This is where the Note is stupid.
>
> The Note also happens to be "xhdpi", which means that its pixels are
> supposed to be about half the size of the mdpi baseline for
> calculating dp.  So if a large mdpi screen must be at least 640x480,
> then xhdpi must be at least 1280x960.  As you may know, the note is
> actually 1280x800.  This means that it's missing an expected 160
> pixels (80dp) on its short edge.  If your layouts are (correctly)
> assuming this space exists, something may go wrong when it comes time
> to draw.
>
> I got around this by having a Very Special layout for the Note.  You
> can target pixels sizes in your resource specifiers like this: layout-
> large-port-xhdpi-1280x800.  Then in your layouts just do what you need
> to do without the extra space.  I took it on good authority that it's
> a Bad Idea to target dimensions size in resource specifiers, but it's
> what I had to do to make it work without redesigning a very important
> screen in my app.  Please don't email me for support!
>
> Have fun.
>
> Doug
>
> On Jan 20, 6:05 am, Chris  wrote:
>
>
>
>
>
>
>
> > Thanks
> > I will just exclude , can't find any other stupid devices like the
> > note.
> > Kindle sales are in the 100's per day , not doing all that change for
> > a few Galaxy Note's.
>
> > It's a shame Google did not sort this mess out on an earlier release ,
> > it's becoming a real pain
>
> > On Jan 20, 1:45 pm, Mark Murphy  wrote:
>
> > > On Fri, Jan 20, 2012 at 8:40 AM, Chris  wrote:
> > > > I am having issues support the Galaxy Note
>
> > > > My app runs on Android 2.1+ , so I can't use the DPI based screen
> > > > differentiation , and the Galaxy note is 2.3.5 I believe.
>
> > > > My app has a normal display size which works great for small/normal ,
> > > > I also have a large display layout that has been working great for
> > > > 7-10inch tablets like Xoom and Amazon Kindle Fire.
>
> > > > However this Galaxy Note has thrown a spanner in the mix.
>
> > > > It is displaying itself as a Large , but my display does not fit on
> > > > the screen.
> > > > The normal layout looks fine on it.
>
> > > > Any ideas how I can make that device use the normal display ?
>
> > > You can't. You need to create a -large set of resources that work well
> > > on the Galaxy Note and Kindle Fire. The XOOM can use -xlarge
> > > resources, if the revised -large ones do not work well on a 10"
> > > screen.
>
> > > > at the
> > > > moment I am tempted to just exclude it from compatible devices - but
> > > > if there is an elegant workaround it would be better !
>
> > > Bear in mind that your issue is not strictly one tied to the Galaxy
> > > Note. I would expect you to encounter similar problems on
> > > similarly-sized devices.
>
> > > --
> > > Mark Murphy (a Commons 
> > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > > Android 4.0 Programming Books:http://commonsware.com/books

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


Re: [android-developers] Lock screen customization

2012-02-05 Thread Raghav Sood
>
> Look sir i m making survaliance system.in which i need some way through
> which user can call my app,without wasting much time,for unlocking the
> phone.
> Plz help
>
Extend Android at the firmware level. See
http://source.android.com/community/index.html for an appropriate list.

Thanks

-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

2012-02-05 Thread Dhaval Varia
Look sir i m making survaliance system.in which i need some way through
which user can call my app,without wasting much time,for unlocking the
phone.
Plz help.
On Feb 5, 2012 6:50 PM, "lbendlin"  wrote:

> They completely replace the standard lock screen. You can see from the
> market comments that users don't like that.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Lock screen customization

2012-02-05 Thread lbendlin
They completely replace the standard lock screen. You can see from the market 
comments that users don't like that.

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

2012-02-05 Thread Mark Murphy
2012/2/4 David Ross :
> Why change working behaviour?

In this case, to help stop drive-by malware. Android has long had a
"nothing runs until the user runs it" approach, which is why there is
no on-install code you can have run. Developers were getting past that
by registering for system broadcasts -- Lookout's Plan B app
registered for just about all of them IIRC. As a result, malware
taking the same approach could automatically get control, albeit after
some delay.

Now, you can argue that they took a shotgun approach to the problem,
wiping out app widgets along the way. IMHO, app widgets should still
show up, despite this "stopped" status, and if the user elects to
install an app widget, it should move the app out of the "stopped"
state.

> I don't
> own a 3.x or 4.x device and the 3.x emulator sucks, I can't get it to
> run on my modest laptop, so I have trouble even testing on the later
> platforms.

The 4.x WVGA emulator should run approximately as quickly as the
Android 2.3 emulator. It's the tablet screen sizes that are the
problem, much more so than the Android version.

> In fact, aside from that mention you linked to of an Application's
> state as stopped or started, there seems to be no real explanation of
> this behaviour at the Application level anywhere in the developer
> documentation. How are we supposed to know and understand this sort of
> undocumented behaviour?

Ask questions, and let those of us who have crawled on the broken
glass already help point out, "Yo! There's broken glass down here!
And, um, by the way, do you have any disinfectant, and maybe some
bandages?"

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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] please help to replace lock screen theme

2012-02-05 Thread Dhaval Varia
No..i m talking in general for android 1.6 or 2.1
On Feb 5, 2012 5:07 PM, "Kostya Vasilyev"  wrote:

> Are you talking about HTC Sense 3.*?
>
> That's built into their firmware.
>
> -- Kostya
>
> 5 февраля 2012 г. 15:30 пользователь Dhaval Varia 
> написал:
>
>> I have seen that,when i am getting sms or email i am having notification
>> on the locked screen.
>>
>> When i slide that notification then it open inbox.
>>
>> Is this possible that i put my own slider,so that my app gets open.
>> On Feb 5, 2012 3:22 PM, "Dhaval Varia"  wrote:
>>
>>> Thanks sir.for detaile amswer
>>> On Feb 5, 2012 2:27 PM, "Kristopher Micinski" 
>>> wrote:
>>>
 You can't directly do this.

 You can only "replace" the lock screen.


 http://thinkandroid.wordpress.com/2010/01/24/handling-screen-off-and-screen-on-intents/

 http://stackoverflow.com/questions/6737760/android-lockscreen-tutorial


 http://stackoverflow.com/questions/5529608/android-how-to-develop-custom-lock-screen

 Basically the answer is: don't do this.  If you do this, your app is
 basically, violating a security hole in the android system.  The behavior
 that older "lock screen" apps use is not good practice, and will be (if it
 has not already been) removed from the API so your app will cease to work.

 Perhaps you think "but my app is special."

 Answer: no, it's not.

 Perhaps you think "but only I will ever use my app, so I don't mind if
 it breaks good coding practices, might be removed from the market for
 violating security practices (highly unlikely..), and uses now considered
 deprecated pieces of the API."  Well, then perhaps the answer is to go
 right ahead.

 In general if you're wanting to modify the behavior of the *system*,
 you can't do it with an app.

 kris

 On Sun, Feb 5, 2012 at 3:06 AM, Dhaval Varia wrote:

> Any way to replace my custom theme to screen lock  theme?
> --
> Thanks & Best Regards.
>
> 
> Dhaval varia
> (9924343883)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to
> android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en


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

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

2012-02-05 Thread Kostya Vasilyev
Are you talking about HTC Sense 3.*?

That's built into their firmware.

-- Kostya

5 февраля 2012 г. 15:30 пользователь Dhaval Varia
написал:

> I have seen that,when i am getting sms or email i am having notification
> on the locked screen.
>
> When i slide that notification then it open inbox.
>
> Is this possible that i put my own slider,so that my app gets open.
> On Feb 5, 2012 3:22 PM, "Dhaval Varia"  wrote:
>
>> Thanks sir.for detaile amswer
>> On Feb 5, 2012 2:27 PM, "Kristopher Micinski" 
>> wrote:
>>
>>> You can't directly do this.
>>>
>>> You can only "replace" the lock screen.
>>>
>>>
>>> http://thinkandroid.wordpress.com/2010/01/24/handling-screen-off-and-screen-on-intents/
>>>
>>> http://stackoverflow.com/questions/6737760/android-lockscreen-tutorial
>>>
>>>
>>> http://stackoverflow.com/questions/5529608/android-how-to-develop-custom-lock-screen
>>>
>>> Basically the answer is: don't do this.  If you do this, your app is
>>> basically, violating a security hole in the android system.  The behavior
>>> that older "lock screen" apps use is not good practice, and will be (if it
>>> has not already been) removed from the API so your app will cease to work.
>>>
>>> Perhaps you think "but my app is special."
>>>
>>> Answer: no, it's not.
>>>
>>> Perhaps you think "but only I will ever use my app, so I don't mind if
>>> it breaks good coding practices, might be removed from the market for
>>> violating security practices (highly unlikely..), and uses now considered
>>> deprecated pieces of the API."  Well, then perhaps the answer is to go
>>> right ahead.
>>>
>>> In general if you're wanting to modify the behavior of the *system*, you
>>> can't do it with an app.
>>>
>>> kris
>>>
>>> On Sun, Feb 5, 2012 at 3:06 AM, Dhaval Varia wrote:
>>>
 Any way to replace my custom theme to screen lock  theme?
 --
 Thanks & Best Regards.

 
 Dhaval varia
 (9924343883)

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

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

Re: [android-developers] please help to replace lock screen theme

2012-02-05 Thread Dhaval Varia
I have seen that,when i am getting sms or email i am having notification on
the locked screen.

When i slide that notification then it open inbox.

Is this possible that i put my own slider,so that my app gets open.
On Feb 5, 2012 3:22 PM, "Dhaval Varia"  wrote:

> Thanks sir.for detaile amswer
> On Feb 5, 2012 2:27 PM, "Kristopher Micinski" 
> wrote:
>
>> You can't directly do this.
>>
>> You can only "replace" the lock screen.
>>
>>
>> http://thinkandroid.wordpress.com/2010/01/24/handling-screen-off-and-screen-on-intents/
>>
>> http://stackoverflow.com/questions/6737760/android-lockscreen-tutorial
>>
>>
>> http://stackoverflow.com/questions/5529608/android-how-to-develop-custom-lock-screen
>>
>> Basically the answer is: don't do this.  If you do this, your app is
>> basically, violating a security hole in the android system.  The behavior
>> that older "lock screen" apps use is not good practice, and will be (if it
>> has not already been) removed from the API so your app will cease to work.
>>
>> Perhaps you think "but my app is special."
>>
>> Answer: no, it's not.
>>
>> Perhaps you think "but only I will ever use my app, so I don't mind if it
>> breaks good coding practices, might be removed from the market for
>> violating security practices (highly unlikely..), and uses now considered
>> deprecated pieces of the API."  Well, then perhaps the answer is to go
>> right ahead.
>>
>> In general if you're wanting to modify the behavior of the *system*, you
>> can't do it with an app.
>>
>> kris
>>
>> On Sun, Feb 5, 2012 at 3:06 AM, Dhaval Varia wrote:
>>
>>> Any way to replace my custom theme to screen lock  theme?
>>> --
>>> Thanks & Best Regards.
>>>
>>> 
>>> Dhaval varia
>>> (9924343883)
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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] please help to replace lock screen theme

2012-02-05 Thread Dhaval Varia
Thanks sir.for detaile amswer
On Feb 5, 2012 2:27 PM, "Kristopher Micinski" 
wrote:

> You can't directly do this.
>
> You can only "replace" the lock screen.
>
>
> http://thinkandroid.wordpress.com/2010/01/24/handling-screen-off-and-screen-on-intents/
>
> http://stackoverflow.com/questions/6737760/android-lockscreen-tutorial
>
>
> http://stackoverflow.com/questions/5529608/android-how-to-develop-custom-lock-screen
>
> Basically the answer is: don't do this.  If you do this, your app is
> basically, violating a security hole in the android system.  The behavior
> that older "lock screen" apps use is not good practice, and will be (if it
> has not already been) removed from the API so your app will cease to work.
>
> Perhaps you think "but my app is special."
>
> Answer: no, it's not.
>
> Perhaps you think "but only I will ever use my app, so I don't mind if it
> breaks good coding practices, might be removed from the market for
> violating security practices (highly unlikely..), and uses now considered
> deprecated pieces of the API."  Well, then perhaps the answer is to go
> right ahead.
>
> In general if you're wanting to modify the behavior of the *system*, you
> can't do it with an app.
>
> kris
>
> On Sun, Feb 5, 2012 at 3:06 AM, Dhaval Varia wrote:
>
>> Any way to replace my custom theme to screen lock  theme?
>> --
>> Thanks & Best Regards.
>>
>> 
>> Dhaval varia
>> (9924343883)
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] please help to replace lock screen theme

2012-02-05 Thread Kristopher Micinski
You can't directly do this.

You can only "replace" the lock screen.

http://thinkandroid.wordpress.com/2010/01/24/handling-screen-off-and-screen-on-intents/

http://stackoverflow.com/questions/6737760/android-lockscreen-tutorial

http://stackoverflow.com/questions/5529608/android-how-to-develop-custom-lock-screen

Basically the answer is: don't do this.  If you do this, your app is
basically, violating a security hole in the android system.  The behavior
that older "lock screen" apps use is not good practice, and will be (if it
has not already been) removed from the API so your app will cease to work.

Perhaps you think "but my app is special."

Answer: no, it's not.

Perhaps you think "but only I will ever use my app, so I don't mind if it
breaks good coding practices, might be removed from the market for
violating security practices (highly unlikely..), and uses now considered
deprecated pieces of the API."  Well, then perhaps the answer is to go
right ahead.

In general if you're wanting to modify the behavior of the *system*, you
can't do it with an app.

kris

On Sun, Feb 5, 2012 at 3:06 AM, Dhaval Varia  wrote:

> Any way to replace my custom theme to screen lock  theme?
> --
> Thanks & Best Regards.
>
> 
> Dhaval varia
> (9924343883)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] please help to replace lock screen theme

2012-02-05 Thread Dhaval Varia
Any way to replace my custom theme to screen lock  theme?
-- 
Thanks & Best Regards.

Dhaval varia
(9924343883)

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