[android-developers] java.io.FileNotFoundException: (Device or resource busy)

2013-08-12 Thread Rahul Kaushik
From my webview ,i download the file in particular folder X at
mnt/sdcard/download/X i download the file ,after showing it to the user i
delete the files from folder X while doing this process for 1-2 time i get
the error

*java.io.FileNotFoundException: (Device or resource busy)*

Please suggest

Thanks

RK

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Focus problem with Option menu

2013-08-12 Thread Daniele Renda
Ah ok. Thanks so much. I'll check if this can be a existing bug!

Thanks!


2013/8/11 TreKing treking...@gmail.com


 On Sun, Aug 11, 2013 at 12:00 PM, Daniele Renda 
 daniele.re...@gmail.comwrote:

 Hi Treking,
 why do you say this?


 Oh, sorry, I was thinking about the old-school menu that was hidden and
 exposed via the Menu key. I guess you're going for the modern menu with an
 item showing in the action bar, yes? In that case, you're fine. And I have
 no idea what to suggest about your issue. Have you checked b.android.comfor 
 potential existing bugs? That's my first destination when I experience
 wonky behavior.



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

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/aBOb9bbgkbM/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Daniele Renda

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] SurfaceView crash in 4.3 - SurfaceHolder.unlockCanvasAndPost(canvas) IllegalArgumentException

2013-08-12 Thread Trev16v
Hi Group,

There is currently an open issue tracker that reports an apparent bug in 
Android 4.3 which results in application crashes when SurfaceView is used.

The tracker is here:

http://code.google.com/p/android/issues/detail?id=58385

I've found that this situation causes my own application to crash (with 
Logcat showing the traces as documented in that tracker) on both devices I 
have access to that have been upgraded to Android 4.3 (a Nexus 7 and Nexus 
4). It's clear that this is causing a headache to other developers as well, 
and surely it's going to be a larger problem as 4.3 is rolled out to all 
current Nexus devices, potentially affecting hundreds of applications that 
use SurfaceView. In my experience it seems random as to whether this 
exception occurs, and the probability seems to differ between applications. 
With one obviously SurfaceView-based app I tried (not my own), I had to 
rotate the device several dozen times to make the crash happen; with my own 
application it occurs 50% of the time on start-up of the SurfaceView.

I'd hope that Google somehow provide a fix for this, but until that happens 
has anyone got any further insight or knowledge on how it might be 
mitigated? In the meantime I'm considering implementing a splash warning 
for 4.3 users along with perhaps a low-FPS View-based renderer as a 
fall-back from SurfaceView, so at least 4.3 users can use the application, 
albeit with poor user experience.

Trev 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Object animator with finger swipe.

2013-08-12 Thread SonyPhoneGuy
I am sure this specific question should have been asked a number of times, 
but I just cant find a clear response anywhere...

I have created a setup such as to flip two views using object animator... 
It exactly like this example here... 
http://developer.android.com/training/animation/cardflip.html  

Its a card flip animation... 

I want to flip it by swiping the finger from left - right of the screen and 
not on clicking a button as shown in the demo - secondly, I want it to 
follow the movement of my finger such that the rotation position is 
controlled by the position of the finger...

Is there any way of doing this efficiently with object animator?

Thanks so much

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Set Buffer Time In Android Media Player

2013-08-12 Thread deepak
I am trying to live stream from my ipCamera to android phone using Wowza. I 
am able to view the video but the video is buffering after every 15 seconds 
and then it plays faster for sometime and then again buffers.Is there any 
options in the Media Player where by i can change this buffer time? 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Camera + GLSurfaceView frame rate

2013-08-12 Thread Miles Egan
I've set up a very minimal app that captures video frames from the camera 
and dumps them directly to a GLSurfaceView via a SurfaceTexture. This works 
fine but the frame rate is poor on both a Galaxy S3 and a Nexus 4. In the 
latter case I can't get better than about 10fps even when I don't do 
anything at all in my actual GL render callback.

I can post actual code but before I dig much further than this I'd just 
like to know if I should be able to get better frame rates than this or if 
this is the best I should expect. There are camera apps in the store like 
Camera 2 that are much smoother than this but maybe they're using the NDK + 
lower level APIs to achieve this?

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




[android-developers] Tab Host with fragment

2013-08-12 Thread Arun Kumar K
Hi guys,

How to start fragment from tab activity...
-- 
*Regards*
*Arun*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Add new view to appwidget with customizable layout position and size

2013-08-12 Thread Jose_GD
It seems he's trying to let users define what views should the appwidget 
include, like UCCW. In a truly dynamic way, not views defined in XML.


El viernes, 9 de agosto de 2013 21:23:36 UTC-3, TreKing escribió:


 On Fri, Aug 9, 2013 at 9:30 AM, Vasily Laushkin 
 vasl...@gmail.comjavascript:
  wrote:

 I know that I can change the layout to another layout in the 
 configuration Activity, but I have not found solution how to create 
 new RemoteViews programmatically and put it in custom position.


 Please explain clearly what you are trying to achieve.


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

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




[android-developers] Re: Tab Host with fragment

