[android-developers] Re: How to set the color of listView unused area in 2.3.3

2011-07-24 Thread andrew
Are you sure that area is part of your listview, and not the layout that contains it due to the list view height being determined by it's contents? I.e. I am not sure listview has any "unused area" If so, change the background color of layout containing the list view to match the list view color.

[android-developers] Re: Offering free and paid APKs on the Market

2011-07-24 Thread keyboardr
Honestly, you'll probably do better to have a single .apk and use an in-app purchase to do the free to paid conversion. There was another thread on here that discussed this extensively. On Jul 24, 2:34 am, Davy wrote: > Hi, > > I'm thinking about offering a free / paid version of my app on the M

RE: [android-developers] Compiling an app with JAR files or else ...

2011-07-24 Thread Emre A. Yavuz
Thanks Mark ... Emre > From: mmur...@commonsware.com > Date: Sun, 24 Jul 2011 17:21:23 -0400 > Subject: Re: [android-developers] Compiling an app with JAR files or else ... > To: android-developers@googlegroups.com > > On Sun, Jul 24, 2011 at 5:14 PM, Emre A. Yavuz wrote: > > We have an app

Re: [android-developers] SharedUserId: Things that Cannot Change http://android-developers.blogspot.com/2011/06/things-that-cannot-change.html

2011-07-24 Thread Nikolay Elenkov
On Mon, Jul 25, 2011 at 12:39 PM, Greg Giacovelli wrote: > Would SharedUserId be worth calling out. I currently don't have one set on > any of my apps, but after playing around with the feature while trying to > get a Test Project to run as the same user ...  I think it's not really > possible to

Re: [android-developers] Re: Facebook Integration issue

2011-07-24 Thread gaurav gupta
Hi Shanmugam, Thanks For ur reply. Facebook Updation creates problem in previous code. i solved this problem, but still i failed to implement SSO. Without SSO it will work. Check this discussion. https://github.com/facebook/facebook-android-sdk/issues/191 Let me know if u get any solution regardi

[android-developers] Re: starting service from launch icon

2011-07-24 Thread Zsolt Vasvari
AFAIK, if finish() is called from onCreate(), the view is never shown. I've read this somewhere in the docs and I use this technique to set a user configurable place to start my app. It calls an activity and if it's not the starting "screen", it navigates away from it and finish()-es it right awa

[android-developers] Re: popupwindow

2011-07-24 Thread Zsolt Vasvari
An interface is exactly just that (plus constant declerations). With abstract classes, you can have static methods and everything else that comes with a proper class. The drawback is, of course, that you can only inherit from at most one abstract class. I cannot think of even a single example, o

[android-developers] java.lang.IllegalArgumentException: Unknown URL with Android 2.1

2011-07-24 Thread Sarath Krishna
Wrote the following code to insert an item into sqlite database. This code worked fine in Android 1.6 device but I got an error in Android 2.1 device public static final String PROVIDER_NAME = "org.books"; public static final Uri CONTENT_URI = Uri.parse("content://"+ PROVIDER_NAME +

[android-developers] Re: starting service from launch icon

2011-07-24 Thread rich friedel
Did you use the activity theme android:theme="@android:style/ Theme.NoDisplay" -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send ema

[android-developers] Game not functioning properly after it is recreated by Android.

2011-07-24 Thread Raghav Sood
Hi, Yesterday I ported one of my windows games to Android. I used AndEngine. The game functions perfectly except when it is recreated by android. For example, you play for a while and then use the back button, open the browser, market and a couple of other apps and then come back to the game. The

[android-developers] Re: popupwindow

2011-07-24 Thread Indicator Veritatis
Those "many cases for this there is no particularly good reason one was picked over the other" are most likely, I hope, the cases where I gave up on trying to figure out why the Android team chose to make the one 'abstract class' and the other 'public interface';) On Jul 21, 10:28 pm, Dianne Hackb

[android-developers] SharedUserId: Things that Cannot Change http://android-developers.blogspot.com/2011/06/things-that-cannot-change.html

2011-07-24 Thread Greg Giacovelli
Would SharedUserId be worth calling out. I currently don't have one set on any of my apps, but after playing around with the feature while trying to get a Test Project to run as the same user ... I think it's not really possible to change the user_id with a live app without some big issues. The

