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

2011-07-25 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 eayl...@hotmail.com wrote: We

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

2011-07-25 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 ddewa...@gmail.com wrote: Hi, I'm thinking about offering a free / paid version of

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

2011-07-25 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] Viewflipper instead of webview it's not working in android?

2011-07-25 Thread vijayakumar M
Hi Friends, i have list url that url i have load in webview. if i open apps it will display first url. then i flip it will load next url . but now that flipper i not working? why. please help me friends. XML structure main.xml Line. Viewflipper / /Line... webview.xml LinearLayout

[android-developers] How to cache Ad contents and get back it from cache when required and add it to AdView

2011-07-25 Thread R karthikeyan
Hi all, My application has two activities and I need to to display Admob Ads in both the view of my activities. I created two AdViews in two activities and loaded the Ads. I need to add my Ad to cache if onReceiveAd() is called and to reuse the cached Ad in onFailedToReceive(). How can i do

[android-developers] How to cache Ad contents and get back it from cache when required and add it to AdView

2011-07-25 Thread R karthikeyan
Hi all, My application has two activities and I need to to display Admob Ads in both the view of my activities. I created two AdViews in two activities and loaded the Ads. I need to add my Ad to cache if onReceiveAd() is called and to reuse the cached Ad in onFailedToReceive(). How can i do

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

2011-07-25 Thread Greg Giacovelli
Sadly that open issue has been marked unreproducible ... I don't understand why but I guess it's not going to be addressed. I checked all the documentation about the UID of the app and I didn't find anything warning of it being impossible to change. I just was trying to simplify some internal

[android-developers] Enter Domancy Error İssue

2011-07-25 Thread Duygu Kahraman
Hi everyone; I have a problem about google maps in my project. I want to integrate maps to my project and get my current location. I get md5 key and api key eveything is ok but i cant see maps .It is blank.I try change key , i change code but it doesnt work. My device is Galaxy S Error

[android-developers] Re: Bi-directional IPC and data transfer in between an application and multiple services from other applications

