[android-developers] Re: My first app

2011-04-10 Thread Sven
It seems you started your app from inside the main.xml. then the
main.out.xml is generated. usualy you have to delete this file, then
go into a java source and start app from there. it have something to
do with the eclipse run settings. i hope this helps and was your prob

On Apr 10, 11:31 pm, TreKing  wrote:
> On Fri, Apr 8, 2011 at 10:29 PM, anik  wrote:
> > Please see if anyone can fix.
>
> Did you try reading the errors and looking at the files / lines they
> indicate for what could be wrong?
>
> > Please reply as early as possible.
>
> I hope this is early enough for you!
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] Re: PDF view in android

2011-04-10 Thread Zsolt Vasvari
This is not an Adroid question.  Sure, you can download in the
background, but whether you can display a partially downloaded file
depends on the file format, in this case, PDF.I have no idea.


On Apr 11, 2:38 pm, koushik  wrote:
> Hi All,
>
>  I've able to show pdf using Vudroid library after download the pdf
> from a link in android. But i need to show pdf as page by page with
> background download rest pages. Right now my program download the
> whole pdf and then showing in android app. Is it possible to show pdf
> first come pages(page 1 or 2) after completion of download and rest
> will download in background service.

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

2011-04-10 Thread Hitendrasinh Gohil
hi,

I am downloading file from server and write this file to  sd card.now
i want to encrypt this file so that only my application can access
this file.

i) if i can encrypt the file path only that can be access on
decrypting it?

which is the best encryption algorithem i can use for?


thankx

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


[android-developers] PDF view in android

2011-04-10 Thread koushik
Hi All,

 I've able to show pdf using Vudroid library after download the pdf
from a link in android. But i need to show pdf as page by page with
background download rest pages. Right now my program download the
whole pdf and then showing in android app. Is it possible to show pdf
first come pages(page 1 or 2) after completion of download and rest
will download in background service.

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


[android-developers] ImageView on SlidingDrawer not responding to click event

2011-04-10 Thread Jason
Hi folks,

I have an ImageView contained in a TableLayout within the "handle"
component of a SlidingDrawer and I'm trying to capture the click event
on the ImageView but it doesn't seem to be fired.

Obviously the SlidingDrawer is capturing the event to handle it
according to the rules governing its behavior, but I would have
expected the event to be populated down to all child views.. which it
doesn't seem to be.

I have a structure somewhat like this:

http://schemas.android.com/apk/res/android";
android:id="@+id/slider"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:handle="@+id/panelHandle"
android:content="@+id/panelContent"
android:allowSingleTap="false">











I'm wanting to capture the "onClick" event on the "slider_refresh"
view:

View sliderRefresh = findViewById(R.id.slider_refresh);
sliderRefresh.bringToFront();
sliderRefresh.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
LogSystem.getLogger().info("Refresh clicked");

}
});

But the event doesn't seem to be populated onto this view.

Anyone got any clue as to how I can capture this event?

Thanks

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


[android-developers] Re: Invalidating a Canvas view that is part of setContentView()

2011-04-10 Thread Enrique López Mañas
Hello Kostya,

Thanks for the response. However, I don't know how to use the method
findViewById in here:

View myView = (View)findViewById(MyView);

What I understand is that findViewById () method should receive the id
of an attribute. But MyView is just a class, it has not been
instanciated, we just set the content in the main class FingerPrint by
using setContentView(new MyView(this));

Any idea on how to use the findViewById to access MyView?

Thanks in advance.

On 7 Apr., 13:33, Kostya Vasilyev  wrote:
> Keep a reference to MyView in the activity, just like you would normally
> do with:
>
> findViewById(... buttonSomethingOrOther ... )
>
> Add methods to MyView to do what you need.
>
> Call those methods as necessary, just like you can call
> "mButton.setEnabled(false);" or whatever.
>
> -- Kostya
>
> 07.04.2011 15:26, Enrique López Mañas пишет:
>
>
>
> > Hello,
>
> > Using the example from the API FingerPaint as a basis, I have
> > something similar to the following structure:
>
> > public class FingerPaint extends GraphicsActivity
> >          implements ColorPickerDialog.OnColorChangedListener {
>
> >            [...]
>
> >      @Override
> >      protected void onCreate(Bundle savedInstanceState) {
> >          super.onCreate(savedInstanceState);
> >          setContentView(new MyView(this));
> >     [...]
> > }
>
> > The class that has been set as contentView (MyView) contains a Canvas:
>
> >      public class MyView extends View {
> >         [..]
> >          public Canvas  mCanvas;
> >         [..]
> > }
>
> > How could I access this mCanvas in order to redraw it when an external
> > event is triggered (i.e., clicking a button from the menu). Obviously
> > I can access them from FingerPaint, since the attributes from MyView
> > are not inherited, but I can't neither access MyView directly, since
> > it is "absorbed" by the class FingerPrint.
>
> > Any idea, before redesigning the classes?
>
> > Thanks!
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com

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


[android-developers] Re: Invalidating a Canvas view that is part of setContentView()

2011-04-10 Thread Enrique López Mañas
Hello Kostya,

Thanks for the response. However, I don't know how to use the method
findViewById in here:

View myView = (View)findViewById(MyView);

What I understand is that findViewById () method should receive the id
of an attribute. But MyView is just a class, it has not been
instanciated, we just set the content in the main class FingerPrint by
using setContentView(new MyView(this));

Any idea on how to use the findViewById to access MyView?

Thanks in advance.

On 7 Apr., 13:33, Kostya Vasilyev  wrote:
> Keep a reference to MyView in the activity, just like you would normally
> do with:
>
> findViewById(... buttonSomethingOrOther ... )
>
> Add methods to MyView to do what you need.
>
> Call those methods as necessary, just like you can call
> "mButton.setEnabled(false);" or whatever.
>
> -- Kostya
>
> 07.04.2011 15:26, Enrique López Mañas пишет:
>
>
>
> > Hello,
>
> > Using the example from the API FingerPaint as a basis, I have
> > something similar to the following structure:
>
> > public class FingerPaint extends GraphicsActivity
> >          implements ColorPickerDialog.OnColorChangedListener {
>
> >            [...]
>
> >      @Override
> >      protected void onCreate(Bundle savedInstanceState) {
> >          super.onCreate(savedInstanceState);
> >          setContentView(new MyView(this));
> >     [...]
> > }
>
> > The class that has been set as contentView (MyView) contains a Canvas:
>
> >      public class MyView extends View {
> >         [..]
> >          public Canvas  mCanvas;
> >         [..]
> > }
>
> > How could I access this mCanvas in order to redraw it when an external
> > event is triggered (i.e., clicking a button from the menu). Obviously
> > I can access them from FingerPaint, since the attributes from MyView
> > are not inherited, but I can't neither access MyView directly, since
> > it is "absorbed" by the class FingerPrint.
>
> > Any idea, before redesigning the classes?
>
> > Thanks!
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com

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


Re: [android-developers] Use standard system browser for OAuth / Keep browser out of history

2011-04-10 Thread Tomas Prochazka
For example possibility to close browser and go back to preview task would 
be great. But now is to late. It would be usable after few year.

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

2011-04-10 Thread Zsolt Vasvari
Arabic fonts are included in the standard fonts shipped with Android,
so there is no need to load anything else.

>From what I can gather, the problem is that Android is not set up to
properly shape Arabic text, so the letters look like individual
letters as opposed to strung together.



On Apr 11, 12:24 pm, Daniel Felix  wrote:
> How are you all,
>
>    I just want to get a hint, how Arabic letter can be displayed in
> Android. If I have a font file then how can I use it in Android.
>
>    I am thankful in advance.
>
> Regards,
> Felix

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

2011-04-10 Thread noamg
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] Use standard system browser for OAuth / Keep browser out of history

2011-04-10 Thread Tomas Prochazka
Thanks you for reply.

But this is not good message. I think that this scenario should be supported 
by Android. I can integrate Webview to my app but use standard browser is 
much much better because it can remember user credentials, so user can't 
enter password again for any new twitter app which use. And I think that 
enter password to browser where I can see that this is really twitter is 
much safer. When WebView is integrated to app owner has unlimited access to 
password which I enter. This completely destroy OAuth idea and I think that 
this is not good.

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

[android-developers] Access the Activity stack

2011-04-10 Thread Julius Spencer
Hi,

Just wondering, is it possible to look at an application's Activity stack?  I'd 
like to be able to look at the stack and see if the previous Activity on the 
stack is the same as the one on the top.

Regards,
Julius.

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


[android-developers] Use of Live Wallpaper as a background in android application

2011-04-10 Thread swapnil kamble
Hi All,
  I am trying to set my application's background with live
wallpaper. With the older static wallpaper mechanism, there was one API
"getWallpaper()", using which we were able to get current wallpaper's
drawable and use it as a background in our own application. Now I am looking
for a API or mechanism using which I could also make my application's
background act as current live wallpaper. Basically whenever user sets the
live wallpaper, along with HOME /Launcher activity, it should take effect in
my application as well.

What is the key, when I say "set wallpaper" it gets applied to HOME activity
? Is it somewhere in Wallpaperservice or HOME activity ?

Does anyone has any ideas about this ?

Thanks
Swapnil

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

[android-developers] Display Arabic

2011-04-10 Thread Daniel Felix
How are you all,

   I just want to get a hint, how Arabic letter can be displayed in
Android. If I have a font file then how can I use it in Android.

   I am thankful in advance.

Regards,
Felix

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


[android-developers] Display Arabic

2011-04-10 Thread Daniel Felix
How are you all,

   I just want to get a hint, how Arabic letter can be displayed in
Android. If I have a font file then how can I use it in Android.

   I am thankful in advance.

Regards,
Felix

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Anyone feel like helping a poor pale student?

2011-04-10 Thread NILAY MISTRY
Hey Tez,

Whats your problem is???
just tell me in straightforward way.

Nilay R. Mistry
M.Tech. CSE
Nirma University
Ahmedabad



Kaam Kabhi bada ya chota nahi hota, apna nazariya bada ya chota hota hai.
(Work is not huge or tiny, our perception towards it makes it huge or tiny.)

By : Nilay Mistry



On Sun, Apr 10, 2011 at 9:25 PM, Tez  wrote:

> Hey everyone,
>
> I'm new to these forums, just drifted over from dreamincode.
>
> I'm writing my undergraduate dissertation on programming for the
> Android platform using the Eclipse IDE and was wondering if anyone
> would be happy to fill out a questionnaire for me to help out?
>
> Many thanks in advance! My computer died yesterday and i lost all my
> previous research so now i have three weeks to research and write the
> entire document!
> (Willing to admit its my own daft fault for not backing up my files  )
>
> Thanks everyone, heres the link  [url]http://www.surveymonkey.com/s/
> F7ZMQWR[/url ]
>
> - Tez
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: Recommended icon sizes for xhdpi

2011-04-10 Thread Brill Pappin
Right, rounding down :)