[android-developers] Re: droid x2 install from unknown sources?

2011-07-24 Thread Thomas
I uploaded another .apk to the web site and clicking on the apk link appeared to download but it didn't install. Looking around a bit I found awesomedrop on Android market. After installing it on the Droid x2, I activated it on the Android and then went to their web site at labs.dashwire.com . I

[android-developers] Re: How to know what internal process runs an application

2011-07-24 Thread elDoudou
Thank you Mark for taking care to answer. I have already thought of implementing it the straightforward way you propose, but I think that this is not satisfactory, for the reasons I have attempted to expose in my previous post. I'm sorry, but your answer does not answer my requirements, and as I

Re: [android-developers] Re: How to implement a Broadcast Receiver

2011-07-24 Thread lbendlin
Mark, does this mean I could have a functionality that would start (the rest of) my app when the manifested receiver gets the broadcast? In my case users are asking me to start my app when they connect their A2DP speakers. -- You received this message because you are subscribed to the Google

[android-developers] A little help with layout params in code.

2011-07-24 Thread authorwjf
Hi All, I am hoping someone out there can give me an idea what I am doing wrong. I wanted to create a table dynamically in my application, which I did, but also I wanted to be able to set some of the layout parameters, specifically the gravity and layout_gravity for a couple text views and one im

Re: [android-developers] WRITE_EXTERNAL_STORAGE (not set, but i write to sdcard)??

2011-07-24 Thread Mark Murphy
On Sun, Jul 24, 2011 at 4:29 PM, guruk wrote: > Hi there, > i always did wrote to sd card with > > String baseDir = > Environment.getExternalStorageDirectory().getAbsolutePath(); > > String fileName = DATABASE_TABLE + ".myd"; > > File f = new File(baseDir + File.separator + fileName); > > FileWrit

Re: [android-developers] Re: starting service from launch icon

2011-07-24 Thread Mark Murphy
On Sun, Jul 24, 2011 at 5:09 PM, kamiseq wrote: > "I cant find any other solution then launching activity that will > finish immediately after starting service but this shows a blank, > white screen for a second so this is rather poor workaround. " > > this is what I thought but it is showing whit

Re: [android-developers] Compiling an app with JAR files or else ...

2011-07-24 Thread Mark Murphy
On Sun, Jul 24, 2011 at 5:14 PM, Emre A. Yavuz wrote: > We have an application which runs as an Android Service in the background. > Let's assume that we would like to have another application (an activity > rather than a service this time) which is supposed to bind to this service > (assuming tha

[android-developers] Compiling an app with JAR files or else ...

2011-07-24 Thread Emre A. Yavuz
Hi, We have an application which runs as an Android Service in the background. Let's assume that we would like to have another application (an activity rather than a service this time) which is supposed to bind to this service (assuming that the service is already up and running when thi

[android-developers] Re: starting service from launch icon

2011-07-24 Thread kamiseq
"I cant find any other solution then launching activity that will finish immediately after starting service but this shows a blank, white screen for a second so this is rather poor workaround. " this is what I thought but it is showing white screen for a moment so I dont know how to remove that O

Re: [android-developers] CountDownTimer too slow ???

2011-07-24 Thread Nick Risaro
The calls to *onTick* are synchronized, maybe your code is taking more than a second to execute. Log can be expensive, and with debug symbols enabled your code will run a little bit slower than in real life. Or maybe the end of times is close!! :P On Sun, Jul 24, 2011 at 2:30 PM, Christophe < chr

[android-developers] WRITE_EXTERNAL_STORAGE (not set, but i write to sdcard)??

2011-07-24 Thread guruk
Hi there, i always did wrote to sd card with String baseDir = Environment.getExternalStorageDirectory().getAbsolutePath(); String fileName = DATABASE_TABLE + ".myd"; File f = new File(baseDir + File.separator + fileName); FileWriter gpxwriter = new FileWriter(f); BufferedWriter out = new Buff

Re: [android-developers] Re: Default.png

