[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 area at the bottom of the listview gets a default
gray / white color that I cannot change.

Thanks,
Dipu

-- 
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: Career as an Andoid developer. Is there any point?

2011-05-26 Thread dipu
Unless there is a stackoverflow or out of memory issue I do not see
any point in having a Force Close. If I catch all runtime exceptions
around a block of code the OS should ignore all exceptions inside that
call block.

Maybe some Force Close decision is about taking care of memory leaks
or other security sensitive issues. I believe getting an earful from
Bruce Schneier will improve the security layers quite a bit. For
example we could shorten the long list of permissions. Sorry about
throwing out name here. The song is not about him personally:)



On May 26, 2:05 pm, Dianne Hackborn  wrote:
> On Thu, May 26, 2011 at 1:46 PM, dipu  wrote:
> > Developing apps for android is fun. I just do not want to put a nail
> > on every null to avoid force close. Now even an ardent Agile fan would
> > call me a bad programmer. That is where I see religion (or cult). How
> > about get a few ex-ms people on board. Maybe they can resolve the
> > issue with the new incarnation of "Blue Screen of Death" called "Force
> > Close".
>
> Core engineers on Android come from Sun, Be, Danger, Palm, Microsoft, as
> well as other companies.
>
> Also "Blue Screen of Death" is when your entire computer crashes.  "Force
> Close" is when the current application crashes.  These are very much not the
> same thing.  The force close dialog is the same as the app crash dialog on
> windows.
>
> Of course we could do like iOS and just silently kill the app and return to
> the launcher.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

-- 
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: Career as an Andoid developer. Is there any point?

2011-05-26 Thread dipu
Android has been a great platform for developing apps as a hobby. It
is far better than any other Java based mobile platform that I had
tried. I wish java-api-first is not the case in the future. Java AWT/
Swing has been basically a failure in GUI(considering all the time a
effort went into developing it). Unfortunately my guess is few AWT/
Swing guys are playing big role on Android. Now consider developing
your own SWT before developing your Eclipse on Android.

Developing apps for android is fun. I just do not want to put a nail
on every null to avoid force close. Now even an ardent Agile fan would
call me a bad programmer. That is where I see religion (or cult). How
about get a few ex-ms people on board. Maybe they can resolve the
issue with the new incarnation of "Blue Screen of Death" called "Force
Close".

-- 
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] How should I invoke InstalledAppDetails from a program?

2011-02-12 Thread dipu
I am trying to invoke the InstalledAppDetails with following code. I
get error message that says activity not found. How should I invoke
InstalledAppDetails?

Intent intent =
Intent.parseUri("dat=package:com.example.android.jetboy
cmp=com.android.settings/.applications.InstalledAppDetails", 0);
intent.setAction("android.settings.APPLICATION_DETAILS_SETTINGS");
startActivity(intent);

E/AndroidRuntime( 1007): FATAL EXCEPTION: main
E/AndroidRuntime( 1007): java.lang.RuntimeException: Unable to start
activity ComponentInfo{com.dds.test/com.dds.test.TestLayout}:
android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=android.settings.APPLICATION_DETAILS_SETTINGS
dat=dat=package:com.example.android.jetboy
cmp=com.android.settings/.applications.InstalledAppDetails }

-- 
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] Demo vs Paid and that 15 minutes of refund policy

2010-12-24 Thread dipu
Now that the market refund policy has changed to 15 minutes, it has
become more important to have a demo version for every paid app. What
are the best practices to maintain a demo version for a paid app,
specially when the development is done in Eclipse. I know that using
ant build file lot of crazy stuff can be done. However one would like
to avoid dealing with ant build files for hobby app development.

-- 
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: How to figure out who is causing GC on my device?

2010-11-01 Thread dipu
I have put hotmail and exchange email check frequency to never and it
seems alright now. I will try enabling them later.
Thanks,
Dipu