Here is a quick reference list for anyone working with xhdpi images:

Launcher : 96x96
Menu : 96x96
Status Bar : 32x51
 (Android 2.3 and later)
Status Bar : 50x50
 (Android 2.2 and below)
Tab : 64x64
Dialog : 64x64
List View : 64x64

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

[android-developers] Any good open-source app for stockquote app?

2011-04-10 Thread Lay
Hi all,

Does anyone know of good stockquote applications with source code
available? Stock quote as in one can view the changing prices of
stocks in the stock market. I have been searching for one but could
not find a suitable one.

Thank you.

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


[android-developers] Re: Message Dialog appears, The market billing service is not available, Dungeons Sample, Although i have followed the steps given in documents.

2011-04-10 Thread ishihata
Hello,

Did you confirm the version of the market app?
To use In-app Billing, the market app must be version 2.3.4 or upper.
I think that the message appears when the version is insufficient.

On Apr 10, 1:00 am, muhammad mahmood 
wrote:
> Hi,
>
> As Android Market In-app Billing  is now available to developers and
> users to publish applications that use Android Market's in-app billing
> service.
>
> To implement this, i followed the instruction provided in
> "Implementing In-app Billing" document carefully.
>
> 1. Downloading the Sample Application
> 2. Configuring and building the sample application
> 3.Uploading the sample application
> 4.Running the sample application
>
> After completing these steps when i run the sample app, dialog appears
> with following title and message.
>
> Can't make purchases
> The market billing service is not available at this time. You can
> continue to use this app but you would not be able to make purchase.
>
> How to resolve this issue.?
>
> Kind regards,
> Muhammad Rashid

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


[android-developers] Re: How can we get handle of GUI controls in Android?

2011-04-10 Thread Ella
Hi SJ

Thanks a lot for your response.
And do you know who can be the key points of this tool (I mean monkey
runner), we'd like to assistant with this tool instead of develop
another GUI automation tools, so It will be helpful to know the
development of this tool. thanks a lot!

On Apr 3, 2:04 am, SJ  wrote:
> I think it requires kernel level monitor. Maybe you should start from
> getting source code of android.
> Write driver to enumarate all controls of foreground apps.
>
> SJ
>
> On Mar 31, 4:57 am, Ella  wrote:
>
> > The same question from me.
>
> > We know, A GUI automation testing tool --monkeyrunneris there, it
> > provide some functions such as Keyboard function, input message
> > functions as well as touch, which are all very good supports for the
> > automation testing.
>
> > However, there seems somethings that puzzle me a lot, so search helps
> > from all of you here:
> > 1. As in most of GUI automation testing, locate the objects in the
> > screen and judge the existing of the objects are very important, so is
> > there any way to implement this function, or can we extend the
> > function ourselves, if so, how?
> > 2. Now we can't touch the object by provide name or id or any other
> > attributes of the objects but just touch on location(by X,Y). in
> > common GUI automation, it's very inflexible and bring much trouble to
> > users to get the location info. Is there any way to resolve this
> > problems? or any further plans for the enhancement?
>
> > 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] how to prevent the app be killed by “unmount media”(change to usb storage mode)

2011-04-10 Thread cht
the app is downloading, and write the file to sdcard. then change the
phone to usb storage mode, the app will be killed by system. because
the app is using the sdcard. how to prevent this? or if there is some
notification before killing ?

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


[android-developers] [Need your help!!]Automation test by using Monkey Runner

2011-04-10 Thread Ella
We know, A GUI automation testing tool -- monkey runner is there, it
provide some functions such as Keyboard function, input message
functions as well as touch, which are all very good supports for the
automation testing.

However, there seems somethings that puzzle me a lot, so search helps
from all of you here:
1. As in most of GUI automation testing, locate the objects in the
screen and judge the existing of the objects are very important, so is
there any way to implement this function, or can we extend the
function ourselves, if so, how?
2. Now we can't touch the object by provide name or id or any other
attributes of the objects but just touch on location(by X,Y). in
common GUI automation, it's very inflexible and bring much trouble to
users to get the location info. Is there any way to resolve this
problems? or any further plans for the enhancement?

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

2011-04-10 Thread Dianne Hackborn
Well you'll get 2x doubled images...  but the screen itself is 2x the
density of an mdpi screen, so the app's icons will mostly just look like
they are on an mdpi screen. :}

On Sun, Apr 10, 2011 at 5:49 PM, Zsolt Vasvari  wrote:

> Can't imagine that would look very good on an XHDPI screen.
>
> On Apr 11, 6:57 am, lbendlin  wrote:
> > I have minSDK set to 3, anyDensity to true, and have just a single
> resource
> > folder. Works fine for all devices from 1.5 all the way up to 3.x
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Re: View & Open files downloaded from the server

2011-04-10 Thread Salma hamed
Thnx for all the replies :)

On Apr 10, 2:13 pm, Mark Murphy  wrote:
> That's a bad snippet, but their site's login seems broken.
>
> I would avoid using wildcard MIME types for specific files like this.
> For example, there might be an audio player that only handles OGG, not
> MP3 -- the ACTION_VIEW shown here would still offer that OGG-only
> player as an option, which would then break.
>
> For selection Intents, like an ACTION_GET_CONTENT, wildcard MIME types
> are fine, AFAIK. But for cases like this, I would use the fully
> qualified MIME type, sans wildcard.
>
> On Sun, Apr 10, 2011 at 8:05 AM, lbendlin  wrote:
> > I was about to send you a lmgtfy link...
>
> >http://www.androidsnippets.com/open-file-with-default-application-usi...
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in Oslo:http://bit.ly/fjBo24

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


[android-developers] Re: When to set android:anyDensity to what value?

2011-04-10 Thread Zsolt Vasvari
Can't imagine that would look very good on an XHDPI screen.

On Apr 11, 6:57 am, lbendlin  wrote:
> I have minSDK set to 3, anyDensity to true, and have just a single resource
> folder. Works fine for all devices from 1.5 all the way up to 3.x

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

2011-04-10 Thread Kevin Kowalewski

Hi,

I will post there for more questions on this. However I did try to sign 
my application with the platform certificate but a security exception 
was thrown (but it no longer produces errors about not being allowed to 
use the REBOOT permission). You mentioned in one of your posts to 
support LOCAL_CERTIFICATE := platform (or something to that extent) to 
the make file. Which make file were you referring?


Thanks,
Kevin

On 4/10/2011 8:34 PM, Dianne Hackborn wrote:
If you are doing a custom build of the platform, you can use the 
normal internal mechanisms for doing this like is done in the Settings 
app.  Look at how the platform does this and do the same thing. 
 You'll need to be installed on the system image and/or be signed with 
the proper cert.


Further questions should be on android-porting.

On Sun, Apr 10, 2011 at 5:28 PM, Kevin Kowalewski 
mailto:kowalewski.ke...@gmail.com>> wrote:


Hi,

Thanks for the response. This is for an embedded platform and not
for an application that is going to be released to market. So how
would I go about setting the system time and rebooting the device?

Hope to hear from you soon,
Kevin


On 4/10/2011 8:25 PM, Dianne Hackborn wrote:

On Sat, Apr 9, 2011 at 8:45 PM, Kevin Kowalewski
mailto:kowalewski.ke...@gmail.com>>
wrote:

1. Setting the date with date 134355500 sets the date in the
local
shell, but running date in another shell does not see the
change. If I
execute the same command into adb shell, the change does seem to
persist. What is the correct way to set the system date /
time using
the shell provided by getRuntime().exec?


Third party applications can't change the global date like this.

2. Trying to reboot the device using /system/bin/reboot will
lock up
the application (ANR) and no other shell commands will work
(using
getRuntime().exec) until the device is restarted. Shell
commands still
work via adb shell.


Third party applications can not reboot the device.

The application already requests both perimssions of RESTART and
SET_TIME. A good number of commands do work fine, like ls and
netcfg
but restarting (and hopefull powering off with the -p flag) and
setting the time are two that I need that don't work correctly.


Please understand, the shell is *not* a part of the SDK.  Nothing
you do with it is supported, and any app relying on its behavior
is likely to break on different devices and platforms.

-- 
Dianne Hackborn

Android framework engineer
hack...@android.com 

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





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

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




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

Re: [android-developers] Runtime.getRuntime().exec() weird issues

2011-04-10 Thread Dianne Hackborn
If you are doing a custom build of the platform, you can use the normal
internal mechanisms for doing this like is done in the Settings app.  Look
at how the platform does this and do the same thing.  You'll need to be
installed on the system image and/or be signed with the proper cert.

Further questions should be on android-porting.

On Sun, Apr 10, 2011 at 5:28 PM, Kevin Kowalewski <
kowalewski.ke...@gmail.com> wrote:

>  Hi,
>
> Thanks for the response. This is for an embedded platform and not for an
> application that is going to be released to market. So how would I go about
> setting the system time and rebooting the device?
>
> Hope to hear from you soon,
> Kevin
>
>
> On 4/10/2011 8:25 PM, Dianne Hackborn wrote:
>
> On Sat, Apr 9, 2011 at 8:45 PM, Kevin Kowalewski <
> kowalewski.ke...@gmail.com> wrote:
>
>> 1. Setting the date with date 134355500 sets the date in the local
>> shell, but running date in another shell does not see the change. If I
>> execute the same command into adb shell, the change does seem to
>> persist. What is the correct way to set the system date / time using
>> the shell provided by getRuntime().exec?
>>
>
>  Third party applications can't change the global date like this.
>
>
>> 2. Trying to reboot the device using /system/bin/reboot will lock up
>> the application (ANR) and no other shell commands will work (using
>> getRuntime().exec) until the device is restarted. Shell commands still
>> work via adb shell.
>>
>
>  Third party applications can not reboot the device.
>
>
>> The application already requests both perimssions of RESTART and
>> SET_TIME. A good number of commands do work fine, like ls and netcfg
>> but restarting (and hopefull powering off with the -p flag) and
>> setting the time are two that I need that don't work correctly.
>>
>
>  Please understand, the shell is *not* a part of the SDK.  Nothing you do
> with it is supported, and any app relying on its behavior is likely to break
> on different devices and platforms.
>
>  --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
>


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

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

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

Re: [android-developers] Why can't my GUI return back to recording mode despite having service? Someone HELP..

2011-04-10 Thread Dianne Hackborn
Hi, I believe that recording video while in the background is not supported.
 Trying to force this to happen is likely to result in random, undesirable
behavior.  Note that you have to go to work to even get to that point
because when the user leaves your app your window's surface as well as the
surface associated with a SurfaceView will be destroyed by the framework.
 There is not supported way to keep these around.