2013-08-12 Thread Shadab Khatib
Hello,
What are you exactly trying to accomplish?
Do you want to have Swipe Views or open different activity from the tabs?

On Monday, 12 August 2013 16:38:01 UTC+5:30, Arun Kumar K wrote:


 Hi guys,

 How to start fragment from tab activity...
 -- 
 *Regards*
 *Arun*
  
  

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Focus problem with Option menu

2013-08-12 Thread Shadab Khatib

Hello,
If you want the menu to be access available to the user as long as the app 
is up, then you can have it as an actionbar item instead of as the menu 
option. 
You can view it via a simple icon or show/hide it depending upon the room 
on the user interface.

On Thursday, 8 August 2013 15:20:25 UTC+5:30, drenda wrote:

 Hi,
 I've a problem with Option menu and focus.
 I've a simple View in which I've some data come from remote service. I've 
 to display an icon of the option menu only sometimes when remote object has 
 some characteristics.

 So I do this:

 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
 return true;
 }

 @Overridepublic boolean onPrepareOptionsMenu(Menu menu) {


 if (corsa != null  corsa.getDataPartenzaEffettiva() == null) {
 menu.clear();
 getMenuInflater().inflate(R.menu.dettaglio_corsa, menu);
 }
 return true;
 }

 The first time I create an empty menu and then when I receive remote data 
 (asyncCall) I call   invalidateOptionsMenu(); so I display the option menu 
 icon. All works fine but in this view I open programatically the keyboard:

  InputMethodManager inputMethodManager = (InputMethodManager) 
 getSystemService(Context.INPUT_METHOD_SERVICE);
 if (inputMethodManager != null) {
 
 inputMethodManager.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
 }

 the problem is that every time I press a key on the keyboard the icon of 
 Option menu focus, and when I press enter the option menu is clickked. I 
 don't want this, why the option menu is focused every time I press a key?

 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: How do I flip images?

2013-08-12 Thread Shadab Khatib
Hello,
For starters you can have a look at the Screen Slides methodology using 
ViewPager for Screen Slides.
You can find the documentation for it in the link below
http://developer.android.com/training/animation/screen-slide.html
Hope it solves some part of your query.
Thank You

On Thursday, 8 August 2013 01:29:47 UTC+5:30, SonyPhoneGuy wrote:

 I am trying to do some flip animation.

 I have been able to successfully use the ObjectAnimator to do a few flips, 
 but I am trying to re-create a more believable page flip - rather like a 
 book flip - similar to what is used in Play Books.

 Is there any easy way to do this? any documentations around?

 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] “State storing” clarification (Android)

2013-08-12 Thread nish1013


I have read many questions and explanation on how to manage state in Android 
apps. I would like to get more clear definition based on concrete use cases ,



private ArrayListString mHistory = new ArrayListString();

1) mHistory should be retained only in single activity ( answer:: Bundle ??)

2) mHistory should be retained in specific 3 activities in a sequence (??)

3) mHistory should be retained in specific 3 activities but NOT in a 
sequence ( ?? )

4) mHistory should be retained in all activities involved in the app ( 
answer:: application context ??)

I have added my answers so far found within the brackets.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: keep alive xmpp connection

2013-08-12 Thread hardik shah

I am facing same problem . i am using xmpp/openfire. if you solved den can 
you share your code ??

 
On Friday, October 22, 2010 5:42:45 PM UTC+5:30, Jey wrote:

 Hi all, 

is there any way to keep my connection alive when the 
 screen goes off ? my xmpp connection is disconnected due to 
 ACTION_SCREEN_OFF event, 



 Regards, 
 Jey 



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] SurfaceView crash in 4.3 - SurfaceHolder.unlockCanvasAndPost(canvas) IllegalArgumentException

2013-08-12 Thread Romain Guy
 with perhaps a low-FPS View-based renderer as a fall-back from
SurfaceView, so at least 4.3 users can use
 the application, albeit with poor user experience.

Since the Canvas used by Views is hardware accelerated and since redraws
are v-sync'd you may actually get better framerate.

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

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




Re: [android-developers] Re: How do I flip images?

2013-08-12 Thread N. Paudyal
Hey, yes, this does help a little.  It doesnt allow flexiblity with regards
to animations though, for example, I cant do the flip like here...
http://developer.android.com/training/animation/cardflip.html with the
finger...


On Mon, Aug 12, 2013 at 3:05 PM, Shadab Khatib shadab.kha...@gmail.comwrote:

 Hello,
 For starters you can have a look at the Screen Slides methodology using
 ViewPager for Screen Slides.
 You can find the documentation for it in the link below
 http://developer.android.com/training/animation/screen-slide.html
 Hope it solves some part of your query.
 Thank You


 On Thursday, 8 August 2013 01:29:47 UTC+5:30, SonyPhoneGuy wrote:

 I am trying to do some flip animation.

 I have been able to successfully use the ObjectAnimator to do a few
 flips, but I am trying to re-create a more believable page flip - rather
 like a book flip - similar to what is used in Play Books.

 Is there any easy way to do this? any documentations around?

 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
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/6Nupi1tOLP4/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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