2011-07-24 Thread Romain Guy
Yes and no. The framework will take care of it for you with software rendering but if you can easily remove it, it's better. On Sun, Jul 24, 2011 at 7:08 AM, Adam Ratana wrote: > On Jul 23, 8:41 pm, Romain Guy wrote: > > You can do something similar by setting a window background in your > them

Re: [android-developers] Re: Listbox with ImageView and heapspace

2011-07-24 Thread Simon Platten
Thank you, I will give it a try. On 24/07/2011 8:16 PM, Streets Of Boston wrote: Purge the queue that is filled by your background process. List item views (and imageviews within your list item views) are recycled. Remember for which list-item (or image-view) the background-thread is loading

[android-developers] Re: Listbox with ImageView and heapspace

2011-07-24 Thread Streets Of Boston
Purge the queue that is filled by your background process. List item views (and imageviews within your list item views) are recycled. Remember for which list-item (or image-view) the background-thread is loading a bitmap (you'll know this in the adapter's getView method). Later, as soon as the

[android-developers] starting service from launch icon

2011-07-24 Thread rich friedel
Off the top of my head, you could launch an "invisible" Activity then in onCreate() start the Service then call finish() on the Activity -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developer

[android-developers] starting service from launch icon

2011-07-24 Thread kamiseq
hi, Im working on API 7 and I need to launch service without showing any activity, my service will add status bar notification so user can interact with application later. I cant find any other solution then launching activity that will finish immediately after starting service but this shows a bl

[android-developers] CountDownTimer too slow ???

2011-07-24 Thread Christophe
Run the following code in the emulator and start a chronometer at the same time : // log some text each second : CountDownTimer countDown = new CountDownTimer(Integer.MAX_VALUE, 1000) { private int i = 0; @Override public void onTick(long millisUntil

[android-developers] How to set the color of listView unused area in 2.3.3

2011-07-24 Thread dipu
How to set the color of listView unused area. in 2.3.3. I have my list view with layout_height as match_parent. I want listView to fill the entire height so that I can have the same color, event listeners etc. This was never a problem until 2.3.3 version, (Motorola Droid3, Droid X). Now the empty

Re: [android-developers] Re: How to know what internal process runs an application

2011-07-24 Thread Mark Murphy
On Sun, Jul 24, 2011 at 1:06 PM, elDoudou wrote: > As far as I understand, when an application process starts, its > "Application.onCreate()" method is invoked, right? Since I do not want > to check that my application process is properly initialized in all my > Activities, BroadcastReceivers, Int

[android-developers] Re: How to know what internal process runs an application

2011-07-24 Thread elDoudou
Thank you a lot Dianne and Rich for helping: I think that this discussion will be helpful to many other Android developers ;) I understand that I was not successful in explaining the core issue. Let me attempt to rephrase it in a more appropriate way. As far as I understand, when an application p

Re: [android-developers] invisible button

2011-07-24 Thread Mark Murphy
Use a transparent View. Any widget can detect clicks, so you may as well go with the lightest-weight one out there. On Sun, Jul 24, 2011 at 12:20 PM, bob wrote: > What's the best way to make a 100% invisible button that can listen > for clicks? > > The background already contains the button image

[android-developers] invisible button

2011-07-24 Thread bob
What's the best way to make a 100% invisible button that can listen for clicks? The background already contains the button image, so that's why I want to do this. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

Re: [android-developers] Project Ideas

2011-07-24 Thread Kristopher Micinski
On Sun, Jul 24, 2011 at 8:03 AM, saurabh kulkarni wrote: > Hi everyone.I want do final year big project in android.I have done > some small apps in android.So now I want to do some smart and > comparitively big final year project.So does anybody has ideas please > share. > Thanx in advance.. > > F

[android-developers] Re: Why two fragments instead of one?