On Oct 31, 6:11 pm, Miguel Morales  wrote:
> Try putting your phone in airplane mode and see what happens.
>
> On Oct 31, 2010 5:39 PM, "dipu"  wrote:
>
> Thank you very much for the tip. I have restrasted my phone and made
> sure that my app is not running.
> Now I see two processes causing the GC.
>
> system    1103  1013  221560 49288   S system_server
> app_38    1872  1013  146228 23724   R
> com.android.email
>
> D/dalvikvm( 1103): GC_EXPLICIT freed 3427 objects / 138696 bytes in
> 103ms
> D/dalvikvm( 1872): GC_FOR_MALLOC freed 9738 objects / 521552 bytes in
> 58ms
> D/dalvikvm( 1103): GC_EXPLICIT freed 3425 objects / 138488 bytes in
> 106ms
> D/dalvikvm( 1872): GC_FOR_MALLOC freed 9762 objects / 522360 bytes in
> 60ms
> D/dalvikvm( 1103): GC_EXPLICIT freed 3374 objects / 136712 bytes in
> 100ms
> D/dalvikvm( 1103): GC_EXPLICIT freed 3412 objects / 138048 bytes in
> 102ms
> D/dalvikvm( 1872): GC_FOR_MALLOC freed 9822 objects / 525296 bytes in
> 60ms
> D/dalvikvm( 1103): GC_EXPLICIT freed 3393 objects / 137328 bytes in
> 101ms
> D/dalvikvm( 1872): GC_FOR_MALLOC freed 9912 objects / 528128 bytes in
> 60ms
> D/dalvikvm( 1103): GC_EXPLICIT freed 3399 objects / 137480 bytes in
> 102ms
> D/dalvikvm( 1872): GC_FOR_MALLOC freed 9730 objects / 522016 bytes in
> 60ms
> D/dalvikvm( 1103): GC_EXPLICIT freed 3483 objects / 141184 bytes in
> 102ms
> D/dalvikvm( 1872): GC_FOR_MALLOC freed 9747 objects / 520984 bytes in
> 59ms
>
> On Oct 28, 4:24 pm, William Ferguson 
> wrote:
>
>
>
>
>
>
>
> > Other than the fact that it consumes CPU that could be used by your > app.
> > > On Oct 29, 6:27 am,...

-- 
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: How to figure out who is causing GC on my device?

2010-10-31 Thread dipu
Thank you very much for the tip. I have restrasted my phone and made
sure that my app is not running.
Now I see two processes causing the GC.

system1103  1013  221560 49288   S system_server
app_381872  1013  146228 23724   R
com.android.email

D/dalvikvm( 1103): GC_EXPLICIT freed 3427 objects / 138696 bytes in
103ms
D/dalvikvm( 1872): GC_FOR_MALLOC freed 9738 objects / 521552 bytes in
58ms
D/dalvikvm( 1103): GC_EXPLICIT freed 3425 objects / 138488 bytes in
106ms
D/dalvikvm( 1872): GC_FOR_MALLOC freed 9762 objects / 522360 bytes in
60ms
D/dalvikvm( 1103): GC_EXPLICIT freed 3374 objects / 136712 bytes in
100ms
D/dalvikvm( 1103): GC_EXPLICIT freed 3412 objects / 138048 bytes in
102ms
D/dalvikvm( 1872): GC_FOR_MALLOC freed 9822 objects / 525296 bytes in
60ms
D/dalvikvm( 1103): GC_EXPLICIT freed 3393 objects / 137328 bytes in
101ms
D/dalvikvm( 1872): GC_FOR_MALLOC freed 9912 objects / 528128 bytes in
60ms
D/dalvikvm( 1103): GC_EXPLICIT freed 3399 objects / 137480 bytes in
102ms
D/dalvikvm( 1872): GC_FOR_MALLOC freed 9730 objects / 522016 bytes in
60ms
D/dalvikvm( 1103): GC_EXPLICIT freed 3483 objects / 141184 bytes in
102ms
D/dalvikvm( 1872): GC_FOR_MALLOC freed 9747 objects / 520984 bytes in
59ms