On Sat, Apr 9, 2011 at 6:47 AM, lyrical.mas...@hotmail.com <
lyrical.mas...@hotmail.com> wrote:

> I'm creating an android application which act like a car blackbox, but
> i run into problem as soon i start doing it, maybe partly because i'm
> new to android/java but i've given 6more weeks to develop this
> app... :'(
>
> But get back to my problem i had my service run the video recording
> processes in the background so i should be able to leave the app for a
> while and come back to the Video recording GUI with the surfaceview
> but my application was force to close when i return to the app. So is
> the problem related to onResume() method or something else? If its yes
> what i should do in order to get my application GUI to return to the
> video recording surfaceview and still running the background recording
> using the service rather than giving me an error?
>
> Can someone please help me, i've really exhausted all ideas and to
> make it worse i'm new to java/android thus making me very headache, i
> really need some experience programmer to help me solve the
> problem...
>
> public class CameraTest extends Activity implements
> SurfaceHolder.Callback {
>
>private static final String TAG = "Exception";
>
>public static SurfaceView surfaceView;
>public static SurfaceHolder surfaceHolder;
>public static Camera MainCamera;
>public static boolean previewRunning;
>
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>
>surfaceView = (SurfaceView)findViewById(R.id.surface_camera);
>surfaceHolder = surfaceView.getHolder();
>surfaceHolder.addCallback(this);
>
>
> surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
>
>Button btnStart = (Button) findViewById(R.id.button4);
>btnStart.setOnClickListener(new View.OnClickListener()
>{
>public void onClick(View v)
>{
>startService(new Intent(getApplicationContext(),
> ServiceRecording.class));
>}
>});
>
>Button btnStop = (Button) findViewById(R.id.button5);
>btnStop.setOnClickListener(new View.OnClickListener()
>{
>public void onClick(View v)
>{
>stopService(new Intent(getApplicationContext(),
> ServiceRecording.class));
>}
>});
>}
>
>@Override
>public void surfaceCreated(SurfaceHolder holder) {
>MainCamera = Camera.open();
>if (MainCamera != null) {
>Camera.Parameters params = MainCamera.getParameters();
>MainCamera.setParameters(params);
>}
>else {
>Toast.makeText(getApplicationContext(), "Camera not
> available!",
> Toast.LENGTH_LONG).show();
>finish();
>}
>}
>
>@Override
>public void surfaceChanged(SurfaceHolder holder, int format, int
> width, int height) {
>if (previewRunning) {
>MainCamera.stopPreview();
>}
>
>Camera.Parameters p = MainCamera.getParameters();
>p.setPreviewSize(320, 240);
>p.setPreviewFormat(PixelFormat.JPEG);
>MainCamera.setParameters(p);
>
>try {
>MainCamera.setPreviewDisplay(holder);
>MainCamera.startPreview();
>previewRunning = true;
>}
>catch (IOException e) {
>Log.e(TAG,e.getMessage());
>e.printStackTrace();
>}
>}
>
>@Override
>public void onResume(){
>super.onResume();
>
>}
>
>@Override
>public void surfaceDestroyed(SurfaceHolder holder){
>MainCamera.stopPreview();
>previewRunning = false;
>MainCamera.release();
>}
>  }
>
> My RecordingService.java Service file
> public class ServiceRecording extends Service {
>
>@Override
>public IBinder onBind(Intent intent) {
>// TODO Auto-generated method stub
>return null;
>}
>
>private SurfaceView surfaceView;
>private SurfaceHolder surfaceHolder;
>public static Camera ServiceCamera;
>private boolean RecordingStatus;
>private MediaRecorder mediaRecorder;
>private final int maxDurationInMs = 2;
>
>private static final String TAG = "Exception";
>
>@Override
>public void onCreate() {
>super.onCreate();
>

[android-developers] Implementing SOAP request in Android

2011-04-10 Thread Akshay Dave
Hello,
   I was wondering on how to implement SOAP call in Android without using
KSOAP2. Apperantly the webservice I need to call requires custom XML SOAP
request that KSOAP2 is not able to make.

  I would appreciate if any one can suggest any link or details related to
it.

Thanks
Akshay

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

2011-04-10 Thread Kevin Kowalewski

Hi,

Thanks for the response. This is for an embedded platform and not for an 
application that is going to be released to market. So how would I go 
about setting the system time and rebooting the device?


Hope to hear from you soon,
Kevin

On 4/10/2011 8:25 PM, Dianne Hackborn wrote:
On Sat, Apr 9, 2011 at 8:45 PM, Kevin Kowalewski 
mailto:kowalewski.ke...@gmail.com>> wrote:


1. Setting the date with date 134355500 sets the date in the local
shell, but running date in another shell does not see the change. If I
execute the same command into adb shell, the change does seem to
persist. What is the correct way to set the system date / time using
the shell provided by getRuntime().exec?


Third party applications can't change the global date like this.

2. Trying to reboot the device using /system/bin/reboot will lock up
the application (ANR) and no other shell commands will work (using
getRuntime().exec) until the device is restarted. Shell commands still
work via adb shell.


Third party applications can not reboot the device.

The application already requests both perimssions of RESTART and
SET_TIME. A good number of commands do work fine, like ls and netcfg
but restarting (and hopefull powering off with the -p flag) and
setting the time are two that I need that don't work correctly.


Please understand, the shell is *not* a part of the SDK.  Nothing you 
do with it is supported, and any app relying on its behavior is likely 
to break on different devices and platforms.


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

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




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

Re: [android-developers] Runtime.getRuntime().exec() weird issues

2011-04-10 Thread Dianne Hackborn
On Sat, Apr 9, 2011 at 8:45 PM, Kevin Kowalewski  wrote:

> 1. Setting the date with date 134355500 sets the date in the local
> shell, but running date in another shell does not see the change. If I
> execute the same command into adb shell, the change does seem to
> persist. What is the correct way to set the system date / time using
> the shell provided by getRuntime().exec?
>

Third party applications can't change the global date like this.


> 2. Trying to reboot the device using /system/bin/reboot will lock up
> the application (ANR) and no other shell commands will work (using
> getRuntime().exec) until the device is restarted. Shell commands still
> work via adb shell.
>

Third party applications can not reboot the device.


> The application already requests both perimssions of RESTART and
> SET_TIME. A good number of commands do work fine, like ls and netcfg
> but restarting (and hopefull powering off with the -p flag) and
> setting the time are two that I need that don't work correctly.
>

Please understand, the shell is *not* a part of the SDK.  Nothing you do
with it is supported, and any app relying on its behavior is likely to break
on different devices and platforms.

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

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

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

Re: [android-developers] Tasks & browser activity

2011-04-10 Thread Dianne Hackborn
What is "oauth:"  Is that a standard scheme?  What you are doing here looks
broken, if some other app happens to handle "oauth:" then the user will need
to pick which to launch.  And if this isn't a standard scheme, you shouldn't
be making up schemes for your app.  They are a global namespace.  And this
is a good example of why making up schemes cause a problem -- you could very
easily have a conflict with another application using the same name.

Anyway, the browser currently is not intended to be used in the way you are
trying to, and I would strongly recommend against doing this.  First because
it is unlikely you will be able to get this to work completely correctly,
second because there is a very good chance that your app will break on
different devices since what you are doing here is not defined in any kind
of SDK API.

On Wed, Aug 5, 2009 at 3:05 AM, Carl H.  wrote:

>
> Hello,
>
> I am trying to have the browser part of my task. The reason being is
> that I am awaiting a callback from the browser before continuing. For
> instance I have the following in my manifest:
>
>android:permission="android.permission.INTERNET"
>android:launchMode="singleTop"
>android:noHistory="true">
>
> android:name="android.intent.action.VIEW" />
> android:name="android.intent.category.BROWSABLE" />
> android:name="android.intent.category.DEFAULT" />
>
>
>
> android:name="android.intent.action.INSERT" />
> android:name="android.intent.category.DEFAULT" />
> android:mimeType="vnd.android.cursor.dir/vnd.novoda.oauth" /
> >
>
>
>
> Now, in order to activate my app, I need the user to navigate to a
> certain page and press activate. This will redirect to "oauth:///"
> which will be catched by my activity. However this will be in a new
> Task (new task id). I guess it till be the task id of the browser. One
> solution would be to use "singleTask" as launch mode but then I can
> not be part of a full task...
>
> It seems that the browser can not really accept any flags regarding
> tasks and so forth. Any comments on the above?
>
> Thanks
> Carl
> --~--~-~--~~~---~--~~
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers-unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> -~--~~~~--~~--~--~---
>
>


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

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

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

Re: [android-developers] Use standard system browser for OAuth / Keep browser out of history

2011-04-10 Thread Dianne Hackborn
You can't really do this, the standard browser is set as singleTask, which
means it will always be a separate item and show as a recent task.  Any
games you play trying to stop it from behaving like this are either not
going to work or break things elsewhere.

On Fri, Apr 8, 2011 at 11:57 PM, Tomas Prochazka
wrote:

> I want use system browser for Twitter/Foursquare OAuth authorization.
> I think that this is safer then open browser in Webview directly in my
> app. System browser also can remember user password and he can't enter
> it again and again.
>
> My idea is open the browser via standard intent
>
> Intent browserIntent = new Intent(Intent.ACTION_VIEW,
> Uri.parse(authUrl));
> browserIntent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
> startActivity(browserIntent);
>
> And via call back URL myApp://twitter call back my app activity.
> Better will be call some special URL which Android will handle like
> close browser or goto back to the application which opened it.
>
> But big problem is that this work only if browser was not running
> before. If browser is running already it keep in history and user
> after OAuth authorization stay in the browser instead of my app.
>
> I think that this is caused because browser is running in different
> task and FLAG_ACTIVITY_NO_HISTORY works only for activities in one
> task.
>
> But how to solve it. I think that this is very common problem.
> Is only way to use internal Webview? :-(
>
> Similar question is here but without real solution:
>
>
> http://stackoverflow.com/questions/5326538/how-can-i-do-that-in-android-activity-webbrowser-acrivity-but-press-back/5598405#5598405
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Why can't my GUI return back to recording mode despite having service? Someone HELP..

2011-04-10 Thread lbendlin
I can't really imagine how useful hours of video shot in the pants pocket or 
inside the belt clip could be. But if I had to do it I would add a periodic 
alarm to check if the service is still alive and to restart it if not.

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

2011-04-10 Thread Dianne Hackborn
In other words, 2x the mdpi size.

On Sun, Apr 10, 2011 at 3:14 PM, Zsolt Vasvari  wrote:

> XHDPI_SIZE = (HDPI_SIZE) * (XHDPI_DENSITITY / HDPI_DENSITY)
>
>
>
> On Apr 11, 2:04 am, Brill Pappin  wrote:
> > Does anyone know what the recommended icon sizes are for xhdpi images?
> >
> > Table 1. athttp://
> developer.android.com/guide/practices/ui_guidelines/icon_desig...
> > has not been updated to reflect the new features yet.
> >
> > - Brill
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Re: Image processing in Android

2011-04-10 Thread lbendlin
http://www.eclipse.org/mat/

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

2011-04-10 Thread lbendlin
Be aware that this list is not a place where Google employees are providing 
free code reviews. This is a peer review systems (which means we're all in 
the same situation as you).
 
You will have more success if you narrow down your question and provide the 
associated code snippet here.

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

Re: [android-developers] Re: When to set android:anyDensity to what value?

2011-04-10 Thread lbendlin
I have minSDK set to 3, anyDensity to true, and have just a single resource 
folder. Works fine for all devices from 1.5 all the way up to 3.x

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Why can't my GUI return back to recording mode despite having service? Someone HELP..

2011-04-10 Thread gjs
Hi,

You might also need a partial wake lock to keep cpu running when
device goes to sleep. Check that you service restarts ok after it is
killed & restarted by OS.

Regards

On Apr 11, 2:43 am, Kristopher Micinski 
wrote:
> You can't run your app forever, it will get killed when memory is low, you
> can't really avoid it (on a non rooted device): apps aren't meant to run and
> consume resources forever.
>
> And I don't think that dumping a large amount of code at people is going to
> help, unless you can pinpoint your problem a little bit and try to narrow
> what you think is going wrong.  Try instead thinking of what ways you can
> change the structure of your application to make it work to the android
> platform a little bit better.
>
> I understand that you want to have the app recording forever in the
> background, but is this even practical?  I'm not sure... I think at least
> the phone will run out of power much more quickly...
>
> It's too bad uneducated bosses push these types of projects on people
> without knowing what capabilities the platform has, though.
>
> Kris
>
> On Sat, Apr 9, 2011 at 9:47 AM, lyrical.mas...@hotmail.com <
>
>
>
>
>
>
>
> lyrical.mas...@hotmail.com> wrote:
> > I'm creating an android application which act like a car blackbox, but
> > i run into problem as soon i start doing it, maybe partly because i'm
> > new to android/java but i've given 6more weeks to develop this
> > app... :'(
>
> > But get back to my problem i had my service run the video recording
> > processes in the background so i should be able to leave the app for a
> > while and come back to the Video recording GUI with the surfaceview
> > but my application was force to close when i return to the app. So is
> > the problem related to onResume() method or something else? If its yes
> > what i should do in order to get my application GUI to return to the
> > video recording surfaceview and still running the background recording
> > using the service rather than giving me an error?
>
> > Can someone please help me, i've really exhausted all ideas and to
> > make it worse i'm new to java/android thus making me very headache, i
> > really need some experience programmer to help me solve the
> > problem...
>
> > public class CameraTest extends Activity implements
> > SurfaceHolder.Callback {
>
> >        private static final String TAG = "Exception";
>
> >        public static SurfaceView surfaceView;
> >        public static SurfaceHolder surfaceHolder;
> >        public static Camera MainCamera;
> >        public static boolean previewRunning;
>
> >    @Override
> >    public void onCreate(Bundle savedInstanceState) {
> >        super.onCreate(savedInstanceState);
> >        setContentView(R.layout.main);
>
> >        surfaceView = (SurfaceView)findViewById(R.id.surface_camera);
> >        surfaceHolder = surfaceView.getHolder();
> >        surfaceHolder.addCallback(this);
>
> > surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
>
> >        Button btnStart = (Button) findViewById(R.id.button4);
> >        btnStart.setOnClickListener(new View.OnClickListener()
> >        {
> >                public void onClick(View v)
> >                {
> >                        startService(new Intent(getApplicationContext(),
> > ServiceRecording.class));
> >                }
> >        });
>
> >        Button btnStop = (Button) findViewById(R.id.button5);
> >        btnStop.setOnClickListener(new View.OnClickListener()
> >        {
> >                public void onClick(View v)
> >                {
> >                        stopService(new Intent(getApplicationContext(),
> > ServiceRecording.class));
> >                }
> >        });
> >    }
>
> >    @Override
> >    public void surfaceCreated(SurfaceHolder holder) {
> >        MainCamera = Camera.open();
> >        if (MainCamera != null) {
> >                Camera.Parameters params = MainCamera.getParameters();
> >                MainCamera.setParameters(params);
> >        }
> >        else {
> >                Toast.makeText(getApplicationContext(), "Camera not
> > available!",
> > Toast.LENGTH_LONG).show();
> >                finish();
> >        }
> >    }
>
> >    @Override
> >    public void surfaceChanged(SurfaceHolder holder, int format, int
> > width, int height) {
> >        if (previewRunning) {
> >                MainCamera.stopPreview();
> >        }
>
> >        Camera.Parameters p = MainCamera.getParameters();
> >        p.setPreviewSize(320, 240);
> >        p.setPreviewFormat(PixelFormat.JPEG);
> >        MainCamera.setParameters(p);
>
> >        try {
> >                MainCamera.setPreviewDisplay(holder);
> >                MainCamera.startPreview();
> >                previewRunning = true;
> >        }
> >        catch (IOException e) {
> >                Log.e(TAG,e.getMessage());
> >                e.printStackTrace();
> >        }
> >    }
>
> >    @Override
> >    public void onResume(){
> >        super.onResume();
>
> >    }

Re: [android-developers] File Browser: can not data folder access

2011-04-10 Thread bahtiyar kara
I know that if ı create a file in internal memory, it s saved under
/data/data directory.
Is it wrong?
and when ı list files in my application, for example ı want to open an image
or an mp3 file in internal directory in this folder.
I think ı need to access there? or I think wrong?

What ı want to do:

I want to create some directories and files in android and then
I want to list them a file browser firstly.
What do you should me?
Do you should I need to do them in sd card?

Many thanks for helping...

2011/4/11 Kostya Vasilyev 

> Why do you think you need to access other applications' private data
> storage?
> 11.04.2011 2:20 пользователь "bahtiyar kara" 
> написал:
>
> > hi again,
> >
> > There is a file browser:
> > http://www.lysesoft.com/products/andexplorer/
> > If ı download this application in my android system, can ı access data
> > folder or other system folders?
> > How this application
> access
>
> > the data folder? or it cant do that?
> >
> >
> > --
> > Bahtiyar Kara
> > İstanbul Üniversitesi Bilgisayar Müh. 4.sınıf
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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
>



-- 
Bahtiyar Kara
İstanbul Üniversitesi Bilgisayar Müh. 4.sınıf

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

2011-04-10 Thread gjs
Hi

1) is easier, if the web service is available on SSL port number eg
443, just change request in app to use https:// ...

2) is ok if you can decrypt in web service

Regards

On Apr 11, 3:45 am, elioncho  wrote:
> Hello,
>
> I've and android application which sends post requests to a web
> service. I want to secure the communication between the two and was
> wondering which is the best approach:
>
> 1) Make https requests
>
> 2) Encrypt the request params via an encryption algorithm and decrypt
> on the web service (I found one called 
> SimpleCrytohttp://www.tutorials-android.com/learn/How_to_encrypt_and_decrypt_str...)

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


Re: [android-developers] File Browser: can not data folder access

2011-04-10 Thread Kostya Vasilyev
Why do you think you need to access other applications' private data
storage?
11.04.2011 2:20 пользователь "bahtiyar kara" 
написал:
> hi again,
>
> There is a file browser:
> http://www.lysesoft.com/products/andexplorer/
> If ı download this application in my android system, can ı access data
> folder or other system folders?
> How this application access
> the data folder? or it cant do that?
>
>
> --
> Bahtiyar Kara
> İstanbul Üniversitesi Bilgisayar Müh. 4.sınıf
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] File Browser: can not data folder access