2011-07-25 Thread winnie
Thanks Dianne. I followed the same examples for reference. But I am encountering some problem while using multiple ServiceConnections (one for each other application's service) in my main FragmentActivity. Inside my main class, I implement the ServiceConnection interface in a inner class, and use

[android-developers] NFC write error handling

2011-07-25 Thread android user
Hello, How to implement code inside catch if error is occurred, like TAG is not available, for the following code. why the program don't execute code inside catch? i tried using finally statment and this also didn't work. try { tag.connect();

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

2011-07-25 Thread Marcin Orlowski
Don't set any layout for the activity. Use NoDisplay theme. Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and

[android-developers] Changing developer name on market has weird results

2011-07-25 Thread Raghav Sood
Hi, About an hour back I changed my market accounts display name from Raghav Sood to Appaholics. Now whenever I go to more apps by this developer it can't find any more (I have 9 on the market). The same happens if I alter the URL to use Raghav Sood as the developer name. Surprisingly (or should

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

2011-07-25 Thread Davy
That was also my thought any ideas / tips on how to convert the existing userbase ? Don't think they'll like it if their next update strips them off all paid functionality. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

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

2011-07-25 Thread Raghav Sood
Give them a discount Ask them to say how they used the now paid features and how they felt about them and so on. Only the users who have already used the paid app will be able to accurately do this. Then offer them a discount code or something. On Mon, Jul 25, 2011 at 1:40 PM, Davy

Re: [android-developers] Changing developer name on market has weird results

2011-07-25 Thread Nikolay Elenkov
On Mon, Jul 25, 2011 at 5:07 PM, Raghav Sood raghavs...@gmail.com wrote: Is the market even using the same backend sources for the web and mobile versions? I wouldn't claim to know, but it seems they are separate with some sort of replication. Comments/ratings, as well as description edits are

[android-developers] can we set default browser will be our browser

2011-07-25 Thread GopalaKrishnan D
can we set default browser will be our browser and default search will be our search. This means that when the user selects Search from the home menu he will get our search.Each approved option should automatically be implemented -- ~* Regards* *GopalaKrishnan D* -- You received this

[android-developers] How to implement setSelection() in a custom AdapterView

2011-07-25 Thread Pankaj
I came across a custom AdapterView (http://www.dev-smart.com/archives/ 34). What are the steps one must take when setSelection() method of an adapterview is called? I tried browsing through ListView's source code, but it wasn't of much help. -- You received this message because you are

[android-developers] Re: Curious NPE

2011-07-25 Thread Doug
On Jul 24, 2:20 am, Zsolt Vasvari zvasv...@gmail.com wrote: 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

Re: [android-developers] Re: Curious NPE

2011-07-25 Thread Romain Guy
What about showing the exact code that causes the trouble? On Mon, Jul 25, 2011 at 2:22 AM, Doug beafd...@gmail.com wrote: On Jul 24, 2:20 am, Zsolt Vasvari zvasv...@gmail.com wrote: Is onBackPressed called from a different thread perhaps? I wouldn't have thought so, but stranger things

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

2011-07-25 Thread Nikolay Elenkov
On Mon, Jul 25, 2011 at 4:14 PM, Greg Giacovelli miyamo...@gmail.com wrote: Sadly that open issue has been marked unreproducible ... I don't understand why but I guess it's not going to be addressed. I found another :) http://code.google.com/p/android/issues/detail?id=4381 Comment 2 says that

[android-developers] Preloaded Widget in Custom Launcher

2011-07-25 Thread Varun Tewari
Guys, While working on my own launcher, i tried to integrate my launcher with a set of my own widgets. I want these widgets to be pre-installed (don't by widget pick list). I have bind widget permission in place, but it gives me an error User 10032 does not have android.permission.BIND_APPWIDGET

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

2011-07-25 Thread Mark Murphy
On Sun, Jul 24, 2011 at 10:23 PM, elDoudou the.edouard.merc...@gmail.com wrote: I'm sorry, but your answer does not answer my requirements, and as I stated, having to insert a line of code referring a static method every where I need to make sure my application is initialized is for a poor

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

2011-07-25 Thread Mark Murphy
On Sun, Jul 24, 2011 at 9:05 PM, lbendlin l...@bendlin.us wrote: 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. If

Re: [android-developers] can we set default browser will be our browser

2011-07-25 Thread Mark Murphy
On Mon, Jul 25, 2011 at 4:57 AM, GopalaKrishnan D gopall...@gmail.com wrote: can we set default browser will be our browser and default search will be our search. No. Users can set defaults but applications cannot. -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Identify the First Time Run the application

2011-07-25 Thread subha
Hi! How to Identify the App is first time run(after installation)? Which functionality i need to call? Thanks and Regards, Subha -- 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] Identify the First Time Run the application

2011-07-25 Thread Raghav Sood
Use a boolean in sharedpreferences. On Mon, Jul 25, 2011 at 4:04 PM, subha subhashini.andr...@gmail.com wrote: Hi! How to Identify the App is first time run(after installation)? Which functionality i need to call? Thanks and Regards, Subha -- You received this message because you are

Re: [android-developers] Identify the First Time Run the application

2011-07-25 Thread subha
Hi Thanks! You mentioned this one? sharedPreferences.getBoolean(FIRST_TIME_USE, true); On Mon, Jul 25, 2011 at 4:07 PM, Raghav Sood raghavs...@gmail.com wrote: Use a boolean in sharedpreferences. On Mon, Jul 25, 2011 at 4:04 PM, subha subhashini.andr...@gmail.comwrote: Hi! How to

[android-developers] socket program for ndk based

2011-07-25 Thread vigneshwaran s
hello everyone i need simple client server socket program android in ndk based. can any one post the simple program or send me a link . with regards vigneshwaran s -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] Identify the First Time Run the application

2011-07-25 Thread Raghav Sood
You can name the boolean anything you like. On Mon, Jul 25, 2011 at 4:11 PM, subha subhashini.andr...@gmail.com wrote: Hi Thanks! You mentioned this one? sharedPreferences.getBoolean(FIRST_TIME_USE, true); On Mon, Jul 25, 2011 at 4:07 PM, Raghav Sood raghavs...@gmail.com wrote: Use a

Re: [android-developers] can we set default browser will be our browser

2011-07-25 Thread GopalaKrishnan D
i created one web browser and i want to set this as default browser... can i do it... -- ~* Regards* *GopalaKrishnan D* -- 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

Re: [android-developers] can we set default browser will be our browser

2011-07-25 Thread Raghav Sood
Install it and set it to the default browser via the phone settings. On Mon, Jul 25, 2011 at 4:32 PM, GopalaKrishnan D gopall...@gmail.comwrote: i created one web browser and i want to set this as default browser... can i do it... -- ~* Regards* *GopalaKrishnan D* -- You received this

Re: [android-developers] can we set default browser will be our browser

2011-07-25 Thread Kumar Bibek
Nope, you can't. The user will always have the option of changing the default apps for anything at all. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Mon, Jul 25, 2011 at 4:32 PM, GopalaKrishnan D gopall...@gmail.comwrote: i created one web

Re: [android-developers] can we set default browser will be our browser

2011-07-25 Thread GopalaKrishnan D
whether each and every time we want to set it as default browser ah -- ~* Regards* *GopalaKrishnan D* -- 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

[android-developers] Run script at startup help

2011-07-25 Thread dani maoz
Hi i am using pandaboard and running gingerbread, i would like to run shell script when the board boot, can anyone send me the lines i need to add in the init.rc -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Gallery view image zoom option in multi touch..

2011-07-25 Thread ragupathi ragupathi
Hi every one, i did gallery view program in this gallery view have some images it will be displayed one by one. i need to zoom which images is viewed. so anyone know the idea share with me... -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Re: NFC intent filters

2011-07-25 Thread Michael Roland
Hallo Kev, However, when I return from the home screen I get the android.intent.action.MAIN action, which I think makes sense. When you launch your app through the launcher screen you should receive the intent action android.intent.action.MAIN with category android.intent.category.LAUNCHER.

[android-developers] Out of Memory Exception

2011-07-25 Thread chetan
Hi All, I have created app in which i am getting a exception: 07-15 18:29:28.949 225 225 E dalvikvm-heap: 582400-byte external allocation too large for this process. 07-15 18:29:29.079 225 225 E GraphicsJNI: VM won't let us allocate 582400 bytes 07-15 18:29:29.109 225 225 E

[android-developers] Date Query

2011-07-25 Thread kirti waykole
hello , I am new in Android. I am trying to make reminder system. i made 1 database and storing all data in that database. now i want to get date from database in (dd/mm/) format. I want to compare that date with system . Plz guide me how can i do this. thanks in advance -- You received

[android-developers] whether each and every time we want to set set our own browser as default...

2011-07-25 Thread GopalaKrishnan D
whether each and every time we want to set set our own browser as default... help me for this -- ~* Regards* *GopalaKrishnan D* -- 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: NFC Secure Element

2011-07-25 Thread Michael Roland
Hallo Fernando, As far as I understand sending APDUs to the SmartMX SE element is possible because the NFC Controller (PN544) is told to enable the NFC-WI interface with SE. This is carried out by calling phHal4Nfc_Switch_SMX_Mode(), with parameter eSmartMx_Wired (function

Re: [android-developers] Abridged summary of android-developers@googlegroups.com - 10 Messages in 8 Topics

2011-07-25 Thread Anton S
On 7/23/11, android-developers+nore...@googlegroups.com android-developers+nore...@googlegroups.com wrote: = Today's Topic Summary = Group:

Re: [android-developers] whether each and every time we want to set set our own browser as default...

2011-07-25 Thread Mark Murphy
Fortunately, this is not possible. On Mon, Jul 25, 2011 at 8:11 AM, GopalaKrishnan D gopall...@gmail.comwrote: whether each and every time we want to set set our own browser as default... help me for this -- ~* Regards* *GopalaKrishnan D* -- You received this message because you are

[android-developers] zooming in page animation

2011-07-25 Thread vani reddy
Hi friends, i am not able to zoom the image in page flip animation..How to acheive this.Please reply its too urgent -- Regards, Vani Reddy -- 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: Curious NPE

2011-07-25 Thread Zsolt Vasvari
The code that causes the trouble is literally like that. The object is constructed in onCreate and the onBackPressed is just a single method invocation exactly like I am showing. On Jul 25, 5:26 pm, Romain Guy romain...@android.com wrote: What about showing the exact code that causes the

Re: [android-developers] Run script at startup help

2011-07-25 Thread TreKing
On Mon, Jul 25, 2011 at 6:20 AM, dani maoz maoz.d...@gmail.com wrote: i am using pandaboard and running gingerbread, i would like to run shell script when the board boot, can anyone send me the lines i need to add in the init.rc You need to find a group more appropriate for this question.

[android-developers] XML vs SQLite

2011-07-25 Thread Durgadoss Ramanathan
Hi, I am writing a Service that has to read information from a config file during it's init. I am storing these information in a text file, and manually Parsing it inside my Service code. For Scalability, I want to move it to a XML file. I am thinking of using SAX to parse XML and store data in

Re: [android-developers] Date Query

2011-07-25 Thread TreKing
On Mon, Jul 25, 2011 at 6:56 AM, kirti waykole kirti.carr...@gmail.comwrote: now i want to get date from database in (dd/mm/) format. I want to compare that date with system . Plz guide me how can i do this. Read the documentation for Date, or use Google - this has nothing to do

[android-developers] Re: Bi-directional IPC and data transfer in between an application and multiple services from other applications

2011-07-25 Thread winnie
Oops. Sorry! It wasn't a mistake related to android services or anything. I am a newbie from C++ to Java/ Android, and missed out the initialization of individual array elements by mistake and that's why I was getting the null pointer exception :( After this, the multiple ServiceConnections in my

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

2011-07-25 Thread authorwjf
Does anybody out there have experience formatting table row contents, (not comments), in code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] Re: XML vs SQLite

2011-07-25 Thread lbendlin
You are not providing enough information. Is your data by nature hierarchical (XML) or flat (database) ? -- 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

Re: [android-developers] Re: XML vs SQLite

2011-07-25 Thread Durgadoss Ramanathan
Yes..It is by nature hierarchical.. On Mon, Jul 25, 2011 at 7:15 PM, lbendlin l...@bendlin.us wrote: You are not providing enough information. Is your data by nature hierarchical (XML) or flat (database) ? -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Curious NPE

2011-07-25 Thread Zsolt Vasvari
Actually, I just realized how this can happen. If I get a checked exception in onCreate(), I just display it in a pop-up, which the user can dismiss and then press the back button and get the NPE. Now how a checked exception can happen is another very good question, but I don't expect help with

[android-developers] Re: invisible button

2011-07-25 Thread Abhishek Akhani
set Background color of your view to # -- 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] Re: Date Query

2011-07-25 Thread Abhishek Akhani
store your date in database as a string formate... and you can use DateFormate class to convert it back to Date object and vice versa. -- 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] socket program for ndk based

2011-07-25 Thread Marcin Orlowski
Ask on android-ndk group Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ *

[android-developers] apk submodules

2011-07-25 Thread nalitzis
Hi, I've an app that must act as a container and launch other components (submodules). These submodules are developed by third party clients. Let's imagine that every subcomponent is made up by one or more activities; there are also resources like images, strings, etc. The container must

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

2011-07-25 Thread Streets Of Boston
We have seen the same problem here at our company. We think it is an 'artificact' of the particular MotoBlur implementation on these devices. In their 'wisdom', they no longer left the background of the list-view itself as 'transparent' and instead went with the gray/white color (and a little

[android-developers] No error notification for basic errors. (bad Wifi password, ext4 formatted SD card).

2011-07-25 Thread Wondering
Froyo 2.2 (L27.8.2) OMAP4 Blaze. No error notification for basic errors. (bad Wifi password, ext4 formatted SD card). 1) Try and connect to a Wifi network. Deliberately input a bad password. I do not get an error notification. It simply tries to connect and then the status bar says disabled - but

Re: [android-developers] No error notification for basic errors. (bad Wifi password, ext4 formatted SD card).

2011-07-25 Thread Nikolay Elenkov
On Tue, Jul 26, 2011 at 12:11 AM, Wondering anil.r...@gmail.com wrote: Froyo 2.2 (L27.8.2) OMAP4 Blaze. No error notification for basic errors. (bad Wifi password, ext4 formatted SD card). You should complain to whoever sold you your phone, not here. 2) Formatted SD card with the default