On Oct 28, 4:24 pm, William Ferguson 
wrote:
> Other than the fact that it consumes CPU that could be used by your
> app.
>
> On Oct 29, 6:27 am, Kostya Vasilyev  wrote:
>
>
>
>
>
>
>
> > Run "adb shell" and then "ps" to get the list of running processes.
>
> > Then you just need to match by process id's - 1344 and 1103.
>
> > However - each process has its own copy of Dalvik Java VM, and its own
> > memory address space, so GC in other applications should not be
> > affecting yours.
>
> > -- Kostya
>
> > 29.10.2010 0:06, dipu пишет:
>
> > > I am getting GC on my device (moto original Droid with 2.2)
> > > continuously, even when I am not using it for a while. How can I
> > > figure out which application is causing such continuous GC.
>
> > > D/dalvikvm( 1344): GC_FOR_MALLOC freed 9881 objects / 527000 bytes in
> > > 57ms
> > > D/dalvikvm( 1103): GC_EXPLICIT freed 3407 objects / 138696 bytes in
> > > 104ms
> > > D/dalvikvm( 1344): GC_FOR_MALLOC freed 9838 objects / 525944 bytes in
> > > 58ms
> > > D/dalvikvm( 1103): GC_EXPLICIT freed 3400 objects / 137904 bytes in
> > > 104ms
> > > D/dalvikvm( 1344): GC_FOR_MALLOC freed 9723 objects / 521272 bytes in
> > > 59ms
> > > D/dalvikvm( 1103): GC_EXPLICIT freed 3381 objects / 137344 bytes in
> > > 104ms
> > > D/dalvikvm( 1344): GC_FOR_MALLOC freed 9750 objects / 521624 bytes in
> > > 58ms
> > > D/dalvikvm( 1103): GC_EXPLICIT freed 3342 objects / 135624 bytes in
> > > 105ms
> > > D/dalvikvm( 1344): GC_FOR_MALLOC freed 9861 objects / 527728 bytes in
> > > 58ms
> > > D/dalvikvm( 1103): GC_EXPLICIT freed 3402 objects / 138024 bytes in
> > > 106ms
>
> > > Thanks,
> > > Dipu
>
> > --
> > Kostya Vasilyev -- WiFi Manager + pretty widget 
> > --http://kmansoft.wordpress.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


[android-developers] How to figure out who is causing GC on my device?

2010-10-28 Thread dipu
I am getting GC on my device (moto original Droid with 2.2)
continuously, even when I am not using it for a while. How can I
figure out which application is causing such continuous GC.

D/dalvikvm( 1344): GC_FOR_MALLOC freed 9881 objects / 527000 bytes in
57ms
D/dalvikvm( 1103): GC_EXPLICIT freed 3407 objects / 138696 bytes in
104ms
D/dalvikvm( 1344): GC_FOR_MALLOC freed 9838 objects / 525944 bytes in
58ms
D/dalvikvm( 1103): GC_EXPLICIT freed 3400 objects / 137904 bytes in
104ms
D/dalvikvm( 1344): GC_FOR_MALLOC freed 9723 objects / 521272 bytes in
59ms
D/dalvikvm( 1103): GC_EXPLICIT freed 3381 objects / 137344 bytes in
104ms
D/dalvikvm( 1344): GC_FOR_MALLOC freed 9750 objects / 521624 bytes in
58ms
D/dalvikvm( 1103): GC_EXPLICIT freed 3342 objects / 135624 bytes in
105ms
D/dalvikvm( 1344): GC_FOR_MALLOC freed 9861 objects / 527728 bytes in
58ms
D/dalvikvm( 1103): GC_EXPLICIT freed 3402 objects / 138024 bytes in
106ms