2011-04-10 Thread bahtiyar kara
hi again,

There is a file browser:
http://www.lysesoft.com/products/andexplorer/
If ı download this application in my android system, can ı access data
folder or other system folders?
How this application access
the data folder? or it cant do that?


-- 
Bahtiyar Kara
İstanbul Üniversitesi Bilgisayar Müh. 4.sınıf

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

2011-04-10 Thread Zsolt Vasvari
XHDPI_SIZE = (HDPI_SIZE) * (XHDPI_DENSITITY / HDPI_DENSITY)



On Apr 11, 2:04 am, Brill Pappin  wrote:
> Does anyone know what the recommended icon sizes are for xhdpi images?
>
> Table 1. 
> athttp://developer.android.com/guide/practices/ui_guidelines/icon_desig...
> has not been updated to reflect the new features yet.
>
> - Brill

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Anyone feel like helping a poor pale student?

2011-04-10 Thread Zsolt Vasvari
What does the lack of sun exposure have to do with your spamming?

On Apr 10, 11:55 pm, Tez  wrote:
> Hey everyone,
>
> I'm new to these forums, just drifted over from dreamincode.
>
> I'm writing my undergraduate dissertation on programming for the
> Android platform using the Eclipse IDE and was wondering if anyone
> would be happy to fill out a questionnaire for me to help out?
>
> Many thanks in advance! My computer died yesterday and i lost all my
> previous research so now i have three weeks to research and write the
> entire document!
> (Willing to admit its my own daft fault for not backing up my files  )
>
> Thanks everyone, heres the link  [url]http://www.surveymonkey.com/s/
> F7ZMQWR[/url]
>
> - Tez

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


Re: [android-developers] Activity Restart On Rotate Phone

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



On Mon, Apr 11, 2011 at 1:34 AM, TreKing  wrote:

> On Sun, Apr 10, 2011 at 1:12 AM, Jons Jean  wrote:
>
>> problem is this when I rotate phone its activity got restart , How I can
>> handle it ?
>>
>
> Read the documentation. This is covered extensively in the life cycle
> documentation.
>
> From google I find the way to handle this to add below line in menifest
>> fine > I add this line but same problem  ,
>>  android:configChanges="orientation"
>>
>
> That's a hack around the main problem of saving state. Doing this so that
> you don't have to save your state will only mask the problem. You may not
> restart on orientation change, but your app will restart when you press Home
> and come back to it some time later. You should be able to handle this and
> switching orientation is the quickest and easiest way to test this.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




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

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

Re: [android-developers] Using Google Calendar API

2011-04-10 Thread TreKing
On Sun, Apr 10, 2011 at 2:08 PM, New Developer  wrote:

> anyone solved the use of Google Calendar API ?


This group is for Android Development.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Enquiry

2011-04-10 Thread TreKing
On Sat, Apr 9, 2011 at 8:57 AM, Waseem Akram  wrote:

