[android-developers] Re: Android in China - What is going on?

2009-11-20 Thread westmeadboy
Well, I cannot access: http://www.google.com/mobile/products/sync.html.
Can you (without a VPN)?

I know you just want answers, but I think it would help to clarify the
problem/symptoms too. How is that some people (you) can log on but
others (me) can't?

You might also want to try:

http://www.google.com/support/forum/p/Android+Market/label?lid=7dc8a5c590cd22eehl=en

On Nov 20, 2:23 pm, shimsim shim@gmail.com wrote:
 It has been working for me almost perfectly the last 3 days, but
 twitter and facebook are still blocked, so maybe they are just working
 wherever President Obama is, either way I have a a PPTP VPN setup but
 thats not the point here ...

 Getting back to the original question ..  can someone from GOOGLE
 or ANDROID speak up and let us know whats going on . PLEASE! some
 official reason why and whats going to happen in the long term. It's
 kind of important, this isnt social networking we are talking about,
 its mail and market and its potentially making Android useless in
 China.

 If this is the wrong place to be posting this question then feel free
 to suggest a more appropriate place, but at least respond.

 thanks!

 On Nov 20, 12:54 pm, westmeadboy westmead...@yahoo.co.uk wrote:



  On Nov 19, 4:53 pm, Gmail addictor tsang.a...@gmail.com wrote:

   The sync works again! Market also became accessible! WoooW~~ YEAH!

  Still not working for me - I can't get past the Set up your Google
  account wizard.

  I've tried clearing caches of numerous google/htc apps, but still no
  joy...

  Can anyone else confirm its working in mainland china?

-- 
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: App name/icon problems on Hero after reboot

2009-11-20 Thread phil
Hi,

we have the same problem in one of our apps - instead of the
application name the package name gets displayed. Does someone have an
update on this issue?

thx

On Oct 29, 9:46 pm, Greg Donald gdon...@gmail.com wrote:
 On Thu, Oct 29, 2009 at 1:58 PM, Dianne Hackborn hack...@android.com wrote:
  Has anyone tried installing an alternate home app and seeing if it still
  happens there?  I wonder if this is something in their custom home app.

 I just tried Panda Home and still have the same broken app issues on reboot.

 --
 Greg Donaldhttp://destiney.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] Re: Stop an SMS from being sent from default SMS client.

2009-11-20 Thread Iffi
Hi All,

Well, actually on Symbian, Winmo its getting possible so as being an
advocate of Andriod :) at workplace i have to do it somehow.
someone please guide me how may i change the SMSC programatically, i
have used Anycut to change it manually, i hope there is some way of
doing it programatically as well.
or how may i replace the defualt SMS Application to mine and incase of
what i dont need to handle i pass it onto default application.

regards
Aftab Alam


On Nov 19, 12:56 pm, Gulfam gulfa...@gmail.com wrote:
 Hi All,

  I also want to achieve the same goal as said by Mr Aftab.

 The Goal I want to achieve:
 (As you have seen many apps in market like Truephone those
 intercepts outgoing calls and
 abortBroadcast(); and take user decision to call via GSM or via their
 apps.)

 So i want to achieve this goal with out going sms as with out going
 calls. I want to take user decision on out going sms that he want
 to send sms  Via operator or via my application.

 but I don't know how to achieve it. Any solution or any other way to
 achieve it so please let share with us.
 I am waiting for your response?

 Thanks in advance.
 Gulfam Hassan

 On Nov 18, 6:05 pm, Mark Murphy mmur...@commonsware.com wrote:

  Iffi wrote:
   Hi All,

   i have read a few posts about somehow intercepting the outgoing SMS.

   after some googling i was able to intercept the outgoing SMS by
   getting the outbox.

   Now the problem is that when the SMS comes to outbox i try to delete
   it at the same time, the API shows that the row was deleted from
   outbox but it is sent to the desired phone number as well :S.

   I was thinking of changing the SMS center number programatically and i
   didnt get a clue.
   more over if there is a way the outbound sms can be stopped before
   being sent then plz guide me that way.

  I sincerely hope that it is impossible without firmware modifications. I
  certainly no of know way to achieve what you are seeking. And what
  little you have achieved is outside of the public SDK and therefore is
  likely to break in the future and on OEM-customized devices.

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

  Android 1.6 Programming 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] Re: Getting a Gmail new message intent

2009-11-20 Thread Nedjalko Milenkov
Test

On Nov 19, 2009 2:39 PM, vendor.net vendor@gmail.com wrote:

Hi!

Is there a way to intercept when a new message arrives at Gmail, read
the subject and if the subject contains word to archive and label
the message and to bypass the notification and if not - to notify the
user.

