[android-developers] Re: Dialog box without title

2011-03-27 Thread Dixi
use this, this will definitely remove the TITLE from dialog box dialog.requestWindowFeature(dialog.getWindow().FEATURE_NO_TITLE); -- Regards Dixit Wadhwani On Mar 27, 12:32 am, Archit Jain dce.arc...@gmail.com wrote: Hi all, Is there a way, I can remove title from the default dialog box ?

[android-developers] Re: Dialog box without title

2011-03-27 Thread Doug
On Mar 26, 1:24 pm, TreKing treking...@gmail.com wrote: On Sat, Mar 26, 2011 at 2:32 PM, Archit Jain dce.arc...@gmail.com wrote: Dialog alertDialog = new Dialog(getApplicationContext()); Never use getApplicationContext() - it's pointless and doesn't work for Dialogs. I'm surprised you're

[android-developers] Re: Augmented Reality and Spherical 360º Views

2011-03-27 Thread Andreas
Hi miguel, Keep the current transformation matrix in a history array (where all(40-50) the past transformations are kept) and on each change add all the past transformations with the current and divide by their number.. Regards, Andreas On Mar 26, 10:01 pm, miguel miguelp...@gmail.com wrote:

[android-developers] Specifying textAppearance using a custom attribute

2011-03-27 Thread Mark Carter
If I specify the style directly, everything works fine: TextView ... android:textAppearance=@style/MyTextAppearance / where styles.xml has: style name=MyTextAppearance parent=@android:style/TextAppearance ... /style However, I want to use a custom attribute so that the actual style used is

[android-developers] Re: Bluetooth

2011-03-27 Thread ehpaul
Yes. You can use Bluecove API. On Mar 26, 7:57 pm, Kristopher Micinski krismicin...@gmail.com wrote: Nice find then, I hadn't known about that, but is it possible from Java? Kris On Sat, Mar 26, 2011 at 10:24 PM, ehpaul hansp...@gmail.com wrote: It looks a better way is to make a

Re: [android-developers] Re: How to capture key events from View subclass

2011-03-27 Thread Rich E
Thanks Pepijn, I am overriding onCreateInputConnection (and onCheckIsTextEditor) although neither of these give me per-keytap events - from what I have read, onKeyDown/Up only give per-keytap event signals on hard keyboards, not soft. I did find out about the TextWatcher class from

Re: [android-developers] Re: How to capture key events from View subclass

2011-03-27 Thread Rich E
Harsh, this doesn't make any sense. You are suggesting that implementing onKeyDown will cause onTouchEvent to receive touches from the keyboard? That is not right. Also, the touches are not in my view, they are in the global keyboard. From what I have found in other posts, onKeyDown/Up does not

Re: [android-developers] Time Out on Insistent Notifications

2011-03-27 Thread Mark Murphy
On Sat, Mar 26, 2011 at 11:06 PM, Jake Colman col...@ppllc.com wrote: Is there an easy way to set a time limit on the insistent notification? Not really, at least not for anything that I would consider easy. Or is there a way to manually clear the notification sound/vibrate/LED but without

[android-developers] Re: Augmented Reality and Spherical 360º Views

2011-03-27 Thread miguel
First of all, thank you all, thank you very much. The kalman filter is something I have to test, I have read some about this and might try. @Andreas, you think that would give an smooth move to the layout objects? It does work for you? If that could be a solution lets try it. Isnt it a little bit

[android-developers] Re: totally 2d

2011-03-27 Thread Nicholas Johnson
Bob, I recently released a game (actually just this week, called Prism or Prism Light by Shadowpuppets), which doesn't use OpenGL at all. I just draw onto the canvas from my overrided onDraw method, and then invalidate only the part of the view which contains animation. I have determined that

Re: [android-developers] Re: How to capture key events from View subclass

2011-03-27 Thread Rich E
Harsh, it doesn't make sense that implementing onTouchEvent in a subclassed View would return the soft keyboard's touch events (I want to know which key is pressed on the soft keyboard, so I can draw it in my View). Also, please email responses to the google group so other's can benefit from this

[android-developers] Re: Developing app to connect with websites

2011-03-27 Thread Wolf85
Thank you for your answer On Mar 24, 10:43 pm, TreKing treking...@gmail.com wrote: On Wed, Mar 23, 2011 at 7:24 PM, Wolf85 msm...@gmail.com wrote: I would like to know if it is possible to develop an app that connects with a website(s) Yes, it's possible. You should probably make sure

Re: [android-developers] Re: Developing app to connect with websites

2011-03-27 Thread Nasif Noorudeen
you have to call thier webservices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Scrollbar not working