2011-07-24 Thread nadam
> Of course, you could just use a List*View* as well (e.g through an > , but that is just re-using the view, not any extra code supporting > it. I finally got around to testing this using . Works great. The "extra code supporting it" will end up in ActivityA both for single and dual layout, so no p

[android-developers] Re: Default.png

2011-07-24 Thread Adam Ratana
On Jul 23, 8:41 pm, Romain Guy wrote: > You can do something similar by setting a window background in your theme. > Seehttp://android-developers.blogspot.com/2009/03/window-backgrounds-ui-... > more info > > On Sat, Jul 23, 2011 at 5:30 PM, bob wrote: > > Is there anything like Default.png for A

Re: [android-developers] Project Ideas

2011-07-24 Thread νιяιη¢нソ
i am a 3rd year guy...n stuck with d same issue as saurabh brobut the app we create should be something useful for d users n d idea on it should be a bit innovativeplease help me out... thanx in advance with regards, virinchy -- You received this message because you are subscribed t

Re: [android-developers] Project Ideas

2011-07-24 Thread rambabu mareedu
u can do big projectsbut these big projects mostly uses web servicesbetter u can do restaurant type of applications.or else which type of applications u want to do tell me...and which concepts u want to cover in android... On Sun, Jul 24, 2011 at 6:03 AM, saurabh kulkarni wrote: > Hi

[android-developers] Project Ideas

2011-07-24 Thread saurabh kulkarni
Hi everyone.I want do final year big project in android.I have done some small apps in android.So now I want to do some smart and comparitively big final year project.So does anybody has ideas please share. Thanx in advance.. -- You received this message because you are subscribed to the Google G

Re: [android-developers] Re: starting Activity in tabbed UI from onTabChangedListener()

2011-07-24 Thread Marcin Orlowski
> > See what mLocalActivityManager.startActivity() returns. You have to > attach returned Window (or its root View) to your tab > Thanks. That's was what I missed. For reference (lamest approach): final Window window = mLocalActivityManager.startActivity(tag, intent); mTabContent.removeAllViews()

[android-developers] Re: glReadPixels()

2011-07-24 Thread David Liebman
As it turns out I do have to be concerned with the y values in glReadPixels. It was a major stumbling block. They do start at the bottom of the screen. I used a combination of techniques to get the y value I needed. I used 'getRawY()' from the MotionEvent and another method of the view I was in cal

[android-developers] Re: Problem with Notification Service and Progress bar

2011-07-24 Thread Kromosome
Check this resource http://developer.android.com/resources/articles/faster-screen-orientation-change.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 unsubscri

[android-developers] Re: Updating home screen shortcut icon

2011-07-24 Thread William Ferguson
No, just the icon. On Jul 24, 7:29 pm, Zsolt Vasvari wrote: > Did you also change your main activity? Doing that can cause the icon > not to update until the next reboot. > > On Jul 24, 2:23 pm, William Ferguson > wrote: > > > > > > > > > The latest version of my app has a new launcher icon, and

Re: [android-developers] 3D maps

2011-07-24 Thread lbendlin
1. no 2. N/A 3. highly unlikely as it would mean switching from raster maps to vector maps 4. no -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from t

[android-developers] Re: starting Activity in tabbed UI from onTabChangedListener()

2011-07-24 Thread skink
On Jul 24, 11:13 am, Marcin Orlowski wrote: > Hi > > I got tabbed UI, where I use own tab layout by utilising > TabSpecs.setContent() to provide custom layout. As I wanted tab content to > be Activites not Views, I set onTabChangedListener() to do the job, with no > much success: > > public clas

[android-developers] Offering free and paid APKs on the Market

2011-07-24 Thread Davy
Hi, I'm thinking about offering a free / paid version of my app on the Market. I currently only have a paid application on the market (let's assume the current version on the market is called com.myapp). The idea would be to strip off some of the functionality in the free version. I'm thinking

Re: [android-developers] Re: starting Activity in tabbed UI from onTabChangedListener()

2011-07-24 Thread Marcin Orlowski
Thanks. This is temporary approach which I am going to rewrite for fragments later, but as for now, sucks or not, it have to be that way., hence my question (despite of knowing what "deprecated" means ;) -- You received this message because you are subscribed to the Google Groups "Android Develop

[android-developers] Re: Updating home screen shortcut icon

2011-07-24 Thread Zsolt Vasvari
Did you also change your main activity? Doing that can cause the icon not to update until the next reboot. On Jul 24, 2:23 pm, William Ferguson wrote: > The latest version of my app has a new launcher icon, and when the new > version is installed (at least on the emulators and a 2.3.3 device) > t

