[android-developers] Error in the bowser in Android accessing my web site: The server failed to communicate. Try again later.

2010-09-15 Thread powder
Hi,

I have a problem accessing my web site from the Android browser, see
the error below. On a desktop in Chrome for instance it works
perfectly.
I think it has do do with DNS or something in the setup, Im using
Google Apps as the WEB-site provider and another company as the domain
registrar.

Anyone know whats going on?

Also the browser add some characters in the end of the call:

dat=http://www.unidevsolutions.com/SeUXX/

09-15 14:00:22.067: DEBUG/MobileDataStateTracker(85): replacing old
mInterfaceName (rmnet0) with rmnet0 for dun
09-15 14:00:22.067: DEBUG/MobileDataStateTracker(85): replacing old
mInterfaceName (rmnet0) with rmnet0 for hipri
09-15 14:00:22.067: DEBUG/MobileDataStateTracker(85): replacing old
mInterfaceName (rmnet0) with rmnet0 for supl
09-15 14:00:22.077: DEBUG/MobileDataStateTracker(85): replacing old
mInterfaceName (rmnet0) with rmnet0 for mms
09-15 14:00:22.077: DEBUG/MobileDataStateTracker(85): default Received
state= CONNECTED, old= CONNECTED, reason= (unspecified), apnTypeList=
*
09-15 14:00:22.077: DEBUG/NetworkLocationProvider(85):
onDataConnectionStateChanged 3
09-15 14:00:22.447: WARN/InputManagerService(85): Window already
focused, ignoring focus gain of:
com.android.internal.view.iinputmethodclient$stub$pr...@44bf4188
09-15 14:00:24.457: DEBUG/dalvikvm(154): GC_EXTERNAL_ALLOC freed 2459
objects / 121592 bytes in 105ms
09-15 14:00:25.672: DEBUG/SearchDialog(8058): launching Intent
{ act=android.intent.action.SEARCH flg=0x1000
cmp=com.android.browser/.BrowserActivity (has extras) }
09-15 14:00:25.677: INFO/SearchDialog(8058): Starting (as ourselves)
#Intent;action=android.intent.action.SEARCH;launchFlags=0x1000;component=com.android.browser/.BrowserActivity;S.query=http
%3A%2F%2Fwww.unidevsolutions.com%2F;S.user_query=http%3A%2F
%2Fwww.unidevsolutions.com%2F;end
09-15 14:00:25.677: INFO/ActivityManager(85): Starting activity:
Intent { act=android.intent.action.SEARCH flg=0x1000
cmp=com.android.browser/.BrowserActivity (has extras) }
09-15 14:00:26.407: INFO/ActivityManager(85): Starting activity:
Intent { act=android.intent.action.VIEW
cat=[android.intent.category.BROWSABLE] dat=http://
www.unidevsolutions.com/SeUXX/
cmp=com.android.browser/.BrowserActivity }
09-15 14:00:28.427: DEBUG/dalvikvm(8058): GC_FOR_MALLOC freed 6082
objects / 507880 bytes in 87ms
09-15 14:00:28.457: ERROR/Tab(8058): onReceivedError -7
http://www.unidevsolutions.com/ The server failed to communicate. Try
again later.
09-15 14:00:29.197: DEBUG/dalvikvm(85): GC_EXPLICIT freed 30865
objects / 1359096 bytes in 122ms

Regards Jonas.

-- 
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] Adding android:targetSdkVersion=4 gives me a sdcard (Permission denied)

2010-07-08 Thread powder
Hi,

I have a piece of code that copies a file to the sdcard, it always
worked. But changing the following
line in the Manifest from:

uses-sdk android:minSdkVersion=3/

to

uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4/

Gives me a error (have not changed anything else). Anyone have an
explanation?