> What is the procedure from where I have to start .


Search Google for "Android".

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] how to display all checked items from multiple choice listview

2011-04-10 Thread TreKing
On Fri, Apr 8, 2011 at 11:37 PM, win  wrote:

> to make it clear, i manage  to do all those thing axcept for the
> button action. i don't know how to capture the checked and unchecked
> item..can anyone here help me with the code.
>

First, "CheckBox" is the name of a standard widget - you should not name
your Activity that.

Second, when working with a list of data, you usually represent the data
with your own data type that has the properties displayed in the list. In
this case you might have a "Guest" class, which would have a boolean
"attending" property. Each entry in the list would represent one Guest and
would reflect the data stored in a Guest instance. When you want to show all
attending or all not attending, you iterate through your list of Guests and
find the ones with the relevant data. You also probably want to look at the
Filter and Filterable interfaces in the docs to filter your listview based
on some criteria.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Main Activity Launches On Stack Every Time Home Screen Icon Is Clicked

2011-04-10 Thread TreKing
On Sat, Apr 9, 2011 at 1:14 AM, Tony Chuinard wrote:

>  the docs say that the last activity from that 'task' will be launched
> (which is what I want - a return to the BrowseActivity).
>

Yeah, that should be the case. Post more details, any flags you've specified
in your manifest, phone model, and android version you're working on. See if
there's a bug report on b.android.com.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Activity Restart On Rotate Phone

2011-04-10 Thread TreKing
On Sun, Apr 10, 2011 at 1:12 AM, Jons Jean  wrote:

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

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

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

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

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] My first app

2011-04-10 Thread TreKing
On Fri, Apr 8, 2011 at 10:29 PM, anik  wrote:

> Please see if anyone can fix.
>

Did you try reading the errors and looking at the files / lines they
indicate for what could be wrong?


> Please reply as early as possible.
>

I hope this is early enough for you!

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] how to use a checkbox ,a textview and a button in each row of List view.

2011-04-10 Thread TreKing
On Sat, Apr 9, 2011 at 3:07 PM, Ishan  wrote:

> i want to use the ListActivity and each row of list should contain
> a CheckBox, Button and a TextView.
>

OK.

 Secondly i want to capture the events occurring on checkbox and button.
>

OK.


> I have to create a drill down approach example filesystem i.e.clicking of
> the button takes u inside the folder.
>

OK.


>  Can i please get the snippet or code of the same.
>

Can i please get some indication that you've tried to do your own work
first?


> MY app is stuck because of this.
>

Sorry.


> DO we need to use custom adapters?
>

Probably.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] How to mark touch points in an image

2011-04-10 Thread arun scaria
This is how i want it

|
|xx|
|   |
|x |
|   |
|xx|
|   |
-


-- 
Arun Scaria
Project Head |  MEC Association of Computer Students
Resource Head  |  MACS Forum
Computer Science and Engineering (2008-2012)
Govt. Model Engineering College
Cochin-21.
(M) +918089528527.
arunscari...@gmail.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] physical search button on a phone

2011-04-10 Thread TreKing
On Sat, Apr 9, 2011 at 11:27 PM, Bomber  wrote:

> However I have some trouble impelementing the physical search button on the
> phone.
>

You don't "implement the physical search button" on a phone. You respond to
the user initiating a search request.


> I can say that I fully understood the use of action listeners for
> on- screen buttons, but I can't seem to find any similarity between that and
> any of the physical buttons.
>

You shouldn't care about the physical buttons. Some devices may not have a
dedicated search button.


>  Does anyone have any advice/code which could help me implement the search,
> because I can't seem to find anything on this topic on google.
>

Searching for "Search" in documentation, first hit:
http://developer.android.com/guide/topics/search/index.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] sharedpreferences and http post , give back force close ... where's the problem ?:(

2011-04-10 Thread TreKing
On Sat, Apr 9, 2011 at 2:51 PM, behrooz abbasy wrote:

> what should i do? :(


Debug your program.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: how do i devlope an android keybord

2011-04-10 Thread TreKing
On Sat, Apr 9, 2011 at 2:13 PM, ariel  wrote:

> how i can build a keybord.


If you mean a physical keyboard - that's outside the scope of this group.

If you mean a software, virtual keyboard - try reading the documentation on
the topic and following instructions.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Page fault limit in HTC's kernel

2011-04-10 Thread TreKing
On Sat, Apr 9, 2011 at 9:58 AM, Martin Baulig  wrote:

> Does anyone know why they put this patch into their kernel ?


I think you'll be hard-pressed to get a good answer on this group which is
for the Android SDK. Try a more appropriate group or search for HTC-specific
development forums.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: help: dont display Toast

2011-04-10 Thread TreKing
On Sun, Apr 10, 2011 at 10:55 AM, luiX_  wrote:

> Any particular reason to use Asyntasks instead of threads?


It simplifies running a background operation while interacting with the main
thread (to show progress or do something on the main thread when the long
running operation completes).

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: In-app billing problem

2011-04-10 Thread Kostya Vasilyev

Sebastian & Ishihata,

I can also confirm this, although my sample size is much smaller:

- Moto Milestone, 2.1u1, test purchase for android.test.purchased never 
completes;


Weird logcat messages:

D/vending ( 1521): [1] BaseBuyPageActivity.onOrderResponse(): state: 
CART_PURCHASE response: [PurchaseResult=OK]
D/( 1521): unable to unlink 
'/data/data/com.android.vending/cache/AVMC_PSU0FfaW5hcHA6b3JnLmttYW4uV2lmaU1hbmFnZXI6YW5kcm9pZC50ZXN0LnB1cmNoYXNlZA': 
No such file or directory (errno=2)
D/( 1521): unable to unlink 
'/data/data/com.android.vending/cache/AVMC_SU0FfaW5hcHA6b3JnLmttYW4uV2lmaU1hbmFnZXI6YW5kcm9pZC50ZXN0LnB1cmNoYXNlZA': 
No such file or directory (errno=2)


followed by



W/GTalkService( 1364): [DataMsgMgr] broadcast intent callback: 
result=CANCELLED forIntent { act=android.intent.action.REMOTE_INTENT 
cat=[com.android.vending.billing.IN_APP_NOTIFY] (has extras) }

W/GTalkService( 1364): TODO: implement reportNoReceiverError!


- Samsung Galaxy S, 2.2, test purchase completes successfully. No weird 
messages in logcat.


Needless to say, both tests are using the same .apk, release signed, etc.

-- Kostya

10.04.2011 22:28, Sebastian Pereyro ?:

Hi,

Thanks for your info Ishihata, very useful. Now I am thinking more and 
more that this is a market issue.


I am having the problem on a Motorola Cliq with Android 2.1-update1. I 
am in the US, so I don't think it is related to the country you are 
testing from.


I would suggest adding your information here: 
http://code.google.com/p/android/issues/detail?id=16042&q=in-app%20billing&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars 



Thanks

Seba


On Sat, Apr 9, 2011 at 2:27 AM, ishihata > wrote:


Hello,

I am worried of the same problem, too.
Logcat says as follows.
WARN/GTalkService(1268): [DataMsgMgr] broadcast intent callback:
result=CANCELLED forIntent { act=android.intent.action.REMOTE_INTENT
cat=[com.android.vending.billing.IN_APP_NOTIFY] (has extras) }
WARN/GTalkService(1268): TODO: implement reportNoReceiverError!

I think that this problem happens on Android 1.6 and 2.1, but does not
happen on Android 2.2.
I tried the dungeons example with some models and followings are the
result.
"NG" means this problem happened.

IS01 (Android 1.6) NG
IS03 (Android 2.1) NG
IS04 (Android 2.1) NG
IS05 (Android 2.2) OK
IS06 (Android 2.2) OK
Desire (Android 2.2) OK
Desire HD (Android 2.2) OK
003SH (Android 2.2) OK
005SH (Andoird 2.2) OK
Libero (Android 2.2) OK
Streak (Android 2.2) OK
Xperia (Android 2.1) NG
T-01C (Android 2.1) NG

# I am in Japan so there are many local models for Japan...

Isn't this a bug of the market app?

On Apr 9, 5:19 pm, Kostya Vasilyev mailto:kmans...@gmail.com>> wrote:
> FWIW,
>
> It's still not working for me - although it worked fine two or three
> days ago.
>
> Same phone, same account, same modified Dungeons sample. In
fact, I made
> no changes at all.
>
> Now purchases for android.test.* are sent to Market, but never
get any
> response. This is as if I was running the unsigned debug build on my
> test phone, but I'm running a signed release build. I even tried
> removing and adding back the test account in Market profile, no
change.
>
> They are presently rolling out per-country pricing for in-app
billing,
> perhaps it's related.
>
> PS - I don't see a way to set country-specific prices in my
console. All
> I see is USD with no way to choose another currency. Their email
said
> "available immediately".
>
> -- Kostya
>
> 09.04.2011 4:23, Seba ?:
>
> > Hi Ivan/Kostya,
>
> > I am having the exact same problem, and I am also seeing the same
> > output regarding the GTalkService.
>
> > Seba
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to
android-developers@googlegroups.com

> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com

> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to
android-developers@googlegroups.com

To unsubscribe from this group, send email

[android-developers] MiFare Classic detection

2011-04-10 Thread androidom
Hi there,
I used the sample code in my app to detect a Mifare Classic card.
My resource file looks like


android.nfc.tech.NfcA
android.nfc.tech.NfcB
android.nfc.tech.NfcF
android.nfc.tech.NfcV
android.nfc.tech.Ndef
android.nfc.tech.NdefFormatable
android.nfc.tech.MifareClassic



and my manifest has..






and the onCreate in the activity has the code..


 Intent intent = getIntent();
String action = intent.getAction();
if (NfcAdapter.ACTION_TECH_DISCOVERED.equals(action)) {
mTagContent.setText("Discovered tag " + ++mCount + " 
with
intent: " + intent);
} else {
mTagContent.setText("Scan a tag");
}


But when I move a Mifare Classic 1k tag near the phone the "Tags"
application is called I think..as the icon on the top left is the same
as the app name..and the title is " New Tag collected- unknown tag
type ".

I am pretty sure the above activity is not called. Can someone guide
me how to get my application called when a tag is discovered.. ? it is
a Nexus S. phone with 2.3.1

thank you
Domnic

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

2011-04-10 Thread Kostya Vasilyev

11.04.2011 0:02, Jake Colman пишет:

Kostya,

This worked perfectly.


I know :)


  Thanks!


Welcome !


...Jake



--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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


[android-developers] Re: LVL Retry Count

2011-04-10 Thread jtoolsdev
They need to provide several example Policy source files for different
setups.  The default has some disadvantages. It always shows
"activating" when the app was run rather than any cached policy.  Some
of my customers complained about it.  Other developers have modified
their policy file for more liberal activation and caching.  I've done
this too but you have to do quite a bit of experimentation and no one
is sure what the server is sending the customers if anything different
at all.

I think the Android team wanted to avoid discussing the LVL too much
as it would provide hints to pirates.  But the pirates have taken the
easy way out by hooking into the app and going around LVL all
together.

On Apr 10, 7:43 am, Nicholas Johnson  wrote:
> I use the default implementation of the Server Managed Policy (read about it
> here)
> for a paid version of my app, and haven't had any problems of note. I
> haven't had any complaints about false-negatives, or the like -- however,
> this *doesn't* mean that it doesn't happen, it just means that if it does,
> then nobody has complained about it to me.
>
> As for you concerns:
>
> What problems with the grace period are you referring to? The grace period
> will actually help you out if the case of "Retry" responses from the server.
>
> As for the licensing implementation with no network access, you shouldn't
> worry too much about that either. Normally, you get about 10 retries before
> the 503 error occurs. However, if the user has already checked the license
> with a Server Managed Policy, then the license is cached on the phone for a
> period of time. So, if the user starts the app up while their device is in
> Airplane mode (let's say 10 hours into a 12 hour cross-oceanic flight), then
> the cached license could still give the user a valid response -- even with
> no network access. This all depends on the VT extra from the initial license
> response. I'm not sure what a typical value is, but I know it last at least
> several hours, if not a day or more (if you wanted you could check out the
> value yourself by setting a breakpoint in the default implementation). Now,
> if the user *hasn't ever* received a valid license check, then it will fail
> without network connection. At which point, in my app, I ask the user to
> check for network connectivity and retry.
>
> Something to note: I haven't verified this with anyone on the Android dev
> team, but I'm pretty sure that once you release your application with LVL
> enabled on your phone *and* you don't buy your own app (i.e. you have the
> release version installed on your device, but haven't actually bought it
> through the market), then the VT extra in the licensing response is not a
> date that a typical user will receive. That is, I've found that without
> actually purchasing the app, the licensing server gives me a validity time
> which basically disables any valid cached response. Again, I've only seen
> this once I actually release the app, and *have NOT *bought it myself.
>
> Nick

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

2011-04-10 Thread Jake Colman
> "KV" == Kostya Vasilyev  writes:

   KV> [ below ]
   KV> 09.04.2011 0:12, Jake Colman пишет:
   >>> >  "KV" == Kostya Vasilyev  writes:
   KV> 08.04.2011 19:25, Jake Colman пишет:
   >> 
   >> >>  I have a 2x1 widget with two textviews, aligned top and bottom
   >> >>  to the baseline, that display fine in Portrait.  When I switch
   >> >>  to landscape, there is insufficient room for the two textviews
   >> >>  (the widget becomes long and narrow) so the two textviews
   >> >>  overlap each other.
   >> 
   >> [snip]
   >> 
   KV> I'd keep both text views in both layout, using visibility="gone"
   KV> where a view is not supposed to show - just to be safe.
   >> 
   KV> You could also use one text view, combining data from your
   KV> original two, in landscape mode. In that case, you'd have a total
   KV> of three views, and make portrait-only views "gone" in the
   KV> landscape layout, and vise versa.
   >> 
   >> But if onUpdate is not called on changes to orientation, how do
   >> you know
   >> a) which layout to reference and b) which visibility to make "gone"?
   >> 

   KV> Jake,

   KV> That's my point exactly - you don't know, and shouldn't care,
   KV> because you switch layouts in the .xml, not from code.

   KV> The RemoteViews in your code needs to cover both
   KV> orientations. You do this by using the same layout name (resource
   KV> id) for both portrait and landscape orientations, let's say one
   KV> in res/layout, and the other in res/layout-land.

   KV> Now you have two .xml layout files, which, because of having the
   KV> same name, are two versions of the same layout. Same as for
   KV> regular (non-widget) layouts, really. Put text views with the
   KV> same IDs into those .xml files, and mark them as visible and gone
   KV> as needed.

   KV> Your RemoteViews will have a layout resource ID that common to
   KV> both portrait and landscape .xml's, but which of those two
   KV> layouts is loaded will depend on home screen orientation - just
   KV> like with regular Activity type layouts.

   KV> If home screen orientation is changed, the home screen app will
   KV> go through the usual activity orientation change cycle, and,
   KV> based on the same resource ID, will load the layout appropriate
   KV> for the new orientation. Same as for non-widget activities in any
   KV> application.

   KV> As for putting data into text views - your code should always
   KV> specify values for all text views used in both orientations,
   KV> because a view that's "gone" now can become "visible" after a
   KV> home screen orientation change.

   KV> -- Kostya