[android-developers] Re: starting Activity in tabbed UI from onTabChangedListener()

2011-07-24 Thread Zsolt Vasvari
Please don't use Activities as tab panes. You are just setting yourself up for all kinds of grief now and in the future. And since this is deprecated, you will never see the many outstanding bugs fixed. If you must, refactor your code so that you can just use a View. I know that can be painfu

[android-developers] Re: Curious NPE

2011-07-24 Thread Zsolt Vasvari
Is onBackPressed called from a different thread perhaps? I wouldn't have thought so, but stranger things have happened. And if that's the case, how can I ensure that my variable is initialized. I cannot construct it on the decleration as the object depends on the intent passed in to the Activity

[android-developers] starting Activity in tabbed UI from onTabChangedListener()

2011-07-24 Thread Marcin Orlowski
Hi I got tabbed UI, where I use own tab layout by utilising TabSpecs.setContent() to provide custom layout. As I wanted tab content to be Activites not Views, I set onTabChangedListener() to do the job, with no much success: public class MainActivity extends TabActivity { onCreate() {

[android-developers] Re: Menu guidelines

2011-07-24 Thread Abhishek Akhani
make one class BaseActivity extending Activity class and then override the OnCreateOptionMenu() method and write your common menu code there... then extend all your activities with this BaseActivity class I think this will work for you... -- You received this message because you are subscr

[android-developers] Re: Application doesn't close with back button

2011-07-24 Thread Abhishek Akhani
you can also do it by changing android:noHistory = "true" in menifest file for your first two screens... On Jul 23, 6:22 pm, Zwiebel wrote: > I made an application, with two logo activity at the start, first is > my logo, and the second is the application's logo, they are stay for 2 > seconds, an

[android-developers] Re: Spinner box

2011-07-24 Thread Abhishek Akhani
Its possible n for this you have to make a custom adapter (extending BaseAdapter) and an xml file for this view. and set this custom adapter as your spinner's adapter. On Jul 24, 12:11 pm, Goutom wrote: > Hi > > Please open the image.In the image  "Font Size" is header and "Standard" is > item.He

[android-developers] Re: Curious NPE

2011-07-24 Thread Doug
Sounds like it might be possible that onBackPressed can get called before onCreate in some circumstances where the device is being slow? If that is at all a possibility, maybe you should check for null in onBackPressed! :-) Doug On Jul 23, 4:00 pm, Zsolt Vasvari wrote: > I am getting some bugr

[android-developers] Re: navigation dots

2011-07-24 Thread Harry
Lots of ways can do so. you can use algorithms OR when you change the color of dots, there must be some action going with it, such as swipe or slide. change the dot images when an action happens. On Jul 24, 2:25 pm, vani reddy wrote: > Hi,, > But how to make this work at runtime?? > > On Wed, Ju

[android-developers] Re: Request to Google's Android SDK team

2011-07-24 Thread Yahel
> If my users were inconvenienced, I would try to give > them a temporary solution to hold them over until I have a good solution. >  But that's just me.  It's a difference in engineering philosophy. Your innocence is touching :D Google doesn't have users, it has beta-testers. I know it's going t

[android-developers] Listbox with ImageView and heapspace

2011-07-24 Thread Simon Platten
I have a listbox which has an imageview in every item, the bitmaps for the images are loaded in the background as the user brings the items into view. The images are queued for loading in the background as the user scrolls through the list items. If I have a large list and I take my time scrolling

[android-developers] Spinner box

2011-07-24 Thread Goutom
Hi Please open the image.In the image "Font Size" is header and "Standard" is item.Header "Font Size" will always will be in the spinner but not in the item list.Item list just shows items. Is this possible to build this kind of spinner? if possible please guide me. thanks in advance. Regards G

Re: [android-developers] Add xml layout in another view

2011-07-24 Thread Goutom
Hi Kostya, Thanks.Ur advice helped me. Regards Goutom On Thu, Jul 14, 2011 at 1:57 PM, Kostya Vasilyev wrote: > You can't add the same view to a layout multiple times. > > So rather than doing this: > > 15.07.2011 0:52, Goutom пишет: > > View view = layoutInflater.inflate(R.**layout.listitem,nu