07-08 13:13:38.121: ERROR/myApp(266): /mnt/sdcard/myapp/customer.db
(Permission denied)
07-08 13:13:38.121: ERROR/myApp(266): java.io.FileNotFoundException: /
mnt/sdcard/myappt/customer.db (Permission denied)
07-08 13:13:38.121: ERROR/myApp(266): at
org.apache.harmony.luni.platform.OSFileSystem.openImpl(Native Method)
07-08 13:13:38.121: ERROR/myApp(266): at
org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:
152)

Regards Jonas.

-- 
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: Adding android:targetSdkVersion=4 gives me a sdcard (Permission denied)

2010-07-08 Thread powder

I have this already in my Manifest:

...
uses-permission
android:name=android.permission.WRITE_EXTERNAL_STORAGE/
uses-permission
android:name=android.permission.READ_EXTERNAL_STORAGE/
/application
uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4/
/manifest

On Jul 8, 1:34 pm, Mark Murphy mmur...@commonsware.com wrote:
 The WRITE_EXTERNAL_STORAGE permission was added in API Level 4. By
 saying you are targeting that API level, you will need to add that
 permission to your manifest.





 On Thu, Jul 8, 2010 at 7:28 AM, powder andr...@unidevsolutions.com wrote:
  I have a piece of code that copies a file to the sdcard, it always
  worked. But changing the following
  line in the Manifest from:

  uses-sdk android:minSdkVersion=3/

  to

  uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4/

  Gives me a error (have not changed anything else). Anyone have an
  explanation?

  07-08 13:13:38.121: ERROR/myApp(266): /mnt/sdcard/myapp/customer.db
  (Permission denied)
  07-08 13:13:38.121: ERROR/myApp(266): java.io.FileNotFoundException: /
  mnt/sdcard/myappt/customer.db (Permission denied)
  07-08 13:13:38.121: ERROR/myApp(266):     at
  org.apache.harmony.luni.platform.OSFileSystem.openImpl(Native Method)
  07-08 13:13:38.121: ERROR/myApp(266):     at
  org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:
  152)

  Regards Jonas.

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

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

 Android App Developer Books:http://commonsware.com/books

-- 
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] Starting the emulator in QVGA screen size produces a skewded DatePicker in default Android settings

2010-07-08 Thread powder
Hi,

Starting the emulator with 2.2 and QVGA screen size, going into
Settings, Date  time, uncheck Automatic if set, Set date.
The DatePicker year part is not displayed fully, Only 1/3 of the year
is shown, the rest does not fit the screen.
It seems Android DatePicker do not scale for small screens?

Regards Jonas.

-- 
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: Adding android:targetSdkVersion=4 gives me a sdcard (Permission denied)

2010-07-08 Thread powder

It works und 2.2 in the emulator, so the new path is tested and works,
but changing to the following it stops working:

uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4/

instead of

uses-sdk android:minSdkVersion=3/

Is it a bug or what am I not doing correctly?

On Jul 8, 2:31 pm, Adrian Vintu adrianvi...@gmail.com wrote:
 thank you Mark. good to know :)



 On Thu, Jul 8, 2010 at 2:27 PM, Mark Murphy mmur...@commonsware.com wrote:
  On Thu, Jul 8, 2010 at 8:16 AM, Adrian Vintu adrianvi...@gmail.com
  wrote:
   where does the /mnt come from in /mnt/sdcard/myapp/customer.db ?

   could it be that your path is wrong? should it not be /sdcard/...?

  The path varies by device and Android release. /mnt/sdcard is typical
  for Android 2.2, at least in the emulator.

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

  Android App Developer Books:http://commonsware.com/books

  --
  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.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Adding android:targetSdkVersion=4 gives me a sdcard (Permission denied)

2010-07-08 Thread powder

I finally found the problem, my post above and my code was wrong,
moving the permissions outside /application tag worked:

/application
uses-permission
android:name=android.permission.WRITE_EXTERNAL_STORAGE/
uses-permission
android:name=android.permission.READ_EXTERNAL_STORAGE/
uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4/

Many thanks for all the suggestions...