Thanks,
Dipu

-- 
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] negative x co-ordinate on swipe to the left

2010-09-17 Thread dipu
I have a list view with list item that has one CheckBox and two
TextViews. I have set on touch listener to each of these widgets. Now
when I do swipe to the right the x co-ordinates are recorded correctly
by
the onTouch event listener. When I do swipe to the left it shows
negative
value for x co-ordinate. Is this a bug or I am missing something.
My phone is motorola droid.

code

public boolean onTouch(View v, MotionEvent event) {
   Log.d(TAG, "ListAdapter.onTouch x="+event.getX());
   return false;
}

result
-
ListAdapter.onTouch x=1.4075205
ListAdapter.onTouch x=1.4075205
ListAdapter.onTouch x=20.879065
ListAdapter.onTouch x=120.67073
ListAdapter.onTouch x=222.89635
ListAdapter.onTouch x=349.94818
ListAdapter.onTouch x=472.1321
ListAdapter.onTouch x=472.1321

ListAdapter.onTouch x=337.22662
ListAdapter.onTouch x=322.623
ListAdapter.onTouch x=300.71747
ListAdapter.onTouch x=271.99695
ListAdapter.onTouch x=230.13315
ListAdapter.onTouch x=3.2896347
ListAdapter.onTouch x=-44.902443(negative)
ListAdapter.onTouch x=-75.08333(negative)
ListAdapter.onTouch x=-75.08333(negative)

-- 
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] On a list view item onTouch event x co-ordinate is negative on swipe to left

2010-09-09 Thread dipu
I have a list view with list item that has one CheckBox and two
TextViews. I have set on touch listener to each of these widgets. Now
when I do swipe to right the x co-ordinates are recorded correctly by
the onTouch event listener. When I do swipe to left it shows negative
value for x co-ordinate. Is this is a bug or I am missing something.
My phone is motorola droid.

code

public boolean onTouch(View v, MotionEvent event) {
Log.d(TAG, "ListAdapter.onTouch x="+event.getX());
return false;
}

result
-
ListAdapter.onTouch x=1.4075205
ListAdapter.onTouch x=1.4075205
ListAdapter.onTouch x=20.879065
ListAdapter.onTouch x=120.67073
ListAdapter.onTouch x=222.89635
ListAdapter.onTouch x=349.94818
ListAdapter.onTouch x=472.1321

ListAdapter.onTouch x=472.1321
ListAdapter.onTouch x=337.22662
ListAdapter.onTouch x=322.623
ListAdapter.onTouch x=300.71747
ListAdapter.onTouch x=271.99695
ListAdapter.onTouch x=230.13315
ListAdapter.onTouch x=3.2896347
ListAdapter.onTouch x=-44.902443
ListAdapter.onTouch x=-75.08333
ListAdapter.onTouch x=-75.08333

-- 
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: LiveFolders.ICON_BITMAP

2010-08-06 Thread dipu
Fetching icon bitmap(essentially byte array) from sql column and
showing it in LiveFolder works just fine. Take a sample project for
LiveFolder and add code lines similar to the following.

liveFolderProjectionMap.put(LiveFolders.ICON_BITMAP,
MyDbTableColumns.ICON+ " AS " +
LiveFolders.ICON_BITMAP);

Thanks,
Dipu

