[android-developers] Rendering Problem with GLSurfaceView

2012-01-20 Thread Thomas Fjellstrom
I've started on a little toy app to get familiar with working with OpenGL 
and Android, and I can't seem to get anything to display (other than the 
initial screen clear).

I've pasted the relevant code here: http://pastebin.com/SpLJBfJ8

I can't figure out what I'm doing wrong.

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

2012-01-20 Thread Rocky
check www.alltechsolution.wordpres.com

On Fri, Jan 20, 2012 at 8:30 PM, Dhaval Varia dhavalkva...@gmail.comwrote:

 thanx sir
 On Jan 21, 2012 9:51 AM, Kumar Bibek coomar@gmail.com wrote:

 I am not sure about this, but I think it would work for you.

 When you press the Home button, there would be an Intent fired
 system-wide. So, you could write a receiver that tracks these particular
 kind of intent.

 Now, in the receiver, you could monitor the frequency of these intents.
 IF you could detect that the frequency is the same as you would want your
 app to be triggered, you can very well start a service or activity, or
 whatever.


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



 On Sat, Jan 21, 2012 at 9:34 AM, Dhaval Varia dhavalkva...@gmail.comwrote:

 i am going to make one emeergency alert app
 As we know we dont have time to open app in emergency.
 so it should fire on some hard key.
 so plz suggeat alternet solution
 thanx.
 On Jan 21, 2012 9:25 AM, Kumar Bibek coomar@gmail.com wrote:

 There would always be a few things which you cannot do.

 I don't understand how does this No affect the popularity of Android.

 Their could be other ways to solve your problem, that is, if you could
 mention exactly what you are trying to do.

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



 On Sat, Jan 21, 2012 at 9:21 AM, Dhaval Varia 
 dhavalkva...@gmail.comwrote:

 i m getting all the times answer no..
 then why android is this mch popular?
 On Jan 21, 2012 8:56 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 Basically, no.

 To explain the basically: you can't do it.

 kris

 On Fri, Jan 20, 2012 at 10:19 PM, Dhaval Varia 
 dhavalkva...@gmail.com wrote:
  dear,
 
  is there any way to override home key?
 
  i want to start my app,by pressing home key for few times.
  thanx
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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

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


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

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


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

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




-- 
Thanks  Regards

Rakesh Kumar Jha
Android Developer, Trainer and Mentor
Bangalore
Skype - rkjhaw
(O) +918050753516
(R) +919886336619

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

[android-developers] Re: Regarding integration of ffmpeg libraries with android sdk

2012-01-20 Thread Himanshi Saxena
The platform is windows..please reply

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


Re: [android-developers] override home key

2012-01-20 Thread Kristopher Micinski
That doesn't make sense...

Every time the the user presses the home key you want to think you're
in emergency mode?

(By the way, you know that phones, at least in the US, do this already
when you dial 911, I believe..)

kris

On Fri, Jan 20, 2012 at 11:04 PM, Dhaval Varia dhavalkva...@gmail.com wrote:
 i am going to make one emeergency alert app
 As we know we dont have time to open app in emergency.
 so it should fire on some hard key.
 so plz suggeat alternet solution
 thanx.

 On Jan 21, 2012 9:25 AM, Kumar Bibek coomar@gmail.com wrote:

 There would always be a few things which you cannot do.

 I don't understand how does this No affect the popularity of Android.

 Their could be other ways to solve your problem, that is, if you could
 mention exactly what you are trying to do.

 Thanks and Regards,
 Kumar Bibek

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



 On Sat, Jan 21, 2012 at 9:21 AM, Dhaval Varia dhavalkva...@gmail.com
 wrote:

 i m getting all the times answer no..
 then why android is this mch popular?

 On Jan 21, 2012 8:56 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 Basically, no.

 To explain the basically: you can't do it.

 kris

 On Fri, Jan 20, 2012 at 10:19 PM, Dhaval Varia dhavalkva...@gmail.com
 wrote:
  dear,
 
  is there any way to override home key?
 
  i want to start my app,by pressing home key for few times.
  thanx
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
  android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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

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


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

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

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


Re: [android-developers] Re: Restrict opening Settings application

2012-01-20 Thread Kristopher Micinski
You're talking about the fact that you don't want the user to reset
your app from the settings app on the phone right?

If this is the case then, no, you can't change the behavior of that
app, so you'll just need to either get over it, or design your app to
recover from the situations when its data has been erased.

kris

On Sat, Jan 21, 2012 at 1:15 AM, ramkumar pinninti
ramkumar.pinni...@gmail.com wrote:
 Thanks for the reply,
 Mr.Sheikh Basiruddin i cannot understand your idea.Do i need to write
 a new Settings application?

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

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