On Jul 8, 6:37 pm, powder andr...@unidevsolutions.com wrote:
 It works und 2.2 in the emulator, so the new path is tested and works,
 but changing to the following it stops working:

 uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4/

 instead of

 uses-sdk android:minSdkVersion=3/

 Is it a bug or what am I not doing correctly?

 On Jul 8, 2:31 pm, Adrian Vintu adrianvi...@gmail.com wrote:



  thank you Mark. good to know :)

  On Thu, Jul 8, 2010 at 2:27 PM, Mark Murphy mmur...@commonsware.com wrote:
   On Thu, Jul 8, 2010 at 8:16 AM, Adrian Vintu adrianvi...@gmail.com
   wrote:
where does the /mnt come from in /mnt/sdcard/myapp/customer.db ?

could it be that your path is wrong? should it not be /sdcard/...?

   The path varies by device and Android release. /mnt/sdcard is typical
   for Android 2.2, at least in the emulator.

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

   Android App Developer Books:http://commonsware.com/books

   --
   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.comandroid-developers%2Bunsubs
cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Certain apps not being shown in Android Market?

2010-06-12 Thread powder
I now have the wrong download count in Android Market... What is going
on?

On Jun 11, 11:55 pm, niko001 ebs...@googlemail.com wrote:
 Still not working for me :-/! I've just found a pirated version of one
 of my apps (that had copy-protection enabled) floating around on
 several different sites, so the copy protection apparently isn't doing
 much good anyway and I can safely disable it ;-)!

 On Jun 9, 1:17 am, TreKing treking...@gmail.com wrote:



  On Tue, Jun 8, 2010 at 4:17 PM, powder andr...@unidevsolutions.com wrote:
   Google did a fix:

  http://android-developers.blogspot.com/2010/06/application-visibility...

  I like this part:

  Regrettably, we fell short of our own standard for customer support by not

   communicating the issue to our developers and how we were working to 
   resolve
   it.

  Apparently Google has a standard for customer support. Who knew.

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

-- 
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: Certain apps not being shown in Android Market?

2010-06-08 Thread powder

Google did a fix:

http://android-developers.blogspot.com/2010/06/application-visibility-issues.html

On 29 Mai, 12:00, powder andr...@unidevsolutions.com wrote:
 Here I got it here:

 http://android.clients.google.com/packages/passion/signed-passion-FRF...

 But they removed the link now:-)

 I still have the zip, if you want it I can send it to you...

 On May 28, 10:24 pm, Mark Murphy mmur...@commonsware.com wrote:



  powder wrote:
   I thought 2.2 was offical

  SDK, yes. Nexus One or other hardware, no.

   I have installed a true 2.2
   from Google
   on a non rooted Nexus phone.

  Please point me to the Google blog post or Web page indicating that this
  was true.

   Should not Google make sure this works
   before
   even putting up the new SDK and before rolling out 2.2.

  They have not rolled out 2.2 to hardware yet.

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

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

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


[android-developers] Re: Certain apps not being shown in Android Market?

2010-05-29 Thread powder

Here I got it here:

http://android.clients.google.com/packages/passion/signed-passion-FRF50-from-ERE27.1e519a24.zip

But they removed the link now:-)

I still have the zip, if you want it I can send it to you...


On May 28, 10:24 pm, Mark Murphy mmur...@commonsware.com wrote:
 powder wrote:
  I thought 2.2 was offical

 SDK, yes. Nexus One or other hardware, no.

  I have installed a true 2.2
  from Google
  on a non rooted Nexus phone.

 Please point me to the Google blog post or Web page indicating that this
 was true.

  Should not Google make sure this works
  before
  even putting up the new SDK and before rolling out 2.2.

 They have not rolled out 2.2 to hardware yet.

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

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

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


[android-developers] Re: Certain apps not being shown in Android Market?

2010-05-28 Thread powder

Hi,

Thanks... I thought 2.2 was offical, I have installed a true 2.2
from Google
on a non rooted Nexus phone. Should not Google make sure this works
before
even putting up the new SDK and before rolling out 2.2.

Regards Jonas.