On Jul 8, 5:54 pm, Harry Ugol  wrote:
> We're finding the same problem as the report quoted below.  Briefly,
> we've a bitmap we want to show in aLiveFolderrow.  We have the
> object in memory as a Bitmap.  It's not stored as a blob in the local
> SQLite database
>
> Returning the Bitmap object as the value for the
> LiveFolders.ICON_BITMAP column (using a MatrixCursor) results in a
> NPE:
>
> E/AndroidRuntime( 3886): java.lang.NullPointerException
> E/AndroidRuntime( 3886):        at
> com.android.launcher.Utilities.createBitmapThumbnail(Utilities.java:
> 154)
> E/AndroidRuntime( 3886):        at
> com.android.launcher.LiveFolderAdapter.loadIcon(LiveFolderAdapter.java:
> 144)
> E/AndroidRuntime( 3886):        at
> com.android.launcher.LiveFolderAdapter.bindView(LiveFolderAdapter.java:
> 93)
> E/AndroidRuntime( 3886):        at
> android.widget.CursorAdapter.getView(CursorAdapter.java:186)
>
> Calling Bitmap.compress() on the Bitmap object and returning the
> resulting byte array results in the same NPE.  If we return a SQL
> cursor instead of a MatrixCursor and use a blob value from the local
> db, OTOH, we don't get the NPE.  It seems the LiveFolderAdapter code
> is built to work with a SQLite blob and nothing else.
>
> 1) Can anyone give a way to convert a Bitmap object to a SQLite blob?
>
> 2) Should this be entered into the issues db, as a documentation error
> if nothing else? (LiveFolders javadoc defines ICON_BITMAP as "Icon of
> the live folder item, as a custom bitmap").
>
> thanks,
> -Harry
>
> On May 19, 4:23 am, Flo  wrote:
>
>
>
> > Hi *,
>
> > Regarding LiveFolders ContentProviders:
> > Did anyone ever get the per-instance Icon alive using the
> > LiveFolders.ICON_BITMAP column variant?
>
> > Thehttp://developer.android.com/reference/android/provider/LiveFolders.h...
> > JavaDoc
>
> > clearly sais it requires a Bitmap instance, but the consumer just
> > calls a byte[] getBlob()  to get the image data.
>
> > see 
> > here:http://www.netmite.com/android/mydroid/donut/packages/apps/Launcher/s...
>
> > looks like a design inconsistency for me --> "cannot work".
>
> > Regarding the fillWindow solution by nEx.Software 
> > fromhttp://groups.google.com/group/android-developers/msg/df827eac13582883
>
> > Could someone post how this is done? I did not find out how to add a
> > blob[] as expected by the LiveFolderAdapter layer nor how to add an
> > entry for an Object like Bitmap.
>
> > Thanks & best regards,
> > Flo
>
> > --
> > 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 
> > athttp://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: IP infringements on the Market

2010-07-12 Thread dipu
Very interesting topic. I would like to learn more about it. I have
few apps in the market and several others prototyped. I am concerned
about how do I know if I am violating any copyrights or other IP. For
example I took a picture of a globe and edited the image and put it as
an app icon. I have copied icons that come with the simulator and
modified them and bundled with my app. For my next game app I am
getting tempted to put some Disney characters. Are these actions
violating any laws? These are my pet projects. I cannot afford to dig
much into these concerns. It will be great if someone in this forum
tell me some general guidelines.

Thanks,
Dipu

On Jul 10, 3:10 am, michael  wrote:
> Hi folks,
>
> I thought I would ask other developers for their opinions on the large
> number of apps on the market which seem to infringe on third-party
> intellectual property.
>
> I have apps in the free Casual Game category, and a quick count
> reveals that out of the 200 top apps, at least 30 very likely infringe
> on third-party copyrights and/or trademarks. I believe similar numbers
> apply to other categories.
>
> This of course may place the developers of these apps at risk of
> lawsuits, and is also a breach of the Market terms and conditions.
>
> My worry, however, is that these apps constitute unfair competition:
> they use "stolen" intellectual property to promote themselves, thus
> out-ranking competing apps which play fair. For example, I would love
> to use Disney material in one of my games. I asked Disney and did not
> obtain a permission, hence I am not using their material. Yet my game
> has to compete against other games which do use Disney material,
> almost certainly without permission.
>
> Maybe these are just the rantings of a slightly bitter developer of
> not-massively-successful apps. But maybe my concerns also ring a bell
> for other developers. What do you think? Should infringing apps just
> be accepted, or is there something we as a community can do to deal
> with the problem? It would also be good to hear the thoughts of
> developers of infringing apps.
>
> Best,
> Michael.

-- 
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] long process of automatic configuration after installation