Kostya,

This worked perfectly.  Thanks!

...Jake


-- 
Jake Colman -- Android Tinkerer

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


Re: [android-developers] Bluetooth in Android

2011-04-10 Thread Kristopher Micinski
Another device like another phone?  How did you do it? You have to do
discovery and pairing first.  And yes, BT chat example does illustrate
things pretty well.

Kris

On Sat, Apr 9, 2011 at 9:55 AM, Vishal Rajpal
wrote:

> Hello Everyone..
>
> I want to connect another android device using bluetooth. I have tried
> but was nt able to..
> Can anyone help me
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Bluetooth in Android

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

> Hello Everyone..
>
> I want to connect another android device using bluetooth. I have tried
> but was nt able to..
> Can anyone help me
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




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

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

Re: [android-developers] Re: When to set android:anyDensity to what value?

2011-04-10 Thread Kostya Vasilyev

There are really two related things here:

1 - Setting anyDensity to "true" or minSdk/targetSdk to 4 or above means 
that your application sees the real screen size/resolution/density at 
runtime. Android will scale your images as needed when they are loaded, 
so you won't get missing resource exceptions, but they may not always 
look very good, especially when scaling up, say from -mdpi to -hdpi density.


You can look at Android's own resources as an example of this scheme:

android-sdk-windows\platforms\android-X\data\res

has drawable-mdpi and drawable-hdpi, but no drawable-ldpi, relying on 
runtime scaling from -mdpi to -ldpi.


2 - Using "sp" and "dp" units in your layouts makes them scale with 
density, so one layout should work for all densities (although you 
should still test them on a variety devices, because of different screen 
aspect ratios, this is especially apparent with QVGA screens).


-- Kostya

10.04.2011 23:10, MarcoAndroid пишет:

In short: am I always safe with anyDensity=true as long as I use dp
and sp as I read in Table 2 
here:http://developer.android.com/guide/practices/screens_support.html:
'That is, as long as your application uses density-independent units
(dp) for screen layout sizes, then it will perform properly on
different densities when this attribute is set to "true"'?
Even for a 1.5 app?


--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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


[android-developers] Re: When to set android:anyDensity to what value?

2011-04-10 Thread MarcoAndroid

In short: am I always safe with anyDensity=true as long as I use dp
and sp as I read in Table 2 here: 
http://developer.android.com/guide/practices/screens_support.html:
'That is, as long as your application uses density-independent units
(dp) for screen layout sizes, then it will perform properly on
different densities when this attribute is set to "true"'?
Even for a 1.5 app?

Or are there more rules like *having* to provide resources to
accomodate any screen density (as it says here:
http://developer.android.com/guide/topics/manifest/supports-screens-element.html:
setting "anyDensity" to true means "the application includes resources
to accommodate any screen density"?)

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


[android-developers] Using Google Calendar API

2011-04-10 Thread New Developer
anyone solved the use of Google Calendar API ?

tried the method  from   http://jimblackler.net/blog/?p=151
content://calendar/calendars"   andcontent://com.android.calendar/calendars"

I get the ERROR
Failed to find provider info for com.android.calendar



when I try the  google gdata  api's

I have the jar files connected via  external libraries
but this generates, compiles and shows no errors but executes with this runtime 
ERROR

Could not find class 'com.google.gdata.client.calendar.CalendarService',


Thanks in advance

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

[android-developers] Re: When to set android:anyDensity to what value?

2011-04-10 Thread MarcoAndroid
So I should set it to true even when my app doesn't include resources
to accommodate any screen density (suppose I'm lazy so I don't create
any size- or density specific resources)?

I'm wondering this because taken from:
http://developer.android.com/guide/topics/manifest/supports-screens-element.html
it says that if you set "anyDensity" to true it means "the application
includes resources to accommodate any screen density".

But I'm not including any of these explicitly,  so what happens then
scaling wise when anyDensity="true"?



On 5 apr, 23:09, Dianne Hackborn  wrote:
> Always set it to true...  or better, just make android:targetSdkVersion >=
> 4.  Having it false is only for compatibility with old apps that were
> written before there was a concept of density in the APIs.  Using this
> compatibility mode can cause some undesirable artifacts such as text metrics
> being slightly inconsistent with actual rendering.
>
>
>
>
>
>
>
>
>
> On Tue, Apr 5, 2011 at 1:42 PM, MarcoAndroid  wrote:
> > Hello there,
>
> > I've read
> >http://developer.android.com/guide/practices/screens_support.html
> > and
>
> >http://groups.google.com/group/android-developers/browse_thread/threa...
> > and
>
> >http://groups.google.com/group/android-developers/browse_frm/thread/5...
> > and more related sources.
>
> > Still, what and when to set android:anyDensity to I find hard to
> > figure out.
>
> > So, are these conclusions correct:
>
> > 1- android:anyDensity has been introduced really only for "older" apps
> > (1.6 level 4 or lower) because those were most likely built with
> > hardcoded density-dependent values like 'px'? And apps with level
> > before 4 even don't understand density dependent resource directories
> > like res/drawable-hdpi?
> > By setting android:anyDensity="false", Android tries to scale those
> > resources that use px values and in 'res/drawable' to match the
> > device's real screen density.
> > From level 5 onwards it is a well-known best-practice to always use dp
> > and sp and density dependend resource directories, so usually apps
> > take care themselves of being independent using those. And thus
> > normally for those apps android:anyDensity="true" is sufficient (no
> > auto-density-scaling).
>
> > 2- If android:anyDensity="false" are these density dependend resource
> > directories plainly ignored as mentioned in this thread?
>
> >http://groups.google.com/group/android-developers/browse_frm/thread/5...
> > But: how does the android:anyDensity="true" or "false" relate to
> > resources that you might have put in res/drawable-mdpi and res/
> > drawable-hdpi etc? Does that setting then only have effect for those
> > density resources you didn't specify in any configuration specific
> > density-directory, and how?
>
> > 3- And what if I'm lazy and for any app I make I don't want to create
> > density specific resources (like images), so only have the 'res/
> > drawable' dir, but do use dp and sp everywhere... What should
> > android:anyDensity be set to then? My guess is "false" so Android will
> > alwyas scale my resources from 'drawable'...
>
> > Regards,
> > Marco
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


[android-developers] Anyone feel like helping a poor pale student?

2011-04-10 Thread Tez
Hey everyone,

I'm new to these forums, just drifted over from dreamincode.

I'm writing my undergraduate dissertation on programming for the
Android platform using the Eclipse IDE and was wondering if anyone
would be happy to fill out a questionnaire for me to help out?

Many thanks in advance! My computer died yesterday and i lost all my
previous research so now i have three weeks to research and write the
entire document!
(Willing to admit its my own daft fault for not backing up my files  )

Thanks everyone, heres the link  [url]http://www.surveymonkey.com/s/
F7ZMQWR[/url]

- Tez

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


[android-developers] 3D Image

2011-04-10 Thread khaled anaqwa
any one have a good tutorial how to create 3D image
form datarow

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


[android-developers] Enquiry

2011-04-10 Thread Waseem Akram
Dear Frnz,

   I am Waseem  Akram. I had completed my B.E (Electronics & Communication )
. I am interested to learn Android . What is the procedure from where I have
to start .

Is there any tutorial available. Is it mandatory to know any other
languages. Please Clarify .



Thanks & Regards,
S.A.WASEEM AKRAM.

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

[android-developers] Bluetooth in Android

2011-04-10 Thread Vishal Rajpal
Hello Everyone..

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

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


[android-developers] STK Menu

2011-04-10 Thread KamalBudhabhatti
Dear Developers,
I have an Android application which works fine. I want to invoke the
SIM Menus that are on the SIM card using STK options. I tried to look
around on the web, and I am not able to get any good information on
it. I saw some example at

http://gitorious.org/0xdroid/packages_apps_stk/blobs/2575de4c1b741eccab14ddf291cd91e9f4d36605/src/com/android/stk/StkAppService.java

but it uses import com.android.internal.telephony.gsm.stk.AppInterface
which I am not able to call in my application.

would anyone be able to assist me on this ( any complimentary or paid
assistance )?

Thank you,


Kamal Budhabhatti.

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


[android-developers] Problem deploying app to orange sand francisco on windows7

2011-04-10 Thread Penelope
Hi,

I have trawled the internet in search of suggestions about how i can
get round problems relating to connection of my phone to my pc, and
why cmd 'adb devices' shows my phone as being offline. The most
promising set of instructions i have seen is here:
http://developer.android.com/sdk/win-usb.html#Win7, but I am having
trouble following these. I have downloaded the 64 bit driver, but when
i try to install this, windows tells me 'your driver is up to date'
and wont install the google driver. anyone else had this problem? or
some other way around this problem of the phone being 'offline'?

Really appreciate any 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] Live wallpaper canvas flickers when it includes a bitmap