2011-03-27 Thread New Developer
I have the following in the XML TableLayout android:id=@+id/TableLayout01 android:layout_width=fill_parent android:layout_height=fill_parent android:scrollbars=vertical android:scrollbarSize=20dp android:scrollbarAlwaysDrawVerticalTrack=true android:stretchColumns=*

Re: [android-developers] Re: findViewById returning NULL

2011-03-27 Thread New Developer
Thanks It would appear I'm the same as Doug and did as you requested OS: Mac OS X 10.6.6 Eclipse: Helios SR2 ADT: 10.0.0 thanks again -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Augmented Reality and Spherical 360º Views

2011-03-27 Thread miguel
If it can help, what I have already implemented is something like this: I have a main activity. This activity instanciates 2 services that feeds the main activity wih data. One is for the location and one is for the sensors. The main activity has a frame view holding the surface for the camera

[android-developers] back button failure

2011-03-27 Thread chcat
Hello, I have an application where MediaRecord activity is called from the main activity: application android:icon=@drawable/mzeal android:label=@string/ app_name android:debuggable=true activity android:name=.Main android:label=@string/app_name intent-filter

Re: [android-developers] Scrollbar not working

2011-03-27 Thread Mark Murphy
Android does not use scrollbars for more than a momentary display of position. This is by design. The concept of a scrollbar as being the mechanism for scrolling is for mouse-based UIs. Touchscreens scroll via gestures sliding the whole thing up and down. I strongly encourage you to use some

[android-developers] Re: Getting a Google Account token to use for Google Reader calls?

2011-03-27 Thread Spiral123
Sounds obvious, but in my experience the most common reason for a 401 from the server with Google APIs is getting the service name wrong. This is especially common when folks copy existing auth code fragments to get something working - at least it did with me! For reader I believe the service

[android-developers] Re: Augmented Reality and Spherical 360º Views

2011-03-27 Thread Adam Ratana
Hi Miguel, I am working on something similar, although with less of a focus on the camera, maybe we can combine forces a bit here. I found a very smooth filter in the open source code for Marine Compass -- check it out in the market, it's one of the smoothest filters out of the various filtering

Re: [android-developers] Re: Starting An Android App From An Url

2011-03-27 Thread perumal subramaniam
Hi All, Thanks for all the info. I specified my app's activity to be BROWSABLE in the AndroidManifest file. I tried by using my own URI scheme. (e.g. myownapp://dummy) Then I wrote a sample html page, and specified a link which upon clicking will start the app. Of course for this to work it must

Re: [android-developers] Re: Starting An Android App From An Url

2011-03-27 Thread Kostya Vasilyev
27.03.2011 18:53, perumal subramaniam пишет: As I am testing with my own app and my own webpage, I think I need not stick to using universal namespace. ( I hope i am correct but this method works!) You still do. If someone else uses myownapp:// (which is not really far-fetched), your

Re: [android-developers] Augmented Reality and Spherical 360º Views

2011-03-27 Thread Greg Donald
On Sat, Mar 26, 2011 at 9:01 PM, miguel miguelp...@gmail.com wrote: Do you think they are using openGL? Have you had a look at how AndEngine does it's AR stuff? I know the Qualcom AR SDK uses OpenGL. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are

Re: [android-developers] Re: Dialog box without title

2011-03-27 Thread TreKing
On Sun, Mar 27, 2011 at 2:25 AM, Doug beafd...@gmail.com wrote: It's not pointless, and please stop telling people that. :-) You just have to know when to use it. Use it when you need to store a context in an object that lives longer than an instance of an activity or service, but don't

Re: [android-developers] Re: Dialog box without title

2011-03-27 Thread Kostya Vasilyev
27.03.2011 19:05, TreKing пишет: Do you have a good example of when storing a Context like this is a good idea? I'm just curious. I do. Singletons. Or, to use a more simple name, manager or utility classes that provide reusable functionality, which needs to be available to more than one

[android-developers] Re: Devices not detected

2011-03-27 Thread SJ
Is they still detected as USB devices? On Mar 25, 10:34 am, Kunju Vava android...@gmail.com wrote: hi You just tried to on/off the device or plse note Version of Android (2.1, 2.2)  What version of Windows? 32-bit or 64-bit?  Have you been able to only connect USB, WiFi, both or none

[android-developers] Storing Context vs Passing As Parameter Where Needed

2011-03-27 Thread TreKing
Spawning off the Dialog box without title thread to discuss the pros and cons of storing Context as a member vs passing a parameter. Here's the last bit of the discussion from that thread: On Mar 26, 1:24 pm, TreKing treking...@gmail.com wrote: On Sat, Mar 26, 2011 at 2:32 PM, Archit Jain