I want to make an application that prevents the user to get
notifications for certain messages, but I don`t know if this is
possible.

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

[android-developers] Re: Managed dialogs with state changes

2009-11-20 Thread Miguel Paraz
Hi,
On Nov 20, 4:24 am, TreKing treking...@gmail.com wrote:
 You may want to clarify what you're asking, but if you mean you need to
 dynamically populate the contents of the dialog or set a different click
 listener based on what the user did to bring up the dialog, then you may
 want to simply call Activity.removeDialog(DIALOG_ID) after you're done with
 it.

 Subsequent calls to Activity.showDialog(DIALOG_ID) will then call
 onCreateDialog(int) again and let you recreate it as necessary based on what
 action the user took.

Yes, that's right. What I had wanted to do was pass a parameter into
showDialog(), if possible. My solution is to use an instance variable
to carry the state in.

-- 
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: Managed dialogs with state changes

2009-11-20 Thread Miguel Paraz
Hi,
On Nov 20, 4:24 am, TreKing treking...@gmail.com wrote:
 You may want to clarify what you're asking, but if you mean you need to
 dynamically populate the contents of the dialog or set a different click
 listener based on what the user did to bring up the dialog, then you may
 want to simply call Activity.removeDialog(DIALOG_ID) after you're done with
 it.

 Subsequent calls to Activity.showDialog(DIALOG_ID) will then call
 onCreateDialog(int) again and let you recreate it as necessary based on what
 action the user took.

Yes, that's right. What I had wanted to do was pass a parameter into
showDialog(), if possible. My solution is to use an instance variable
to carry the state in.

-- 
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 build apk from multiple Eclipse projects?

2009-11-20 Thread James Wang
http://groups.google.com/group/android-developers/browse_thread/thread/911c0c5c5cd50abf/45f3cca8956182ae?lnk=gstq=share+resource#45f3cca8956182ae

This one maybe help!

-- 
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] Saving service killing without startForeground

2009-11-20 Thread Ash
Hi!!,

I am running a background Android Service as VoIP Framework which
provides different VoIP services to different Android applications,
(VoIP call, Video Call, etc). The service establishes a network
connection with the Server(Service Provider) and does some initial
handshake before it can start providing service to the Android
applications, that’s why though of starting the service on
BOOT_COMPLETED event.

The problem is when the service gets started on BOOT_COMPLETED event,
before even it finishes the initial network connection with server and
handshaking, it gets killed by the system.

I have tried using setForeground which improves the behavior a bit but
still gets killed mid-way. I am working with old version 1.5 r3 of SDK
and hence, cannot use startForeground.

Is there a way out or another alternative available with SDK 1.5 r3?

Thanks in advance,
Ash


-- 
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 pass large amount of data during startActivityForResult

2009-11-20 Thread tedd
Mark,

Any idea as to what is the maximum size of data that we can share bw
processes,
Even i am see Failed Binder Transaction error!!! when I give bitmap of
size greater than 1MB to the framework for rendering. (i.e thru
RemoteViews.setImageViewBitmap call) ?

Is there a possibility to get this error when the process is running
out of memory space 


On Nov 4, 4:36 am, Jason Proctor jason.android.li...@gmail.com
wrote:
 why is using a static data member not a real solution?

 i have the same requirement and i use globally accessible singletons
 (containing static references) to share stuff between my activities.
 works like a charm. feels real.

 i don't know whether this adds realness, but WebKit shares its cookie
 managers etc via the same mechanism.

 please let us know if you find a better solution?



 Does anyone have a real answer?

 I need to do this. If you don't know how to do it please don't feel
 obliged to reply to tell me it's not an androidie thing to do.

 On Nov 3, 3:32 pm, Mark Murphy mmur...@commonsware.com wrote:
   tomei.ninge...@gmail.com wrote:
    From one activity, I want to pass a lot of data (about 1MB of
    Strings).

   No, you don't. You want 1MB of data to be available to multiple
   activities. There is a very big difference; you do NOT want to be
   copying 1MB of Strings.

    I tried sticking it in Intent.putExtra(ArrayListString), but if I
    put in too much data, I get FAILEDBINDERTRANSACTION.

   And, among other things, this would be copying 1MB of Strings once or 
  twice.

    What's the easiest way? I don't want to publish a service, or use the
    file system. I really want a pipe that can write data from one end and
    read it from the other end.

    I can handle the case where the starter Activity dies while the
    startee activity is trying to read from the pipe.

   Use a static data member.

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

   Android Training in Germany, 18-22 January 2010:http://bignerdranch.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

 --
 jason.vp.engineering.particle

-- 
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: Log messages no longer appear in LogCat

2009-11-20 Thread westmeadboy
When you have multiple devices/emulators connected its sometimes
important to go the DDMS perspective and select the relevant device in
the left (Devices) pane.

Whenever I see none of them selected then I don't get any logcat
messages and the FileExplorer does not reflect the actual filesystem.

On Nov 20, 3:59 pm, mh haye...@gmail.com wrote:
 No I did not get an answer but I found a solution that works here.
 Disconnect the device before running the emulator.  The messages
 appear in LogCat as expected even if I the device is then
 reconnected.  Debugging on the device seems to disable further logging
 of Logx until the device is again disconnected.

 On Nov 15, 11:11 pm, android beginner mirra07aurobin...@gmail.com
 wrote:



  s i experience the same.did u get any answer

-- 
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] changes made to get 1280X720 resolution??

2009-11-20 Thread shri
hello

how to increase the resolution to get 1280X720.
please tell where to make changes in the source code to get that
resolution. I have android1.5 source code.

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


[android-developers] source code to launch the emulator

2009-11-20 Thread shri
can anybody share the emulator dependent source files.
we are using avd in the emulator for selecting the skin.
so how this avd function is called in the source code. and emulator is
launching  .

is there any maximum resolution set to the emulator??

thanks in advance

-- 
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 build apk for sharing resource like frame-res.apk

2009-11-20 Thread James Wang
Hi,
We are developing a middleware including some widgets for developer.
We want developer to use our widgets to build their apps.

We got stuck at sharing default resource for developers.
We noticed Android makes frame-res.apk to share system resrouces. And
anybody can shed light on how should we do to achieve the same thing?
How can we avoid resource IDs conflicts among system, middle ware and
app?

Best Regards

-- 
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: Android Market Anti-Piracy

2009-11-20 Thread Kaj Bjurman
That does of course depend on in which country you do it. You wouldn't
be allowed to do it in Sweden, and you could be sued there.



On 19 Nov, 18:51, LambergaR martin.s...@gmail.com wrote:
 Which law do you break by gathering personal data without informing
 the user?

-- 
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: Send message from Android emulator to web

2009-11-20 Thread andu
Thank you.  your response helps me very much.

In addition I found a working code from the internet. It may help ...

# public void postData() {
# // Create a new HttpClient and Post Header
# HttpClient httpclient = new DefaultHttpClient();
# HttpPost httppost = new HttpPost(http://www.yoursite.com/
script.php);
#
# try {
# // Add your data
# ListNameValuePair nameValuePairs = new
ArrayListNameValuePair(2);
# nameValuePairs.add(new BasicNameValuePair(id, 12345));
# nameValuePairs.add(new BasicNameValuePair(stringdata,
AndDev is Cool!));
# httppost.setEntity(new UrlEncodedFormEntity
(nameValuePairs));
#
# // Execute HTTP Post Request
# HttpResponse response = httpclient.execute(httppost);
#
# } catch (ClientProtocolException e) {
# // TODO Auto-generated catch block
# } catch (IOException e) {
# // TODO Auto-generated catch block
# }
# }

-- 
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] WiFi configuration issue...

2009-11-20 Thread Asif k
Hi all,

  I want to configure WiFi on my android based board. But in my case I
am getting the name of active SSID withing the network from the
desktop client so I have to configure the board with the same SSID.

  I have searched the APIs available in WiFiManager class and only
possible solution seemed to be,

-
   ListScanResult hotSpots = wifiManager.getScanResults();


for(ScanResult hotSpot: hotSpots) {
String hotSpotSsid = hotSpot.SSID;
String hotSpotBssid = hotSpot.BSSID;
StringBuffer sBuf = new StringBuffer(\);
sBuf.append(hotSpotSsid+\);
hotSpotSsid = sBuf.toString();


if(hotSpotSsid.equals(\myhotspot\)) {


WifiConfiguration wifiConfiguration = new
WifiConfiguration();
wifiConfiguration.SSID = hotSpotSsid;
wifiConfiguration.BSSID = hotSpotBssid;
wifiConfiguration.hiddenSSID = false;
wifiConfiguration.priority = 10;


// add this to the configured networks
int inetId =
wifiManager.addNetwork(wifiConfiguration);
if(inetId  0) {
System.out.println(Unable to add network
configuration for SSID: +hotSpotSsid);
return;
}
// connect to this wifi network

---

 means I have to have list of all the availabe networks and among them
I need to search network with required SSID it will increase
unnecessary operation to connect to the SSID which we know.

Is there any API available to get information regarding whole
WIFIConfiguration if we know only SSID?

Thanks,
Asif

-- 
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] Send SMS when phone gets switch-off

2009-11-20 Thread Nishant
Hi,

I am working on SMS application.
If i switch-off my phone, at that time i want to send SMS.
Is it possible or not?
If yes, which events are used to handle this?

Regards,
Nishant Shah

-- 
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: Uri withAppendedPath not finding contacts

2009-11-20 Thread Sime
Calling/messaging between the emulator instances works fine for me,
that's not what was happening to me.

Solved the problem by changing the locale  text input. It seems when
entering a phonenumber to a contact in the default way ie. 5556 the
number changes to 555-6. I'm assuming this is due to the US area
codes. But if I add a contact through the messaging app, it also works
fine and the number is stored as 5556

I was under the impression that using  Uri contactUri =
Uri.withAppendedPath(Contacts.Phones.CONTENT_FILTER_URL, Uri.encode
(number)); would ignore this and use the same number as entered by the
user.

/Sime

On 18 Nov, 20:59, joebowbeer joe.bowb...@gmail.com wrote:
 Looking ahead:

  Emulator Instances can no longer call/sms each other in SDK 1.5
  http://code.google.com/p/android/issues/detail?id=2660

 --Joe

 On Nov 17, 12:30 am,Simesime...@gmail.com wrote:



  I'm trying to lockup what contact belongs to a specific number. I'm
  sending sms from one emulator instance to another (ie. 5554 to 5556
  for example) and have entered contacts with those numbers. But when
  running the code below my cursor doesn't return anything. The
  filtering seems like it's not working, or I'm doing something wrong?

  private String getContactNumber(String number) {

      String[] projection = new String[] {
                  Contacts.Phones.DISPLAY_NAME,
                  Contacts.Phones.NUMBER};

      Uri contactUri = Uri.withAppendedPath
  (Contacts.Phones.CONTENT_FILTER_URL, Uri.encode(number));
      Cursor c = getContentResolver().query(contactUri, projection,
  null, null, null);

      if (c.moveToFirst()) {
            String name = c.getString(c.getColumnIndex
  (Contacts.Phones.DISPLAY_NAME));
            Log.d(Name, name);
            return name;

          }else{
                  Log.d(GetContact, Not a contact);
          }
          return number;

  }

  Any tips, hints would be much appreciated! Thank you in advance

  Best Regards
 Sime

-- 
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: Android Market Anti-Piracy

2009-11-20 Thread LambergaR
Here we are talking about an EU legislation that is valid in all EU
states, but similar laws exist in US and other countries. Keeping and
processing some person data without their knowledge and allowance is
simply not allowed - and I definitely think that IMEI is something
that can identify me as an individual. All my expenses, everything I
buy using my telephone is stored at my operator using the unique
identifier (IMEI + phone number) an later on linked to all the
remaining data they have. As I don't really mind if some programs have
access to my IMEI number, storing and publishing it (without informing
me) will not be tolerated.

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


Re: [android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-20 Thread Klaus Kartou
Bumping this question
Our app is receiving great attention at the moment, and it is really a shame
that we cannot do anything to get it out to all Android owners.
Please Google, this is a serious issue...We would love to see a solution to
this? Any help is much appreciated...

Cheers!

On Thu, Nov 19, 2009 at 10:29 AM, Klaus Kartou kar...@gmail.com wrote:

 Agreed, feedback from Google would be nice...


 On Wed, Nov 18, 2009 at 10:58 AM, blindfold seeingwithso...@gmail.comwrote:

 Same thing with me, I have copy protection turned off in Android
 Market.

 It would be good now to get some feedback from Google or HTC on
 whether it is a bug.

 On Nov 18, 9:54 am, Klaus Kartou kar...@gmail.com wrote:
  We haven't turned copy protection on for our app, and it is still not
  visible on HTC Tattoo/HTC Dragon.
  Please, Google is this a known issue?
 
  On Tue, Nov 17, 2009 at 11:02 AM, Aspidoff aspid...@gmail.com wrote:
   I noticed this problem when the new Droid Eris came out. At first, i
   started messing with minsdk and even lowered it to 2 but that didnt
   fix it, the apps didnt show up in the market. I ran through Verizon
   and Sprint stores for days to try to get this to work.
 
   I dont think Google people even know the problem exist. I am surprised
   that this problem hasnt been fixed for such a long time now. Anyway,
   the reason why you can 't see your app on HTC Hero/Eris or any other
   1.5 phones is because you have copy protection set to On. You can
   turn this off in your developer console when logged in to your Android
   Market account and editing your application description/title
 
   cheers!
 
   On Nov 17, 1:19 am, Klaus Kartou kar...@gmail.com wrote:
Is there any Google people that can shed some light on this issue?
 
On Mon, Nov 16, 2009 at 4:42 PM, blindfold 
 seeingwithso...@gmail.com
   wrote:
 
 Thanks Phil!
 
 Indeed this is very strange. As I understand it, all Android 1.6
 apps
 should by default be visible to HTC Tattoo on the Android Market,
 and
 use of the camera should not matter. I had even tested my app to
 show
 OK on a 240x320 screen using the emulator, and cannot think of
 anything else to correct. I was thinking of trying an empty
 supports-
 screens element in case documentation is ambiguous, but even so
 it
 would not seem to make sense to have the CAMERA dependency.
 Hopefully
 HTC or Android developers (Romain?) will figure it out soon,
 because
 this kind of market fragmentation seems unnecessary.
 
 On Nov 16, 9:55 am, phil philipp.bre...@gmail.com wrote:
  Hi Blindfold,
 
  We were not able to find The vOICE for Android in the Market on
 the
  Tattoo. But we found it on the HTC Magic in the Market.
 
  Hope there will be a solution for this issue soon.
 
  On Nov 15, 8:21 am, blindfold seeingwithso...@gmail.com
 wrote:
 
   OK, I didn't know that. My curiosity was triggered by Phil
 with the
   suggested role of the CAMERA permission in having apps be
 visible
   on
   the Market, which AFAIK should not have made any difference.
 Also,
   android:minSdkVersion=4 (Android 1.6) according to
 documentation
   implies that all screensizes are assumed supported:
http://d.android.com/guide/practices/screens_support.htmlIf
   android:minSdkVersion or android:targetSdkVersion is 4
 (Android
   1.6)
   or higher, the default value for everything is true.
 
   So I expected that basically only visibility of (unadapted for
   screensize) Android 1.5 apps on the Market would be affected,
   without
   any role for android.permission.CAMERA, and I would
 otherwise be
   surprised.
 
   BTW, lots of HTC Tattoo buyers seem annoyed, judging
 fromhttp://
 androinica.com/2009/10/11/htc-tattoos-android-market-will-not-...
   where it is stated that even Google's own Listen, My
 Tracks and
   Sky Map are (were?) not visible on Android Market for users
 of
   the
   HTC Tattoo.
 
   On Nov 14, 11:39 pm, Klaus Kartou kar...@gmail.com wrote:
 
Hi Blindfold,
 
Sorry I dont have a HTC Tattoo to test :( Thats our
   problem...some
 users
reported that they couldnt find our app on Market with their
   Tattoo.
 But we
have no idea why?
 
To Edward:
HTC Tattoo has a camera, so that cannot be the reason our
 apps
   are
 not
showing.
 
What to do? :D
 
Cheers
 
On Sat, Nov 14, 2009 at 10:46 PM, Edward Falk 
 ed.f...@gmail.com
 
 wrote:
 Oh, and more importantly, the Android market should have a
 tool
 that
 allows developers to get a list of devices that their
   application
 won't be shown for, and why.
 
 --
 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: Android Market Anti-Piracy

2009-11-20 Thread tauntz
Just saying that an IMEI is not personal data.. in the country where
I live in, at least (and that's in the EU). An IMEI alone can uniquely
identify a mobile device, not the actual person who is using it. In
broad terms, it's the same as the serial number on the back of your TV
or fridge. (quoting wikipedia (not saying that it's accurate :P) the
IMEI is only used to identify the device, and has no permanent or
semi-permanent relation to the subscriber.). Since it's not personal
data but just some device-specific number that can't be linked to you
directly, it's free-for-all to use with or without your consent. And
http://europa.eu/legislation_summaries/information_society/l14012_en.htm
also does NOT apply to the IMEI (since again, it's not personal
data).

(just my personal non-lawyer opinion as an end user - since it's only
my opinion and understanding of this, don't take it as a fact and ask
a lawyer instead :) )

Tauno



On Fri, Nov 20, 2009 at 12:34 PM, LambergaR martin.s...@gmail.com wrote:
 Here we are talking about an EU legislation that is valid in all EU
 states, but similar laws exist in US and other countries. Keeping and
 processing some person data without their knowledge and allowance is
 simply not allowed - and I definitely think that IMEI is something
 that can identify me as an individual. All my expenses, everything I
 buy using my telephone is stored at my operator using the unique
 identifier (IMEI + phone number) an later on linked to all the
 remaining data they have. As I don't really mind if some programs have
 access to my IMEI number, storing and publishing it (without informing
 me) will not be tolerated.

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

-- 
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: Saving Activity state when pressing Home

2009-11-20 Thread jax
Hi thanks that.

The issue is that the Bundle object only gets passed to onCreate()
and onSaveInstanceState()

Do I have to get this manually somehow?



On Nov 20, 2:15 am, vendor.net vendor@gmail.com wrote:
 How do you store that variable?

 On 19 Ноем, 17:18, jax jackma...@gmail.com wrote:

  I need to store a variable that contains my application state
  restoredClockTime

  I do this in onSaveInstanceState and onRestoreInstanceState and it
  works when I flip the screen on the G1.

  The problem is when I press the Home button and then re-enter the
  activity it does not work.

  why is 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] Replace incall screen

2009-11-20 Thread Nemat
Hi friends….
is it possible to replace incall screen by my own activity
Please……I need it urgently!
Thanks in Advance
Nemat

-- 
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 build a project in Android sources seperately?

2009-11-20 Thread 3pei
thx for your reply.

i already do this after previous post, and everything works fine~

but it is better for someone just do a little job if there is another
way :S

thx again :)

On Nov 19, 2:04 am, Julian Chu walking...@0xlab.org wrote:
 Hi,

 Did you build the android tree first?
 although it spends time but pretty easy.

 http://source.android.com/download

 All you have to do is follow the webpage and cross your finger
 If there is no commit break your building, you will get everything you need.

 of course, including acp
 $ which acp
 /home/walkingice/code/zeroxdroid/out/host/linux-x86/bin/acp

 If you take a look of the Android.mk, you will find the file was written for
 Android building system.
 the android building system is under build directory of source code tree.

 That is the only one and easier way I know to build the native library : get
 the tree and build everything.
 (Maybe there is another way...but I don't know  :P )

 Cheers,

 -Ju1ian

 2009/11/18 3pei 333...@gmail.com





  seems i need build the host tool acp , but it has a dependence of
  libhost, and libhost has a dependence of acp, tooo.

  how can i resolve this

  On Nov 17, 11:40 am, Julian Chu walking...@0xlab.org wrote:
   checkout the android source tree, build from scratch
   once you want to build it

   $cd /where/is/the/tree
   $source build/envsetup.sh
   $export TOP=`pwd`
   $cd external/zlib
   $mm

   -ju1ian

   On Tue, Nov 17, 2009 at 6:01 AM, 3pei 333...@gmail.com wrote:
for example, when i use

make external/zlib/android.mk

it tells me 'Nothing to be done for external/zlib/android.mk'

what should i do?

--
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
  android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bu-nsubscr...@googlegroups.com

For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

   --
   Julian Chu.  a.k.a. WalkingIce -- 會走路的冰塊http://walkingice.twbbs.org只放拖鞋的鞋櫃

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

 --
 Julian Chu.  a.k.a. WalkingIce -- 會走路的冰塊http://walkingice.twbbs.org 只放拖鞋的鞋櫃- 
 Hide quoted text -

 - Show quoted text -

-- 
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 highlight list item

2009-11-20 Thread Diya
Hi All,

Can any one tell me how can I highlight any item of my list when mouse
cursor passes through that particular item. Is this possible to
highlight any particular option/item using soft keys??

If yes, please tell me how it can be done??

Thnx

-- 
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: I Didn't come here to cause no trouble, I just came to do the Android Market Shuffle!

2009-11-20 Thread MikaSue
What happened to the market?  I am uninformed?

On Nov 19, 7:29 am, niko20 nikolatesl...@yahoo.com wrote:
 *grin*

 Although seriously, I doubt those with paid apps really appreciate
 their rankings being all screwed with.

 -niko

-- 
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: Android Market Anti-Piracy

2009-11-20 Thread LambergaR
In actuality IMEI number can be used identify the user.

Directive 95/46/EC article 2 paragraph a clearly states:

'personal data' shall mean any information relating to an identified
or identifiable natural person ('data subject'); an identifiable
person is one who can be identified, directly or indirectly, in
particular by reference to an identification number or to one or more
factors specific to his physical, physiological, mental, economic,
cultural or social identity;

-- 
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 highlight list item

2009-11-20 Thread Diya
hey if any 1 can tell me where will i  get code for changing color of
list item in android 1.5 source please help me out.

On Nov 20, 4:37 pm, Diya ridam0...@gmail.com wrote:
 Hi All,

 Can any one tell me how can I highlight any item of my list when mouse
 cursor passes through that particular item. Is this possible to
 highlight any particular option/item using soft keys??

 If yes, please tell me how it can be done??

 Thnx

-- 
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] default screenwidth of android

2009-11-20 Thread Jags
whats the default screen width of android devices ? I took a 320 x 460
image for my splash screen, it did not cover the entire screen !

regards
Jagat

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


Re: [android-developers] How to highlight list item

2009-11-20 Thread tauntz
 Can any one tell me how can I highlight any item of my list when mouse
 cursor passes through that particular item.

That is not possible. Android has no mouse cursor.


 Is this possible to
 highlight any particular option/item using soft keys??

 If yes, please tell me how it can be done??

 Thnx

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

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


Re: [android-developers] default screenwidth of android

2009-11-20 Thread tauntz
There is no default screen width - different devices will have
different screen sizes.


On Fri, Nov 20, 2009 at 2:21 PM, Jags jag...@gmail.com wrote:
 whats the default screen width of android devices ? I took a 320 x 460
 image for my splash screen, it did not cover the entire screen !

 regards
 Jagat

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

-- 
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] ScrollView scroll timeout ?

2009-11-20 Thread Mark Wyszomierski
Hi,

Is there no way to change the timeout to scroll in ScrollView? In the
source, it's set to:

static final int ANIMATED_SCROLL_GAP = 250;

so any drags will be blocked for 250ms. This has the appearance of the
ScrollView being stuck for a bit before it moves. This makes small
scroll gestures difficult to work with. There's no way around this?

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


Re: [android-developers] ScrollView scroll timeout ?

2009-11-20 Thread Mark Murphy
Mark Wyszomierski wrote:
 Is there no way to change the timeout to scroll in ScrollView? In the
 source, it's set to:
 
 static final int ANIMATED_SCROLL_GAP = 250;
 
 so any drags will be blocked for 250ms. This has the appearance of the
 ScrollView being stuck for a bit before it moves. This makes small
 scroll gestures difficult to work with. There's no way around this?

Tactically, clone the code and make your own version that behaves as you
wish. Strategically, contribute patches back that make this
configurable, so eventually you can stop maintaining your separate edition.

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

Warescription: Three Android Books, Plus Updates, $35/Year

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


Re: [android-developers] Saving service killing without startForeground

2009-11-20 Thread Mark Murphy
Ash wrote:
 Hi!!,
 
 I am running a background Android Service as VoIP Framework which
 provides different VoIP services to different Android applications,
 (VoIP call, Video Call, etc). The service establishes a network
 connection with the Server(Service Provider) and does some initial
 handshake before it can start providing service to the Android
 applications, that’s why though of starting the service on
 BOOT_COMPLETED event.
 
 The problem is when the service gets started on BOOT_COMPLETED event,
 before even it finishes the initial network connection with server and
 handshaking, it gets killed by the system.

Off the cuff, either you are running on a device with too little RAM, or
your service is crashing, or your service is not using a background
thread and is therefore getting the service equivalent of an ANR.

The latter two cases should be identifiable from logcat.

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

Warescription: Three Android Books, Plus Updates, $35/Year

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


Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-20 Thread Dan Dumont
Yes.   But I make the AddAccountExplicitly call in my Authenticator.You
use the AccountManager to create accounts.
If you call AddAccountExplicitly from a non-authenticator class, I guess it
will work...  But I think the security behind it will mean that only the
class that created the account will be able to ever modify it or extract the
password.

This is why they have a framework for you to get an authtoken returned via
the authenticator... the logic for authenticating should be buried within
there, because it will be the only class allowed to peak at the password and
send it wherever you are authenticating.

On Fri, Nov 20, 2009 at 2:16 AM, sukumar bhashyam 
bhashyam.suku...@gmail.com wrote:

 AddAccountExplicitly() would need Authenticator of same type.

 I created an Authenticator and called AddAccountExplicitly() for the same
 type which created an account ( Could verify it from
 AccountManager.getAccounts())

 One strange thing I observer is none of the  implementation class functions
 of AbstractAccountAuthenticator is being called. I followed the exact steps
 in documentation. Not even onCreate or onBind function is called. Anyone
 seen this problem?. Is your AbstractAccountAuthenticator implemetation class
 being invoked?.
 Thanks.


 On Thu, Nov 19, 2009 at 8:26 PM, Jerry Brady jerry.br...@gmail.comwrote:

 Dan,

 Thanks for all of this.  I just returned to the office and will be
 taking a look to see how much further I can get and I will certainly
 be interested in helping with your accounts project.

 I got as far as getting my account to show up in the list of accounts
 along with Google, Facebook and Exchange, but my service never gets
 called.  My addAccount() method doesn't return an intent, but rather
 KEY_ACCOUNT_NAME and KEY_ACCOUNT_TYPE in it's bundle to let the
 account request succeed.

 My goal is to create an account that will only be used by my
 application and does not need to have any features to enable external
 authentication or account configuration.

 I've also tried AddAccountExplicitly() but I can't seem to get around
 its UID restrictions.  The calling activity and the authenticator
 service all belong to the same application so I'm not sure why the
 system still throws an error about the UID not being correct.

 Cheers,
 Jerry

 On Nov 13, 11:54 pm, Dan Dumont ddum...@gmail.com wrote:
  For anyone still interested.I've made a bit of progress.   The
 google
  project below now creates and lists accounts of the type for the
 project!
 
 
 
  On Fri, Nov 13, 2009 at 9:39 PM, Dan Dumont ddum...@gmail.com wrote:
   To facilitate the discussion around this topic, I've started up a
 project
   over here:
  http://code.google.com/p/androidaccounts/
 
   http://code.google.com/p/androidaccounts/If anyone is interested in
   pitching in and writing some examples, let me know so I can add you.
   The current state of the project is as far as I've gotten to
 understanding
   what is available so far... and I'm stumped as to why new accounts
 don't
   seem to persist after their creation ( as far as the AccountsTester
 app is
   concerned ).
 
   On Fri, Nov 13, 2009 at 7:40 PM, Dan Dumont ddum...@gmail.com
 wrote:
 
   I've gotten a bit further than you.
 
   The account manager seems to want to store AccountName+Type pairs,
 and
   have an AccountAuthenticator handle the storage and dirty bits of the
 actual
   authentication and credential storage.
 
   You will need to create an AccountAuthenticator from the
   AbstractAccountAuthenticator class.
   You will also need to define a Service in your app.   See
  
 http://developer.android.com/reference/android/accounts/AbstractAccou...
   This service must be set up in the Manifest like so:  (ripped from
 link
   above)
 
intent-filter
action android:name=android.accounts.AccountAuthenticator /
  /intent-filter
  meta-data android:name=android.accounts.AccountAuthenticator
android:resource=@xml/authenticator /
 
   You can take a look at the link for what the resource must be...
 
   After you end up hooking all that crap up, you can do this in your
   service:
public IBinder onBind(Intent intent) {
IBinder ret = null;
if
  
 (intent.getAction().equals(android.accounts.AccountManager.ACTION_AUTHENTIC
 ATOR_INTENT))
ret = getAuthenticator().getIBinder();
return ret;
}
 
   private AccountAuthenticator getSametimeAuthenticator() {
if (_aa == null)
   _aa = new AccountAuthenticator(this);
   return _aa;
}
 
   So when you finally have all this set up.You should see your
 account
   type listed in the AccountTester application next to the Corporate
 type.
   To get anything meaningful to happen when you click Add, you need to
 do
   this in your AccountAuthenticator:
 
   public Bundle addAccount(AccountAuthenticatorResponse response,
 String
   accountType, String authTokenType, String[] requiredFeatures, Bundle
   options) throws NetworkErrorException {
  

Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

2009-11-20 Thread Dan Dumont
At least...   this is as far as I understand it Please correct me if
I'm wrong here.


Also, if a google rep can speak to this point:
If I have a few apps that all utilize a certain account type...What's
the best recommended way of letting them all function independently of each
other, or all installed at the same time?

It looks like if I include a service and authenticator in each
application...   won't there be way too many services?Will the
authenticators for the same type conflict?
Should the account type be relegated to a dependancy package?   Are there
means for requiring other packages when downloading an app from the market
seamlessly?

On Fri, Nov 20, 2009 at 7:53 AM, Dan Dumont ddum...@gmail.com wrote:

 Yes.   But I make the AddAccountExplicitly call in my Authenticator.You
 use the AccountManager to create accounts.
 If you call AddAccountExplicitly from a non-authenticator class, I guess it
 will work...  But I think the security behind it will mean that only the
 class that created the account will be able to ever modify it or extract the
 password.

 This is why they have a framework for you to get an authtoken returned via
 the authenticator... the logic for authenticating should be buried within
 there, because it will be the only class allowed to peak at the password and
 send it wherever you are authenticating.


 On Fri, Nov 20, 2009 at 2:16 AM, sukumar bhashyam 
 bhashyam.suku...@gmail.com wrote:

 AddAccountExplicitly() would need Authenticator of same type.

 I created an Authenticator and called AddAccountExplicitly() for the same
 type which created an account ( Could verify it from
 AccountManager.getAccounts())

 One strange thing I observer is none of the  implementation class
 functions of AbstractAccountAuthenticator is being called. I followed the
 exact steps in documentation. Not even onCreate or onBind function is
 called. Anyone seen this problem?. Is your AbstractAccountAuthenticator
 implemetation class being invoked?.
 Thanks.


 On Thu, Nov 19, 2009 at 8:26 PM, Jerry Brady jerry.br...@gmail.comwrote:

 Dan,

 Thanks for all of this.  I just returned to the office and will be
 taking a look to see how much further I can get and I will certainly
 be interested in helping with your accounts project.

 I got as far as getting my account to show up in the list of accounts
 along with Google, Facebook and Exchange, but my service never gets
 called.  My addAccount() method doesn't return an intent, but rather
 KEY_ACCOUNT_NAME and KEY_ACCOUNT_TYPE in it's bundle to let the
 account request succeed.

 My goal is to create an account that will only be used by my
 application and does not need to have any features to enable external
 authentication or account configuration.

 I've also tried AddAccountExplicitly() but I can't seem to get around
 its UID restrictions.  The calling activity and the authenticator
 service all belong to the same application so I'm not sure why the
 system still throws an error about the UID not being correct.

 Cheers,
 Jerry

 On Nov 13, 11:54 pm, Dan Dumont ddum...@gmail.com wrote:
  For anyone still interested.I've made a bit of progress.   The
 google
  project below now creates and lists accounts of the type for the
 project!
 
 
 
  On Fri, Nov 13, 2009 at 9:39 PM, Dan Dumont ddum...@gmail.com wrote:
   To facilitate the discussion around this topic, I've started up a
 project
   over here:
  http://code.google.com/p/androidaccounts/
 
   http://code.google.com/p/androidaccounts/If anyone is interested
 in
   pitching in and writing some examples, let me know so I can add you.
   The current state of the project is as far as I've gotten to
 understanding
   what is available so far... and I'm stumped as to why new accounts
 don't
   seem to persist after their creation ( as far as the AccountsTester
 app is
   concerned ).
 
   On Fri, Nov 13, 2009 at 7:40 PM, Dan Dumont ddum...@gmail.com
 wrote:
 
   I've gotten a bit further than you.
 
   The account manager seems to want to store AccountName+Type pairs,
 and
   have an AccountAuthenticator handle the storage and dirty bits of
 the actual
   authentication and credential storage.
 
   You will need to create an AccountAuthenticator from the
   AbstractAccountAuthenticator class.
   You will also need to define a Service in your app.   See
  
 http://developer.android.com/reference/android/accounts/AbstractAccou...
   This service must be set up in the Manifest like so:  (ripped from
 link
   above)
 
intent-filter
action android:name=android.accounts.AccountAuthenticator /
  /intent-filter
  meta-data android:name=android.accounts.AccountAuthenticator
android:resource=@xml/authenticator /
 
   You can take a look at the link for what the resource must be...
 
   After you end up hooking all that crap up, you can do this in your
   service:
public IBinder onBind(Intent intent) {
IBinder ret = null;
if
  
 

[android-developers] Re: Android Market Anti-Piracy

2009-11-20 Thread nEx.Software
Hmm... Seeing how this has now become a law debate much more so than
anything related to development (not sure if it was ever really about
development)... This should probably be shifted over to -discuss. Just
saying...

On Nov 20, 4:54 am, LambergaR martin.s...@gmail.com wrote:
 In actuality IMEI number can be used identify the user.

 Directive 95/46/EC article 2 paragraph a clearly states:

 'personal data' shall mean any information relating to an identified
 or identifiable natural person ('data subject'); an identifiable
 person is one who can be identified, directly or indirectly, in
 particular by reference to an identification number or to one or more
 factors specific to his physical, physiological, mental, economic,
 cultural or social identity;

-- 
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: ScrollView scroll timeout ?

2009-11-20 Thread Mark Wyszomierski
Hi Mark,

Yeah I was thinking of doing this, I gave it a quick try but am
probably copying the source from the wrong location. I tried looking
here:

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/ScrollView.java;h=703cd8e278b7e5771cbb9c8e2c10c69ae49590f6;hb=HEAD

but am not sure which version corresponds to the 1.5sdk which I'm
targeting. A quick try on a few of them led to unresolved inherited
member variables, so I'm thinking I'm not copying the correct version
for my SDK

Thanks

On Nov 20, 7:44 am, Mark Murphy mmur...@commonsware.com wrote:
 Mark Wyszomierski wrote:
  Is there no way to change the timeout to scroll in ScrollView? In the
  source, it's set to:

      static final int ANIMATED_SCROLL_GAP = 250;

  so any drags will be blocked for 250ms. This has the appearance of the
  ScrollView being stuck for a bit before it moves. This makes small
  scroll gestures difficult to work with. There's no way around this?

 Tactically, clone the code and make your own version that behaves as you
 wish. Strategically, contribute patches back that make this
 configurable, so eventually you can stop maintaining your separate edition.

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

 Warescription: Three Android Books, Plus Updates, $35/Year

-- 
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: Android Market Anti-Piracy

2009-11-20 Thread AlexK
Any protection based on identification of the user.
So without unique information that personally related to end-user copy
protection can not be build.

From you quotes looks like I can not report about thief because I'll
open his/here personal information?!

On Nov 20, 12:34 pm, LambergaR martin.s...@gmail.com wrote:
 Here we are talking about an EU legislation that is valid in all EU
 states, but similar laws exist in US and other countries. Keeping and
 processing some person data without their knowledge and allowance is
 simply not allowed - and I definitely think that IMEI is something
 that can identify me as an individual. All my expenses, everything I
 buy using my telephone is stored at my operator using the unique
 identifier (IMEI + phone number) an later on linked to all the
 remaining data they have. As I don't really mind if some programs have
 access to my IMEI number, storing and publishing it (without informing
 me) will not be tolerated.

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


Re: [android-developers] default screenwidth of android

2009-11-20 Thread Vishwanath Kamath Pethri
use 9 patch images. This would solve your issues

-
Vishwa

Jags wrote:
 whats the default screen width of android devices ? I took a 320 x 460
 image for my splash screen, it did not cover the entire screen !

 regards
 Jagat

   

-- 
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 Load Asset PDF in Browser or Webview ?

2009-11-20 Thread moontech
Is there any inbuilt function to load PDF file from Local Asset in
Browser or Webview..

Tried using loading file to Buffer .. But the content was not
displayed..

Dnt suggest me to install Application like DocumentToGo or any like
that...

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


Re: [android-developers] How to Load Asset PDF in Browser or Webview ?

2009-11-20 Thread Mark Murphy
moontech wrote:
 Is there any inbuilt function to load PDF file from Local Asset in
 Browser or Webview..

No.

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

_Android Programming Tutorials_ Version 1.0 Available!

-- 
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: Samsung Moment (SPH-M900) - Application crashing

2009-11-20 Thread Don
After finding a very helpful developer with a Samsung Moment who was
willing to test my app on their phone and get the logcat output, I
found the following:
The cause of the application crash was a null pointer exception bug on
a data storage class when a particular activity was opened. It was
very easy to reproduce and occurred every time that activity was
opened on a Samsung Moment device. I don't fully understand why the
bug did not appear on any other devices.

Here is a extract from the activity class:
[code]
public class attView extends MmlActivity implements
SeekBar.OnSeekBarChangeListener{
...
private SeekBar severitySeekBar;
private Attack attack;

public void onCreate(Bundle savedInstanceState)
{

this.initControls();
//Instantiate attack object

}


initControls()
{
//Do lots of ui init stuff
...
this.severitySeekBar = (SeekBar) findViewById
(R.id.severitySeekBar);
this.severitySeekBar.setOnSeekBarChangeListener(this);
this.severitySeekBar.setProgress
(MmlDbAdapter.DEFAULT_ATT_SEVERITY);
}


public void onProgressChanged(SeekBar seekBar, int progress, boolean
fromTouch)
{
setSeverityText(progress);
attack.setSeverity(progress); - This is where the exception was
occurring!
}
[/code]
As I have pointed out in the code, the exception occurs in the
onProgressChanged() method. This is because initControls has not fully
completed and the attack instantiated.
It looks like on the Samsung Moment, onProgressChanged() is being
executed before onCreate completes and on other devices (and the
simulators) it is being executed after! This really doesn't make much
sense!

Anyway, i was able to tidy up the code and remove the bug. But still,
there really should be no differences like this on various android
devices (unless they are at diffenet firmware versions, of course).

Don

Here is the logcat:
W/KeyCharacterMap( 3196): Bad keycharmap - filesize=32
D/KeyCharacterMap( 3196): load: dev='melfas_ts_input' path='/system/
usr/keychars/melfas_ts_input.kcm.bin'
W/KeyCharacterMap( 3196): Can't open keycharmap file
W/KeyCharacterMap( 3196): Error loading keycharmap file '/system/usr/
keychars/melfas_ts_input.kcm.bin'. hw.keyboards.
65536.devname='melfas_ts_input'
W/KeyCharacterMap( 3196): Using default keymap: /system/usr/keychars/
qwerty.kcm.bin

I/ActivityManager( 1859): Starting activity: Intent { comp={com.dt.mml/
com.dt.mml.attView} }
D/PhoneWindow( 3196): couldn't save which view has focus because the
focused view com.android.internal.policy.impl.PhoneWindow
$decorv...@4322d1c0 has no id.
I/MigraineDbAdapter( 3196): Closing database - AttackList
D/AndroidRuntime( 3196): Shutting down VM
W/dalvikvm( 3196): threadid=3: thread exiting with uncaught exception
(group=0x4000fe70)
E/AndroidRuntime( 3196): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime( 3196): java.lang.RuntimeException: Unable to start
activity ComponentInfo{com.dt.mml/com.dt.mml.attView}:
java.lang.NullPointerException
E/AndroidRuntime( 3196):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2268)
E/AndroidRuntime( 3196):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2284)
E/AndroidRuntime( 3196):at android.app.ActivityThread.access
$1800(ActivityThread.java:112)
E/AndroidRuntime( 3196):at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1692)
E/AndroidRuntime( 3196):at android.os.Handler.dispatchMessage
(Handler.java:99)
E/AndroidRuntime( 3196):at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime( 3196):at android.app.ActivityThread.main
(ActivityThread.java:3948)
E/AndroidRuntime( 3196):at
java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 3196):at java.lang.reflect.Method.invoke
(Method.java:521)
E/AndroidRuntime( 3196):at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
E/AndroidRuntime( 3196):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
E/AndroidRuntime( 3196):at dalvik.system.NativeStart.main
(Native Method)

E/AndroidRuntime( 3196): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 3196):at com.dt.mml.attView.onProgressChanged
(attView.java:596)
E/AndroidRuntime( 3196):at
android.widget.SeekBar.onProgressRefresh(SeekBar.java:89)
E/AndroidRuntime( 3196):at
android.widget.ProgressBar.doRefreshProgress(ProgressBar.java:492)
E/AndroidRuntime( 3196):at
android.widget.ProgressBar.refreshProgress(ProgressBar.java:501)
E/AndroidRuntime( 3196):at
android.widget.ProgressBar.setProgress(ProgressBar.java:550)
E/AndroidRuntime( 3196):at
android.widget.ProgressBar.setProgress(ProgressBar.java:531)

E/AndroidRuntime( 3196):at com.dt.mml.attView.initControls
(attView.java:578)
E/AndroidRuntime( 3196):at com.dt.mml.attView.onCreate
(attView.java:83)

E/AndroidRuntime( 

Re: [android-developers] Re: App name/icon problems on Hero after reboot

2009-11-20 Thread Justin Giles
The update from HTC which was out yesterday is supposed to fix this issue
with icons.  The problem I have now, after the update, is I cannot see any
of my applications on the Market and I also don't see several that I have
downloaded.  If it's not one thing, it's another with this crazy phone.

On Fri, Nov 20, 2009 at 2:21 AM, phil philipp.bre...@gmail.com wrote:

 Hi,

 we have the same problem in one of our apps - instead of the
 application name the package name gets displayed. Does someone have an
 update on this issue?

 thx

 On Oct 29, 9:46 pm, Greg Donald gdon...@gmail.com wrote:
  On Thu, Oct 29, 2009 at 1:58 PM, Dianne Hackborn hack...@android.com
 wrote:
   Has anyone tried installing an alternate home app and seeing if it
 still
   happens there?  I wonder if this is something in their custom home app.
 
  I just tried Panda Home and still have the same broken app issues on
 reboot.
 
  --
  Greg Donaldhttp://destiney.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.comandroid-developers%2bunsubscr...@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: How Handle Android Default Messaging Application According To Our Requirement

2009-11-20 Thread Gulfam
Hi all,

   I have find some thing on the issue as mentioned above.

   
http://gitorious.org/easyweb2/packages-apps-settings/blobs/master/src/com/android/settings/RadioInfo.java

   I have seen a class RadioInfo.java. In this class there is a way to
get SMSC number  but i dont know how to import
com.android.internal.telephony.Phone;
   because they are getting SMSC number with Phone class
refrence.

Can you all please guide me How to get SMSC number in my
app
It will help us to take user decision on that he/she wants to send sms
via Android default messaging clinet or via My App.

Any other solution ??

Thanks in advance.
Gulfam Hassan




On Nov 19, 11:11 am, Gulfam gulfa...@gmail.com wrote:
 Hi All,

 Is there any response on this issue?? I am still waiting.

 Gulfam Hassan

 On Nov 18, 7:07 pm, Gulfam gulfa...@gmail.com wrote:

  Hi Everyone,

   Currently I am doing RD on an idea for example I have an application
  abc which send sms through my own way .
  I want to do work like this:
  When user send sms from Android Default Messaging Application My app
  Intercept that sms and stop it to send  and take user decision to send
  sms via operator or my app.
  (As you have seen many apps those  intercepts outgoing calls and
  abortBroadcast(); and take user decision to call via GSM or via their
  apps.)

  I want to do the same work for messaging client. My findings are its
  not possible.
  IS IT POSSIBLE??  if yes then how ? any suggessions ? tutorials ?

  Hopes you have got my idea.

  Any Android Framework  Engineer please reply on this. Is it
  possible ?

  Best Regards,
  Gulfam Hassan

-- 
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] RESET SQLite AUTOINCREMENT

2009-11-20 Thread JasonMP
Hello, I have a database that will be editable inside my android app.
I'm having an issue where when a row is deleted, its spot in the
autoincrement array is still taken, and subsequent entries into that
table pick up after that number.  This leaves me with a list of rows
whos autoincrement id values can jump around.  I need my rows in my
database to stay ascending and in increments of 1.  Is there an easy
way to do this?  Or will I need to rewrite the autoincrement column to
all my rows each time an item is deleted?

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


Re: [android-developers] RESET SQLite AUTOINCREMENT

2009-11-20 Thread Mark Murphy
JasonMP wrote:
 I need my rows in my
 database to stay ascending and in increments of 1.

Why?

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

Warescription: Three Android Books, Plus Updates, $35/Year

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


Re: [android-developers] How to Load Asset PDF in Browser or Webview ?

2009-11-20 Thread Moon Technolabs
What is the way for it ? If I wants to do so.. rather than by Application
!!!

On Fri, Nov 20, 2009 at 6:59 PM, Mark Murphy mmur...@commonsware.comwrote:

 moontech wrote:
  Is there any inbuilt function to load PDF file from Local Asset in
  Browser or Webview..

 No.

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

 _Android Programming Tutorials_ Version 1.0 Available!

 --
 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%2bunsubscr...@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

Re: [android-developers] How to Load Asset PDF in Browser or Webview ?

2009-11-20 Thread Mark Murphy
Moon Technolabs wrote:
 What is the way for it ? If I wants to do so.. rather than by
 Application !!!

Android does not have a PDF viewer built into the operating system.

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

Warescription: Three Android Books, Plus Updates, $35/Year

-- 
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: Android Market Anti-Piracy

2009-11-20 Thread LambergaR
You can report the user to some sort of LEGAL authority and they can
get and process users data. You (as a person that is not an law
officer) are not allowed to store and process any personal data
without my explicit permission.

So, you can report the user to police but if you are using any data
gathered in illegal way your complaint is not valid.
Privacy is a very problematic issue - and it should be that way!

-- 
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: Saving service killing without startForeground

2009-11-20 Thread dadical
If you're running on a G1, and have even low-mid memory reqs, you are
pretty much SOL.  Android will kill off processes to free resources
for new foreground activities, and services, particularly those
running in a background process, will get axed first.  Watch logcat in
verbose mode to validate that this is indeed what is happening.

Things are going to get even worse for you in 1.6.  Donut itself
consumes more memory leaving less room for your background service.
Once a foreground activity is bound to your service, the service will
be much less likely to get killed, so your only option in low-mem
scenarios may be to check at binding time and see if your persistent
connection is available, and reconnect if not.  This approach is the
best solution that I can think of for gracefully degrading the
functionality of your service in low-mem situations.

On Nov 20, 3:52 am, Ash ashutoshkagra...@gmail.com wrote:
 Hi!!,

 I am running a background Android Service as VoIP Framework which
 provides different VoIP services to different Android applications,
 (VoIP call, Video Call, etc). The service establishes a network
 connection with the Server(Service Provider) and does some initial
 handshake before it can start providing service to the Android
 applications, that’s why though of starting the service on
 BOOT_COMPLETED event.

 The problem is when the service gets started on BOOT_COMPLETED event,
 before even it finishes the initial network connection with server and
 handshaking, it gets killed by the system.

 I have tried using setForeground which improves the behavior a bit but
 still gets killed mid-way. I am working with old version 1.5 r3 of SDK
 and hence, cannot use startForeground.

 Is there a way out or another alternative available with SDK 1.5 r3?

 Thanks in advance,
 Ash

-- 
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] What's the best model for type-to-filter with a screen keyboard ?

2009-11-20 Thread jarkman
We have a list view that uses type-to-filter to good effect on devices
with physical keyboards.

Right now, users without physical keyboards have no way to use the
filter, and obviously we ought to fix that. I'm trying to work out
what the 'usual approach' is, so as not to startle the users.

But I'm not finding many examples of type-to-filter with a screen
keyboard. The Contacts app doesn't seem to provide a way into TTF at
all, though it does have a separate 'Search' mode which does a similar
thing.

So, is there a recommended solution ? I'd be interested to know how
anyone else has approached this.

thanks,

Richard

-- 
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: App name/icon problems on Hero after reboot

2009-11-20 Thread westmeadboy
That might be something to do with copy protection. I've heard from
several people that they cannot see copy protected apps in the Market.

However, even if that's the problem, I've no idea why it would change
after the update.

I think its the Market that's more crazy than the phone...

On Nov 20, 9:41 pm, Justin Giles jtgi...@gmail.com wrote:
 The update from HTC which was out yesterday is supposed to fix this issue
 with icons.  The problem I have now, after the update, is I cannot see any
 of my applications on the Market and I also don't see several that I have
 downloaded.  If it's not one thing, it's another with this crazy phone.

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


Re: [android-developers] How to Load Asset PDF in Browser or Webview ?

2009-11-20 Thread Moon Technolabs
I got this code.. n tried but I cant..
http://code.google.com/p/apdfviewer

can anybody help ? As per Screen Shot it might work.. How I can use this for
loading my Local PDF file ??

On Fri, Nov 20, 2009 at 7:21 PM, Mark Murphy mmur...@commonsware.comwrote:

 Moon Technolabs wrote:
  What is the way for it ? If I wants to do so.. rather than by
  Application !!!

 Android does not have a PDF viewer built into the operating system.

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

 Warescription: Three Android Books, Plus Updates, $35/Year

 --
 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%2bunsubscr...@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: RESET SQLite AUTOINCREMENT

2009-11-20 Thread JasonMP
I use a do/while that runs through one of my tables based on the
number of entries on another table and makes changes.

Example:

Integer i = 1;

Cursor c = db.querryFunction();
Integer rowCount = c.getCount();

do{
//does work on the database
db.updateRow(table, args, KEY_ROWID + = + i, null);
i++;
}
while(i = rowCount);


if my autoincrements skips numbers then I can get an error trying to
update a row that doesn't exist.


On Nov 20, 8:47 am, Mark Murphy mmur...@commonsware.com wrote:
 JasonMP wrote:
  I need my rows in my
  database to stay ascending and in increments of 1.

 Why?

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

 Warescription: Three Android Books, Plus Updates, $35/Year

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


Re: [android-developers] Re: Saving service killing without startForeground

2009-11-20 Thread Cédric Berger
On Fri, Nov 20, 2009 at 14:53, dadical keyes...@gmail.com wrote:
 If you're running on a G1, and have even low-mid memory reqs, you are
 pretty much SOL.  Android will kill off processes to free resources
 for new foreground activities, and services, particularly those
 running in a background process, will get axed first.  Watch logcat in
 verbose mode to validate that this is indeed what is happening.

 Things are going to get even worse for you in 1.6.  Donut itself
 consumes more memory leaving less room for your background service.
 Once a foreground activity is bound to your service, the service will
 be much less likely to get killed, so your only option in low-mem
 scenarios may be to check at binding time and see if your persistent
 connection is available, and reconnect if not.  This approach is the
 best solution that I can think of for gracefully degrading the
 functionality of your service in low-mem situations.


Indeed on my magic, logcat often shows that background processes were
killed while booting due too low memory, even before I could do
anything. (yes I am trying to reduce as much unuseful apps as
possible... what is bad is theses apps I do not need to autostart
though I do not want to uninstall).

But if your service process is killed due to low memory, won't the
system try to restart it later ? (though of course if there are still
too many services running there is still a problem)

And anyway, your could at boot time just set an alarm to defer the
initialisation of your service. So that a lot of processes that where
running at boot time will have finished and more resources are
available.
You may also still try to do your job immediatly, but before that set
an alarm in case of. (But in case of low memory this will just slow
down the phone at startup, for nothing.)

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


Re: [android-developers] Re: How to build apk from multiple Eclipse projects?

2009-11-20 Thread Robert Woodruff
Thanks James,

I have been successful breaking out common classes into .jar files, as long
as they do not reference resources. If they need to reference resources,
well, it just seems it is not possible at this point. I am pretty much just
copy/pasting between projects.

Is that your understanding at this time?


On Fri, Nov 20, 2009 at 3:39 AM, James Wang jameswangc...@gmail.com wrote:


 http://groups.google.com/group/android-developers/browse_thread/thread/911c0c5c5cd50abf/45f3cca8956182ae?lnk=gstq=share+resource#45f3cca8956182ae

 This one maybe help!

 --
 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%2bunsubscr...@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: Android Market Anti-Piracy

2009-11-20 Thread AlexK
ok... I got your point.

Maybe you know how it's possible to have shared database of user
history between loan companies?

My point is: everywhere where involved money give you possibility to
collect personal data and use it for own customers protection. of
course that does not mean that you can publish that information
everywhere.

In my cases returned only device piracy threat level which make
improssible to identify who is the customer, what exectly he/she do to
get that status... Sources are not opened - user privacy is
protected.

So what you afraid?! That some one knows more then telling?! That
someone add additional risk for piracy?!

On Nov 20, 3:53 pm, LambergaR martin.s...@gmail.com wrote:
 You can report the user to some sort of LEGAL authority and they can
 get and process users data. You (as a person that is not an law
 officer) are not allowed to store and process any personal data
 without my explicit permission.

 So, you can report the user to police but if you are using any data
 gathered in illegal way your complaint is not valid.
 Privacy is a very problematic issue - and it should be that way!

-- 
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] Map application and KMZ files....

2009-11-20 Thread furby
Is the map application that comes with Android capable of digesting
KMZ files at all? I can start it up with an intent that sends in a KML
file with no problem... But every single time I send a KMZ URL to it,
it tells me that the file Contains Errors. Since i have now tried
roughly a dozen different URLS with a dozen different KMZ files, I
somehow suspect it is not the KMZ's that are corrupted - especially
since those KMZ's open fine in Google Earth...

So I have to wonder - is this a problem with that app, with the ADT or
is it just not supported?

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


Re: [android-developers] For Google about BaseAdapter class

2009-11-20 Thread Robert Woodruff
Dianne,

Let me ask this quick question.

Will this sequence of three operations, run consecutively one right after
the other on the UI thread, cause the exception to be thrown

1. Change the count in the base adapter
2. notifyDataSetChanged() // Which will react some time in the future
3. immediately change the count in the base adapter, again

Or another way: when does the ListView grab the BaseAdapter count? Does it
grab it on the call to notifyDataSetChanged() or whenever it later starts
the update operation?

Thank you,

On Thu, Nov 19, 2009 at 2:24 PM, Dianne Hackborn hack...@android.comwrote:

 As the exception says:

 throw new IllegalStateException(The content of the adapter
 has changed but 
 + ListView did not receive a notification. Make
 sure the content of 
 + your adapter is not modified from a background
 thread, but only 
 + from the UI thread. [in ListView( + getId() +
 ,  + getClass()
 + ) with Adapter( + mAdapter.getClass() + )]);

 You can't modify an adapter from a background thread; this must be done on
 the main thread.

 This exception is not adding a restriction; it is making it more obvious
 when you do something that would always break in weird, subtle, and/or
 horrible ways.

 On Thu, Nov 19, 2009 at 5:56 AM, WoodManEXP woodman...@gmail.com wrote:

 For Google about BaseAdapter class

 In Android 1.6 and 2.0 the BaseAdapter class has apparently been
 modified to throw an exception when it sees the Adapter.getCount()
 method return a number different than what it picked up when
 BaseAdapter.notifyDataSetChanged() was called (at least I did not
 observe this behavior in pre 1.6).

 So now the question is, when should one call notifyDataSetChanged() or
 more importantly, when can the count in the Adapter be safely changed?

 Consider the case of an app with a background thread delivering data
 to a BaseAdapter at a rate faster than the ListView responds to
 notifyDataSetChanged(). Because notifyDataSetChanged() is a
 synchronous call and the ListView updates are taking place sometime in
 the indeterminate future on the UI thread, how can an app know when it
 is safe to change the adapter count?

 If the app changes the count while the ListView is updating itself the
 exception will be thrown (and there is no way to catch the exception).

 Is there a way to know when it is safe to change the count in the
 BaseAdapter?

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




 --
 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.comandroid-developers%2bunsubscr...@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: Android Market Anti-Piracy

2009-11-20 Thread AlexK
One more note - in case if I will store IMEI proccessed by some kind
of algorithm that will make impossible reverting of the original data
the user will be 100% safe?! for example calculate MD5/ASH1 hash and
store it instead of original IMEI?!

On Nov 20, 3:53 pm, LambergaR martin.s...@gmail.com wrote:
 You can report the user to some sort of LEGAL authority and they can
 get and process users data. You (as a person that is not an law
 officer) are not allowed to store and process any personal data
 without my explicit permission.

 So, you can report the user to police but if you are using any data
 gathered in illegal way your complaint is not valid.
 Privacy is a very problematic issue - and it should be that way!

-- 
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: Stop an SMS from being sent from default SMS client.

2009-11-20 Thread Gulfam
Hi Mark Murphy,

Is there any Way to get SMSC Number because I have seen at the link
mentioned below

http://groups.google.com/group/android-developers/browse_thread/thread/974743849abcd958/6d13bee0ffaafac3?lnk=raot

There is the way to get SMSC Number and i am unable to import Phone
Class in my activity.
Is there any way to get SMSC number 

Thanks in advance.
Gulfam Hassan


On Nov 20, 1:23 pm, Iffi aftabala...@gmail.com wrote:
 Hi All,

 Well, actually on Symbian, Winmo its getting possible so as being an
 advocate of Andriod :) at workplace i have to do it somehow.
 someone please guide me how may i change the SMSC programatically, i
 have used Anycut to change it manually, i hope there is some way of
 doing it programatically as well.
 or how may i replace the defualt SMS Application to mine and incase of
 what i dont need to handle i pass it onto default application.

 regards
 Aftab Alam

 On Nov 19, 12:56 pm, Gulfam gulfa...@gmail.com wrote:

  Hi All,

   I also want to achieve the same goal as said by Mr Aftab.

  The Goal I want to achieve:
  (As you have seen many apps in market like Truephone those
  intercepts outgoing calls and
  abortBroadcast(); and take user decision to call via GSM or via their
  apps.)

  So i want to achieve this goal with out going sms as with out going
  calls. I want to take user decision on out going sms that he want
  to send sms  Via operator or via my application.

  but I don't know how to achieve it. Any solution or any other way to
  achieve it so please let share with us.
  I am waiting for your response?

  Thanks in advance.
  Gulfam Hassan

  On Nov 18, 6:05 pm, Mark Murphy mmur...@commonsware.com wrote:

   Iffi wrote:
Hi All,

i have read a few posts about somehow intercepting the outgoing SMS.

after some googling i was able to intercept the outgoing SMS by
getting the outbox.

Now the problem is that when the SMS comes to outbox i try to delete
it at the same time, the API shows that the row was deleted from
outbox but it is sent to the desired phone number as well :S.

I was thinking of changing the SMS center number programatically and i
didnt get a clue.
more over if there is a way the outbound sms can be stopped before
being sent then plz guide me that way.

   I sincerely hope that it is impossible without firmware modifications. I
   certainly no of know way to achieve what you are seeking. And what
   little you have achieved is outside of the public SDK and therefore is
   likely to break in the future and on OEM-customized devices.

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

   Android 1.6 Programming 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


Re: [android-developers] Re: Saving Activity state when pressing Home

2009-11-20 Thread TreKing
Don't worry about the bundle unless your app is getting killed. If you just
press the home key, your app gets paused, but retains it's internal state.
You should not lose the value of whatever it is you need to keep track of.

Better questions: what does restoredClockTime represent? What are you
actually trying to do?

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


2009/11/20 jax jackma...@gmail.com

 Hi thanks that.

 The issue is that the Bundle object only gets passed to onCreate()
 and onSaveInstanceState()

 Do I have to get this manually somehow?



 On Nov 20, 2:15 am, vendor.net vendor@gmail.com wrote:
  How do you store that variable?
 
  On 19 Ноем, 17:18, jax jackma...@gmail.com wrote:
 
   I need to store a variable that contains my application state
   restoredClockTime
 
   I do this in onSaveInstanceState and onRestoreInstanceState and it
   works when I flip the screen on the G1.
 
   The problem is when I press the Home button and then re-enter the
   activity it does not work.
 
   why is 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.comandroid-developers%2bunsubscr...@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: ScrollView scroll timeout ?

2009-11-20 Thread Mark Wyszomierski
Well I got a clone of ScrollView to compile, turns out it's the
constant:

   private static final int TOUCH_SLOP = 16;

as read from ViewConfiguration which is the real control variable
here. I think it's too high for a ScrollView, but since they hard-
coded it into the ScrollView source, I don't think there's a way to
tweak it (besides leaving my cloned version in my project, which is a
little scary)

Thanks


On Nov 20, 8:10 am, Mark Wyszomierski mar...@gmail.com wrote:
 Hi Mark,

 Yeah I was thinking of doing this, I gave it a quick try but am
 probably copying the source from the wrong location. I tried looking
 here:

 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...

 but am not sure which version corresponds to the 1.5sdk which I'm
 targeting. A quick try on a few of them led to unresolved inherited
 member variables, so I'm thinking I'm not copying the correct version
 for my SDK

 Thanks

 On Nov 20, 7:44 am, Mark Murphy mmur...@commonsware.com wrote:



  Mark Wyszomierski wrote:
   Is there no way to change the timeout to scroll in ScrollView? In the
   source, it's set to:

       static final int ANIMATED_SCROLL_GAP = 250;

   so any drags will be blocked for 250ms. This has the appearance of the
   ScrollView being stuck for a bit before it moves. This makes small
   scroll gestures difficult to work with. There's no way around this?

  Tactically, clone the code and make your own version that behaves as you
  wish. Strategically, contribute patches back that make this
  configurable, so eventually you can stop maintaining your separate edition.

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

  Warescription: Three Android Books, Plus Updates, $35/Year

-- 
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: Map application and KMZ files....

2009-11-20 Thread JP

No you cannot create an overlay that's directly driven from KML/KMZ
file input.
You'll have to do this by foot, i.e. parse out the input file and
feed the resulting Placemarks into an overlay

On Nov 20, 6:30 am, furby wookie...@gmail.com wrote:
 Is the map application that comes with Android capable of digesting
 KMZ files at all? I can start it up with an intent that sends in a KML
 file with no problem... But every single time I send a KMZ URL to it,
 it tells me that the file Contains Errors. Since i have now tried
 roughly a dozen different URLS with a dozen different KMZ files, I
 somehow suspect it is not the KMZ's that are corrupted - especially
 since those KMZ's open fine in Google Earth...

 So I have to wonder - is this a problem with that app, with the ADT or
 is it just not supported?

-- 
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 get all contact's name phone number, email for 2.0

2009-11-20 Thread Henry
Rachel:

Your following query is working perfectly for a single contact.
Cursor emails = getContentResolver().query(
 
ContactsContract.CommonDataKinds.Email.CONTENT_URI,
null,
ContactsContract.CommonDataKinds.Email.CONTACT_ID
+  =  + contactId,
null, null);

However, If I want to get all the contact emails, I will remove the
selection and query is
Cursor emails = getContentResolver().query(
 
ContactsContract.CommonDataKinds.Email.CONTENT_URI,
null,
null,
null, null);
Now, it always return just one row. I tried several ways, like
   ContactsContract.CommonDataKinds.Email.CONTACT_ID +  in ('1', '2',
'3');
It always one row.   If I just contact id 3, it will return contact
3.
Do you know a way to get all the emails in one single query?

Thanks a lot for your help, and your suggestion to put sample projects
for 2.0 contact api is
really helpful.

Henry


-- 
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: Is TextView supposed to be able to scroll its contents?

2009-11-20 Thread Carlos Pérez
Hi Matthias.

I've just the same problem, but I could check some things.

First all, if I define my long text in my xml file, my textView
scroll the contents.
However, if I update text content (with setText()) or if I define a
textView in a java class,
I'm not able to scroll the contents.



On 10 nov, 17:36, Matthias m.kaepp...@googlemail.com wrote:
 It was my understanding that even thoughTextViewis not a ScrollView,
 it has scrolling functionality built-in.

 However, I'm not able to scroll the contents of aTextView(that's on
 1.6). I've reduced my code to the most trivial example:

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
   android:layout_height=fill_parent
   android:layout_width=fill_parent
   android:orientation=vertical

   TextView
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     android:inputType=text|textMultiLine
     android:singleLine=false
     /

 /LinearLayout

 I then defined a really long string for testing, which I set on this
 text view usingsetText().

 The text is too long for theTextView, but there is no way to scroll
 it. So do I need to wrap it in a ScrollView after all?

 Cheers,
 Matthias

-- 
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: Android Market Anti-Piracy

2009-11-20 Thread LambergaR
@nEx.Software: Coding this kind of protection is trivial :) Effects on
the other hand are not

@AlexK: You can have that kind of history only if the employees are
informed that it exists and he agrees with it. You can require that by
including it in your employment contract if you wish.

The problem is that you are gathering some quite sensitive user data
without asking them. You could eventually gather and use them for sole
purpose of preventing your company's data from being stolen, but
sharing that data would, in my opinion, soon become a serious legal
issue - and I doubt that it is worth it. Users like companies that
protects their privacy - and since there are MANY other possibilities
to get money from user I think, that you should spend more time
brainstorming about alternatives.

And again, I encourage you to consider all the people that can not buy
applications trough Android Market. Applications that are free and
charge for additional service are far better accepted and make much
more money. For other applications you can simply implement some
'register on the web' functionality, but at the end you will realize
that you can't legally beat piracy.

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


Re: [android-developers] Re: RESET SQLite AUTOINCREMENT

2009-11-20 Thread Mark Murphy
JasonMP wrote:
 I use a do/while that runs through one of my tables based on the
 number of entries on another table and makes changes.
 
 Example:
 
 Integer i = 1;
 
 Cursor c = db.querryFunction();
 Integer rowCount = c.getCount();
 
 do{
 //does work on the database
 db.updateRow(table, args, KEY_ROWID + = + i, null);
 i++;
 }
 while(i = rowCount);
 
 
 if my autoincrements skips numbers then I can get an error trying to
 update a row that doesn't exist.

I wouldn't recommend that structure in general. Making assumptions on
the nature of primary keys always struck me as dangerous.

AUTOINCREMENT is not going to be reliable for your situation, in any case:

Note that 'monotonically increasing' does not imply that the ROWID
always increases by exactly one. One is the usual increment. However, if
an insert fails due to (for example) a uniqueness constraint, the ROWID
of the failed insertion attempt might not be reused on subsequent
inserts, resulting in gaps in the ROWID sequence. AUTOINCREMENT
guarantees that automatically chosen ROWIDs will be increasing but not
that they will be sequential.

(from http://www.sqlite.org/autoinc.html)

Personally, I'd avoid making the assumptions on the primary key values,
and do your updates based on real primary keys. But, that's just me.

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

Android Training in Germany, 18-22 January 2010: http://bignerdranch.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] Re: Map application and KMZ files....

2009-11-20 Thread furby
I know that isn't exactly right - I can start the map application
using an intent like this :

final Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse(geo:0,0?q=http://code.google.com/apis/kml/documentation/
KML_Samples.kml));
startActivity(myIntent);

And it loads that KML into the app and shows it...

On Nov 20, 9:55 am, JP joachim.pfeif...@gmail.com wrote:
 No you cannot create an overlay that's directly driven from KML/KMZ
 file input.
 You'll have to do this by foot, i.e. parse out the input file and
 feed the resulting Placemarks into an overlay

 On Nov 20, 6:30 am, furby wookie...@gmail.com wrote:

  Is the map application that comes with Android capable of digesting
  KMZ files at all? I can start it up with an intent that sends in a KML
  file with no problem... But every single time I send a KMZ URL to it,
  it tells me that the file Contains Errors. Since i have now tried
  roughly a dozen different URLS with a dozen different KMZ files, I
  somehow suspect it is not the KMZ's that are corrupted - especially
  since those KMZ's open fine in Google Earth...

  So I have to wonder - is this a problem with that app, with the ADT or
  is it just not supported?

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


Re: [android-developers] Re: Stop an SMS from being sent from default SMS client.

2009-11-20 Thread Mark Murphy
Gulfam wrote:
 There is the way to get SMSC Number and i am unable to import Phone
 Class in my activity.
 Is there any way to get SMSC number 

I see no evidence that there is a way to get an SMSC number via the SDK.

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

Android Training in Germany, 18-22 January 2010: http://bignerdranch.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] Re: RESET SQLite AUTOINCREMENT

2009-11-20 Thread JasonMP
I'm very new to all of this so I greatly appreciate your advice.  But
to clarify, you mean instead of using AUTOINCREMENT i create a column
to hold an integer value that I set, and can therefore control rather
than let SQLite do it automatically?  This was what I was expecting to
have to do if there wasn't a work around.  I had read that deleting
the table row from the sqlite_sequence table would reset it, however,
this didn't seem to work for me.

On Nov 20, 10:11 am, Mark Murphy mmur...@commonsware.com wrote:
 JasonMP wrote:
  I use a do/while that runs through one of my tables based on the
  number of entries on another table and makes changes.

  Example:

  Integer i = 1;

  Cursor c = db.querryFunction();
  Integer rowCount = c.getCount();

  do{
      //does work on the database
      db.updateRow(table, args, KEY_ROWID + = + i, null);
      i++;
  }
  while(i = rowCount);

  if my autoincrements skips numbers then I can get an error trying to
  update a row that doesn't exist.

 I wouldn't recommend that structure in general. Making assumptions on
 the nature of primary keys always struck me as dangerous.

 AUTOINCREMENT is not going to be reliable for your situation, in any case:

 Note that 'monotonically increasing' does not imply that the ROWID
 always increases by exactly one. One is the usual increment. However, if
 an insert fails due to (for example) a uniqueness constraint, the ROWID
 of the failed insertion attempt might not be reused on subsequent
 inserts, resulting in gaps in the ROWID sequence. AUTOINCREMENT
 guarantees that automatically chosen ROWIDs will be increasing but not
 that they will be sequential.

 (fromhttp://www.sqlite.org/autoinc.html)

 Personally, I'd avoid making the assumptions on the primary key values,
 and do your updates based on real primary keys. But, that's just me.

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

 Android Training in Germany, 18-22 January 2010:http://bignerdranch.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] Re: Android Market Anti-Piracy

2009-11-20 Thread Kaj Bjurman
You might be allowed to store personal data in some countires if you
first ask a supervisory authority if you can do so. That is what e.g.
banks are doing.


On 20 Nov, 15:29, AlexK kucherenko.a...@gmail.com wrote:
 ok... I got your point.

 Maybe you know how it's possible to have shared database of user
 history between loan companies?

 My point is: everywhere where involved money give you possibility to
 collect personal data and use it for own customers protection. of
 course that does not mean that you can publish that information
 everywhere.

 In my cases returned only device piracy threat level which make
 improssible to identify who is the customer, what exectly he/she do to
 get that status... Sources are not opened - user privacy is
 protected.

 So what you afraid?! That some one knows more then telling?! That
 someone add additional risk for piracy?!

 On Nov 20, 3:53 pm, LambergaR martin.s...@gmail.com wrote:



  You can report the user to some sort of LEGAL authority and they can
  get and process users data. You (as a person that is not an law
  officer) are not allowed to store and process any personal data
  without my explicit permission.

  So, you can report the user to police but if you are using any data
  gathered in illegal way your complaint is not valid.
  Privacy is a very problematic issue - and it should be that way!

-- 
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: Emulator not receiving UDP Packets

2009-11-20 Thread Josh Patterson
Sorry, cant say that I've tried this on anything but Android 2.0.

Have you tried it using Android 2.0 on the emulator? I'd start there,
get that working, and work out from there.

Josh Patterson
http://jpatterson.floe.tv

On Nov 18, 1:47 am, Gopi$h gopi...@gmail.com wrote:
 Hello,

 Actually this redir we have already tried, but still getting the same
 issue.
 I am using Android 1.5, so did you got this running in 1.5 also ?

 If yes what all is required to be done using Android 1.5

 I tried it in Android 2.0, but there iam not able to push my entire
 libraries, as it gives an error as : on emulator-5554: No space left
 on device.

 Any solution for this issue, to increase the space of /system/lib

 Waiting for reply,
 -Gopish

 On Nov 17, 9:17 pm, Josh Patterson jpatter...@floe.tv wrote:



  Gopish,
  On the host machine that runs the emulator, open a terminal window and
  telnet to the emulator instance:

  telnet localhost 5554

  This will take you into the ADB emulator console. Then setup packet
  forwarding on the port you are sending udp packets to:

  redir add udp:host machine port:emulator listen port

  example:

  redir add udp::

  This will then have the emulator listen on your local machine's port
   for UDP packets, and forward those to the emulator's ETH adapter
  on port  (which can be changed to whatever you need).

  I havent tried this with other external machines, but I struggled
  getting this to work for a while. Also, any servers listening for
  packets inside android (2.0) should be listening on IP 10.0.2.15
  (android emulator's own Eth adapter), and in this case on port .

  In the case where you want to broadcast UDP packets out of the android
  emulator to the local machine, you wont need to setup a port redir,
  but you will want to send them out to IP address 10.0.2.2 as this is
  the loopback address on the host computer, and you can send them
  directly to the port it is listening on.

  It takes some getting used to and isnt terribly straightforward, but I
  eventually got it working. Hopefully this helps.

  Josh Pattersonhttp://jpatterson.floe.tv

  On Nov 17, 9:07 am, Gopi$h gopi...@gmail.com wrote: From a remote 
  machine we are sending some UDP packets to our Android
   emulator. We are able to see the UDP packets reaching the host
   machine, but not able to reach the emulator, In Wireshark we are
   getting Destination port unreachable

   The port we are using is:49152 and static ip at both ends

   Is this port supported by android emulator?
   What is the solution to get UDP packets to be able to reach till the
   emulator?

   Kindly give solution for the same,
   Thanks in advance,
   -Gopish- Hide quoted text -

 - Show quoted text -

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


Re: [android-developers] Re: RESET SQLite AUTOINCREMENT

2009-11-20 Thread Mark Murphy
JasonMP wrote:
 I'm very new to all of this so I greatly appreciate your advice.  But
 to clarify, you mean instead of using AUTOINCREMENT i create a column
 to hold an integer value that I set, and can therefore control rather
 than let SQLite do it automatically? 

You could do that. Or, you let AUTOINCREMENT do its thing and make no
assumptions about what specific values the primary keys have, just that
they are unique. So, rather than iterating over integer values that you
hope are the right set of keys, you actually get the keys and iterate
over said keys. Or, better yet, see if you can update all of the rows in
a single UPDATE statement.

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

Android Development Wiki: http://wiki.andmob.org

-- 
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] HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread greenrift
I'm not sure who I should complain to about this, HTC or Google, but
after I did the most recent Hero (sprint) firmware update I am unable
to see applications that I developed nor several applications that I
paid for (and free ones) on the Market.  This makes updating them
unavailable.  Also, if I do a factory reset on my phone, then I will
not be able to download these paid for applications again.  What's the
deal here?  A friend of mine who also did the firmware update is in
the same boat.  Since I do have applications out there that people are
buying, I am now unable to view comments for those since I cannot see
them on the Market.  What's the solution to this?  Should I contact
HTC as well?

Thoughts?

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

2009-11-20 Thread Jags
i tried to put a rating bar.

i made it focussable=false and Clickable=false, but when i run it it
is focusable and runnable.

I tried to put in small dimensions, but the big stars are coming, how
to make small, I am using android 1.5, seems there is no style=small
attribute !

regards
Jagat

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


Re: [android-developers] HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread Greg Donald
On Fri, Nov 20, 2009 at 9:32 AM, greenrift jtgi...@gmail.com wrote:
 I'm not sure who I should complain to about this, HTC or Google, but
 after I did the most recent Hero (sprint) firmware update I am unable
 to see applications that I developed nor several applications that I
 paid for (and free ones) on the Market.  This makes updating them
 unavailable.  Also, if I do a factory reset on my phone, then I will
 not be able to download these paid for applications again.  What's the
 deal here?  A friend of mine who also did the firmware update is in
 the same boat.  Since I do have applications out there that people are
 buying, I am now unable to view comments for those since I cannot see
 them on the Market.  What's the solution to this?  Should I contact
 HTC as well?

 Thoughts?

I'm actually glad to hear this, I thought it was only my phone acting up.

I can't see any of my apps in the Market now either.  I first noticed
it several hours after HTC firmware upgrade yesterday.

Is this some issue with the Market or more HTC bugs?


-- 
Greg Donald
http://destiney.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] Getting Google order number programmatically after app is bought from Market

2009-11-20 Thread UBZack
Hi all,

As you may know, when you buy an app from the market, an email is sent
to you with a Google order number (which I believe is 15 digits
long), which is specific to this transaction.  I was wondering if this
number is stored anywhere on your device after you purchase an app,
and if it is, is there anything in the API to allow an android app to
retrieve this number.  If this number cannot be retrieved, is there a
similar market transaction code that's retrievable?

Thanks for any insight you can give on this matter!

-UBZack

-- 
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] locator app

2009-11-20 Thread Abhi
Hi All,

I need help in understanding how to go about designing this App.

I have a database of zipcodes (or lat, long info) that I need to look
up and compare with my current location and come up with a small list
of say about 5 nearest locations to where I am.

what would be the easiest and quickest way to do it?

Thanks for any help in this regard.

Abhi

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

2009-11-20 Thread Jags
i saw style=?android:attr/ratingBarStyleSmall makes it small, but it
shows 10 stars out of which 3 are active, i need 3 stars out of which
1 is active and programmatically make it to 2 and 3 after some time.

my layout looks like this

RatingBar android:id=@+id/RatingBar01 style=?android:attr/
ratingBarStyleSmall
android:layout_width=wrap_content
android:layout_height=fill_parent
android:max=3 android:rating=1 android:numStars=3
android:focusable=false
android:clickable=false android:layout_weight=1 
/RatingBar

thanks in advance

Jagat

On Nov 20, 9:35 pm, Jags jag...@gmail.com wrote:
 i tried to put a rating bar.

 i made it focussable=false and Clickable=false, but when i run it it
 is focusable and runnable.

 I tried to put in small dimensions, but the big stars are coming, how
 to make small, I am using android 1.5, seems there is no style=small
 attribute !

 regards
 Jagat

-- 
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] Google Latitude

2009-11-20 Thread Brad Gies

Anyone know what integration is available for Google Latitude in 
Android? I've been searching the web, but it doesn't look like an API 
has been released yet. Is there an intent I can use from my program to 
just start Latitude?

What I would really like is to have a Latitude Maps Overlay ... 
something like the MyLocationOverlay class, but just an Intent to start 
Latitude would be good enough for now :).

Thanks for any help or pointers...


Brad..





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


Re: [android-developers] Re: Android Market Anti-Piracy

2009-11-20 Thread Wayne Wenthin
Then wouldn't this apply to the AndroidID also?There is no permissions
needed for this information.   Is google violating some laws by allowing the
personal information out without asking permission?

On Fri, Nov 20, 2009 at 3:54 AM, LambergaR martin.s...@gmail.com wrote:

 In actuality IMEI number can be used identify the user.

 Directive 95/46/EC article 2 paragraph a clearly states:

 'personal data' shall mean any information relating to an identified
 or identifiable natural person ('data subject'); an identifiable
 person is one who can be identified, directly or indirectly, in
 particular by reference to an identification number or to one or more
 factors specific to his physical, physiological, mental, economic,
 cultural or social identity;

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




-- 
Writing code is one of few things
that teaches me I don't know everything.

Join the Closed Beta of Call Girl Manager
http://www.fuligin.com/forums

-- 
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: SIGSEGV 11 OpenGL - Only on Droid, not 2.0 Emulator

2009-11-20 Thread Micah
I've been playing with the Rokon game development framework (http://
code.google.com/p/rokon/) on my Droid, and the example app is crashing
with this same error a lot when I run it on my Droid, just switching
between the example activities.

On Nov 10, 7:29 am, chrispix chris...@gmail.com wrote:
 We are getting aSIGSEGV11when launching ourOpenGLactivity. Here
 is the logcat. It appears to happen onDroidHardware, butnotthe2.0Emulator. We 
 are trying to do some testing to see if we can slowly
 build up some code to cause a crash. Anyone else have any ideas?

 11-09 21:52:35.981: INFO/ActivityManager(1015): Starting activity:
 Intent { cmp=com.froogloid.android.cowpotato/.CowPotatoPlay (has
 extras) }11-09 21:52:35.981: WARN/UsageStats(1015): Failed to persist new 
 stats11-09 21:52:36.005: DEBUG/AudioHardwareMot(987): AudioMgrutput 0x11b68
 exiting standby11-09 21:52:36.130: DEBUG/dalvikvm(4852): GC freed 4868 
 objects /
 337592 bytes in 60ms11-09 21:52:36.177: VERBOSE/Localytics_Session(4852): 
 Reconnected to
 existing session11-09 21:52:36.192: DEBUG/SensorManager(4852): found sensor: 
 LIS331DLH
 3-axis Accelerometer, handle=011-09 21:52:36.192: DEBUG/SensorManager(4852): 
 found sensor: AK8973 3-
 axis Magnetic field sensor, handle=111-09 21:52:36.192: 
 DEBUG/SensorManager(4852): found sensor: AK8973
 Temperature sensor, handle=311-09 21:52:36.192: DEBUG/SensorManager(4852): 
 found sensor: SFH7743
 Proximity sensor, handle=411-09 21:52:36.192: DEBUG/SensorManager(4852): 
 found sensor:
 Orientation sensor, handle=211-09 21:52:36.192: DEBUG/SensorManager(4852): 
 found sensor: LM3530
 Light sensor, handle=511-09 21:52:36.200: VERBOSE/Localytics_uploader(4852): 
 Attempting to
 upload 1 files.11-09 21:52:36.622: VERBOSE/Localytics_uploader(4852): Upload
 complete. Status: 20211-09 21:52:36.997: DEBUG/CHE(4852): 
 GameLoop.start()11-09 21:52:37.012: DEBUG/libEGL(4852): loaded 
 /system/lib/egl/
 libGLES_android.so11-09 21:52:37.012: DEBUG/libEGL(4852): loaded 
 /system/lib/egl/
 libEGL_POWERVR_SGX530_121.so11-09 21:52:37.020: DEBUG/CHE(4852): 
 resetUpdateTimer()11-09 21:52:37.184: DEBUG/libEGL(4852): loaded 
 /system/lib/egl/
 libGLESv1_CM_POWERVR_SGX530_121.so11-09 21:52:37.192: DEBUG/libEGL(4852): 
 loaded /system/lib/egl/
 libGLESv2_POWERVR_SGX530_121.so11-09 21:52:37.864: 
 INFO/ActivityManager(1015): Displayed activity
 com.froogloid.android.cowpotato/.CowPotatoPlay: 1809 ms (total 1809
 ms)11-09 21:52:37.864: WARN/UsageStats(1015): Failed to persist new 
 stats11-09 21:52:38.286: VERBOSE/Localytics_Session(4852): Close event
 written.11-09 21:52:38.309: VERBOSE/Localytics_uploader(4852): Attempting to
 upload 1 files.11-09 21:52:38.466: DEBUG/CHE(4852): 
 GameRenderer.onSurfaceCreated()11-09 21:52:38.466: DEBUG/CHE(4852): 
 GLMesh.useVBODefault = true11-09 21:52:38.466: DEBUG/CHE(4852): 
 GameLoop.onPause()11-09 21:52:38.466: DEBUG/CHE(4852): onPause() at 
 2044611-09 21:52:38.653: DEBUG/dalvikvm(4852): GC freed 4585 objects /
 682608 bytes in 66ms11-09 21:52:38.809: DEBUG/dalvikvm(4852): GC freed 1439 
 objects /
 273336 bytes in 50ms11-09 21:52:38.825: VERBOSE/Localytics_uploader(4852): 
 Upload
 complete. Status: 20211-09 21:52:39.075: DEBUG/dalvikvm(4852): GC freed 365 
 objects / 17168
 bytes in 49ms11-09 21:52:39.411: DEBUG/dalvikvm(4852): GC freed 5326 objects /
 2246168 bytes in 65ms11-09 21:52:39.559: DEBUG/AudioHardwareMot(987): 
 AudioMgrutput 0x11b68
 entering standby11-09 21:52:39.559: DEBUG/AudioHardwareMot(987): 
 AudioMgr:Closing
 stereo device11-09 21:52:40.075: INFO/DEBUG(984): *** *** *** *** *** *** *** 
 ***
 *** *** *** *** *** *** *** ***11-09 21:52:40.075: INFO/DEBUG(984): Build 
 fingerprint: 'verizon/voles/
 sholes/sholes:2.0/ESD20/17572:user/ota-rel-keys,release-keys'11-09 
 21:52:40.075: INFO/DEBUG(984): pid: 4852, tid: 4915  
 com.froogloid.android.cowpotato 11-09 21:52:40.075: INFO/DEBUG(984): 
 signal11(SIGSEGV), fault addr
 0051600011-09 21:52:40.075: INFO/DEBUG(984):  r0 49f62680  r1 00515fe8  r2
 6d40  r3 11-09 21:52:40.075: INFO/DEBUG(984):  r4 0041efc0  r5 
 0040a2d0  r6
 80d75604  r7 0002544011-09 21:52:40.075: INFO/DEBUG(984):  r8 0020  r9 
   10
 88e4  fp 0002544011-09 21:52:40.075: INFO/DEBUG(984):  ip 80d7565c  sp 
 4876ad38  lr
 80d0502c  pc afe0df44  cpsr 281011-09 21:52:40.161: INFO/DEBUG(984):      
     #00  pc df44  /
 system/lib/libc.so11-09 21:52:40.161: INFO/DEBUG(984):          #01  lr 
 80d0502c  /
 system/lib/egl/libGLESv1_CM_POWERVR_SGX530_121.so11-09 21:52:40.161: 
 INFO/DEBUG(984): code around pc:11-09 21:52:40.161: INFO/DEBUG(984): afe0df34 
 f5d1f080 f5d1f0a0
 f5d1f0c0 f5d1f0e011-09 21:52:40.161: INFO/DEBUG(984): afe0df44 f421020d 
 f421420d
 f461020d f461420d11-09 21:52:40.161: INFO/DEBUG(984): afe0df54 f5d1f080 
 f5d1f0a0
 f5d1f0c0 f5d1f0e011-09 21:52:40.161: INFO/DEBUG(984): code around lr:11-09 
 21:52:40.161: INFO/DEBUG(984): 80d0501c e1a02007 e59d100c
 e593 ebfffaee11-09 21:52:40.161: 

[android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-20 Thread KKK
Hi, Google, Your mother let you answer our questions.

On Nov 19, 5:29 pm, Klaus Kartou kar...@gmail.com wrote:
 Agreed, feedback from Google would be nice...

 On Wed, Nov 18, 2009 at 10:58 AM, blindfold seeingwithso...@gmail.comwrote:



  Same thing with me, I have copy protection turned off in Android
  Market.

  It would be good now to get some feedback from Google or HTC on
  whether it is a bug.

  On Nov 18, 9:54 am, Klaus Kartou kar...@gmail.com wrote:
   We haven't turned copy protection on for our app, and it is still not
   visible on HTC Tattoo/HTC Dragon.
   Please, Google is this a known issue?

   On Tue, Nov 17, 2009 at 11:02 AM, Aspidoff aspid...@gmail.com wrote:
I noticed this problem when the new Droid Eris came out. At first, i
started messing with minsdk and even lowered it to 2 but that didnt
fix it, the apps didnt show up in the market. I ran through Verizon
and Sprint stores for days to try to get this to work.

I dont think Google people even know the problem exist. I am surprised
that this problem hasnt been fixed for such a long time now. Anyway,
the reason why you can 't see your app on HTC Hero/Eris or any other
1.5 phones is because you have copy protection set to On. You can
turn this off in your developer console when logged in to your Android
Market account and editing your application description/title

cheers!

On Nov 17, 1:19 am, Klaus Kartou kar...@gmail.com wrote:
 Is there any Google people that can shed some light on this issue?

 On Mon, Nov 16, 2009 at 4:42 PM, blindfold 
  seeingwithso...@gmail.com
wrote:

  Thanks Phil!

  Indeed this is very strange. As I understand it, all Android 1.6
  apps
  should by default be visible to HTC Tattoo on the Android Market,
  and
  use of the camera should not matter. I had even tested my app to
  show
  OK on a 240x320 screen using the emulator, and cannot think of
  anything else to correct. I was thinking of trying an empty
  supports-
  screens element in case documentation is ambiguous, but even so it
  would not seem to make sense to have the CAMERA dependency.
  Hopefully
  HTC or Android developers (Romain?) will figure it out soon,
  because
  this kind of market fragmentation seems unnecessary.

  On Nov 16, 9:55 am, phil philipp.bre...@gmail.com wrote:
   Hi Blindfold,

   We were not able to find The vOICE for Android in the Market on
  the
   Tattoo. But we found it on the HTC Magic in the Market.

   Hope there will be a solution for this issue soon.

   On Nov 15, 8:21 am, blindfold seeingwithso...@gmail.com wrote:

OK, I didn't know that. My curiosity was triggered by Phil with
  the
suggested role of the CAMERA permission in having apps be
  visible
on
the Market, which AFAIK should not have made any difference.
  Also,
android:minSdkVersion=4 (Android 1.6) according to
  documentation
implies that all screensizes are assumed supported:
 http://d.android.com/guide/practices/screens_support.htmlIf
android:minSdkVersion or android:targetSdkVersion is 4
  (Android
1.6)
or higher, the default value for everything is true.

So I expected that basically only visibility of (unadapted for
screensize) Android 1.5 apps on the Market would be affected,
without
any role for android.permission.CAMERA, and I would otherwise
  be
surprised.

BTW, lots of HTC Tattoo buyers seem annoyed, judging
  fromhttp://
  androinica.com/2009/10/11/htc-tattoos-android-market-will-not-...
where it is stated that even Google's own Listen, My Tracks
  and
Sky Map are (were?) not visible on Android Market for users
  of
the
HTC Tattoo.

On Nov 14, 11:39 pm, Klaus Kartou kar...@gmail.com wrote:

 Hi Blindfold,

 Sorry I dont have a HTC Tattoo to test :( Thats our
problem...some
  users
 reported that they couldnt find our app on Market with their
Tattoo.
  But we
 have no idea why?

 To Edward:
 HTC Tattoo has a camera, so that cannot be the reason our
  apps
are
  not
 showing.

 What to do? :D

 Cheers

 On Sat, Nov 14, 2009 at 10:46 PM, Edward Falk 
  ed.f...@gmail.com

  wrote:
  Oh, and more importantly, the Android market should have a
  tool
  that
  allows developers to get a list of devices that their
application
  won't be shown for, and why.

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

[android-developers] Media Player and FileDescriptor Issues

2009-11-20 Thread Rizza
I'm attempting to play files located in a Sounds directory located in
my assets directory.

The code below is what im using in my Listener method of my activity

 try {
AssetManager mgr = getAssets();
//Lets me get file as i i'm using the Tag object of a radio button to
store the filename
AssetFileDescriptor mgrFileDesc = mgr.openFd(Sounds/ +
grp.getChildAt(chkId).getTag().toString());

  FileDescriptor fd = mgrFileDesc.getFileDescriptor();
 MediaPlayer mPlay = new MediaPlayer();
 mPlay.setDataSource(fd);
Toast.makeText(getBaseContext(),fd.toString() ,
Toast.LENGTH_SHORT).show();
mPlay.prepare();
mPlay.start();
} catch (IOException e) {
// TODO Auto-generated catch block
//  e.printStackTrace();

Toast.makeText(getBaseContext(),ERROR:+ e.getCause() ,
Toast.LENGTH_SHORT).show();
}

The first Toast message shows me that i have a FileDescriptor

The IOException error is telling me that the e.getCause() is null.
If i change the e.getMessage() it tells meprepare failed. status
0x1

I'm lost..

What im attempting to achieve overall is to create a dynamic list of
radio buttons, that play a file.   So i used the assetManager to work
with the files in my assets folder, and was able to write the filename
to the radioButtons Tag object, and then reference that in my listener
method.

If someone can point me in the right direction, to either debug this,
or approach my task in a different manner.

Thanks in advance

-- 
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] Prevent full-screen behaviour via the InputMethodManager

2009-11-20 Thread Michael
I'm looking to prevent the default behaviour of going full screen when
controls like EditText receive focus in an application. The
InputMethodManager class does indeed have a setFullscreen() method
available, but it seems to have been hidden on purpose in the SDK. Is
there any other way to disable this behaviour while still using the
software keyboard?

Thanks,
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] Re: App name/icon problems on Hero after reboot

2009-11-20 Thread Michael Serale
Sprint just released a MR update for the htc hero and i have confirmed
that it fixed all these application issues.  i restarted and
reinstalled apps and they are still working fine.

SUCCESS!! -

On Nov 14, 8:10 am, AngelOD angelod1...@gmail.com wrote:
 Hi,

 I would just like to add here, that I have a Scandinavian HTC Hero,
 and I've tried to recreate several of these errors, without luck, so
 whatever it is, that causes it, I'd have to assume it's not in the
 Scandinavian release of the firmware. Just in case someone wanted to
 note that to HTC during one of (I imagine) countless emails to them,
 since the fault is more than likely on their part, even if they say
 they can't recreate it themselves.

 Cheers,
 Tristan

-- 
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] Marketplace restrictions on app with no launcher?

2009-11-20 Thread Scott Liu
Hi all,

I couldn't find reference to it in the Google documentation, but are
there any restrictions on creating
an application with no launcher and selling it on Android Marketplace?

Thanks,
Scott

-- 
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 configure your application to ensure proper display on Motorola Droid?

2009-11-20 Thread Alex
Hi Dexter.

Take a look at the technical spec sheet for the Droid where the screen
size and other technical information is detailed:
http://developer.motorola.com/products/droid/
Obviously Droid is Eclair so you will need to ensure that the Android
SDK and ADT Plugin (if you are using Eclipse) are the correct versions
and you will need to compile your application against the Android 2.0
libraries.
For your information the Droid screen size is: WVGA (480 x 854), up to
16M colours and a pixel density of 240dpi.

With regards,

Alex.

On Nov 20, 8:47 am, Dexter#39;s Brain coomar@gmail.com wrote:
 Hi,

 I am having trouble in finding out the right settings for my emulator
 to simulate the Motorola Droid.

 Does anyone know with what settings should I create my emulator, so
 that I can emulate the Droid handset?

 Thanks,
 Dexter

-- 
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 read a file provided by a different Android application

2009-11-20 Thread jaime
I need some mechanism so that an Android application can read a file
which is provided by a different Android application. I know that it's
possible if both applications have the same userid, but it's not
feasible because it would require to sign both applications with the
same key.
The idea is that one application has a zip file which is uncompressed;
the uncompressed files must be available to a different Android
application. By default, it's not possible because that directory is
not readable by the latter application.
Is there any directory which can be readable/writable by both
applications without hacks?
Is there any other mechanism suggested by Android?

-- 
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 can I disable the HOME key in my activity?

2009-11-20 Thread ProgMasta
OK so you say you can't override the Home Key... Then how does the
Toddler Lock program work? The only think you can do to unlock that
prog is through the provided key combination, four corner touch, or
long press power and initiate shut down. What exactly are they doing
to accomplish this? They are either temporarily overriding the home
screen itself and therefore when you press the home key it is
technically taking you to the Home screen and you still see Toddler
Lock because home has been replaced.Or, Toddler Lock is some
how set over the homepage. Or... Well I guess thats the
question... Or what else? What is happening? Why does Toddler Lock
appear to be overriding Home key?

On Nov 2, 1:44 pm, Romain Guy romain...@google.com wrote:
 You can't.





 On Mon, Nov 2, 2009 at 6:51 AM, kyo xiaoyi kyored...@gmail.com wrote:
  I try to rewrite the method onKeyDown, like this:

  �...@override
     public boolean  onKeyDown  (int keyCode, KeyEvent event){
         if((keyCode == KeyEvent.KEYCODE_MENU)
                 ||(keyCode == KeyEvent.KEYCODE_POWER)){
                 super.onKeyDown(keyCode, event);
                         return false;
                 }
         else{
                 return true;
         }
     }

  it works for the other keys, but not for HOME. How can I disable it?
  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

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  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] Progress Dialog: how to pass context or adapter to the thread

2009-11-20 Thread Achanta
I am trying to display a progress bar while download data and store it
in my database.
My problem is that I need to pass the database adapter or the context
to the thread.

This is what I have tried.

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try{
adapter = dbInit();
button = (Button)findViewById(R.id.progressDialog);
button.setOnClickListener(new OnClickListener(){
  public void onClick(View v){
   showDialog(PROGRESS_DIALOG);
  }
});
}finally{
  adapter.close();
}
}

protected Dialog onCreateDialog(int id){
 switch(id){
 case PROGRESS_DIALOG:
  progressDialog = new ProgressDialog(ProgressBarSample.this);
  progressDialog.setMessage(loading message...);

  thread = new MyThread(handler);
  thread.start();

  return progressDialog;
 default:
  return null;
 }
}

private MyDbAdapter dbInit(){
 adapter = new MyDbAdapter(this);
 adapter.open();
 adapter.deleteMyTable();
 adapter.createMyTable();
 return adapter;
}

final Handler handler = new Handler(){
 public void handleMessage(Message msg){
  int status = msg.getData().getInt(status);
if (status = 0){
   progressDialog.setMessage(Downloading data part2...);
   dismissDialog(PROGRESS_DIALOG);
  }
 }

};

public class MyThread extends Thread{
 private Handler myHandler;
 int downloadStatus;
 final String dUrl = MY_XML_URL;

 public MyThread(Handler handler){
  this.myHandler = handler;
  downloadStatus = -1;
 }

 public void run(){
  Message msg = myHandler.obtainMessage();
  Bundle b = new Bundle();
  downloadStatus = downloadTables(dUrl);
   b.putInt(status, downloadStatus);
   msg.setData(b);
   myHandler.sendMessage(msg);
 }

public int downloadTables(String xmlUrl){
  int downloadStatus = 0;
  try{
   URL url = new URL(xmlUrl);
   SAXParserFactory factory = SAXParserFactory.newInstance
();
   SAXParser parser = factory.newSAXParser();
   XMLReader reader = parser.getXMLReader();
   MyHandler handler = new MyHandler(adapter);
   reader.setContentHandler(handler);
   reader.parse(new InputSource(url.openStream()));
  }catch(Exception e){
   Log.e(Error: ,  + e.getMessage());
   System.exit(0);
  }finally{
   downloadStatus = 1;
  }
  return downloadStatus;
}

}
}

but when I run this i get the following error.


I/ActivityManager(   57): Starting activity: Intent
{ act=android.intent.action.MAIN cat=
[android.intent.category.LAUNCHER] flg=0x1020
cmp=com.achie.test/.ProgressBarSample }
I/ActivityManager(   57): Start proc com.achie.test for activity
com.achie.test/.ProgressBarSample: pid=548 uid=10024 gids={3003}
D/ddm-heap(  548): Got feature list request
I/ActivityManager(   57): Displayed activity
com.achie.test/.ProgressBarSample: 1235 ms (total 1235 ms)
E/Error:  (  548): database not open
I/AndroidRuntime(  548): AndroidRuntime onExit calling exit(0)
I/WindowManager(   57): WIN DEATH: Window{43be4df0 com.achie.test/
com.achie.test.ProgressBarSample paused=false}
I/ActivityManager(   57): Process com.achie.test (pid 548) has died.
I/WindowManager(   57): WIN DEATH: Window{43c94128 Downloading Data
paused=false}
W/UsageStats(   57): Unexpected resume of com.android.launcher while
already resumed in com.achie.test
W/InputManagerService(   57): Got RemoteException sending setActive
(false) notification to pid 548 uid 10024

It looks like I cannot pass the adapter from the thread as I am doing
as its running as a separate thread and have to use handler to pass
it. Can anyone let me know how to do this.

thank you,

-- 
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: Getting Google order number programmatically after app is bought from Market

2009-11-20 Thread polyclefsoftware
Hi UBZack,

I'm currently working on a Google Checkout client for Android that
generates simple sales reports based on a date range and order status,
mostly for myself because the web interface doesn't provide nice
summary information and the .xsl export doesn't include item names or
details. But I plan to release it for free when I'm done.

Anyway, the point is that you can use the Google Checkout API with an
Android app to retrieve unique order numbers for individual
transactions. If the app doesn't store the actual order number, you
could cross-reference the order number with any other information
(e.g. user name, email, etc.). Are you thinking of using this for some
kind of DRM?

On Nov 20, 9:45 am, UBZack zferv...@gmail.com wrote:
 Hi all,

 As you may know, when you buy an app from the market, an email is sent
 to you with a Googleordernumber (which I believe is 15 digits
 long), which is specific to this transaction.  I was wondering if 
 thisnumberis stored anywhere on your device after you purchase an app,
 and if it is, is there anything in the API to allow an android app to
 retrieve thisnumber.  If thisnumbercannot be retrieved, is there a
 similar market transaction code that's retrievable?

 Thanks for any insight you can give on this matter!

 -UBZack

-- 
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 read a file provided by a different Android application

2009-11-20 Thread edu

don't you have forget android:sharedUserId=YourSharedID in your
manifest file ?

are you sure there is a link between userID ans signature ?

I'm newbie

-- 
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: Android Market Anti-Piracy

2009-11-20 Thread LambergaR
As I have said, it might be legal to store some content for your
company use (though I am pretty sure that this is included somewhere
in the EULA) but I don't think it is legal to publicly share it.

-- 
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 read a file provided by a different Android application

2009-11-20 Thread HeHe
try ContentProvider, i guess.

On Nov 20, 12:17 am, jaime jjja...@gmail.com wrote:
 I need some mechanism so that an Android application can read a file
 which is provided by a different Android application. I know that it's
 possible if both applications have the same userid, but it's not
 feasible because it would require to sign both applications with the
 same key.
 The idea is that one application has a zip file which is uncompressed;
 the uncompressed files must be available to a different Android
 application. By default, it's not possible because that directory is
 not readable by the latter application.
 Is there any directory which can be readable/writable by both
 applications without hacks?
 Is there any other mechanism suggested by Android?

-- 
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: Picking up a PhoneBook entry under Android 2.0 !!!

2009-11-20 Thread stanlick
Thanks Dmitri --

Is this test correct?

int sdkVersion = Integer.parseInt
(Build.VERSION.SDK);   // Cupcake style
if (sdkVersion = Build.VERSION_CODES.ECLAIR) {
className = ...ContactAccessorSdk3_4;
} else {
className = ...ContactAccessorSdk5;
}
It looks backward?

Peace,
Scott

On Nov 3, 3:44 pm, Dmitri Plotnikov dplotni...@google.com wrote:
 I just published some sample code illustrating this use of both legacy and
 new Contacts APIs in the same app.  
 Seehttp://code.google.com/p/android-business-card

 Cheers,
 - Dmitri

 On Mon, Nov 2, 2009 at 9:31 AM, Mark Murphy mmur...@commonsware.com wrote:
  jarkman wrote:
   int sdkVersion = Integer.parseInt(Build.VERSION.SDK);

  Note that if you are using API version 4 (1.6 and newer), there is
  Build.VERSION.SDK_INT, which already converts this to an integer.

  If you are still using API version 3, you'll need to parse the String as
  shown above.

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

  Android 1.6 Programming 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%2bunsubscr...@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: HTC Hero, missing applications from Market after firmware update

2009-11-20 Thread blindfold
Just a (wild) guess. I see that your SpecTrek app uses the camera.
Might the problem be related to the ongoing discussion about the HTC
Tattoo and app visibility at
http://groups.google.com/group/android-developers/browse_frm/thread/bda3d385db2b44dc/
? There android.permission.CAMERA seems to play a role for as yet
unknown reasons.

On Nov 20, 4:32 pm, greenrift jtgi...@gmail.com wrote:
 I'm not sure who I should complain to about this, HTC or Google, but
 after I did the most recent Hero (sprint) firmware update I am unable
 to see applications that I developed nor several applications that I
 paid for (and free ones) on the Market.  This makes updating them
 unavailable.  Also, if I do a factory reset on my phone, then I will
 not be able to download these paid for applications again.  What's the
 deal here?  A friend of mine who also did the firmware update is in
 the same boat.  Since I do have applications out there that people are
 buying, I am now unable to view comments for those since I cannot see
 them on the Market.  What's the solution to this?  Should I contact
 HTC as well?

 Thoughts?

-- 
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] Refreshing a ListActivity within a TabView

2009-11-20 Thread JasonMP
Hi,

I'm running into some issues here with my app.  I have 4 tabs run
through a tabActivity.  One tab sends an intent and run my
ListActivity that populates the screen from a simpleCursorAdapter.  My
problem is that when I change back to this tab, after the first time
its run, the list never refreshes regardless of the changes made to
the database via other tabs.  Is there something I can call from
onTabChanged to refresh my ListActivity?

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


  1   2   3   >