On May 27, 9:19 am, String sterling.ud...@gmail.com wrote:
 On May 27, 3:44 am, powder andr...@unidevsolutions.com wrote:

  When is Google going to fix this problem?

  Not related but also a point to mention is that all rooted phones out
  there will
  not be able to see the copy protected apps. Probably since they can
  log in with root
  and get access to the apk files.

 You've just answered your own question. This problem is by design -
 intended to stop users of rooted devices from accessing copy-protected
 APKs - and so is never going to be fixed. You either need to remove
 copy protection (a solution you already found), or wait until the 2.2/
 NexusOne combo is official, at which time Google will enable full
 Market access for it.

 Or find another outlet for your apps, but that's a whole 'nother ball
 of worms. :^)

 String

-- 
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: Certain apps not being shown in Android Market?

2010-05-26 Thread powder

Hi,

I have the same problem and its definitely the copy protection. I have
a Nexus
which I updated to Froyo and now I have to turn off the copy
protection in order
for my app to show up in the market. When is Google going to fix this
problem?

Not related but also a point to mention is that all rooted phones out
there will
not be able to see the copy protected apps. Probably since they can
log in with root
and get access to the apk files. This was there even before Froyo.

Regards Jonas.

On May 24, 5:40 am, programingjd programin...@gmail.com wrote:
 I think that's it. I took off the copy protection and my app started
 showing up again.
 I don't know for sure that this is the reason because I changed other
 things, but
 it seems like it is.

 On May 23, 10:23 pm, Lance Nanek lna...@gmail.com wrote:





  Are you using the copy protection option in the Market publishing
  console?

  On May 23, 11:33 am, niko001 ebs...@googlemail.com wrote:

   Hi,

   thanks for your answers.

   Yahel, that's a good point, the Google I/O-Android-Keynote talked
   about market filtering for certain features (so that an application
   requiring a touchscreen is not shown in the Market of a Google TV-
   Device, for example).

   What's weird, however: I have a paid and a free (Demo/Lite) version
   of the same app, which are basically identical in their code (the demo
   has obviously less content, but the manifests are identical, apart
   from the app name), and the Lite version is showing up in the 2.2
   market, the paid version isn't :-/! However, other paid versions are
   visible, so it's not an issue of no paid apps at all, just a few
   aren't showing...

   I'll keep you updated, but would love an official statement (from
   someone who knows what's going on :-)!) whether this is something I
   need to fix, or if it's a general Market-issue which Google needs to
   fix.

   Best regards,
   Nick

   On 23 Mai, 17:18, Hermes Pique hermespi...@gmail.com wrote:

I'm having the same problem. Some users are reporting that one of our
apps doesn't show up the Android Market with Froyo.

Best,

H.

On May 23, 1:37 pm, niko001 ebs...@googlemail.com wrote:

 Hi,

 some of my apps are not being shown in the market after updating to
 2.2 (for no obvious reason, doesn't seem to be based on whether they
 are paid/free apps or on their target/minsdk-value). I've seen users
 reporting the same issues with a variety of apps on other forums, so
 I'm not the only one experiencing this, but no one seems to know a
 fix. Is this a bug in the Market, or can I do anything on my side
 (change the target-property of my apps, permissions that are no longer
 supported, or anything along those lines)?

 The apps are still installed on my 2.2 phone and they still work
 flawlessly, they are just not being shown in the Downloads tab in
 the market and I can't find them through the search, either.

 Thanks for your help,
 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 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 
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 
   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 
  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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this 

[android-developers] Detect and pick up Gesture in a filled ListActivity

2010-04-24 Thread powder

Hi,

I have a piece of code that enables me to detect fling/swipe left and
right, thereby calling moveLeft() and moveRight().
This works fine in a normal Activity and ListActivity. When the
ListActivity screen is fully filled with entries this code
does not pick up the fling/swipe, but instead triggers the