[android-developers] Re: Rendering Problem with GLSurfaceView

2012-01-20 Thread Alexander Mikhnin
Check this tutorial
http://developer.android.com/intl/zh-CN/resources/tutorials/opengl/opengl-es10.html

In addition there is class RectF. And it is a bad idea to allocate
objects in render method.
Do you have calls to GLSurfaceView.onPause and GLSurfaceView.onResume
in your Activty's onPause and onResume?

On 21 янв, 10:25, Thomas Fjellstrom tfjellst...@gmail.com wrote:
 I've started on a little toy app to get familiar with working with OpenGL
 and Android, and I can't seem to get anything to display (other than the
 initial screen clear).

 I've pasted the relevant code here:http://pastebin.com/SpLJBfJ8

 I can't figure out what I'm doing wrong.

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


[android-developers] Re: Android webview retain form data when orientation changes

2012-01-20 Thread IndianDragon
Thanks for the reply.

Actually Iam using fragment now for webview like you said.
But I call the Fragment/webview class from Oncreate() in an Activity
which extends FragmentActivity, which basically makes the purpose of
me using fragment useless as when orientation changes the the
Oncreate() restarts again creating new instance of Fragment/webview .

Iam using setRetainInstance(true) in the Fragment/Webview .

How can I make sure that, the webiview/Fragment does not get recreated
even when it's call from Oncreate() in the Activity is recreated
everytime when Orientation changes ?

Should I be using a onSaveInstanceState() and restorestate() in the
Fragment/webview class ?


On Jan 20, 3:19 am, Mark Murphy mmur...@commonsware.com wrote:
 Better yet would be to have the WebView in a dynamic fragment with
 setRetainInstance(true). Passing a widget between activity instances
 requires some patch-up work to avoid memory leaks -- you're better
 served letting existing Android code handle that.









 On Thu, Jan 19, 2012 at 5:15 PM, TreKing treking...@gmail.com wrote:
  On Wed, Jan 18, 2012 at 11:07 AM, IndianDragon developerdra...@gmail.com
  wrote:

  How to retain the form data in the webview after the change
  the orientation ?

  Not sure if it's the best solution, but you could use
  onRetainNonConfigurationInstance() to keep the same WebView instance alive
  across Activity changes.

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

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

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

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


Re: [android-developers] Re: Copyright question: Can I remix a Final Fantasy song and use it in my game?

2012-01-20 Thread Jim Graham
On Fri, Jan 20, 2012 at 03:12:10PM +0100, Chihwah wrote:
 Op 20-1-2012 14:51, Jim Graham wrote:
 On Thu, Jan 19, 2012 at 12:50:30PM -0800, hzakimoto wrote:
 
 I'm also a musician.

 You've no doubt already done some composition, then, so why not just
 write your own?  Or just ad lib.  Either way, it's a LOT easier, as
 a musician, to just write your own music than to get out of legal
 trouble for violating copyright laws  Besides, it's not as if
 you're going to be writing a concerto...all you need is background
 and effects.  In other words, even easier.

 I am sure that is not legal, you would still be using parts of an
 original song, so you need permission.

Ummm, think about what you just wrote.  Now open your eyes so you can
actually read it, and look at it again.

Now look at the post you're responding to (mine).  Try READING it.

Now, here's my question for you:  are you on crack or something?  If he
writes HIS OWN MUSIC, how do you get the insane idea that it'd be illegal
for him to use it?  Of course, he could always ask himself for permission
to use parts of his own original [composition] .  :-)

Geez, I never knew copyright law prevents you from using YOUR OWN STUFF!

Later,
   --jim

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

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

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


[android-developers] Re: Android webview retain form data when orientation changes

2012-01-20 Thread IndianDragon
Thanks for your reply, but onRetainNonConfigurationInstance() was not
helpful for my situation and a Fragement/Webview solution seemed
better. So Iam working on a Fragment based webview for my issue.

On Jan 20, 3:15 am, TreKing treking...@gmail.com wrote:
 On Wed, Jan 18, 2012 at 11:07 AM, IndianDragon 
 developerdra...@gmail.comwrote:

  How to retain the form data in the webview after the change
  the orientation ?

 Not sure if it's the best solution, but you could use
 onRetainNonConfigurationInstance() to keep the same WebView instance alive
 across Activity changes.

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

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


Re: [android-developers] Re: Rendering Problem with GLSurfaceView

2012-01-20 Thread Thomas Fjellstrom
On Sat Jan 21, 2012, Alexander Mikhnin wrote:
 Check this tutorial
 http://developer.android.com/intl/zh-CN/resources/tutorials/opengl/opengl-e
 s10.html
 
 In addition there is class RectF.