[android-developers] Simulation of user interaction.

2011-03-27 Thread SJ
Hallo I'm interesting if there any way to simulate user activity on Android device. I'm interesting in softkeys, hwkeys, anything. Are there some limitation? Is it possible from user level (Java) or or kernel level (C), through jailbreak or straight, through BlueTooth or over Network or any

[android-developers] Re: Storing Context vs Passing As Parameter Where Needed

2011-03-27 Thread TreKing
On Sun, Mar 27, 2011 at 10:16 AM, Kostya Vasilyev kmans...@gmail.com wrote: 27.03.2011 19:05, TreKing пишет: Do you have a good example of when storing a Context like this is a good idea? I'm just curious. I do. Singletons. Or, to use a more simple name, manager or utility classes that

Re: [android-developers] Re: Dialog box without title

2011-03-27 Thread TreKing
On Sun, Mar 27, 2011 at 10:16 AM, Kostya Vasilyev kmans...@gmail.comwrote: 27.03.2011 19:05, TreKing пишет: Do you have a good example of when storing a Context like this is a good idea? I'm just curious. I do. Singletons. Or, to use a more simple name, manager or utility classes that

Re: [android-developers] Scrollbar not working

2011-03-27 Thread New Developer
Thanks I have tried an android phone Okay let me ask this how then to you correctly test a ListView with a scroll on the emulator ?? What is the correct method ? Thanks again On Mar 27, 2011, at 8:28 AM, Mark Murphy wrote: Android does not use scrollbars for more than a momentary display

Re: [android-developers] Re: Starting An Android App From An Url

2011-03-27 Thread Mark Murphy
On Sun, Mar 27, 2011 at 11:00 AM, Kostya Vasilyev kmans...@gmail.com wrote: Since it's your own site, just use its name to filter for http://perumal.subramaniam.com/myapp; or whatever. As a bonus, you can even put a real Web page there, with instructions to the user to go download your app.

Re: [android-developers] Scrollbar not working

2011-03-27 Thread Mark Murphy
Use your mouse to simulate a finger. On Sun, Mar 27, 2011 at 11:43 AM, New Developer secur...@isscp.com wrote: Thanks I have tried an android phone Okay let me ask this  how then to you correctly test a ListView  with a scroll  on the emulator ?? What is the correct method ? Thanks again

[android-developers] Two functions Button?

2011-03-27 Thread Gabriel
How I create a button with two functions? For example, when I click it once it starts a sound, and if I click it again it stops the sounds. Or a Mute button, that when I click it mutes all the sounds and change the imagebutton for a mute off image and if I click it again the sound returns. I

Re: [android-developers] Re: Storing Context vs Passing As Parameter Where Needed

2011-03-27 Thread Kostya Vasilyev
27.03.2011 19:27, TreKing пишет: Do you have something more concrete? :-) I was already being quite specific. Any Singleton, manager, or utility class can take Context as a parameter for the functions it needs it for, making it clear to the user of the API that a Context is needed for that

Re: [android-developers] Two functions Button?

2011-03-27 Thread Kostya Vasilyev
Sounds like maybe one of these: http://developer.android.com/reference/android/widget/ToggleButton.html Or a CheckBox with application-specified drawables. -- Kostya 27.03.2011 19:55, Gabriel пишет: How I create a button with two functions? For example, when I click it once it starts a

Re: [android-developers] What is best game engine for Android?

2011-03-27 Thread Justin Giles
For 2D, try Andengine (andengine.org). There's also libgdx ( http://code.google.com/p/libgdx/) For 3D, Unity has some tools (for a price). On Sun, Mar 27, 2011 at 11:00 AM, Droid rod...@gmail.com wrote: I reckon that I might need to use game type of content soon, especially with Xoom. So

[android-developers] Regarding screen resolution

2011-03-27 Thread Laxmi Verma
Hi , 1) Can you please provide some idea on how to make the screens to support multiple displays for e.g. hdpi, qvga, ldpi, etc. In HDPI screen my application is running perfectly. But in qvga screen display its not dispalying the screen properly. 2) I am downloading xml from net connection,

[android-developers] Re: Two functions Button?