protected void onListItemClick(ListView l, View v, int position, long
id) {

How can I code this both allowing fling/swipe left and right and also
detecting  onListItemClick?

Regards Jonas.

mGestureDetector = new GestureDetector(context, new
GestureDetector.SimpleOnGestureListener() {
public boolean onFling(MotionEvent e1, MotionEvent e2,
float velocityX, float velocityY) {
int dx = (int) (e2.getX() - e1.getX());

if (Math.abs(dx)  MAJOR_MOVE  Math.abs(velocityX) 
Math.abs(velocityY)) {
if (velocityX  0) {
moveRight();
} else {
moveLeft();
}
return true;
} else {
return false;
}
}
});

-- 
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: Weekpicker?

2010-04-23 Thread powder

Hi,

Id like the picker to look like the default DatePicker in Android.
But only with month and then add the week (for that month).

+ +
Jan  Week 2
- -

I assume I could reuse the existing code?
Maybe someone did this?

Any help appreciated...

On Apr 23, 1:03 am, ~ TreKing treking...@gmail.com wrote:
 On Thu, Apr 22, 2010 at 3:53 PM, powder jonas.hey...@gmail.com wrote:
  Anyone have an idea how to code a WeekPicker much like existing DatePicker
  and TimePicker?

 You should probably define what it means to pick a week and how this would
 look.

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

 --
 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] Weekpicker?

2010-04-22 Thread powder

Hi,

Anyone have an idea how to code a WeekPicker much like existing
DatePicker and TimePicker?
Code example?

Many Thanks,
Regards Carl

-- 
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: Cant login into android market. Market down?

2010-04-17 Thread powder

I had this too, next day it was gone...

On Apr 16, 1:14 am, Joël Bourquard joel.bourqu...@gmail.com wrote:
 When I go tohttp://market.android.com/publish/Home

 I get a HTTP 404 error.

 Hope this is resolved soon...

 --
 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: Cant login into android market. Market down?

2010-04-16 Thread powder

Hi,

Next day it was working, it seem google market had
some temporary problems...

On Apr 15, 10:43 pm, powder jonas.hey...@gmail.com wrote:
 Cant login into android market get the following error:

 Oops! This link appears to be broken.
 Suggestions:
 Access a cached copy of market. android. com/ publish
 Go to android. com
 Go to market. android. com
 Search on Google:

 After login in to gmail and then using the link:

 http://market.android.com/publish

 I get the above error. What is going on Google?

-- 
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: Sending email with attachment

2010-04-16 Thread powder

Sorry for not responding earlier. This worked for me:

public static void sendFile(Context context) {
String emailPreference =
PreferenceManager.getDefaultSharedPreferences(context).getString(emailPreference,
);
String subjectPreference =
PreferenceManager.getDefaultSharedPreferences(context).getString(subjectPreference,
);
String bodyPreference =
PreferenceManager.getDefaultSharedPreferences(context).getString(bodyPreference,
);
if(subjectPreference.length() == 0) {
subjectPreference = (String)
context.getText(R.string.csv_subject);
}
String csvFile = getFilename();
File file = new File(csvFile);
if(file.exists()) {
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_EMAIL, new String[]
{emailPreference});
sendIntent.putExtra(Intent.EXTRA_SUBJECT, 
subjectPreference);
sendIntent.putExtra(Intent.EXTRA_TEXT, bodyPreference);
sendIntent.setType(text/csv);
sendIntent.putExtra(Intent.EXTRA_STREAM, 
Uri.fromFile(new
File(csvFile)));
context.startActivity(Intent.createChooser(sendIntent,
context.getText(R.string.csv_send)));
} else {
Util.displayToast(context, R.string.no_csv_file);
}
}

On Apr 14, 10:18 am, Scout Ma scoutma2...@gmail.com wrote:
 Thanks for your help.
 I want to write an application which will send email with an
 attachment through GMail on Android.
 But I don't have much time to study the basic of JavaMail.
 So, I wonder is there any sample for me to get in quickly.

 2010/4/14 Kumar Bibek coomar@gmail.com

 So, you want to learn how to create an email app? It depends actually
 on the protocol that you want to work with. For POP and IMAP, there
 are libraries which you have to use. Check out Java Mail API 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Cant login into android market. Market down?