2011-04-10 Thread Matt Watkins
For my live wallpaper I use the following code (called by a Runnable)
to draw each frame. Each time it is called, I fill the current canvas
with a solid color and draw a background bitmap (bg_image has been
resized to perfectly fit the screen). I then call drawParticles(c),
which simply uses c.drawCircle(...) a bunch of times drawing particles
all over the canvas.

In the live wallpaper preview mode, this code works great. However,
when I actually set this as my live wallpaper it flickers and seems to
not clear the canvas before drawing. Let me 'splain:

Frame 1: The bitmap is drawn and circles are overlaid.

Frame 2: The bitmap is drawn and circles are overlaid (based on my
rough understanding, there are two canvases that are drawn on and
posted alternately for efficiency).

Frame 3: The canvas is not being cleared! This frame includes the new
positions of each drawn circle as well as the circles from Frame 1!.

Frame 4: Includes the new positions of each drawn circle as well as
the circles from Frame 2!

The end effect is that the circles leave "trails" all over the screen
that flicker between (I believe) the two alternating canvases. Why,
based on my code below, isn't my canvas being cleared each frame?
Again, this works fine during preview mode but not when it is actually
set as my live wallpaper. It's also worth noting that this flickering
problem only occurs if I am drawing a bitmap; if the background is
just a solid color, this problem never arises.

---

final SurfaceHolder holder = getSurfaceHolder();

Canvas c = null;
try {
c = holder.lockCanvas();
if (c != null) {
c.drawColor(Color.BLACK);
c.drawBitmap(bg_image, 0, 0, null);
fluid.drawParticles(c);
}
} finally {
if (c != null) holder.unlockCanvasAndPost(c);
}

mHandler.removeCallbacks(mDrawRunnable);
mHandler.postDelayed(mDrawRunnable, 1000/targetFramerate -
(System.currentTimeMillis() - mLastTime));
}

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


[android-developers] Main Activity Launches On Stack Every Time Home Screen Icon Is Clicked

2011-04-10 Thread Tony Chuinard
My application consists of a LoginActivity followed by a
BrowseActivity.  When the user hits the Browse Activity, then hits the
Home button, then hits the application icon again, the LoginActivity
relaunches (but they're already logged in and in the browse activity
so they should be there).

However, if I hit back, the BrowseActivity is still there, and the
LoginActivity is revisible when I hit back twice.  It seems like the
LoginActivity gets pushed to the top of the stack and displayed every
time the application is launched, but the docs say that the last
activity from that 'task' will be launched (which is what I want - a
return to the BrowseActivity).

I have a static LoginManager class, so I could check if that data is
null or not in LoginActivity onCreate() and do a finish() if
necessary, but I feel like that's a huge hack when my application
should be behaving like this already.

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


[android-developers] Use standard system browser for OAuth / Keep browser out of history

2011-04-10 Thread Tomas Prochazka
I want use system browser for Twitter/Foursquare OAuth authorization.
I think that this is safer then open browser in Webview directly in my
app. System browser also can remember user password and he can't enter
it again and again.

My idea is open the browser via standard intent

Intent browserIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse(authUrl));
browserIntent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
startActivity(browserIntent);

And via call back URL myApp://twitter call back my app activity.
Better will be call some special URL which Android will handle like
close browser or goto back to the application which opened it.

But big problem is that this work only if browser was not running
before. If browser is running already it keep in history and user
after OAuth authorization stay in the browser instead of my app.

I think that this is caused because browser is running in different
task and FLAG_ACTIVITY_NO_HISTORY works only for activities in one
task.

But how to solve it. I think that this is very common problem.
Is only way to use internal Webview? :-(

Similar question is here but without real solution:

http://stackoverflow.com/questions/5326538/how-can-i-do-that-in-android-activity-webbrowser-acrivity-but-press-back/5598405#5598405

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


[android-developers] Activity Restart On Rotate Phone

2011-04-10 Thread Jons Jean
Hi community ;
  I am facing a problem , I am working on an
application where I am creating dynamic UI ,I install this application
in my android phone > problem is this when I rotate phone its activity
got restart , How I can handle it ?
>From google I find the way to handle this to add below line in
menifest fine > I add this line but same problem  ,

android:configChanges="orientation"
Please guide me in detail how can I handle 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


Re: [android-developers] Re: Tasks & browser activity

2011-04-10 Thread Tomas Prochazka


WebView has two disadvantages
1.) It is security holes. App which open OAuth authorization page in WebView 
can acces my password
2.) In standard browser I have stored password and I don't need enter it 
again and again in every app which need acces to me twitter.

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

[android-developers] Re: Activity stack with browser and protocol handler

2011-04-10 Thread Tomas Prochazka
Yo can use intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);

But I found that this work only if the browser was not running before. If I 
restart Android and run my app which call browser with this intent 
everything works well.
But when I start browser before my app, browser will stay in history.

http://stackoverflow.com/questions/5326538/how-can-i-do-that-in-android-activity-webbrowser-acrivity-but-press-back

If someone find working solution I will be very happy :-(

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

2011-04-10 Thread win
hi there, i'm doing an application that displaying a list of guest
than will attending some event.
what i need to do is :
 *to display all the Guest name in listView + checkbox  + button
"attend" and "not attend" at the bottom of the list
 *when user click the "attend " button, it will list all the checked
names.
 *when click on "not attend" button, it will list all unchecked names.

to make it clear, i manage  to do all those thing axcept for the
button action. i don't know how to capture the checked and unchecked
item..can anyone here help me with the code.i tried to find a tutorial
on that but still didn't find what i need yet.anyone please..

so here my codes:

public class CheckBox extends Activity {

private ListView lView;
private String lv_items[] = {   "Annie", "Mark", "Mei Ling",
"Fujimaru", "Yukimura", "Andy",
"Emmy", "Christopher","Robert",
"Anthony", "Haruhi","Masaomi" };

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

Button btnSave = (Button) findViewById(R.id.Button01);
btnSave.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
//Toast.makeText(getApplicationContext()," All Guest",
Toast.LENGTH_SHORT).show();
}
});

Button btnSave2 = (Button) findViewById(R.id.Button02);
btnSave2.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
//Toast.makeText(getApplicationContext()," Attending",
Toast.LENGTH_SHORT).show();
}
});

Button btnSave3 = (Button) findViewById(R.id.Button03);
btnSave3.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
//Toast.makeText(getApplicationContext()," Not 
Attending",
Toast.LENGTH_SHORT).show();
}
});

lView = (ListView) findViewById(R.id.ListView01);
//Set option as Multiple Choice. So that user can able to select more
the one option from list
lView.setAdapter(new ArrayAdapter(this,
android.R.layout.simple_list_item_multiple_choice, lv_items));
lView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);

}
}

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

  













And...thank you for helping me :)

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


[android-developers] Re: Problems with Activity Flow during OAUTH Authentication

2011-04-10 Thread Tomas Prochazka
I found that the FLAG_ACTIVITY_NO_HISTORY for browser works, but only if the 
browser was not running before. If I restart Android and run my app which 
call browser everything work well. But when I start browser before my app, 
browser will stay in history.

Related question, but also without solution:
http://stackoverflow.com/questions/5326538/how-can-i-do-that-in-android-activity-webbrowser-acrivity-but-press-back

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

[android-developers] My first app

2011-04-10 Thread anik
Hi every one,
I just started with my android application but facing problem when i
build the application or when i run my application.Please see if
anyone can fix.Please reply as early as possible.

this is what is shown at Console Tab on Eclipse IDE.
[2011-04-08 20:26:03 - Golf2] Error in an XML file: aborting build.
[2011-04-08 20:26:03 - Golf2] res\layout\main.xml:0: error: Resource
entry main is already defined.
[2011-04-08 20:26:03 - Golf2] res\layout\main.out.xml:0: Originally
defined here.
[2011-04-08 20:26:03 - Golf2] C:\anroid apps\Golf2\res\layout
\main.out.xml:1: error: Error parsing XML: no element found

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


[android-developers] Draw circle in widget