I bet it doesn't come with a render() mehod ;) This code is really just a 
proof of concept to get the GL bits working, then I move on to more 
complicated objects.

 And it is a bad idea to allocate objects in render method.

Good to know. I'll eventually switch to a scene-graph of sorts, so the 
allocation in the render method will go away.

 Do you have calls to GLSurfaceView.onPause and GLSurfaceView.onResume
 in your Activty's onPause and onResume?

Yes I do.

 On 21 янв, 10:25, Thomas Fjellstrom tfjellst...@gmail.com wrote:
  I've started on a little toy app to get familiar with working with OpenGL
  and Android, and I can't seem to get anything to display (other than the
  initial screen clear).
  
  I've pasted the relevant code here:http://pastebin.com/SpLJBfJ8
  
  I can't figure out what I'm doing wrong.


-- 
Thomas Fjellstrom
tho...@fjellstrom.ca

-- 
Thomas Fjellstrom
tfjellst...@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] Re: Copyright question: Can I remix a Final Fantasy song and use it in my game?

2012-01-20 Thread Kristopher Micinski
I suspect that what happened was that he was using GMail and read a
previous thread in the conversation to which he was replying, and
*then* pushed reply, which automatically quotes the entire
conversation and dumps you at the end of it, I occasionally do this
and have to correct for it.

kris

On Sat, Jan 21, 2012 at 2:32 AM, Jim Graham spooky1...@gmail.com wrote:
 On Fri, Jan 20, 2012 at 03:12:10PM +0100, Chihwah wrote:
 Op 20-1-2012 14:51, Jim Graham wrote:
 On Thu, Jan 19, 2012 at 12:50:30PM -0800, hzakimoto wrote:
 
 I'm also a musician.

 You've no doubt already done some composition, then, so why not just
 write your own?  Or just ad lib.  Either way, it's a LOT easier, as
 a musician, to just write your own music than to get out of legal
 trouble for violating copyright laws  Besides, it's not as if
 you're going to be writing a concerto...all you need is background
 and effects.  In other words, even easier.

 I am sure that is not legal, you would still be using parts of an
 original song, so you need permission.

 Ummm, think about what you just wrote.  Now open your eyes so you can
 actually read it, and look at it again.

 Now look at the post you're responding to (mine).  Try READING it.

 Now, here's my question for you:  are you on crack or something?  If he
 writes HIS OWN MUSIC, how do you get the insane idea that it'd be illegal
 for him to use it?  Of course, he could always ask himself for permission
 to use parts of his own original [composition] .  :-)

 Geez, I never knew copyright law prevents you from using YOUR OWN STUFF!

 Later,
   --jim

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

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

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

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

2012-01-20 Thread Pawan
Hi,

I am trying open twitter link : http://mobile.twitter.com/pawan_rathore88 
in my activity. 
If I set WebViewClient to webview I am getting blank page.
But when I load url without setting any webviewclient, it loads page 
properly. 
Does anyone have an idea what can be a problem. 
Following is my code snippet.

webview = (WebView) findViewById(R.id.webview);
webview.getSettings().setJavaScriptEnabled(true);
//if I comment the following line then webpage loads properly in default 
Android browser.
webview.setWebViewClient(new WebViewClient() {
   public void onReceivedError(WebView view, int errorCode, String 
description, String failingUrl) {
 Toast.makeText(activity, Oh no!  + description, 
Toast.LENGTH_SHORT).show();
   }
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {

Log.v(tag, url : + url);
view.loadUrl(url);
return true;
}
 });
webview.loadUrl(http://mobile.twitter.com/pawan_rathore88;);

Thanks,
Pawan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Copyright question: Can I remix a Final Fantasy song and use it in my game?

2012-01-20 Thread Jim Graham
On Sat, Jan 21, 2012 at 02:43:42AM -0500, Kristopher Micinski wrote:
 I suspect that what happened was that he was using GMail and read a
 previous thread in the conversation to which he was replying, and
 *then* pushed reply,

That might work, except for one thing:  it was a direct reply to my post,
not one that just happened to include my post  :-)

 ...which automatically quotes the entire conversation

Replies don't quote the entire coversation...they only quote the previous
post (which, we can assume, was edited, like any other, to quote only the
spefic bits that are being replied to.

 and dumps you at the end of it

Not with any e-mail client I've ever used...when you go into the editor
for your reply, you start at the top (headers) and move down to trim the
quoted text and add your reply.

But then, at this point, we're getting WAY off-topic here...and I'm about
to go to bed for a few hours of sleep, so

Later,
   --jim

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

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

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


<    1   2   3