2010-04-15 Thread powder
Cant login into android market get the following error:

Oops! This link appears to be broken.
Suggestions:
Access a cached copy of market. android. com/ publish
Go to android. com
Go to market. android. com
Search on Google:

After login in to gmail and then using the link:

http://market.android.com/publish

I get the above error. What is going on Google?

-- 
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, reply using remove me as the subject.


[android-developers] Re: Sending email with attachment

2010-04-07 Thread powder

Hi,

Thanks so much Kumar!

It turned out to be the placement of the line:

sendIntent.setType(text/csv)

Regards Jonas.

On Apr 5, 2:43 pm, Kumar Bibek coomar@gmail.com wrote:
 public static void sendFile(Context context) {
                 File exportDir = new 
 File(Environment.getExternalStorageDirectory(),
                                 mydir);
                 if (!exportDir.exists()) {
                         exportDir.mkdirs();
                 }
                 String csvFile = exportDir + /file.csv;
                 File file = new File(csvFile);
                 if (file.exists()) {
                         Intent sendIntent = new Intent(Intent.ACTION_SEND);
                         sendIntent.putExtra(Intent.EXTRA_SUBJECT, CSV file);
                         sendIntent.setType(text/csv);
                         sendIntent.putExtra(Intent.EXTRA_STREAM, 
 Uri.parse(file://
                                         + 
 Environment.getExternalStorageDirectory()
                                         + /mydir/file.csv));
                         sendIntent.putExtra(Intent.EXTRA_STREAM, Uri
                                         
 .parse(file:///sdcard/mydir/file.csv));
                         context.startActivity(Intent.createChooser(sendIntent,
                                         Send CSV file));
                 } else {
                         Toast.makeText(context, TTT, 
 Toast.LENGTH_LONG).show();
                 }

 This piece of code works fine. I got the mail with the attachment.

 Thanks and Regards,
 Kumar Bibek

 On Apr 5, 5:31 pm, Kumar Bibek coomar@gmail.com wrote:



  I will try this and let you know.

  Thanks and Regards,
  Kumar Bibek

  On Apr 2, 3:09 am, powder jonas.hey...@gmail.com wrote:

   The logcat says:

   ...
   04-01 18:33:06.230: INFO/ActivityManager(76): Starting activity:
   Intent { act=android.intent.action.SEND typ=text/csv flg=0x300
   cmp=com.google.android.gm/.ComposeActivityGmail (has extras) }
   04-01 18:33:06.290: INFO/ActivityManager(76): Starting activity:
   Intent { act=android.intent.action.SEND typ=text/csv flg=0x280
   cmp=com.google.android.gm/.ComposeActivity (has extras) }
   04-01 18:33:06.589: DEBUG/Gmail(4465): ComposeActivity added to
   message:0 attachment:|file.csv|text/csv|0|text/csv|LOCAL_FILE|file:///
   sdcard/mydir/file.csv size:0
   04-01 18:33:06.609: INFO/Gmail(4465):  Attachment uri:
   file:///sdcard/mydir/file.csv
   04-01 18:33:06.609: INFO/Gmail(4465):            type: text/csv
   04-01 18:33:06.609: INFO/Gmail(4465):            name: file.csv
   04-01 18:33:06.609: INFO/Gmail(4465):            size: 0
   ...

   and the file size is 0. My file is attached in the email as a file but
   always with 0 bytes (my file is 510 bytes)?

   On Apr 1, 1:27 pm, Kumar Bibek coomar@gmail.com wrote:

Some logcat logs will be helpful in trying to figure out what went
wrong.

Thanks and Regards,
Kumar Bibek

On Apr 1, 2:10 pm, powder jonas.hey...@gmail.com wrote:

 Hi,

 I never got this to work on a real device, got the email but no
 attachment, also when installing K9 on a emulator and
 then sending the email I see the mail in the outbox with a size of 0
 bytes:

 public static void sendFile(Context context) {
   File exportDir = new File(Environment.getExternalStorageDirectory(),
 mydir);
   if (!exportDir.exists()) {
     exportDir.mkdirs();
   }
   String csvFile = exportDir + /file.csv;
   File file = new File(csvFile);
   if(file.exists()) {
     Intent sendIntent = new Intent(Intent.ACTION_SEND);
     sendIntent.putExtra(Intent.EXTRA_SUBJECT, CSV file);
     sendIntent.setType(text/csv);
     //sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
     //sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file:// +
 Environment.getExternalStorageDirectory() + /mydir/file.csv));
     sendIntent.putExtra(Intent.EXTRA_STREAM, 
 Uri.parse(file:///sdcard/
 mydir/file.csv));
     context.startActivity(Intent.createChooser(sendIntent, Send CSV
 file));
   } else {
     Util.displayToast(context, R.string.no_csv_file);
   }

 }

 Any help appreciated.

-- 
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, reply using remove me as the subject.


[android-developers] EXTRA_STREAM: Attachment URI size 0

2010-04-03 Thread powder
Hi,

Upon attaching an email via the following code:

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_SUBJECT, CSV file);
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file:// +
Environment.getExternalStorageDirectory() + /mydir/file.csv));
sendIntent.setType(text/csv);
context.startActivity(Intent.createChooser(sendIntent, Send CSV
file));