2011-04-10 Thread - A
Hi,
I am very new to Android.

Is it possible to draw a circle using canvas in widget and change
color time to time?
I mean, is it possible to draw shapes in widget where I dont have
images and shape / its color changes as time.
goes on?


Any pointer is highly appreciated.

Regards,
- A

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

2011-04-10 Thread Sebastian Pereyro
Hi,

Thanks for your info Ishihata, very useful. Now I am thinking more and more
that this is a market issue.

I am having the problem on a Motorola Cliq with Android 2.1-update1. I am in
the US, so I don't think it is related to the country you are testing from.

I would suggest adding your information here:
http://code.google.com/p/android/issues/detail?id=16042&q=in-app%20billing&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars


Thanks

Seba


On Sat, Apr 9, 2011 at 2:27 AM, ishihata  wrote:

> Hello,
>
> I am worried of the same problem, too.
> Logcat says as follows.
> WARN/GTalkService(1268): [DataMsgMgr] broadcast intent callback:
> result=CANCELLED forIntent { act=android.intent.action.REMOTE_INTENT
> cat=[com.android.vending.billing.IN_APP_NOTIFY] (has extras) }
> WARN/GTalkService(1268): TODO: implement reportNoReceiverError!
>
> I think that this problem happens on Android 1.6 and 2.1, but does not
> happen on Android 2.2.
> I tried the dungeons example with some models and followings are the
> result.
> "NG" means this problem happened.
>
> IS01 (Android 1.6) NG
> IS03 (Android 2.1) NG
> IS04 (Android 2.1) NG
> IS05 (Android 2.2) OK
> IS06 (Android 2.2) OK
> Desire (Android 2.2) OK
> Desire HD (Android 2.2) OK
> 003SH (Android 2.2) OK
> 005SH (Andoird 2.2) OK
> Libero (Android 2.2) OK
> Streak (Android 2.2) OK
> Xperia (Android 2.1) NG
> T-01C (Android 2.1) NG
>
> # I am in Japan so there are many local models for Japan...
>
> Isn't this a bug of the market app?
>
> On Apr 9, 5:19 pm, Kostya Vasilyev  wrote:
> > FWIW,
> >
> > It's still not working for me - although it worked fine two or three
> > days ago.
> >
> > Same phone, same account, same modified Dungeons sample. In fact, I made
> > no changes at all.
> >
> > Now purchases for android.test.* are sent to Market, but never get any
> > response. This is as if I was running the unsigned debug build on my
> > test phone, but I'm running a signed release build. I even tried
> > removing and adding back the test account in Market profile, no change.
> >
> > They are presently rolling out per-country pricing for in-app billing,
> > perhaps it's related.
> >
> > PS - I don't see a way to set country-specific prices in my console. All
> > I see is USD with no way to choose another currency. Their email said
> > "available immediately".
> >
> > -- Kostya
> >
> > 09.04.2011 4:23, Seba ?:
> >
> > > Hi Ivan/Kostya,
> >
> > > I am having the exact same problem, and I am also seeing the same
> > > output regarding the GTalkService.
> >
> > > Seba
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Kostya Vasilyev --http://kmansoft.wordpress.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Ghosla

2011-04-10 Thread harsh jakkappanavar
hey,

we were implementing a game called Ghosla.
we are stuck at a point right now, actually we want to send the code
to you, for you to check the code first and then we could ask the
doubts, and it'll be easy for you to understand what v are trying to
implement, so is there any way, where we can mail u 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] Re: Image processing in Android

2011-04-10 Thread lbendlin
And you already have exhausted all the MAT features?

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

[android-developers] Recommended icon sizes for xhdpi

2011-04-10 Thread Brill Pappin
Does anyone know what the recommended icon sizes are for xhdpi images?

Table 1. at 
http://developer.android.com/guide/practices/ui_guidelines/icon_design.html
has not been updated to reflect the new features yet.

- Brill

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

[android-developers] Secure requests to a Webservice via Android

2011-04-10 Thread elioncho
Hello,

I've and android application which sends post requests to a web
service. I want to secure the communication between the two and was
wondering which is the best approach:

1) Make https requests

2) Encrypt the request params via an encryption algorithm and decrypt
on the web service (I found one called SimpleCryto
http://www.tutorials-android.com/learn/How_to_encrypt_and_decrypt_strings.rhtml)

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


Re: [android-developers] File Browser: can not data folder access

2011-04-10 Thread Kostya Vasilyev

10.04.2011 21:29, moonrie пишет:
k, *the permission I suggest* is linux file permission, not the 
android permissions declared in the manifest file, 


If that was possible with Linux, that'd be a massive security hole, and 
not just in Android. Thankfully, there isn't one there.


Android uses Linux file system permissions to prevent applications from 
accessing each other's data stored in the internal storage (under 
/data/data/).


--

Kostya Vasilyev -- http://kmansoft.wordpress.com


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


Re: [android-developers] File Browser: can not data folder access

2011-04-10 Thread moonrie
k, *the permission I suggest* is linux file permission, not the android
permissions declared in the manifest file,

On Mon, Apr 11, 2011 at 1:08 AM, bahtiyar kara
wrote:

> @monrie
> there is no permission for access to data folder in android so ı cant use a
> permission.
> Do you know any permission to do it?
>
> @mark
> I dont have an experience.Have you used a real  file browser in Android and
> How it access these files?
> Cant I access there with any way?
> I think if I request a root access in my application, then can ı access
> data folder?
>
>
> 2011/4/10 Mark Murphy 
>
>> On Sat, Apr 9, 2011 at 8:11 AM, eagles78 
>> wrote:
>> > I wrote a file browser application for my project.when directories
>> > list in a listview,ı cant access the data folder.
>> > What can ı do access in it.?
>>
>> You don't. On production hardware, applications can access external
>> storage and their portion of internal storage (e.g., getFilesDir())
>> and nothing else.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android Training in Oslo: http://bit.ly/fjBo24
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Bahtiyar Kara
> İstanbul Üniversitesi Bilgisayar Müh. 4.sınıf
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] File Browser: can not data folder access

2011-04-10 Thread Mark Murphy
On Sun, Apr 10, 2011 at 1:08 PM, bahtiyar kara
 wrote:
> How it access these files?

It doesn't.

> I think if I request a root access in my application, then can ı access data
> folder?

Yes, but rooting devices isn't really within the scope of this group,
and you cannot force other users to root their phones.

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

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

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


Re: [android-developers] File Browser: can not data folder access

2011-04-10 Thread Kristopher Micinski
No,

you don't request root permission.  You have to have a rooted phone, there's
no such thing as a rooted permission.  And so no, there won't be any
permission you can request to see the filesystem.

Kris

On Sun, Apr 10, 2011 at 1:08 PM, bahtiyar kara
wrote:

> @monrie
> there is no permission for access to data folder in android so ı cant use a
> permission.
> Do you know any permission to do it?
>
> @mark
> I dont have an experience.Have you used a real  file browser in Android and
> How it access these files?
> Cant I access there with any way?
> I think if I request a root access in my application, then can ı access
> data folder?
>
>
> 2011/4/10 Mark Murphy 
>
>> On Sat, Apr 9, 2011 at 8:11 AM, eagles78 
>> wrote:
>> > I wrote a file browser application for my project.when directories
>> > list in a listview,ı cant access the data folder.
>> > What can ı do access in it.?
>>
>> You don't. On production hardware, applications can access external
>> storage and their portion of internal storage (e.g., getFilesDir())
>> and nothing else.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android Training in Oslo: http://bit.ly/fjBo24
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Bahtiyar Kara
> İstanbul Üniversitesi Bilgisayar Müh. 4.sınıf
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] File Browser: can not data folder access

2011-04-10 Thread bahtiyar kara
@monrie
there is no permission for access to data folder in android so ı cant use a
permission.
Do you know any permission to do it?

@mark
I dont have an experience.Have you used a real  file browser in Android and
How it access these files?
Cant I access there with any way?
I think if I request a root access in my application, then can ı access data
folder?


2011/4/10 Mark Murphy 

> On Sat, Apr 9, 2011 at 8:11 AM, eagles78 
> wrote:
> > I wrote a file browser application for my project.when directories
> > list in a listview,ı cant access the data folder.
> > What can ı do access in it.?
>
> You don't. On production hardware, applications can access external
> storage and their portion of internal storage (e.g., getFilesDir())
> and nothing else.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in Oslo: http://bit.ly/fjBo24
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Bahtiyar Kara
İstanbul Üniversitesi Bilgisayar Müh. 4.sınıf

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

[android-developers] Image processing in Android

2011-04-10 Thread Tanco
Hi,
I am having a problem with an application I am developing,
The application is a web client, after it stars it downloads it's
resources from a web,
and shows the results in a 3d carousel(very similar to androids market
app). The problem occurs when the images are downloaded on the
device and the 2 carousels appear and I start to move the images to
the left and right.
after a few seconds I get a out of memory exception. I tried using two
level caching and all the optimizations along the way however nothing
seems to work. the procedures are :
1. the app downloads the image if it is not in the cache, or retrieves
it from the cache if available
2. makes a bottom mirror like mask if it was downloaded
3. loads the image in the carousel and starts to manipulate it. (using
camera and other image transformators)

I have made a bunch of optimizations, however all that I have been
able to do is extend the time between two crashes, the app works
better but still crashes after a while

it is build for 2.2 and minimum sdk version is set to 1.6

my next idea is making a native lib which will use a fixed size buffer
for the image manipulation it's self.
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] issues about ndk

2011-04-10 Thread Mark Murphy
Questions regarding the NDK are better asked on the [android-ndk] Google Group.

On Sat, Apr 9, 2011 at 9:04 AM, pangpang  wrote:
> we can call c function through jni. which compiler by ndk. but is it
> possible to call java function in native code(example c). and how to
> do it.
> i want to use some native code which in the middle layer. and the
> native code call some hardware driver interface like audio,sensor..;
> and can called by the activity.

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

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

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


Re: [android-developers] File Browser: can not data folder access

2011-04-10 Thread Mark Murphy
On Sat, Apr 9, 2011 at 8:11 AM, eagles78  wrote:
> I wrote a file browser application for my project.when directories
> list in a listview,ı cant access the data folder.
> What can ı do access in it.?

You don't. On production hardware, applications can access external
storage and their portion of internal storage (e.g., getFilesDir())
and nothing else.

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

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

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


Re: [android-developers] File Browser: can not data folder access

2011-04-10 Thread moonrie
'cause you do not have permission?

On Sat, Apr 9, 2011 at 8:11 PM, eagles78  wrote:

> hello,
>
> I wrote a file browser application for my project.when directories
> list in a listview,ı cant access the data folder.
> What can ı do access in it.?
>
> 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

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

  1   2   >