Re: [android-developers] SurfaceView crash in 4.3 - SurfaceHolder.unlockCanvasAndPost(canvas) IllegalArgumentException

2013-08-12 Thread Cory.Trese
An improved framerate would be a good topic for a blog post aimed at 
everyone who is using SurfaceViews today.

However, it would be best to focus on the poster's question about 
http://code.google.com/p/android/issues/detail?id=58385

So, this is a bug in 4.3 that impacts a widely used Android component. 
Numerous users and developers are impacted.

We should fix that.

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


[android-developers] Webscokets

2013-08-12 Thread Gink Labrev
Hello everyone.

Does Android implement the Java API for WebSocket (JSR-356) ?

http://docs.oracle.com/javaee/7/tutorial/doc/websocket.htm
http://jcp.org/aboutJava/communityprocess/final/jsr356/index.html

If not, is there a component that allows to use Websockets in Android ?

Regards,

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


Re: [android-developers] Webscokets

2013-08-12 Thread Kristopher Micinski
Not in the SDK to my knowledge.  But what are you trying to do?  There are
a lot of third party providers that offer good / sane Android alternatives
to Websockets, depending on your use case.

Kris


On Mon, Aug 12, 2013 at 2:21 PM, Gink Labrev gink.lab...@gmail.com wrote:

 Hello everyone.

 Does Android implement the Java API for WebSocket (JSR-356) ?

 http://docs.oracle.com/javaee/7/tutorial/doc/websocket.htm
 http://jcp.org/aboutJava/communityprocess/final/jsr356/index.html

 If not, is there a component that allows to use Websockets in Android ?

 Regards,

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


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


[android-developers] Admob in a View

2013-08-12 Thread shiva pendem
Hi,

I am working on a game with a view, i would like to display ads after 
completion of each level,

but i don't know how to display ads in view,

Can any one please send me the sample source to display ads in view to 
pendem.shiv...@gmail.com,

Thanks
Shiva Shankar

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Admob in a View

2013-08-12 Thread Nobu Games
I guess you are talking about interstitial ads. They are also sometimes 
called full screen ads:

https://developers.google.com/mobile-ads-sdk/docs/admob/advanced

On Monday, August 12, 2013 3:08:16 PM UTC-5, shiva pendem wrote:

 Hi,

 I am working on a game with a view, i would like to display ads after 
 completion of each level,

 but i don't know how to display ads in view,

 Can any one please send me the sample source to display ads in view to 
 pendem@gmail.com javascript:,

 Thanks
 Shiva Shankar


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Admob in a View

2013-08-12 Thread TreKing
On Mon, Aug 12, 2013 at 3:08 PM, shiva pendem pendem.shiv...@gmail.comwrote:

 but i don't know how to display ads in view,


This is one of the most common things to do in Android. Have you done *
anything* to solve this problem for yourself yet? Read some documentation?
Did some Googling? Wrote some code?

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

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




[android-developers] OpenGL ES 1.1 with alpha channel

2013-08-12 Thread Nobu Games
I have a problem with setting up OpenGL ES 1.1 with alpha channel support.

First of all: I need an alpha channel within OpenGL ES for performing alpha 
masking and blending effects. My game uses a texture with alpha channel for 
masking another texture. This only happens to work when I initialize OpenGL 
ES with the following configuration:

glView.setEGLConfigChooser(8, 8, 8, 8, 0, 8);

I could use the stencil buffer instead and parts of my game do that, too. 
However, my Nexus 7 tablet crashes pretty hard with a colorfully distorted 
screen when I use the stencil buffer in conjunction with alpha testing 
(which is necessary for discarding transparent pixels in the masking 
texture):

gl.glEnable(GL10.GL_ALPHA_TEST);
gl.glAlphaFunc(GL10.GL_GREATER, 0.05f);

Romain Guy says 
herehttps://groups.google.com/d/msg/android-developers/enRw0sImmN0/uXPWFJ7fQzcJthat
 the alpha channel set in setEGLConfigChooser does not need to be used 
unless the window is translucent. However, when I compile my game with:

glView.setEGLConfigChooser(8, 8, 8, 0, 0, 8); // alpha = 0

My texture masking effect does not work anymore. Instead I can only see the 
unmasked texture hovering as a square on the screen. All other textures 
with alpha channel are rendered correctly but only when I don't try to 
alpha-mask them.

I could leave the configuration with 8 bits alpha channel. However, then I 
get on some older devices crashes with an EGL_BAD_MATCH  error because 
their surface view apparently only supports RGB565 or maybe even something 
worse than that.

I tried fixing the problem as follows:

glView.setEGLConfigChooser(5, 6, 5, 8, 0, 8);

But that does not work either (config chooser cannot find a matching 
configuration). What can I do in this situation? How can I keep my alpha 
channel within OpenGL ES (I don't need it for the surface nor the window) 
and make older devices happy without crashing right on initialization?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Need help setting table column width

2013-08-12 Thread TreKing
On Mon, Aug 12, 2013 at 9:37 PM, Salil sali...@gmail.com wrote:

 I want to get the first column shrink to fit to the text size.


And what have you tried?

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

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