I get the file attached with 0 bytes? Anyone seen this or could help
further to debug this?


04-01 18:33:11.119: INFO/UsageStats(76): Unexpected resume of
com.google.android.gm while already resumed in com.google.android.gm
04-01 18:33:11.339: DEBUG/dalvikvm(4465): GC freed 4306 objects /
233312 bytes in 134ms
04-01 18:33:11.369: DEBUG/Gmail(150): MailProvider.query:
content://gmail-ls/messages/xyz@gmail.com/369(null, null)
04-01 18:33:11.389: INFO/Gmail(4465):  Attachment uri:
file:///sdcard/mydir/file.csv
04-01 18:33:11.389: INFO/Gmail(4465):type: text/csv
04-01 18:33:11.389: INFO/Gmail(4465):name: file.csv
04-01 18:33:11.389: INFO/Gmail(4465):size: 0
04-01 18:33:11.429: INFO/ActivityManager(76): Start proc
android.process.acore for content provider
com.android.providers.contacts/.ContactsProvider2: pid=5532 uid=10010
gids={3003, 1015}
04-01 18:33:11.549: INFO/dalvikvm(5532): Debugger thread not active,
ignoring DDM send (t=0x41504e4d l=38)
04-01 18:33:11.569: INFO/dalvikvm(5532): Debugger thread not active,
ignoring DDM send (t=0x41504e4d l=46)
04-01 18:33:11.569: INFO/ActivityThread(5532): Publishing provider
com.android.globalsearch.SuggestionProvider:
com.android.globalsearch.SuggestionProvider
04-01 18:33:11.610: INFO/FieldContext(161): Bundle =
Bundle[{imeOptions=1073741829, packageName=com.google.android.gm,
inputType=196641, hint=To, label=, fieldName=, fieldId=2131230725,
singleLine=false}]


Regards Jonas.

-- 
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, reply using remove me as the subject.


[android-developers] Sending email with attachment does not include the attachment

2010-04-01 Thread powder
Hi,

I never got this to work on a real device, got the email but no
attachment, when installing K9 on a emulator and
then sending the email I see the mail in the outbox with a size of 0
bytes:


public static void sendFile(Context context) {
File exportDir = new 
File(Environment.getExternalStorageDirectory(),
file.csv);
if (!exportDir.exists()) {
exportDir.mkdirs();
}
String csvFile = exportDir + /file.csv;
File file = new File(csvFile);
if(file.exists()) {
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_SUBJECT, CSV file);
sendIntent.setType(text/csv);
//
sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
sendIntent.putExtra(Intent.EXTRA_STREAM, 
Uri.parse(file:///sdcard/
mydir/file.csv));
context.startActivity(Intent.createChooser(sendIntent, 
Send CSV
file));
} else {
Util.displayToast(context, R.string.no_csv_file);
}
}