Re: [android-developers] Run script at startup help

2011-07-25 Thread zx su
Register a broadcast receiver : android.intent.action.BOOT_COMPLETED when the board boot completed, the receiver get the broadcast, the can do what you want? 2011/7/25 TreKing treking...@gmail.com On Mon, Jul 25, 2011 at 6:20 AM, dani maoz maoz.d...@gmail.com wrote: i am using pandaboard and

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

2011-07-25 Thread Greg Giacovelli
Yeah I think I might, I read that code too. I think if you get a littler further it prints out something like can't move file because UID is different so you end up with just a broken app that is sort of stuck since you can't read/delete/write to old data and aren't allowed to create new data. On

[android-developers] Re: HELP: Connecting to SQL Server using JDBC

2011-07-25 Thread Boozel
The same code runs fine in a regular java app on windows. Does any one have any idea what the problem is? any help would be appreciated. Thanks. -- 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: HELP: Connecting to SQL Server using JDBC

2011-07-25 Thread Nikolay Elenkov
On Tue, Jul 26, 2011 at 12:29 AM, Boozel boozelcl...@gmail.com wrote: The same code runs fine in a regular java app on windows. Does any one have any idea what the problem is? any help would be appreciated. Set up your SQL server to accept non-SSL connections and try it. You might want to try

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