2010-07-12 Thread dipu
I have an app that requires a long process of automatic configuration
after installation. What is the best way to do this? Currently I am
using AsyncTask. I call it from onCreate(). I still get "ANR
keyDispatchingTimedOut" error report and other "force close" comment
from users. However I do not see any such issues with my Droid and
emulators.

I am thinking of using Service class. However I feel like it is
wasteful to register a service for just one time use.

Thanks,
Dipu

-- 
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: Save file to sd card?

2010-04-22 Thread dipu
I believe there is only one way to create files and directories it
must be in the sd card. There are two ways to save data in files a)
via SharedPreferences and b) save in sdcard. The only other way to
save data in the phone is in the database.

If you use SharedPreferences generally speaking the data is not
available to other apps. Also if your data in the XML file is large it
is better to save it in the sd card.
Developers are not following any standard(rather common sense) in
creating files and directories. Most developers, including some google
employees create app name directory in the root of sd card. I think
the best way is to create directory like this "/sdcard/
com.google.android.apps.listen". I have been doing like this "/sdcard/
com/myco/myapp" and I am going to change my practice :-).

You can use regular Java file API classes to create and access files.
You will have to make sure that you set user permission for writing
into the file in your manifest file. Other important thing is obtain
the root of the "/sdcard" using API calls and do not hard code it.

--dipu





On Apr 22, 11:03 am, Tommy  wrote:
> Hi,
>
> I am trying to find the best way to save files to the phone. Basically
> I have an XML file on a web server that I would like to be able to
> save on the phone. Should I create a specific folder in my project to
> save to and if so how do I save the file. Or should I make it to where
> when you click the Save button it checks for an SD card and if there
> is and SD card create a folder(if one isn't already there) and save
> the file in the new folder or save it to the phone?
>
> If someone could explain the most efficient way of saving files for my
> app and how to save the file from the web server I would greatly
> appreciate the insight. Any tutorial links would be awesome.
>
> Thanks!!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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] Custom LiveFolders

2010-04-20 Thread dipu
Is there a way to customize the android.provider.LiveFolders for
display purposes? For example I would like to show rounded border,
size the folder(height and width) according to the content, etc.

-- 
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: LiveFolders Cursor-returned Intent not working

2010-04-20 Thread dipu
Hope you tried this 
http://developer.android.com/intl/de/resources/articles/live-folders.html.
At the bottom of the page you will see a link to the sample code.

--dipu

-- 
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] finishPackage() vs restartPackage()

2010-03-22 Thread dipu
I think there should be a finishPackage() function similar to the
restartPackage(). There should be a way to stop some tasks without
killing the process. For example sometimes I need to stop music
running in the background,  alarm going in the background etc. It
takes way too many steps to stop such apps. Specially at 6 in the
morning when I try to stop that annoying rooster alarm :)

restartPackage() issues death notification. Most of the time I do not
want to do that. I would like to simply close(finish) a task
normally.

Thanks,
dipu

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] Re: Restarting an activity within a tab (TabActivity)

2010-03-17 Thread dipu
I also have not found any way to RESTART an activity. For tab activity
what I do is reload the widgets at onResume() call.
Thanks,


On Mar 13, 3:21 pm, Mark Wyszomierski  wrote:
> Hi,
>
> I have a TabActivity, each tab holds an activity. At some point I'd
> like to 'refresh' the tabs. I'd basically like to restart each
> activity in the tabs. I'm not sure how to do this. Calling:
>
>    getTabHost().clearTabs();
>
> removes the tabs, but the activities still seem to be in alive, in
> limbo. How can I get them to really quit?
>
> Thanks

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