2011-03-27 Thread Dixi
use the even-odd logic.. like int i=1; button.onclick() { if(i%2==0) { ///operation... i++; } else { //operation i++; } } i think u got it... i hope it works - Regards Dixit Wadhwani

Re: [android-developers] Re: Storing Context vs Passing As Parameter Where Needed

2011-03-27 Thread Mark Murphy
On Sun, Mar 27, 2011 at 11:58 AM, Kostya Vasilyev kmans...@gmail.com wrote: Any Singleton, manager, or utility class can take Context as a parameter for the functions it needs it for, making it clear to the user of the API that a Context is needed for that functionality Sure, that's another

[android-developers] best way to save images files

2011-03-27 Thread Igor Nesralla Ribeiro
Hi, I have this scenario : I have 50 images files of restaurants , that restaurants(name,city,address,image name) i saved into a database..My question is..how and where I saved this images files.and how I display this images files into a imageview Thanks in advance.. Igor -- You

[android-developers] Re: Two functions Button?

2011-03-27 Thread Gabriel
It's not working Dixie. Can you put this code more clear? On 27 mar, 13:09, Dixi dixitwadhw...@gmail.com wrote: use the even-odd logic.. like int i=1; button.onclick() {        if(i%2==0)          {              ///operation...              i++;          }         else        {      

Re: [android-developers] best way to save images files

2011-03-27 Thread Kevin Anthony
I would think the best way to save them is cached on a server. This way they are always up to date and you don't use phone memory Sent from a phone On Mar 27, 2011 12:05 PM, Igor Nesralla Ribeiro nesra...@gmail.com wrote: Hi, I have this scenario : I have 50 images files of restaurants

Re: [android-developers] Re: Storing Context vs Passing As Parameter Where Needed

2011-03-27 Thread Kostya Vasilyev
27.03.2011 20:17, Mark Murphy пишет: Singletons, manager, or utility classes should not be caching a Context. They can and should if needed or wanted. However ... At most, they should be caching an Application, to prevent people from accidentally caching short-lived Contexts (e.g.,

[android-developers] Re: Regarding screen resolution

2011-03-27 Thread Nicholas Johnson
Different screen resolutions started to get support in API Level 4 (1.6). So, I recommend using API Level 4 and then reading the documention on the Android Dev sitehttp://developer.android.com/guide/practices/screens_support.html. It's really good. Nick -- You received this message because

[android-developers] What is best game engine for Android?

2011-03-27 Thread Droid
I reckon that I might need to use game type of content soon, especially with Xoom. So which is the easiest to get started on? Is there one starting to stand out from the crowd? I prefer late adopting so that I get a viable game engine that I could use into the future. Not impressed with openGL in

Re: [android-developers] Re: Storing Context vs Passing As Parameter Where Needed

2011-03-27 Thread Mark Murphy
On Sun, Mar 27, 2011 at 12:30 PM, Kostya Vasilyev kmans...@gmail.com wrote: 27.03.2011 20:17, Mark Murphy пишет: Singletons, manager, or utility classes should not be caching a Context. They can and should if needed or wanted. However ...  At most, they should be caching an Application, to

Fwd: [android-developers] Re: Regarding screen resolution

2011-03-27 Thread Laxmi Verma
Hi, I had make entry of support-screens tag in the AndroidManifest.xml, but the header which i customized is stil not coming in proper format. Please help!! Thanks!! -- Forwarded message -- From: Nicholas Johnson metthejohn...@gmail.com Date: Sun, Mar 27, 2011 at 9:58 PM

RE: [android-developers] best way to save images files

2011-03-27 Thread Igor Nesralla Ribeiro
Kevin, Did you have any reference to send me ?!? Thanks Igor From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Kevin Anthony Sent: domingo, 27 de março de 2011 13:27 To: android-developers@googlegroups.com Subject: Re:

Re: [android-developers] Re: Storing Context vs Passing As Parameter Where Needed

2011-03-27 Thread Kostya Vasilyev
We're in agreement then :) I like how you use Application class in method signature to ensure correctness (although I tend to call getApplicationContext inside MySingleton). -- Kostya 27.03.2011 20:36, Mark Murphy пишет: My point was that you should not have: class MySingleton {

Re: [android-developers] Re: Storing Context vs Passing As Parameter Where Needed

2011-03-27 Thread TreKing
On Sun, Mar 27, 2011 at 10:58 AM, Kostya Vasilyev kmans...@gmail.comwrote: Any Singleton, manager, or utility class can take Context as a parameter for the functions it needs it for, making it clear to the user of the API that a Context is needed for that functionality Sure, that's another

Re: [android-developers] Re: Storing Context vs Passing As Parameter Where Needed

2011-03-27 Thread Kostya Vasilyev
27.03.2011 21:14, TreKing ?: On Sun, Mar 27, 2011 at 10:58 AM, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: Any Singleton, manager, or utility class can take Context as a parameter for the functions it needs it for, making it clear to the user

[android-developers] detect usb connected/disconnected event

2011-03-27 Thread Károly Holczhauser
Hi all! I had read in a lot of forum it is a problem to developers to write a program witch can detect the connected / disconnected USB event. Here is my solution: Manifest.xml : receiver android:name=.MyReceiver intent-filter action

[android-developers] how create a video with byte array

2011-03-27 Thread Danilo Veras
I searched and not found how to do this. I do download a video and read the bytes through InputStream. someone know or have any idea of how do ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: How to capture key events from View subclass

2011-03-27 Thread Dianne Hackborn
Correct the IME does not send you raw keyboard events. It may not even *have* raw keyboard events. Consider a handwriting IME, for example. That is why the interaction with it is through InputConnection. Every interaction you can have with the IME is basically through InputConnection. Note

[android-developers] Re: Two functions Button?

2011-03-27 Thread Dixi
package org.dixit.com import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class ChangeTextValue extends Activity { /** Called when the activity is first created. */ private int i =

Re: Fwd: [android-developers] Re: Regarding screen resolution

2011-03-27 Thread Nicholas Johnson
Please read the link I posted in my original comment. It'll tell you where to go from there. 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

Re: [android-developers] Fetching messages from a server

2011-03-27 Thread Kevin Anthony
Thanks, that did the trick On Sat, Mar 26, 2011 at 12:32 PM, Mark Murphy mmur...@commonsware.com wrote: On Sat, Mar 26, 2011 at 12:24 PM, Kevin Anthony kevin.s.anth...@gmail.com wrote: I have an application that needs to fetch messages from a server, currently i do this via a service, running

[android-developers] Re: Specifying textAppearance using a custom attribute

2011-03-27 Thread Mark Carter
I found out the problem: The LayoutInflater had been retrieved from the Application context and not an Activity context and so the theme had not been applied... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] custom dialog frame - how to get a pointy triangle edge

2011-03-27 Thread Nick Longinow
Like a balloon-style dialog, with one side of the dialog having a triangle coming out of it so that the dialog appears to point to some portion of the screen. I've seen these in alot of apps - what is the basic idea here? Is it use of shapes and themes? Any simple examples out there? -- You

[android-developers] Re: custom dialog frame - how to get a pointy triangle edge

2011-03-27 Thread Hari Edo
If you mean like the SMS app, you can do that with a .9.png image file, also called a Nine Patch. http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch On Mar 27, 10:34 pm, Nick Longinow nicklongi...@gmail.com wrote: Like a balloon-style dialog, with one side of the

[android-developers] How to make Secure SDCard

2011-03-27 Thread spurwa
Please help, Anyone know how to make secure SDCard as Secure Element in Android ? Can We use ADB Shell ? thanks, SGP -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

[android-developers] Re: How to access files in sdcard from the server running in android

2011-03-27 Thread SREEHARI
Hi, Please help me on this. I am not getting any idea to resolve this. Regards, Sreehari. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] Re: display image from net

2011-03-27 Thread Oscar
that's fine, Does the ssl use user/password? On Mar 26, 3:49 am, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: welll i have solved dis one now i am using following code         Bitmap bitmap = null;         InputStream in = null;         try {               URL url = new URL(URL);      

[android-developers] Re: Open GL texture is shown on emulator but not on the mobile

2011-03-27 Thread Oscar
Did you tried in another device, maybe could be some problem with this device On Mar 26, 2:54 am, MobileVisuals eyv...@astralvisuals.com wrote: My resources are in the res\drawable-nodpi directory. It is a PNG image with 256*256 size. Shouldn't that be enough? On Mar 25, 10:34 pm, String

Re: [android-developers] Re: Regarding screen resolution

2011-03-27 Thread Dianne Hackborn
I strongly recommend you use android:targetSdkVersion=4 (or higher), so you don't need to do anything with supports-screens. And consider just making your android:minSdkVersion=4 -- there are few enough 1.5 devices around these days to be worth worrying about for a new app. On Sun, Mar 27, 2011

Re: [android-developers] Re: display image from net

2011-03-27 Thread Robin Talwar
i dont think so i am just trying to show the user's facebook dp on my application when he logs into facebook using dialog interface. I have read the facebook sdk for android and i am able to fetch all data from user profile To get the image from the net i have to get the image from following

Re: [android-developers] Re: totally 2d

2011-03-27 Thread Dianne Hackborn
Something to be aware of -- if you are running on a Tegra 2 class device like the Xoom, you will almost certainly need hardware accelerated drawing for any kind of decent performance. This is due to a combination of the screen having many more pixels than most existing phones, and the Tegra 2 CPU