2011-07-25 Thread elDoudou
Thank you Mark. However, you still do not answer my question, and this coding design pattern does not help in that specific situation. I do not need a work- around, I'd like to know if what I attempt to achieve is feasible. Thank you for your understanding. Édouard -- You received this message

Re: [android-developers] Re: Date Query

2011-07-25 Thread ΙΟΥΛΙΑ ΓΡΗΓΟΡΙΑΔΟΥ
you could convert you date like this: private Date ConvertToDate(String dateString){ SimpleDateFormat dateFormat = new SimpleDateFormat(-MM-dd HH:mm); Date convertedDate; try { Log.i(SocialFeedLatestBuzz, Date before convert = + dateString); convertedDate = dateFormat.parse(dateString);

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

2011-07-25 Thread Streets Of Boston
The part of your app that uses activities, that needs this initialization part, must access the resources/caches/etc that are created during this initialization. Why can't you initialize these resource/caches/etc. when they are accessed for the first time (the lazy-loading stuff)? If you can't

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

2011-07-25 Thread elDoudou
Thank you Boston. As I stated, I cannot use lazy instantiation, because this initialization starts up things which is time-dependent, and hence that need to be started as soon as the process starts. Otherwise, yes, I would definitively chose this option. Regards, Édouard -- You received this

[android-developers] Unable to start activity, null pointer exception

2011-07-25 Thread juliagrig
I am working in tha sample of notepad3! I have a list with a simple cursor adapter. When I click in a list item my app crashes. the logcat: 07-25 16:44:59.403: ERROR/AndroidRuntime(580): FATAL EXCEPTION: main 07-25 16:44:59.403: ERROR/AndroidRuntime(580): java.lang.RuntimeException: Unable to

Re: [android-developers] Out of Memory Exception

2011-07-25 Thread Nick Risaro
I think the problem is with your background, try with a smaller picture On Mon, Jul 25, 2011 at 8:38 AM, chetan chetanchauha...@gmail.com wrote: bitmap size exceeds VM budget -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Google Map retains the reference to the context of the enclosing activity?

2011-07-25 Thread Joan Pujol
Hi Katsiaryna. I've exatcly the same problem than you. I also have an application with tabs, and mapview in one of this tabs and have also exactly the same leak. Did you found any solution? A lot of thanks in advance. -- You received this message because you are subscribed to the Google

[android-developers] zip Problems

2011-07-25 Thread New Developer
Hi All I use the following code to Zip a file BufferedInputStream origin = null; FileOutputStreamdest = new FileOutputStream(/sdcard/tmp.zip); ZipOutputStream out= new ZipOutputStream(new BufferedOutputStream(dest)); byte data[] = new

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

2011-07-25 Thread Christophe
thanks for your response Nick. The only code in onTick is the call to Log.i(). I don't think it take more than a second to execute :) What is debug symbol anyways ?? On Jul 24, 10:43 pm, Nick Risaro nris...@gmail.com wrote: The calls to *onTick* are synchronized, maybe your code is taking more

[android-developers] Re: Preloaded Widget in Custom Launcher

2011-07-25 Thread Varun Tewari
Also does anybody know how Go Launcher is able to install widgets without a Pick Intent. They also have an uninstall widget option from manage applications. This means Go Widgets are in different package than Go Launcher package. Can anybody tell where such stuffs are documented? On Mon, Jul 25,

[android-developers] Re: Gallery: change center position?

2011-07-25 Thread Devomat
Ok, I think there is no solution for 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] Re: CountDownTimer too slow ???

2011-07-25 Thread Christophe
Log can be expensive = I have tried to run the same code with a good old System.out.println and the problem is still there. On Jul 25, 7:35 pm, Christophe christophe.lebesner...@gmail.com wrote: thanks for your response Nick. The only code in onTick is the call to Log.i(). I don't think it

Re: [android-developers] Out of Memory Exception

2011-07-25 Thread Varun Tewari
Make sure you are using different set of graphics for ldpi/mdpi/hdpi/etc. Or else it will scale drawables from base folder, which eats cpu cycles and lots of memory. Reg, Varun On Mon, Jul 25, 2011 at 10:23 PM, Nick Risaro nris...@gmail.com wrote: I think the problem is with your background,

Re: [android-developers] zip Problems

2011-07-25 Thread TreKing
On Mon, Jul 25, 2011 at 12:09 PM, New Developer secur...@isscp.com wrote: Can anyone please help with this?? This has nothing to do with Android development, but are you verifying the output is correct?

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

2011-07-25 Thread Nikolay Elenkov
On Jul 26, 2011 3:00 AM, Christophe christophe.lebesner...@gmail.com wrote: Log can be expensive = I have tried to run the same code with a good old System.out.println and the problem is still there. That goes to the same log buffer, so no change is to be expected. Make a list of Long and

[android-developers] Memory management and Exceptions

2011-07-25 Thread Simon Platten
I've been coding in C / C++ since the mid 80's and a few years in Java, I'm relatively new to Android development and have been writing apps. for Android for about 18 months. I have always adopted a defensive programming phylosophy, with a view if it can go wrong it will. That said, this doesn't

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

2011-07-25 Thread Christophe
hello Nikolay, I have updated my code, following your suggestion : public ListLong times = new ArrayListLong(); CountDownTimer countDown = new CountDownTimer(Integer.MAX_VALUE, 1000) { @Override public void onTick(long millisUntilFinished) {

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

2011-07-25 Thread Streets Of Boston
Ah... it's an issue with timing of the initialization. My follow up question is then: Why must the initialization take place asap and not just before it's needed? (i'm just trying to figure out if there is a way around the issue you have, because Android doesn't give you the process-id/name

Re: [android-developers] zip Problems

2011-07-25 Thread New Developer
Yes I have checked the output it appears correct and is the same on both ends On Jul 25, 2011, at 2:05 PM, TreKing wrote: On Mon, Jul 25, 2011 at 12:09 PM, New Developer secur...@isscp.com wrote: Can anyone please help with this?? This has nothing to do with Android development, but are you

[android-developers] Re: Memory management and Exceptions

2011-07-25 Thread Streets Of Boston
Java will help you getting rid of un-used memory if these objects are no longer referenced. But if you create too many objects, objects that are too big or a combination of both, you have a good chance of hitting Out-Of-Memory errors/exceptions. Are you using/loading images, sounds or other

[android-developers] Can not add view to a ViewFlipper

2011-07-25 Thread MobileVisuals
I want to use a ViewFlipper to swith between a SurfaceView and a GLSurfaceView. I create the ViewFlipper in my Activity object with ViewFlipper vf=new ViewFlipper(this); I then try to add the views: vf.addView(glSurfaceView, 0); vf.addView(mLunarView, 1); It crashes when I try

Re: [android-developers] Re: Memory management and Exceptions

2011-07-25 Thread Simon Platten
I am using images in a listview, I would have hoped that the images would be released as the items change, I only have 2 images on view at a time. I load a thumbnail version of the image for the listviews which is a fraction of the original size. If I hit a limit on memory I would like to

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

2011-07-25 Thread Indicator Veritatis
And you already have the answer to that question, even several times now: the answer is no, it is not feasible, not under the constraints you have imposed on yourself. You need to redesign. This time, take into account that the process is an anonymous container. BTW: am I really the only one to

Re: [android-developers] Re: Memory management and Exceptions

2011-07-25 Thread Streets Of Boston
Do you properly re-use the list-*item* views in your list-view? E.g. in your list-adapter 'getView()' method: public void View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = inflater.inflate(R.layout.list_item_layout, null); ...

Re: [android-developers] Re: Memory management and Exceptions

2011-07-25 Thread Simon Platten
I think so, however I will take a close lookagain. On 25/07/2011 8:06 PM, Streets Of Boston wrote: Do you properly re-use the list-*item* views in your list-view? E.g. in your list-adapter 'getView()' method: public void View getView(int position, View convertView, ViewGroup parent) {

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

2011-07-25 Thread Nick Risaro
When you run your app in eclipse (or with debuggable=true) it runs in debug mode, this allows eclipse to hook the debugger to your app, this can slow down your app performance because of the overhead. On Mon, Jul 25, 2011 at 2:35 PM, Christophe christophe.lebesner...@gmail.com wrote: What is

[android-developers] filter?

2011-07-25 Thread bob
What does filter mean in this function? public static Bitmap createScaledBitmap (Bitmap src, int dstWidth, int dstHeight, boolean filter) Since: API Level 1 Creates a new bitmap, scaled from an existing bitmap. Parameters src The source bitmap. dstWidth The new bitmap's desired width. dstHeight

[android-developers] Pre - installed sqlite data vs user provided values

2011-07-25 Thread Federico Paolinelli
Hi all, hope somebody can help me with the issue I am having while finishing my app. At the moment my app relies on a sqlite db to store / give back some kind of data. The user can of course add / delete rows from the db, and I thought it would have been nice to provide some stuff pre

Re: [android-developers] Pre - installed sqlite data vs user provided values

2011-07-25 Thread Kostya Vasilyev
How about using one database, and having a column that tells you if a particular data item (row) came prepackaged, or added / edited by the user? This could work if your database schema is not too complicated. -- Kostya 25.07.2011 23:31, Federico Paolinelli пишет: Hi all, hope somebody can

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

2011-07-25 Thread Christophe
thx for the reply Nick, I'm using eclipse but I run the app using the normal mode, not the debug mode. On Jul 25, 9:19 pm, Nick Risaro nris...@gmail.com wrote: When you run your app in eclipse (or with debuggable=true) it runs in debug mode, this allows eclipse to hook the debugger to your

[android-developers] Sql query not working

2011-07-25 Thread saurabh kulkarni
Why this query is not working?? My date column has date like:2011-07-25. final Calendar c = Calendar.getInstance(); int myMonth = (c.get(Calendar.MONTH)+1); int myDay = c.get(Calendar.DAY_OF_MONTH); String

Re: [android-developers] Sql query not working

2011-07-25 Thread Simon Platten
I don't think the == is valid in SQL, if you want to test for equality, just use =. On 25/07/2011 9:06 PM, saurabh kulkarni wrote: Why this query is not working?? My date column has date like:2011-07-25. final Calendar c = Calendar.getInstance();

[android-developers] Re: APN for SMS/MMS

2011-07-25 Thread Erik
If you mean you can't contact the MMSC to download the MMS message, Verizon and Sprint will only let apps that are specially blessed do that. And that isn't going to happen for you. Your best bet is to let the phone's native messaging client handle all of the MMS sending/receiving. -- You

[android-developers] Issue with screen layout in 3.2

2011-07-25 Thread Vector-Code
Upon the release of SDK 13, I tested my application against the new version and was distressed to find that it was no longer laying out properly in HC 3.2. I checked the documentation, found the new compatibility mode and added the xlargeScreens=true element to my manifest. This did not correct

Re: [android-developers] filter?

2011-07-25 Thread Marcin Orlowski
On Jul 25, 2011 9:23 PM, bob b...@coolgroups.com wrote: What does filter mean in this function? my blind guess it enables bilinear filtering (or so) which slightly decreases performance, but gives better results especially when scalling down. but you shall peek in the sources anyway to verify.

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

2011-07-25 Thread String
In the first release of the freemium version, you should be able to detect if the app is being run for the first time or if it's an upgrade. Do this in code by looking for some evidence of previous execution (this will depend on your app, of course): shared preferences, user database, cache

Re: [android-developers] apk submodules

2011-07-25 Thread Marcin Orlowski
On Jul 25, 2011 4:49 PM, nalitzis adolfo.bulf...@gmail.com wrote: Here's my problem: when the app is finished, it will be distributed in the android market. Is it possible to include the subcomponents as separate apk on the market? 'include' is rather opposite to 'separate' :) If yes, how

  1   2   3   >