Anyone got it to work to send email with attachment?

Any help appreciated.

-- 
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, reply using remove me as the subject.


[android-developers] Sending email with attachment

2010-04-01 Thread powder
Hi,

I never got this to work on a real device, got the email but no
attachment, also when installing K9 on a emulator and
then sending the email I see the mail in the outbox with a size of 0
bytes:

public static void sendFile(Context context) {
  File exportDir = new File(Environment.getExternalStorageDirectory(),
mydir);
  if (!exportDir.exists()) {
exportDir.mkdirs();
  }
  String csvFile = exportDir + /file.csv;
  File file = new File(csvFile);
  if(file.exists()) {
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_SUBJECT, CSV file);
sendIntent.setType(text/csv);
//sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
//sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file:// +
Environment.getExternalStorageDirectory() + /mydir/file.csv));
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file:///sdcard/
mydir/file.csv));
context.startActivity(Intent.createChooser(sendIntent, Send CSV
file));
  } else {
Util.displayToast(context, R.string.no_csv_file);
  }
}

Any help appreciated.

-- 
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, reply using remove me as the subject.


[android-developers] Re: Sending email with attachment

2010-04-01 Thread powder

The logcat says:

...
04-01 18:33:06.230: INFO/ActivityManager(76): Starting activity:
Intent { act=android.intent.action.SEND typ=text/csv flg=0x300
cmp=com.google.android.gm/.ComposeActivityGmail (has extras) }
04-01 18:33:06.290: INFO/ActivityManager(76): Starting activity:
Intent { act=android.intent.action.SEND typ=text/csv flg=0x280
cmp=com.google.android.gm/.ComposeActivity (has extras) }
04-01 18:33:06.589: DEBUG/Gmail(4465): ComposeActivity added to
message:0 attachment:|file.csv|text/csv|0|text/csv|LOCAL_FILE|file:///
sdcard/mydir/file.csv size:0
04-01 18:33:06.609: INFO/Gmail(4465):  Attachment uri:
file:///sdcard/mydir/file.csv
04-01 18:33:06.609: INFO/Gmail(4465):type: text/csv
04-01 18:33:06.609: INFO/Gmail(4465):name: file.csv
04-01 18:33:06.609: INFO/Gmail(4465):size: 0
...

and the file size is 0. My file is attached in the email as a file but
always with 0 bytes (my file is 510 bytes)?

On Apr 1, 1:27 pm, Kumar Bibek coomar@gmail.com wrote:
 Some logcat logs will be helpful in trying to figure out what went
 wrong.

 Thanks and Regards,
 Kumar Bibek

 On Apr 1, 2:10 pm, powder jonas.hey...@gmail.com wrote:



  Hi,

  I never got this to work on a real device, got the email but no
  attachment, also when installing K9 on a emulator and
  then sending the email I see the mail in the outbox with a size of 0
  bytes:

  public static void sendFile(Context context) {
    File exportDir = new File(Environment.getExternalStorageDirectory(),
  mydir);
    if (!exportDir.exists()) {
      exportDir.mkdirs();
    }
    String csvFile = exportDir + /file.csv;
    File file = new File(csvFile);
    if(file.exists()) {
      Intent sendIntent = new Intent(Intent.ACTION_SEND);
      sendIntent.putExtra(Intent.EXTRA_SUBJECT, CSV file);
      sendIntent.setType(text/csv);
      //sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
      //sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file:// +
  Environment.getExternalStorageDirectory() + /mydir/file.csv));
      sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file:///sdcard/
  mydir/file.csv));
      context.startActivity(Intent.createChooser(sendIntent, Send CSV
  file));
    } else {
      Util.displayToast(context, R.string.no_csv_file);
    }

  }

  Any help appreciated.

-- 
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, reply using remove me as the subject.