[android-developers] how to set the focus color of one listitem

2010-07-07 Thread cindy
For my list, I want to change the default focus color. However, when I
set listSelector, the area of linelayout change to that color.Not the
single focused listitem. Anything wrong?

LinearLayout android:id=@+id/list_panel
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=vertical
android:layout_weight=1
android:layout_gravity=fill
android:layout_marginBottom=20px
android:background=@drawable/list_bg
ListView android:id=@+id/android:list
android:divider=@drawable/content_bg
android:layout_width=fill_parent
android:listSelector=@drawable/list_focus
android:layout_height=wrap_content
android:layout_weight=1
android:scrollbars=none/
TextView android:id=@+id/android:empty
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=No result!/
 /LinearLayout

-- 
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: rtsp client?

2010-07-07 Thread hyc


On Jun 28, 6:10 pm, Andy Savage a...@bluewire.net.nz wrote:
 With certain types of well formed RTSP streams the mediaplayer class can
 play it directly.

 http://m.youtube.comis a great example of some well formed feeds, but most
 RTSP feeds from the net seem to work fine.

 I've also managed to get ffserver streaming fine to it using H.264.

I was having a lot of problems getting RTSP working over EDGE or 3G.
Finally I figured out that
it only works when your rtsp server is actually on port 554. I was
testing with ffserver on 5454
before, which worked over my local wifi but never over the GSM
network. I guess that makes
sense since everything is being NAT'd or proxied, and the proxy
servers will only recognize the
traffic if it's on a standard port.

-- 
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] I can't change the checkbox state due to multiple getView call in custom adapter

2010-07-07 Thread Jeruliu
After researched in this group, I have a conclusion that the number of
calling getView function in adapter is not guaranteed, normally this
function will be called 3 times. It's causing issue to my app.

I have a custom list view, 2 text and 1 check box in each row. I also
defined my own adapter extends from simple adapter.

Now i just want to catch the onclick event to change the checkbox
state, but after i called setChecked function the getView function
will be called again and again which will overwrite my settings.

Any propose?

-- 
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: rtsp client?

2010-07-07 Thread hyc


On Jun 28, 3:47 am, u1663097 u1663097 u1663...@gmail.com wrote:
 The openCore platform in Android supports rtsp stack as a rtsp client.
 It is possible to support stream video.

Unfortunately it only supports RTP over UDP. From
android/external/opencore/protocols/rtsp_client_engine/src/
pvrtsp_client_engine_node.cpp
line 3534 or so:
   //For transport options, we only let server
choose
//between RTP/AVP/UDP or x-pn-tng/tcp;
and for x-pn-tng/tcp,
//we only do http cloaking. 06/03/21

Kinda sad that they've let such an old restriction remain for so long.
RTP/AVP/UDP on
cellular networks tends to lose a lot of packets. It would have been
nice to have a way
to use TCP instead.

 On Mon, Jun 28, 2010 at 6:33 PM, chas__123 charlie.nug...@gmail.com wrote:
  Hi

  could someone say if android supports an RTSP stack? We've an RTSP
  server that we'd like to stream video to an android rtsp client if
  thats possible

  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.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: paypal mobile payment allowed?

2010-07-07 Thread ko5tik


On Jul 6, 10:19 am, Al Sutton a...@funkyandroid.com wrote:
 Just to address your point on collecting information from Googles
 Market; I've talked to someone at Google about this and it was an
 absolute no-go. The request wasn't for AndAppStore, but for another
 project that I was working on part of and some people at Google had
 shown some interest in.

Well,  what about cyrket?  It collects information from market and
displays it in a better way than original  ( user comments were
visible for ages )

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] Samsung Galaxy Spica (I5700) Bluetooth SPP with Android 2.1

2010-07-07 Thread Rafał Grzybowski
Any well known issues with this? I cannot create SPP connection on
that phone, many other phones work great on the same software.

-- 
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: Change the progress bar style dynamically

2010-07-07 Thread Serdel
But this is a Dialog object which I don't want to create. I was
referring to ProgressBar -  a View object...

-- 
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] Google Maps App

2010-07-07 Thread Yorgos X
Hi there, I have experienced the same behaviour on my device. Have you
figured out a way to overcome this issue? please let me know if you have?.

cheers!

On Thu, Jun 10, 2010 at 3:50 PM, zohar lerman lirazo...@gmail.com wrote:

 Hi,

 I have several Android devices and each of them has different version
 of Google Maps:
 3.0 in HTC G1, 3.1.1 in HTC Dream and 3.4 in Nexus one and Motorola
 Droid.

 When i use the following code:
 Intent myIntent = new Intent(Intent.ACTION_VIEW,Uri.parse(geo:0,0?
 q=Starbucks));

 I get different behavior on the devices:
 On the latest versions of Google Maps application I see a map the term
 centered around my current location with a reasonable zoom radius
 while in Google Maps 3.0 I see list of results and button to the map.

 Is there a way to get the same behavior on all devices? of course i
 prefer the behavior of the latest versions

 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.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: Accurate sleep()\timer in Android

2010-07-07 Thread Omer Gilad


On Jul 6, 10:38 pm, Dianne Hackborn hack...@android.com wrote:
  2. The operation I'm doing involves network activity - UDP\TCP packet
  sending. Is there good native support for networking that is device
  independent (like the normal libc, libz)? Or maybe I should ask this
  in the NDK group?

 You have extremely strict jitter requirements for something involving
 NETWORKING?  That is...  strange.

 I suspect the jitter happening on the network end is going to way outweigh
 what is happening on the device.


That is true, but I need this kind of optimization. The network path
will be very clear in some cases, and there's no reason to introduce
extra jitter because of garbage collection.

-- 
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] Like implementation with Facebook github SDK

2010-07-07 Thread ayanir
Hello,
I’m using the Facebook SDK from github.
Does anyone know how to implement a “Like” button using the SDK?
Is there a way to invoke “Like” method same as “me” using the Graph
API? If it does, it should be very simple to use the SDK.

There is an alternative implementation found in:
http://github.com/facebook/facebook-android-sdk/issues#issue/17
but it doesn’t use the SDK.

Thanks
ayanir

-- 
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] Calculating Hash Value

2010-07-07 Thread perumal316
Hi All,

I want to calculate the hash value of the all the folders in a
particular directory. I am able to do it in a java application.

Any idea how to do it in Android?

Thanks in Advance,
Perumal

-- 
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: paypal mobile payment allowed?

2010-07-07 Thread Michael A.
On Jul 6, 8:22 am, ko5tik kpriblo...@yahoo.com wrote:
 On Jul 6, 12:01 am, moneytoo m...@seznam.cz wrote:

  It depends on what you want to charge the user for.

  From 3.3: All fees received by Developers for Products distributed via
  the Market must be processed by the Market’s Payment Processor.

  Definition ofroducts: Software, content and digital materials created
  for Devices in accordance with the Android SDK and distributed via the
  Market.

 I think you can distribute your free app  through market, and provide
 paypal financed donwload of paid parts through some other means.  
 This way your paid parts are not served through market.

See 4.5 (Non Compete). Yes - you can do this, but ONLY if you do NOT
advertise
your own downloads within your product (which kind of defeats the
point of having
a  free app with Paypal downloads). Even including a link to your
website
within your app would violate section 4.5. I seem to recall that apps
have been kicked off the
market for doing stuff like that in the past.

As far as I can determine (and IANAL), the only thing you can use
Paypal for at this time
is for  subscription systems (if the product is purely subscription
based) and donation ware
(and only for pure donations - i.e., you cannot offer the  user
incentives).

-- 
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] organizing the code

2010-07-07 Thread Pedro Teixeira
I'm having a hard time keeping my code clean... mainlly because all
the try's and catches...
I'm simple doing an HTTP request on which the response is then
converted to JSON Array.. but now it's a mess of {}'s .. is there
anyway to agregate all this try and catches? The code really looks bad
and unreadable like this...  and worst, it's executing correctly
because I'm not finishing in the correct places..


nameValuePairs.add(new BasicNameValuePair(id, picId));

InputStream content = null;
HttpClient httpclient = new 
DefaultHttpClient();
HttpPost httpPost = new 
HttpPost(http://www.pedroteixeira.org/
thennnow/alg_showpopup.php);

try {

httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
}
catch (UnsupportedEncodingException e1) 
{
// TODO 
Auto-generated catch block

e1.printStackTrace();
}
try {
response = 
httpclient.execute(httpPost);
} catch (ClientProtocolException e1) {
// TODO 
Auto-generated catch block

e1.printStackTrace();
} catch (IOException e1) {
// TODO 
Auto-generated catch block

e1.printStackTrace();
}
try {
content = 
response.getEntity().getContent();
} catch (IllegalStateException e1) {
// TODO 
Auto-generated catch block

e1.printStackTrace();
} catch (IOException e1) {
// TODO 
Auto-generated catch block

e1.printStackTrace();
}

StringBuilder sb = new StringBuilder();
String line;
BufferedReader reader;

try {
reader = new BufferedReader(new 
InputStreamReader(content,
UTF-8));

while ((line = 
reader.readLine()) != null)
{
sb.append(line);
String 
pic_values = sb.toString();
try {

picvalues = new JSONArray(pic_values);
} catch 
(JSONException e) {
// TODO 
Auto-generated catch block

picvalues = new JSONArray();  // just so it's not null.
}

-- 
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: paypal mobile payment allowed?

2010-07-07 Thread Michael A.
My answers based on what I've gathered from the mailing lists/forums
over
the past 6 months + my reading of the DDA.

On Jul 6, 8:51 am, Chister Nordvik cnord...@gmail.com wrote:
 Well, if we only could get Google to confirm this...

 Spotify - free in the market, but you have to be a subscriber to use
 to program. OK

Apparently. Naturally subscription based apps (whatever that means)
seem to be an exception to the DDA.

 Program A - free in the market, but to access premium content you have
 to be a registered user on a website which charges you monthly through
 a credit card. OK?

OK, as long as you do not advertise the premium content or the website
in
the app.

 Program B - free in the market, but to access premium content you have
 to buy access with PayPal in your application. OK?

Not OK.

 Program C - free in the market, but to access premium content you have
 to buy access with a credit card in your application. OK?

Not OK.

 I can understand that Google wants to prevent developers pushing out
 free apps that will only prompt for a credit card/PayPal account to be
 able to use, but if some of the features are free then maybe it's
 allowed?

By my reading of the terms, generally not. My reading of the terms
essentially
means that the Android Market is useless if you want to sell products
without
using Google Checkout (either because you don't want to or - like me -
can't).

Think of it this way - any time your payment scheme tries to use the
Android
market for marketing purposes while avoiding using Google Checkout
(and
thereby cheating Google of their 30%), you are most likely in
violation of the
developer distribution agreement for the Android market. Makes sense,
doesn't it?

Regards,

Michael A.

-- 
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 Not Visible On Donut

2010-07-07 Thread Pent
 If you use suggested techniques like reflection to determine what
 functionality is available to you at runtime, you only need one version of
 your app. Or keep going the way your going and enjoy your maintenance
 nightmare.

It's not much fun adding text-to-speech via reflection, lot of
functions there. My particular problem is that my app
covers a large proportion of the API. Nevertheless, everything since
donut I have added via reflection.


 Why do you need a separate Market and non-Market version anyway?


Because after launch of the direct purchase version, I found that my
package name was blocked when publishing to
market because it had been an ADC2 entry. And because Google doesn't
provide any method for me to test if the
app was bought on the market. And now, because I can't do BT control
with a market app for cupcake/donut.

Don't get me wrong, Google are doing some great things with Android.
There are just some little things that would make
developer life much easier.

Pent

-- 
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: paypal mobile payment allowed?

2010-07-07 Thread Michael A.
Apologies for the formatting on those posts.

On Jul 7, 12:03 pm, Michael A. michael.aki...@gmail.com wrote:
 My answers based on what I've gathered from the mailing lists/forums
 over
 the past 6 months + my reading of the DDA.

 On Jul 6, 8:51 am, Chister Nordvik cnord...@gmail.com wrote:

  Well, if we only could get Google to confirm this...

  Spotify - free in the market, but you have to be a subscriber to use
  to program. OK

 Apparently. Naturally subscription based apps (whatever that means)
 seem to be an exception to the DDA.

  Program A - free in the market, but to access premium content you have
  to be a registered user on a website which charges you monthly through
  a credit card. OK?

 OK, as long as you do not advertise the premium content or the website
 in
 the app.

  Program B - free in the market, but to access premium content you have
  to buy access with PayPal in your application. OK?

 Not OK.

  Program C - free in the market, but to access premium content you have
  to buy access with a credit card in your application. OK?

 Not OK.

  I can understand that Google wants to prevent developers pushing out
  free apps that will only prompt for a credit card/PayPal account to be
  able to use, but if some of the features are free then maybe it's
  allowed?

 By my reading of the terms, generally not. My reading of the terms
 essentially
 means that the Android Market is useless if you want to sell products
 without
 using Google Checkout (either because you don't want to or - like me -
 can't).

 Think of it this way - any time your payment scheme tries to use the
 Android
 market for marketing purposes while avoiding using Google Checkout
 (and
 thereby cheating Google of their 30%), you are most likely in
 violation of the
 developer distribution agreement for the Android market. Makes sense,
 doesn't it?

 Regards,

 Michael A.

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

2010-07-07 Thread 안준엽


-- 
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: paypal mobile payment allowed?

2010-07-07 Thread tobias429
1. Publish a paid app on the market, you get 70% of the revenue,
Google (or the OHA) gets 30%
2. Only serious alternative to generate revenue: publish a free app
and put advertising on. The percentage of the advertising revenue that
you get is typically at the advertising-company's discretion. Biggest
player on the market is: Google

Comparing the speed at which Google approaches introducing AdSense for
Mobile to the speed at which they are going in adding new payment
options or eligible to sell countries to the Market, I would believe
that option 2 is simply to lucrative to Google as to entice them to
put a lot of energy in making option 1 more attractive.

I personally don't expect any action from Google that would promote
distribution of paid Apps any time soon. I still hope to be proven
wrong.

-- 
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 Not Visible On Donut

2010-07-07 Thread Lance Nanek
  Have you tried the aapt dump badging command on the APK to see if
  any uses-feature are getting added?

 Good thinking but only the camera is getting added.

Weird, I just bought Tasker on the market on my Nexus One, pulled the
APK, and ran the badging dump on it. I'm seeing the bluetooth uses-
feature in there. Maybe your market version is just different from
your testing version, though. Output:

u...@n7 ~
$ adb -s HT02KP903513 pull /data/app/
net.dinglisch.android.taskerm-1.apk
1731 KB/s (767820 bytes in 0.433s)

u...@n7 ~
$ aapt dump badging net.dinglisch.android.taskerm-1.apk
package: name='net.dinglisch.android.taskerm' versionCode='62'
versionName='1.0.3'
sdkVersion:'4'
targetSdkVersion:'4'
uses-permission:'android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission:'android.permission.VIBRATE'
uses-permission:'android.permission.WAKE_LOCK'
uses-permission:'android.permission.GET_TASKS'
uses-permission:'android.permission.RECEIVE_BOOT_COMPLETED'
uses-permission:'android.permission.WRITE_SETTINGS'
uses-permission:'android.permission.RECORD_AUDIO'
uses-permission:'android.permission.READ_PHONE_STATE'
uses-permission:'android.permission.SEND_SMS'
uses-permission:'android.permission.RECEIVE_SMS'
uses-permission:'android.permission.ACCESS_FINE_LOCATION'
uses-permission:'android.permission.CAMERA'
uses-permission:'android.permission.DISABLE_KEYGUARD'
uses-permission:'android.permission.BLUETOOTH_ADMIN'
uses-permission:'android.permission.BLUETOOTH'
uses-permission:'android.permission.ACCESS_NETWORK_STATE'
uses-permission:'android.permission.SET_WALLPAPER'
uses-permission:'android.permission.ACCESS_WIFI_STATE'
uses-permission:'android.permission.CHANGE_WIFI_STATE'
uses-permission:'android.permission.MODIFY_AUDIO_SETTINGS'
uses-permission:'android.permission.PROCESS_OUTGOING_CALLS'
uses-permission:'android.permission.READ_CONTACTS'
uses-permission:'android.permission.INTERNET'
uses-permission:'android.permission.CALL_PHONE'
uses-permission:'android.permission.READ_SYNC_SETTINGS'
uses-permission:'android.permission.READ_CALENDAR'
uses-permission:'android.permission.RESTART_PACKAGES'
uses-permission:'android.permission.KILL_BACKGROUND_PROCESSES'
application: label='Tasker' icon='res/drawable/icon_tasker.png'
uses-library:'com.google.android.maps'
launchable activity
name='net.dinglisch.android.taskerm.Tasker'label='Tasker' icon=''
uses-feature:'android.hardware.camera'
uses-feature:'android.hardware.camera.autofocus'
uses-feature:'android.hardware.location'
uses-feature:'android.hardware.location.gps'
uses-feature:'android.hardware.bluetooth'
uses-feature:'android.hardware.microphone'
uses-feature:'android.hardware.wifi'
uses-feature:'android.hardware.telephony'
uses-feature:'android.hardware.touchscreen'
main
app-widget
other-activities
other-receivers
other-services
supports-screens: 'small' 'normal' 'large'
locales: '--_--'
densities: '160' '240'

u...@n7 ~
$


On Jul 6, 3:32 am, Pent lee.wil...@googlemail.com wrote:
 On Jul 6, 2:47 am, Lance Nanek lna...@gmail.com wrote:

  Have you tried the aapt dump badging command on the APK to see if
  any uses-feature are getting added?

 Good thinking but only the camera is getting added.

  Maybe all you'll have to do to fix
  it is drop this in or whatever:
  uses-feature android:name=android.hardware.bluetooth
  android:required=false /

 I'll give that a go anyway.

 With invisible logic going on in the background anything might work.

 Pent

-- 
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: Problem using android services

2010-07-07 Thread Mark Murphy
On Wed, Jul 7, 2010 at 1:46 AM, Abhi abishe...@gmail.com wrote:
 07-07 10:58:01.442: ERROR/AndroidRuntime(273): Caused by:
 java.lang.NullPointerException
 07-07 10:58:01.442: ERROR/AndroidRuntime(273):     at
 android.content.ContextWrapper.getApplicationContext(ContextWrapper.java:
 100)
 07-07 10:58:01.442: ERROR/AndroidRuntime(273):     at
 com.satloc.PeriodicUpdationService.init(PeriodicUpdationService.java:
 31)

You are attempting to do something in an initializer that cannot be
done until onCreate().

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

_Android Programming Tutorials_ Version 2.8 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


Re: [android-developers] How to clear miss call notification

2010-07-07 Thread Mark Murphy
On Wed, Jul 7, 2010 at 12:30 AM, mike hasitharand...@gmail.com wrote:
 i want to clear miss call notification from NotificationBar.

Did you write the application that put this Notification in the status bar?

If not, then you cannot cancel it.

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

_Android Programming Tutorials_ Version 2.8 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


Re: [android-developers] Re: How to make a imageview at right of linearlayout

2010-07-07 Thread Levi
Why not using RelativeLayout ?You can set a property
android:layout_alignParentRight=true  ,then what you want will be show
 good luck!

2010/7/7 cindy ypu01...@yahoo.com

 Have tried all those, none of them works. Does it mean we can't put a
 imageview to right?

 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
android:layout_width=fill_parent
android:id=@+id/logo_block
android:padding=10px
  android:gravity=right
 android:layout_height=wrap_content
ImageView
android:layout_width=fill_parent
android:layout_height=fill_parent
 android:src=@drawable/logo_poweredby/
/LinearLayout

 On Jul 6, 6:15 pm, Levi limingwei...@gmail.com wrote:
  Hi,try it Good Luck!
 
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/
  android
 android:layout_width=fill_parent
 android:id=@+id/logo_block
 android:padding=10px
 android:layout_height=wrap_content
 android:gravity=right
 ImageView
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:src=@drawable/logo_poweredby/
 /LinearLayout
 
  2010/7/5 cindy ypu01...@yahoo.com
 
   Hi All,
 
   In the linearlayout, I need to put the image at right. I have tried a
   lot of method, none of them works. Can someone point out what is
   wrong?
 
   LinearLayout xmlns:android=http://schemas.android.com/apk/res/
   android
  android:layout_width=fill_parent
  android:id=@+id/logo_block
  android:padding=10px
  android:layout_height=wrap_content
  ImageView
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:gravity=right
  android:layout_alignParentRight=true
  android:src=@drawable/logo_poweredby/
  /LinearLayout
 
   Thanks!
 
   Cindy
 
   --
   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
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.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] Re: How to make a imageview at right of linearlayout

2010-07-07 Thread Levi
If you put one view in the layout then the  result will be the  same

在 2010年7月7日 下午8:07,Levi limingwei...@gmail.com写道:

 Why not using RelativeLayout ?You can set a property
 android:layout_alignParentRight=true  ,then what you want will be show
  good luck!

 2010/7/7 cindy ypu01...@yahoo.com

 Have tried all those, none of them works. Does it mean we can't put a
 imageview to right?

 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
android:layout_width=fill_parent
android:id=@+id/logo_block
android:padding=10px
  android:gravity=right
 android:layout_height=wrap_content
ImageView
android:layout_width=fill_parent
android:layout_height=fill_parent
 android:src=@drawable/logo_poweredby/
/LinearLayout

 On Jul 6, 6:15 pm, Levi limingwei...@gmail.com wrote:
  Hi,try it Good Luck!
 
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/
  android
 android:layout_width=fill_parent
 android:id=@+id/logo_block
 android:padding=10px
 android:layout_height=wrap_content
 android:gravity=right
 ImageView
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:src=@drawable/logo_poweredby/
 /LinearLayout
 
  2010/7/5 cindy ypu01...@yahoo.com
 
   Hi All,
 
   In the linearlayout, I need to put the image at right. I have tried a
   lot of method, none of them works. Can someone point out what is
   wrong?
 
   LinearLayout xmlns:android=http://schemas.android.com/apk/res/
   android
  android:layout_width=fill_parent
  android:id=@+id/logo_block
  android:padding=10px
  android:layout_height=wrap_content
  ImageView
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:gravity=right
  android:layout_alignParentRight=true
  android:src=@drawable/logo_poweredby/
  /LinearLayout
 
   Thanks!
 
   Cindy
 
   --
   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
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.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 to detect presence of camera on an Android device.

2010-07-07 Thread Daman
Thanks for confirming the reliability of these APIs.
I have few related questions -
1. Are there plans to support pluggable USB webcams (e.g. on
netbooks)? In such a case, would the same Android APIs work for them
too?
2. Would hasSystemFeature(PackageManager.FEATURE_CAMERA) return true
if a USB camera is plugged and false otherwise (on a device which
doesn’t have a build-in camera)?

-Daman

On Jun 30, 9:34 pm, Dianne Hackborn hack...@android.com wrote:
 You need to do this on a real device.



 On Wed, Jun 30, 2010 at 3:45 AM, Daman damanji...@gmail.com wrote:
  I did try that, but this doesn't work.
  I created an emulator image with no camera support. But
  PackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) still
  returns true.

  On Jun 30, 5:12 am, Dianne Hackborn hack...@android.com wrote:
   Use PackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA).

   Of course if your app requires a camera, you should declare so in your
   manifest so that devices without a camera won't see it.

   On Thu, Jun 24, 2010 at 4:53 AM, Daman damanji...@gmail.com wrote:
How can I detect the presence of camera on an Android device?

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

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

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


Re: [android-developers] organizing the code

2010-07-07 Thread Adriano B. Godinho
If the catch for all your exceptions is the same (you always print the
stacktrace), you can create only one try block and a catch block with a
superclass of your exceptions.

try{
  //All your code.
}
catch(Exception e){
  e.printStackTrace();
}

You can also create only one try block with all your catchs.

On Wed, Jul 7, 2010 at 7:03 AM, Pedro Teixeira pedroteixeir...@gmail.comwrote:

 I'm having a hard time keeping my code clean... mainlly because all
 the try's and catches...
 I'm simple doing an HTTP request on which the response is then
 converted to JSON Array.. but now it's a mess of {}'s .. is there
 anyway to agregate all this try and catches? The code really looks bad
 and unreadable like this...  and worst, it's executing correctly
 because I'm not finishing in the correct places..


 nameValuePairs.add(new BasicNameValuePair(id, picId));

InputStream content = null;
HttpClient httpclient = new
 DefaultHttpClient();
HttpPost httpPost = new HttpPost(
 http://www.pedroteixeira.org/
 thennnow/alg_showpopup.phphttp://www.pedroteixeira.org/%0Athennnow/alg_showpopup.php
 );

try {

  httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
}
catch (UnsupportedEncodingException
 e1) {
// TODO
 Auto-generated catch block

  e1.printStackTrace();
}
try {
response =
 httpclient.execute(httpPost);
} catch (ClientProtocolException e1)
 {
// TODO
 Auto-generated catch block

  e1.printStackTrace();
} catch (IOException e1) {
// TODO
 Auto-generated catch block

  e1.printStackTrace();
}
try {
content =
 response.getEntity().getContent();
} catch (IllegalStateException e1) {
// TODO
 Auto-generated catch block

  e1.printStackTrace();
} catch (IOException e1) {
// TODO
 Auto-generated catch block

  e1.printStackTrace();
}

StringBuilder sb = new
 StringBuilder();
String line;
BufferedReader reader;

try {
reader = new
 BufferedReader(new InputStreamReader(content,
 UTF-8));

while ((line =
 reader.readLine()) != null)
{

  sb.append(line);
String
 pic_values = sb.toString();
try {

  picvalues = new JSONArray(pic_values);
} catch
 (JSONException e) {
//
 TODO Auto-generated catch block

  picvalues = new JSONArray();  // just so it's not null.
}

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




-- 
Adriano Godinho

-- 
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: organizing the code

2010-07-07 Thread Andriy Zakharchuk
Hello Pedro,

from my point of view it doesn't make sense to wrap each statement
into a try..catch. In you sample if httpclient.execute() fails, then
I'm not sure that response.getEntity().getContent() makes sense, since
there was no response.

I would rewrite your sample as:

try {
  httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
  response = httpclient.execute(httpPost);
  content = response.getEntity().getContent();
} catch(UnsupportedEncodingException e) {
  // Some error handling
} catch(ClientProtocolException e) {
  // Some error handling
} catch(IOException e) {
  // Some error handling
} catch(IllegalStateException e) {
  // Some error handling
}

Thus you have a one set of catch blocks per scenario not per
individual step. Using catch(Exception e) is not a good practice,
since you can miss something (usually run-time exception) you should
handle on development stage.

-- 
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] Android library project custom build

2010-07-07 Thread Andriy Zakharchuk
Hello all,

I have a legacy application and need to split it into a library
project (common code) and two application projects (paid and free
applications). I don't use Eclipse for development, and also don't use
Ant builds provided (generated) by Android SDK (there are several
reasons for that), but use our custom build files instead.

I need to modify my Ant builds to make them build my applications
projects that refer my library project. I looked into sample
application and Ant builds shipped with SDK, but didn't understand how
it is done. I saw that library project contains libs directory and
default.properties file with android.library property set to
true. I saw that applications project contains default.properties
file with android.library.reference.X property set to library
project directory value. But I didn't find any reference to these
properties in the Ant builds (project Ant build file, and Ant builds
shipped with SDK). Just placing these files into application/library
project directories doesn't help, i.e. SDK tools doesn't interpret
them.

My guess is that this is performed by com.android.ant.SetupTask, but
I'd like to know how it is performed. My build is set of targets that
call (using exec) Android SDK tools: appt, dx, apkbuilder and so on.
So I'd like to know which command line parameters I need to use to
make, lets say, appt tool to merge resources?

Thank you in advance.

--
Best regards,
Andriy.

-- 
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: paypal mobile payment allowed?

2010-07-07 Thread Al Sutton
It's using an unofficial API and could be cut off at any point. It
also doesn't allow you to actually download the apps, only display the
app listing information.

Al.

On Jul 7, 8:00 am, ko5tik kpriblo...@yahoo.com wrote:
 On Jul 6, 10:19 am, Al Sutton a...@funkyandroid.com wrote:

  Just to address your point on collecting information from Googles
  Market; I've talked to someone at Google about this and it was an
  absolute no-go. The request wasn't for AndAppStore, but for another
  project that I was working on part of and some people at Google had
  shown some interest in.

 Well,  what about cyrket?  It collects information from market and
 displays it in a better way than original  ( user comments were
 visible for ages )

 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: Problem using android services

2010-07-07 Thread Abhi
Thanks a lot Mark. I managed to solve the problem based on your
pointers. I was doing a global initialization of Application Context
using getApplicationContext.

Thanks and Regards,
Abhijeeth

On Jul 7, 5:03 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Jul 7, 2010 at 1:46 AM, Abhi abishe...@gmail.com wrote:
  07-07 10:58:01.442: ERROR/AndroidRuntime(273): Caused by:
  java.lang.NullPointerException
  07-07 10:58:01.442: ERROR/AndroidRuntime(273):     at
  android.content.ContextWrapper.getApplicationContext(ContextWrapper.java:
  100)
  07-07 10:58:01.442: ERROR/AndroidRuntime(273):     at
  com.satloc.PeriodicUpdationService.init(PeriodicUpdationService.java:
  31)

 You are attempting to do something in an initializer that cannot be
 done until onCreate().

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

 _Android Programming Tutorials_ Version 2.8 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: Having the actual devices is critical!

2010-07-07 Thread JP

In theory. In reality, there's that customer/user who wants to use an
app, like now, and that developer who wants to support this, and a
slew of other users who just walked out of that fill in carrier
store with that fill in device. Lab days, loaners are all just
compromises to actually having a device available. Meetups (which I
frequent when I can) also go down differently (today). A few months
back I did a roundabout call over pre-meetup pizza just to find out...
I needed to test on a China borne Milestone (they have some location
issue), but noone around even knew, or strangely enough, was
interested to hear about it. A closer look, and almost noone had
anything other than G1's and Droids and seemed to just about be
getting into Android.


On Jul 6, 3:39 am, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Jul 6, 2010 at 1:37 AM, JP joachim.pfeif...@gmail.com wrote:
  2. Google, please bring back and build out the lab days

 If you live in a city big enough to have a Meetup or GTUG or
 something, you may be able to work out something more peer-to-peer.
 You might set it up a bit like speed dating -- two people across
 from each other swap phones for, say, 15 minutes, collect data on
 their apps on the other person's phone, then move to another pairing.
 This would reduce the risk of somebody walking off with somebody
 else's phone. You might even be able to rig up an app to assign the
 pairings/tables in advance, to maximize the range of other devices
 each person gets to see.

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

 _Android Programming Tutorials_ Version 2.8 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] Problem with map overlay

2010-07-07 Thread RS.Giridaran
Hi All,

i want to create map oveylays with information window(when user tap
overlay) which is clickable and stick with overlay when user panning
the map. i am added the map in a tab view, created overlays using
itamizedoverlays and information window using Popupwindow, when user
panning the map i am updating the popup window positing using
popup.update() method. The problem here is when the user panning with
popup window on map towards up, the pop up window showing above the
tab bar. i dont know how to fix this.


here i have given sample code for popup window display and on draw
method.
CODE: SELECT ALL
LayoutInflater inflater = LayoutInflater.from(mContext);
 View mView = inflater.inflate(R.layout.map_popup, null);
 mView.setOnClickListener(clickListener);
 mPopupWindow = new PopupWindow(mView,
LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, false);
 
mPopupWindow.setAnimationStyle(android.R.style.Animation_Dialog);
 mPopupWindow.showAsDropDown(mView, 20, 200);


On draw method
CODE: SELECT ALL
mPopupWindow.update(center.x , center.y , -1, -1);


i want it to be like the same in directions popups in google maps
application. please advise me.

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] Re: How to detect presence of camera on an Android device.

2010-07-07 Thread blindfold
 1. Are there plans to support pluggable USB webcams (e.g. on
 netbooks)? In such a case, would the same Android APIs work for them
 too?

I don't expect an answer from Google on this (because they never tell
in advance what they will come up with), but just want to say that I
am very interested in this in order to have options for head-mounted
cameras (for augmented reality applications). For the same purpose I
hope that there will come USB host support and webcam drivers for
Android phones. Wearing the phone on your head is not the ideal hands-
free augmented reality solution. :-)

On Jul 7, 2:22 pm, Daman damanji...@gmail.com wrote:
 Thanks for confirming the reliability of these APIs.
 I have few related questions -
 1. Are there plans to support pluggable USB webcams (e.g. on
 netbooks)? In such a case, would the same Android APIs work for them
 too?
 2. Would hasSystemFeature(PackageManager.FEATURE_CAMERA) return true
 if a USB camera is plugged and false otherwise (on a device which
 doesn’t have a build-in camera)?

 -Daman

 On Jun 30, 9:34 pm, Dianne Hackborn hack...@android.com wrote:

  You need to do this on a real device.

  On Wed, Jun 30, 2010 at 3:45 AM, Daman damanji...@gmail.com wrote:
   I did try that, but this doesn't work.
   I created an emulator image with no camera support. But
   PackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) still
   returns true.

   On Jun 30, 5:12 am, Dianne Hackborn hack...@android.com wrote:
Use PackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA).

Of course if your app requires a camera, you should declare so in your
manifest so that devices without a camera won't see it.

On Thu, Jun 24, 2010 at 4:53 AM, Daman damanji...@gmail.com wrote:
 How can I detect the presence of camera on an Android device?

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

  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com

  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see and
  answer them.

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


[android-developers] JetCreator Errors

2010-07-07 Thread Fred Grott(Android Expert, http://mobilebytes.wordpress.com)
Hello and Good Morning,

I am getting errors in my attempts to use JetCreator, such as:

Traceback (most recent call last):
  File JetCreator.py, line 1429, in module
au = JetCreator(None, -1, openFile)
  File JetCreator.py, line 86, in __init__
self.initLayout()
  File JetCreator.py, line 199, in initLayout
self.graph = SegmentGraph(rightPanel, size=(-1, 50))
  File /home/fredgrott/repos/mydroid/external/sonivox/jet_tools/
JetCreator/JetSegGraph.py, line 116, in __init__
self.OnSize(None)
  File /home/fredgrott/repos/mydroid/external/sonivox/jet_tools/
JetCreator/JetSegGraph.py, line 202, in OnSize
self.DoDrawing(None)
  File /home/fredgrott/repos/mydroid/external/sonivox/jet_tools/
JetCreator/JetSegGraph.py, line 221, in DoDrawing
dc = wx.AutoBufferedPaintDC(self)
AttributeError: 'module' object has no attribute 'AutoBufferedPaintDC'
fredgr...@ubuntu:~/repos/mydroid/external/sonivox/jet_tools/JetCreator
$

Anyone else running into the same problem? Python version is 2.6.5 and
wxpython version is 2.8.11

-- 
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] dir.delete issue

2010-07-07 Thread guru
Hi All

I am facing some while deleting the non-empty directory. it is getting
success. But it should not.

Scenario:

   try {
File dir = new File(System.getProperty(java.io.tmpdir),
platformId
+ filechk);
dir.mkdir();
assertTrue(Directory Does Not Exist, dir.exists()
 dir.isDirectory());
File f = new File(dir, filechk.tst);
FileOutputStream fos = new FileOutputStream(f);
fos.close();
assertTrue(Error Creating File For Delete Test,
f.exists());
dir.delete();
assertTrue(Directory Should Not Have Been Deleted.,
dir.exists()); -- it is getting fail.
f.delete();
assertTrue(File Was Not Deleted, !f.exists());
dir.delete();
assertTrue(Directory Was Not Deleted, !dir.exists());
} catch (IOException e) {
fail(Unexpected IOException During Delete Test : 
}+ e.getMessage());

I am not getting where is the problem. if any one can direct me to
section of codebase to look into it will help me.

Thanks
gururaja B O

-- 
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 Not Visible On Donut

2010-07-07 Thread Pent
   Have you tried the aapt dump badging command on the APK to see if
   any uses-feature are getting added?

  Good thinking but only the camera is getting added.

 Weird, I just bought Tasker on the market on my Nexus One, pulled the
 APK, and ran the badging dump on it. I'm seeing the bluetooth uses-
 feature in there. Maybe your market version is just different from
 your testing version, though. Output:

You're looking at what used to be the 'donut+' version but is now
'eclair+'.

Pent

-- 
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] Twitter App Source Code

2010-07-07 Thread zachariahyoung
Where can I find the source code for the Android Twitter App?

Thanks

Zach

-- 
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: Maintaining Aspect Ratio of Background Image

2010-07-07 Thread Daniel Lew
I hadn't considered that, but then you can't reference the image in
the theme (which allows the background to load faster).  I might give
that a shot, though.

-Daniel

On Jul 6, 9:17 pm, Frank Weiss fewe...@gmail.com wrote:
 No worries.

 16x9 (a la Droid) is probably the most extreme screen aspect ratio
 you'll ever encounter in an Android device. Have you considered
 creating a scaled and cropped image on the fly the first time the app
 is run and caching that on the SD card?

-- 
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] Twitter App Source Code

2010-07-07 Thread Mark Murphy
On Wed, Jul 7, 2010 at 10:14 AM, zachariahyoung zpyo...@gmail.com wrote:
 Where can I find the source code for the Android Twitter App?

AFAIK, it has not yet been released.

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

_Android Programming Tutorials_ Version 2.8 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: Twitter App Source Code

2010-07-07 Thread zachariahyoung
Does anybody know when it will be released?

On Jul 7, 9:16 am, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Jul 7, 2010 at 10:14 AM, zachariahyoung zpyo...@gmail.com wrote:
  Where can I find the source code for the Android Twitter App?

 AFAIK, it has not yet been released.

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

 _Android Programming Tutorials_ Version 2.8 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


Re: [android-developers] Problem with map overlay

2010-07-07 Thread TreKing
On Wed, Jul 7, 2010 at 8:54 AM, RS.Giridaran rsgirida...@gmail.com wrote:

 i want it to be like the same in directions popups in google maps
 application. please advise me.


Don't use a PopupWindow, use a regular view that get's added to the MapView
as a child.

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

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

[android-developers] Compile Sip Stack

2010-07-07 Thread André Barbosa
hi,
anyone could compile some SIP Stack in C/C++ along with Android source
code?

Note: i am referring not to compile the Sip Stack with ndk, but
compile with all the code of the Android plataform.

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: How to detect presence of camera on an Android device.

2010-07-07 Thread Al Sutton
Google currently require an in-built camera to pass the compatibility
tests, so devices without cameras are unlikely to get much attention
from them (see 8.9 in 
http://source.android.com/compatibility/android-2.1-cdd.pdf)

Al.

On Jul 7, 1:22 pm, Daman damanji...@gmail.com wrote:
 Thanks for confirming the reliability of these APIs.
 I have few related questions -
 1. Are there plans to support pluggable USB webcams (e.g. on
 netbooks)? In such a case, would the same Android APIs work for them
 too?
 2. Would hasSystemFeature(PackageManager.FEATURE_CAMERA) return true
 if a USB camera is plugged and false otherwise (on a device which
 doesn’t have a build-in camera)?

 -Daman

 On Jun 30, 9:34 pm, Dianne Hackborn hack...@android.com wrote:



  You need to do this on a real device.

  On Wed, Jun 30, 2010 at 3:45 AM, Daman damanji...@gmail.com wrote:
   I did try that, but this doesn't work.
   I created an emulator image with no camera support. But
   PackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) still
   returns true.

   On Jun 30, 5:12 am, Dianne Hackborn hack...@android.com wrote:
Use PackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA).

Of course if your app requires a camera, you should declare so in your
manifest so that devices without a camera won't see it.

On Thu, Jun 24, 2010 at 4:53 AM, Daman damanji...@gmail.com wrote:
 How can I detect the presence of camera on an Android device?

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

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


Re: [android-developers] Re: Change the progress bar style dynamically

2010-07-07 Thread TreKing
On Wed, Jul 7, 2010 at 2:19 AM, Serdel adam.lichwierow...@gmail.com wrote:

 But this is a Dialog object which I don't want to create. I was referring
 to ProgressBar -  a View object...


I'm sure you've tried this already:
http://developer.android.com/reference/android/widget/ProgressBar.html#setIndeterminate(boolean)

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

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

Re: [android-developers] double tap zoom on Google maps

2010-07-07 Thread TreKing
On Tue, Jul 6, 2010 at 8:07 PM, zeeshan mirza 
zeeshan.nabeel.mi...@gmail.com wrote:

 LEt me know where is the problem ?


Why don't YOU let US know what the problem your having is?


 and if possible please add the correct code for double tap zoom in
 function.


NO.

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

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

[android-developers] how do I create an executable file from a working android project with eclipse?

2010-07-07 Thread gabri
I've been trying to export it to a jar file but as there is no main
method in my app this doesen't work. Can someone tell me how to create
this executable?
the executable is tu run the emulator and app both in computer not at
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


[android-developers] Re: Compile Sip Stack

2010-07-07 Thread Fred Grott(Android Expert, http://mobilebytes.wordpress.com)
You would not use C/C++ for the sip stack for obvious reasons of cost
of moving objects over the JNI

On Jul 7, 9:40 am, André Barbosa afilipebarb...@gmail.com wrote:
 hi,
 anyone could compile some SIP Stack in C/C++ along with Android source
 code?

 Note: i am referring not to compile the Sip Stack with ndk, but
 compile with all the code of the Android plataform.

 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


Re: [android-developers] double tap zoom on Google maps

2010-07-07 Thread zeeshan mirza
I just want to implement onDoubleTap() zoom in.  There is just a default
zoom in (+) and zoom out (-) button on screen i want to add the
functionality that when i double click on map (phone screen) the map should
zoom in.

Regards,
Zeeshan

On Wed, Jul 7, 2010 at 4:51 PM, TreKing treking...@gmail.com wrote:

  On Tue, Jul 6, 2010 at 8:07 PM, zeeshan mirza 
 zeeshan.nabeel.mi...@gmail.com wrote:

 LEt me know where is the problem ?


 Why don't YOU let US know what the problem your having is?


 and if possible please add the correct code for double tap zoom in
 function.


 NO.


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

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.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] double tap zoom on Google maps

2010-07-07 Thread TreKing
On Wed, Jul 7, 2010 at 9:56 AM, zeeshan mirza 
zeeshan.nabeel.mi...@gmail.com wrote:

 I just want to implement onDoubleTap() zoom in.


And the PROBLEM you're having is ... ??

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

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

Re: [android-developers] double tap zoom on Google maps

2010-07-07 Thread zeeshan mirza
I am not unable to handle onDoubleTap() zoom in event. I got some help from
a webpage and i am working on it since 1 week but unable to write the
correct code.
Regards,
Zeeshan
On Wed, Jul 7, 2010 at 5:00 PM, TreKing treking...@gmail.com wrote:

  On Wed, Jul 7, 2010 at 9:56 AM, zeeshan mirza 
 zeeshan.nabeel.mi...@gmail.com wrote:

 I just want to implement onDoubleTap() zoom in.


 And the PROBLEM you're having is ... ??


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

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.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: Problems with audio playback on froyo

2010-07-07 Thread Rich
I'm bumping this because a fundamental component of the Android system
is broken, there have been numerous reports and not a single person
from the Android dev team have spoken about this after weeks. Please
reply soon! There are hundreds of broken apps on the market.

R

On Jun 18, 4:45 pm, Rich miser...@gmail.com wrote:
 Same thing here - you're not the only one. The newMediaPlayeris
 absolute garbage, trying to decipher the error codes is like reading
 tea leaves (And they told us this was going to be 
 fixed:http://www.mail-archive.com/android-developers@googlegroups.com/msg20...
 - they just made it worse!) Further discussion here:

 http://groups.google.com/group/android-developers/browse_thread/threa...

 http://groups.google.com/group/android-developers/browse_thread/threa...

 and

 http://forum.rhapsody.com/rhapsody/topics/app_force_closes_in_froyo_w...

 No proposed workarounds, not a peep from any Google employees.

 Very disappointing response so far. Fortunately 2.2 isn't deployed on
 any retail devices, but it sure sucks if you've only got a Nexus on
 2.2

 Let me know if you come up with some solution,
 Rich

 On Jun 2, 5:29 pm, RC casto.rob...@gmail.com wrote:

  I'm having a problem withMediaPlayerplaying a stream. It goes along
  fine and then I get the following.

  I/AwesomePlayer(   59): prefetcher is done preparing
  E/MediaPlayer( 6358): error (1, -2147483648)
  E/MediaPlayer( 6358): Error (1,-2147483648)
  W/TimedEventQueue(   59): Event 2 was not found in the queue, already
  cancelled?
  V/TuneWiki( 6358): Client closed connection!
  V/TuneWiki( 6358): java.net.SocketException: Connection reset by peer
  V/TuneWiki( 6358):     at
  org.apache.harmony.luni.platform.OSNetworkSystem.writeSocketImpl(Native
  Method)

  This is only happening in the newFroYo(Android 2.2) release where
  the media player was changed.

  All streaming works up to Android 2.1, and with Android 2.2 we get
  squelches, pops, and other bad noise and then the connection
  terminates.

  I have looked at one possibility being the change from HTTP/1.0 to
  HTTP/1.1 requests. I'm not sure if Stagefright can be told to make
  HTTP/1.0 connections but it appears to work for a couple seconds and
  then everything falls apart and the media player quits.

  Anyone have thoughts about what has changed and what might be needed
  to work with the new media player properly?

-- 
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: Compile Sip Stack

2010-07-07 Thread HeHe
imho, movng sip-related objects over jni should be fine in most of
case, because they are just signaling stuff, are sparse and usually
small in size (compared to media packets).

On Jul 7, 7:56 am, Fred Grott(Android Expert, 
http://mobilebytes.wordpress.com)
fred.gr...@gmail.com wrote:
 You would not use C/C++ for the sip stack for obvious reasons of cost
 of moving objects over the JNI

 On Jul 7, 9:40 am, André Barbosa afilipebarb...@gmail.com wrote:



  hi,
  anyone could compile some SIP Stack in C/C++ along with Android source
  code?

  Note: i am referring not to compile the Sip Stack with ndk, but
  compile with all the code of the Android plataform.

  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


Re: [android-developers] double tap zoom on Google maps

2010-07-07 Thread zeeshan mirza
I am unable to handle onDoubleTap() zoom in event. I got some help from a
webpage and i am working on it since 1 week but unable to write the correct
code.
Regards,
Zeeshan


On Wed, Jul 7, 2010 at 5:04 PM, zeeshan mirza 
zeeshan.nabeel.mi...@gmail.com wrote:


   On Wed, Jul 7, 2010 at 5:00 PM, TreKing treking...@gmail.com wrote:

  On Wed, Jul 7, 2010 at 9:56 AM, zeeshan mirza 
 zeeshan.nabeel.mi...@gmail.com wrote:

 I just want to implement onDoubleTap() zoom in.


 And the PROBLEM you're having is ... ??


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

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.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] Re: Twitter App Source Code

2010-07-07 Thread Sean Hodges
It hasn't been announced yet.

On Wed, Jul 7, 2010 at 3:31 PM, zachariahyoung zpyo...@gmail.com wrote:
 Does anybody know when it will be released?

 On Jul 7, 9:16 am, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Jul 7, 2010 at 10:14 AM, zachariahyoung zpyo...@gmail.com wrote:
  Where can I find the source code for the Android Twitter App?

 AFAIK, it has not yet been released.

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

 _Android Programming Tutorials_ Version 2.8 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

-- 
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 do I create an executable file from a working android project with eclipse?

2010-07-07 Thread Kostya Vasilyev
Exporting Android app to a .jar will never work, since .jars run in a 
different environment.


The emulator is just like a phone - it runs Android, which runs your app 
packaged as an .apk. If you just use run or debug commands in 
Eclipse, it will run your app in the emulator, if there is no connected 
phone.


-- Kostya


07.07.2010 18:52, gabri пишет:

I've been trying to export it to a jar file but as there is no main
method in my app this doesen't work. Can someone tell me how to create
this executable?
the executable is tu run the emulator and app both in computer not at
phone!!

   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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


[android-developers] Re: Problems with audio playback on froyo

2010-07-07 Thread Rich
Okay! Sorry I got all uppity.

Here's the solution:
http://code.google.com/p/npr-android-app/source/diff?spec=svn77r=77format=sidepath=/trunk/Npr/src/org/npr/android/news/PlaybackService.java

Rich

On Jul 7, 11:04 am, Rich miser...@gmail.com wrote:
 I'm bumping this because a fundamental component of the Android system
 is broken, there have been numerous reports and not a single person
 from the Android dev team have spoken about this after weeks. Please
 reply soon! There are hundreds of broken apps on the market.

 R

 On Jun 18, 4:45 pm, Rich miser...@gmail.com wrote:

  Same thing here - you're not the only one. The newMediaPlayeris
  absolute garbage, trying to decipher the error codes is like reading
  tea leaves (And they told us this was going to be 
  fixed:http://www.mail-archive.com/android-developers@googlegroups.com/msg20...
  - they just made it worse!) Further discussion here:

 http://groups.google.com/group/android-developers/browse_thread/threa...

 http://groups.google.com/group/android-developers/browse_thread/threa...

  and

 http://forum.rhapsody.com/rhapsody/topics/app_force_closes_in_froyo_w...

  No proposed workarounds, not a peep from any Google employees.

  Very disappointing response so far. Fortunately 2.2 isn't deployed on
  any retail devices, but it sure sucks if you've only got a Nexus on
  2.2

  Let me know if you come up with some solution,
  Rich

  On Jun 2, 5:29 pm, RC casto.rob...@gmail.com wrote:

   I'm having a problem withMediaPlayerplaying a stream. It goes along
   fine and then I get the following.

   I/AwesomePlayer(   59): prefetcher is done preparing
   E/MediaPlayer( 6358): error (1, -2147483648)
   E/MediaPlayer( 6358): Error (1,-2147483648)
   W/TimedEventQueue(   59): Event 2 was not found in the queue, already
   cancelled?
   V/TuneWiki( 6358): Client closed connection!
   V/TuneWiki( 6358): java.net.SocketException: Connection reset by peer
   V/TuneWiki( 6358):     at
   org.apache.harmony.luni.platform.OSNetworkSystem.writeSocketImpl(Native
   Method)

   This is only happening in the newFroYo(Android 2.2) release where
   the media player was changed.

   All streaming works up to Android 2.1, and with Android 2.2 we get
   squelches, pops, and other bad noise and then the connection
   terminates.

   I have looked at one possibility being the change from HTTP/1.0 to
   HTTP/1.1 requests. I'm not sure if Stagefright can be told to make
   HTTP/1.0 connections but it appears to work for a couple seconds and
   then everything falls apart and the media player quits.

   Anyone have thoughts about what has changed and what might be needed
   to work with the new media player properly?

-- 
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: Alarms after an update ?

2010-07-07 Thread Robert Macaulay
The eclipse plugin denies the existence of the authority attribute.

No resource identifier found for attribute 'authority' in package 'android'

receiver android:name=.OnPackageChangeStarter
  intent-filter
action android:name=android.intent.action.PACKAGE_REPLACED /
data android:scheme=package android:authority=your.package.name /
  /intent-filter
/receiver


On Wed, Jun 30, 2010 at 11:35 AM, Dianne Hackborn hack...@android.com wrote:
 You should use android:authority=your.package.name

 On Thu, Jun 24, 2010 at 10:12 AM, Robert Macaulay
 robert.macau...@gmail.com wrote:

 On Thu, Jun 24, 2010 at 11:56 AM, mac-systems jens.h...@gmx.de wrote:
  Ok, i thought i have to do this.
  Is there any Intent which get broadcasted on update ? Or simlar
  mechanism ?

 You can add a receiver for PACKAGE_REPLACED
        receiver android:name=.OnPackageChangeStarter
                        intent-filter
                           action
 android:name=android.intent.action.PACKAGE_REPLACED /
 !-- This doesn't work
                          data android:scheme=package
 android:path=your.package.name /
 --
                        /intent-filter
                /receiver

 and in the OnPackageChangeStarter, add an if

                if(!
 intent.getDataString().startsWith(package:your.package.name)){
                        return;
                }

 At least on 2.1 Droid, the intent.getData().getPath()  portion of
 the intent is null, so the intent-filter doesn't seem to work.
 Including it gets my receiver called for every package change.
 The package name is in the intent.getData().getSchemeSpecificPart()

 Anyone know if this is a bug? Or is this the right way to accomplish 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



 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

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

-- 
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 do I create an executable file from a working android project with eclipse?

2010-07-07 Thread Michael MacDonald
On 07/07/10 10:52, gabri wrote:
 I've been trying to export it to a jar file but as there is no main
 method in my app this doesen't work. Can someone tell me how to create
 this executable?
 the executable is tu run the emulator and app both in computer not at
 phone!!

   
Android apps will only run from an .apk on a device or on the emulator;
they can't run from a jar or without the Android OS.

Eclipse will package your app into an .apk for you; use the Export...
menu option.

-- 
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] double tap zoom on Google maps

2010-07-07 Thread Michael MacDonald
Maybe the problem is you are not forwarding touch events to the
GestureDetector

I would expect to see something like


@Override
public boolean onTouchEvent(MotionEvent evt) {
return detector.onTouchEvent(evt);
}


On 07/06/10 21:07, zeeshan mirza wrote:
 Here is my own code which i have written up till now. I am trying to
 implement onDoubleTap() zoom in function in my application. My code is
 as follows. LEt me know where is the problem ? and if possible please
 add the correct code for double tap zoom in function.
  
 public class Maps extends MapActivity implements OnGestureListener,
 OnDoubleTapListener{

  private GestureDetector detector;
  MapView mapView;
  /** Called when the activity is first created. */
  @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);
 //MapViewer mapViewer = new MapViewer(null, null);
 mapView = (MapView) findViewById(R.id.mapview);
 detector = new GestureDetector(this,this);
 mapView.setBuiltInZoomControls(true);
 }
  @Override
  protected boolean isRouteDisplayed() {
return false;
  }
  
  public boolean onDoubleTap(MotionEvent e) {
   // TODO Auto-generated method stub
   mapView.getController().zoomIn();
   return false;
  }
  public boolean onDoubleTapEvent(MotionEvent e) {
   // TODO Auto-generated method stub
   return false;
  }
  public boolean onSingleTapConfirmed(MotionEvent e) {
   // TODO Auto-generated method stub
   return false;
  }
  public boolean onDown(MotionEvent e) {
   // TODO Auto-generated method stub
   return false;
  }
  public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
float velocityY) {
   // TODO Auto-generated method stub
   return false;
  }
  public void onLongPress(MotionEvent e) {
   // TODO Auto-generated method stub
   
  }
  public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX,
float distanceY) {
   // TODO Auto-generated method stub
   return false;
  }
  public void onShowPress(MotionEvent e) {
   // TODO Auto-generated method stub
   
  }
  public boolean onSingleTapUp(MotionEvent e) {
   // TODO Auto-generated method stub
   return false;
  }
 }

 On Fri, Jul 2, 2010 at 5:26 PM, TreKing treking...@gmail.com
 mailto:treking...@gmail.com wrote:

 On Wed, Jun 30, 2010 at 2:44 PM, SilentCoders
 zeeshan.nabeel.mi...@gmail.com
 mailto:zeeshan.nabeel.mi...@gmail.com wrote:

 I need a sample code which i can use in my application.


 No, you need to do your own work and ask specific questions when
 you get stuck.

 Start with the Google Maps API documentation, the Hello MapView
 (or whatever it's called) sample on the official documentation
 site. Review handling touch events and start putting something
 together. If you get stuck on something specific, come back, show
 what you've done and ask a specific question someone may be able
 to help you out with.


 
 -
 TreKing - Chicago transit tracking app for Android-powered devices
 http://sites.google.com/site/rezmobileapps/treking
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 mailto:android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 mailto:android-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 

-- 
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] Geocoder not working on emulator

2010-07-07 Thread TreKing
On Sun, Jul 4, 2010 at 11:50 PM, pranay streetfi...@gmail.com wrote:

 i am getting the same output, i.e. No address.


Did you supply a valid location to get an address for?


  Also can anyone please tell me that here i have to manually supply the lat
 and longitude , so it is it possible that to get them automatically?


No, I don't think so, as the emulator doesn't have a GPS device.

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

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

Re: [android-developers] Copy protection invisible app

2010-07-07 Thread TreKing
On Mon, Jul 5, 2010 at 1:38 AM, sandscorpio amit.aggarwa...@gmail.comwrote:

 So, my question is this, if I turn off copy protection, will all
 users have to reinstall the app? Will only 1.5 users have to
 reinstall (30%)?


There's one way to find out ...

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

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

[android-developers] Custom ListView complex item does not appear correctly

2010-07-07 Thread Tudor Tihan
Hi guys and gals,

I am having a very difficult time with making complex listview items
show properly.

I am using the following layout xml for the item:

codesource
?xml version=1.0 encoding=utf-8?

LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent
TextView android:id=@+id/TextView01
android:layout_width=wrap_content
android:layout_height=wrap_content 
android:textSize=18dip
android:layout_marginTop=4dip 
android:layout_marginBottom=4dip
android:layout_marginLeft=10dip android:text=sdf asdf asdf sdfghsdf
sdfg sdfgsd fsd fgdsfg sdfg sdfg sdfg sdf android:lines=1/
TextView
LinearLayout android:id=@+id/zero_view
android:layout_width=fill_parent
android:layout_height=fill_parent android:gravity=right|
center_vertical
ImageButton android:id=@+id/ImageButton01
android:layout_height=wrap_content

android:background=@drawable/double_right_arrow_24x22
android:layout_width=wrap_content/ImageButton
/LinearLayout
/LinearLayout
/source/code

The idea is to put a text (this item is a child of an expandable list
view item) and a simple arrow icon to the right of the item. The
problem is that with longer text, the icon doesn't show up, probably
having been pushed to the right outside the screen. Is there a way to
make sure I can solve this in a device independent way from the layout
only? Ideally the text should ellipsize and scroll in the textview, If
not possible, then it should cut off a few pixels before the icon.
How can I do this. Please help me asap, I am having problems
understanding how each layout settings affect the position. Speaking
of which, is there a comparison with options for each layout, item
position combinations other than the API Demos source code?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this 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] Modify Browser Default Search Functionality on Pressing ENTER Key!!

2010-07-07 Thread TreKing
On Mon, Jul 5, 2010 at 1:55 AM, Prince pranjal.andr...@gmail.com wrote:

 I want to modify default Search Functionality of Browser on Pressing
 Enter Key.
 I want that on Pressing Enter Key on the Browser Application(different
 views), it will enter a New Line instead of loading a new view and go
 into the Search Mode.


If you're talking about the address bar, this does not make sense. The
address bar is single line and not even desktop browsers allow multi-line
input. You probably won't be able to change this without modifying the
source.

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

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

Re: [android-developers] Custom ListView complex item does not appear correctly

2010-07-07 Thread Kostya Vasilyev

Tudor,

You can use RelativeLayout, and set 
android:layout_alignParentRight=true in the image.


-- Kostya

07.07.2010 20:05, Tudor Tihan пишет:

Hi guys and gals,

I am having a very difficult time with making complex listview items
show properly.

I am using the following layout xml for the item:

codesource
?xml version=1.0 encoding=utf-8?

LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent
TextView android:id=@+id/TextView01
android:layout_width=wrap_content
android:layout_height=wrap_content 
android:textSize=18dip
android:layout_marginTop=4dip 
android:layout_marginBottom=4dip
android:layout_marginLeft=10dip android:text=sdf asdf asdf sdfghsdf
sdfg sdfgsd fsd fgdsfg sdfg sdfg sdfg sdf android:lines=1/
TextView
LinearLayout android:id=@+id/zero_view
android:layout_width=fill_parent
android:layout_height=fill_parent android:gravity=right|
center_vertical
ImageButton android:id=@+id/ImageButton01
android:layout_height=wrap_content

android:background=@drawable/double_right_arrow_24x22
android:layout_width=wrap_content/ImageButton
/LinearLayout
/LinearLayout
/source/code

The idea is to put a text (this item is a child of an expandable list
view item) and a simple arrow icon to the right of the item. The
problem is that with longer text, the icon doesn't show up, probably
having been pushed to the right outside the screen. Is there a way to
make sure I can solve this in a device independent way from the layout
only? Ideally the text should ellipsize and scroll in the textview, If
not possible, then it should cut off a few pixels before the icon.
How can I do this. Please help me asap, I am having problems
understanding how each layout settings affect the position. Speaking
of which, is there a comparison with options for each layout, item
position combinations other than the API Demos source code?

   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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


[android-developers] timeout on wakelock causes WakeLock under-locked error

2010-07-07 Thread jdeslip
Hi,

I have a service that acts a download manager, downloading files in
the background. I have aquired a partial wake lock while the downloads
are going.  When the downloads finish, I manually release the
wakelock.  Because I am paranoid, I acquired the wakelock also with a
timeout.  The problem I am seeing is that if I have already manually
released my wakelock, when the timeout period expires an error is
presented to the user (and adb logcat shows an under-locked wakelock
exception).

Is there any way to use a timeout (as backup wakelock release in case
the app force closes for some reason) without getting this error?

Cheers,

Jack

-- 
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 do I create an executable file from a working android project with eclipse?

2010-07-07 Thread gabri
What I would like to do is to launch de emulator together with my app
in it.. is this possible? i've read around I would need a script to do
that can someone pass me the code

On 7 jul, 17:17, Michael MacDonald googlec...@antlersoft.com wrote:
 On 07/07/10 10:52, gabri wrote: I've been trying to export it to a jar file 
 but as there is no main
  method in my app this doesen't work. Can someone tell me how to create
  this executable?
  the executable is tu run the emulator and app both in computer not at
  phone!!

 Android apps will only run from an .apk on a device or on the emulator;
 they can't run from a jar or without the Android OS.

 Eclipse will package your app into an .apk for you; use the Export...
 menu option.

-- 
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] timeout on wakelock causes WakeLock under-locked error

2010-07-07 Thread Mark Murphy
On Wed, Jul 7, 2010 at 12:26 PM, jdeslip jdes...@gmail.com wrote:
 Is there any way to use a timeout (as backup wakelock release in case
 the app force closes for some reason) without getting this error?

Check isHeld() before release()-ing it.

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

_Android Programming Tutorials_ Version 2.8 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: file size limit on sdcard in emulator

2010-07-07 Thread Ralf Baumbach
Update: I found that it indeed works. It is just taking long long time
to do so. Since there is no progress visible I deduced that it doesn't
work. Sorry for that. But it takes something like an hour to upload
that file.

On 19 Jun., 13:53, berliner myberli...@gmail.com wrote:
 I uploaded the text file for testing. Maybe it 
 helps:http://www.reflectlife.org/model.txt

 Am 18.06.2010 um 22:27 schrieb David Turner:



  there should not be a problem. Do you have a way to reproduce this (with 
  exact instructions, please). Also what does freeze really means here ? Is 
  the emulator still listed through adb devices for example ? Can you do a 
  adb shell to access it, etc...

  On Fri, Jun 18, 2010 at 3:22 AM, berliner myberli...@gmail.com wrote:
  Hello,

  When I try to push a 40MB file onto the sdcard adb hangs and the emulator 
  freezes. Is there a file limitation that I am not aware of? I couldn't find 
  anything on this. When I try the same with a smaller file it works without 
  problems. I have configured the sdcard of the emulator device to have a 
  size of 512MB and when I check with adb shell df I see that there is enough 
  space.

  best regards,
  Ralf

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

-- 
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: Change the progress bar style dynamically

2010-07-07 Thread Serdel
Yes I have but this class does not have any method to change the style
of a progressBar, like the ProgressDialog class. The style of a
progressBar is defined in the xml file by special attributes but there
are no methods related to 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


Re: [android-developers] Send MMS without any GUI

2010-07-07 Thread TreKing
On Mon, Jul 5, 2010 at 2:40 AM, mickael le trocquer 
letrocquermickael-...@yahoo.com wrote:

 Is there other action / intent for send a MMS ?


None that won't involve user interaction, for good reason. I really don't
need apps sending MMS messages from my phone without my knowledge - I don't
care what permissions you have.

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

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

[android-developers] Re: Geocoder not working on emulator

2010-07-07 Thread HeHe
afaik, from ddmsemulator control panel, you may feed any gps data
that is resolvable to human-readable address so that you can test your
app.

On Jul 4, 9:50 pm, pranay streetfi...@gmail.com wrote:
 hi, i am trying to run the example as given in the book Professional
 Android  Development by Reto Meier[pg 220], but i am not able to get
 the address string i always get No address . I read about the same
 prob in this forum, and i tried it in api level 7 but in both 7 and 8
 api levels , i am getting the same output, i.e. No address.
 Also can anyone please tell me that here i have to manually supply the
 lat and longitude , so it is it possible that to get them
 automatically?

-- 
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: Custom ListView complex item does not appear correctly

2010-07-07 Thread Tudor Tihan
That partly works. I made the inner layout a relative one and put the
alignment of the image as suggested. If I fix the max width of the
text item to 285dip then it will look nice in the portrait view. But
that means I'd have to make a ton of adjustments for each screen
aspect/size.
Any way to have it hide the text automatically?

On Jul 7, 7:19 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Tudor,

 You can use RelativeLayout, and set
 android:layout_alignParentRight=true in the image.

 -- Kostya

 07.07.2010 20:05, Tudor Tihan пишет:



  Hi guys and gals,

  I am having a very difficult time with making complex listview items
  show properly.

  I am using the following layout xml for the item:

  codesource
  ?xml version=1.0 encoding=utf-8?

  LinearLayout xmlns:android=http://schemas.android.com/apk/res/
  android
             android:layout_width=fill_parent
  android:layout_height=fill_parent
             TextView android:id=@+id/TextView01
  android:layout_width=wrap_content
                     android:layout_height=wrap_content 
  android:textSize=18dip
                     android:layout_marginTop=4dip 
  android:layout_marginBottom=4dip
  android:layout_marginLeft=10dip android:text=sdf asdf asdf sdfghsdf
  sdfg sdfgsd fsd fgdsfg sdfg sdfg sdfg sdf android:lines=1/
  TextView
             LinearLayout android:id=@+id/zero_view
                     android:layout_width=fill_parent
  android:layout_height=fill_parent android:gravity=right|
  center_vertical
                             ImageButton android:id=@+id/ImageButton01
  android:layout_height=wrap_content
                                     
  android:background=@drawable/double_right_arrow_24x22
  android:layout_width=wrap_content/ImageButton
             /LinearLayout
  /LinearLayout
  /source/code

  The idea is to put a text (this item is a child of an expandable list
  view item) and a simple arrow icon to the right of the item. The
  problem is that with longer text, the icon doesn't show up, probably
  having been pushed to the right outside the screen. Is there a way to
  make sure I can solve this in a device independent way from the layout
  only? Ideally the text should ellipsize and scroll in the textview, If
  not possible, then it should cut off a few pixels before the icon.
  How can I do this. Please help me asap, I am having problems
  understanding how each layout settings affect the position. Speaking
  of which, is there a comparison with options for each layout, item
  position combinations other than the API Demos source code?

 --
 Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com

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


Re: [android-developers] Oriented Overlay

2010-07-07 Thread TreKing
On Mon, Jul 5, 2010 at 4:42 AM, Pedro Teixeira pedroteixeir...@gmail.comwrote:

 Any suggestions ? Should I override the draw method on the
 userOverlay class?


You're doing custom drawing right? So you should probably override the
default draw call to do what you want ... so yes.

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

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

[android-developers] Re: Focus problem in GridView inside Dialog

2010-07-07 Thread Piotr Buła
Sorry, your question slipped under my radar, but here goes the (late)
answer.



First, let me explain what I wanted to achieve. The list I was going
to present in the dialog could potentially contain a lot of images, so
loading them all and keeping in memory was not a good idea. So I
decided that I'll keep a list of assets that the images are loaded
from, and the images will be loaded as needed and kept handy using
WeakReferences. The class that kept that list had a get() method for
loading the image.



So, my ListAdapter used this get() method, that would load the image
if necessary. As it was loaded, it was also added to internal cache.
And at this point, notifyChanged() was called on my ListAdapter. And
this was my problem, because whenever you would scroll the list, it
would result in something like that:



listAdapter.getItem();

  get(); // this loads the image

addToCache(); // keep the image using WeakReference

  listAdapter.notifyChanged(); // BAD



I'm actually surprised this did not result in infinite loop and a
force close. But it did do some bad things to the List.



My solution was to move the call to notifyChanged() somewhere else. It
didn't make sense to call it when adding images to cache in the first
place.

So I suggest you take a look at your ListAdapter implementation, trace
all the calls that are made and see if you don't end up calling
notifyChanged() at some point (or maybe doing something to the
ListView that would force it to do bad things).



Hope this helps.



Cheers,

Piotr

On Jul 1, 4:17 pm, Jalal jalalso...@gmail.com wrote:
 Hi Piotr,

 I'm facing exactly the sameproblem: untouchableGridViewitemsinside
 aDialog, they can only be clicked after gainfocuswith the
 TrackBall. Can you explain me better the solution you found? I didn't
 understand it. Thanks,

 Jalal

 On 9 jun, 19:09, Piotr Buła piotr.b...@gmail.com wrote:

  Just for the record, I resolved theproblem. Theproblemwas in
  ListAdapter, or rather, the way it interacted with the rest of the
  program. As a result, call to getItem() triggered unnecessary list
  change notification, which caused this weird behavior.

  Cheers,
  Piotr

  On 7 Cze, 19:44, Piotr Buła piotr.b...@gmail.com wrote:

   H there,

   I have a littleproblemwith selecting items that are insideGridView
   that is displayedinsideadialog.

   What I want to achieve is adialogwindow that shows a grid of images
   that user can select (click on them) and some action is executed. I
   figured I'd just create aGridViewbacked by ListAdapter and set that
   on theDialog. But that causes some problems. Once you scroll the list
   of images, they becomeunselectable. Using trackball brings the
   selection back to the items and they become clickable again, until you
   scroll the list. This really gives me a headache.

   Below is the code I use to create mydialog:

   GridViewmyView = newGridView(MyActivity.this);
   myView.setNumColumns(2);
   myView.setAdapter(myImages.getListAdapter());
   myView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
       @Override
       public void onItemClick(AdapterView? parent, View view,
               int position, long id) {
           Log.i(TAG, onItemClick: );
       }

   });

   DialogmyDialog = newDialog(MyActivity.this);
   myDialog.setTitle(My Cool Images);
   myDialog.setContentView(myView);

   return myDialog;

   Am I missing something here? The sample code from ApiDemos is not much
   different, except that it does not involve Dialogs, so I'm thinking it
   might be something related toDialogstuff.

   Cheers,
   Piotr

-- 
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] Login form implementation options

2010-07-07 Thread TreKing
On Mon, Jul 5, 2010 at 4:53 AM, Tudor Tihan tudorti...@gmail.com wrote:

 So, what other options are there for the implementation of a screen such as
 a login form?


I really like a separate activity / screen is an obvious choice here ...

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

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

[android-developers] How would I include non-class files in my apk?

2010-07-07 Thread Connick
I'm looking to load some JS and CSS into a webview (via content provider)
which is all well and good ...but how should these files be packaged in the
APK such that I can reference them from the provider impl at runtime? i.e.
com.domain.myprovider/foo.js

Thanks!
Stace

-- 
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: timeout on wakelock causes WakeLock under-locked error

2010-07-07 Thread jdeslip
Ya, I am checking isHeld() before I release it when I do it
manually...  But, apparently when you set a timeout, whatever part of
android releases the wakelock does not check if it is held.  That is
my problem.  If I manually release it before the timeout, when the
timeout comes, I get an under-locked exception.

On Jul 7, 9:32 am, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Jul 7, 2010 at 12:26 PM, jdeslip jdes...@gmail.com wrote:
  Is there any way to use a timeout (as backup wakelock release in case
  the app force closes for some reason) without getting this error?

 Check isHeld() before release()-ing it.

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

 _Android Programming Tutorials_ Version 2.8 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


Re: [android-developers] Re: Custom ListView complex item does not appear correctly

2010-07-07 Thread Kostya Vasilyev

Tudor,

You should try using a RelativeLayout as the only Layout tag in the list 
item. It's certainly powerful enough to arrange both text and image the 
way you intend.


Off top of my head:

For the TextView -

layout_alignParentLeft=true
layout_width=wrap_content
and margins, if any

For the ImageView -

layout_alignParentRight=true
layout_centerVertical=true
and margins, if any

You can try for the TextView -

layout_marginRight= value in dips based on image view width
ellipsize= end or marquee

This way the text view will grow depending on screen width (including 
orientation changes).


-- Kostya

07.07.2010 21:14, Tudor Tihan пишет:

That partly works. I made the inner layout a relative one and put the
alignment of the image as suggested. If I fix the max width of the
text item to 285dip then it will look nice in the portrait view. But
that means I'd have to make a ton of adjustments for each screen
aspect/size.
Any way to have it hide the text automatically?

On Jul 7, 7:19 pm, Kostya Vasilyevkmans...@gmail.com  wrote:
   

Tudor,

You can use RelativeLayout, and set
android:layout_alignParentRight=true in the image.

-- Kostya

07.07.2010 20:05, Tudor Tihan пишет:



 

Hi guys and gals,
   
 

I am having a very difficult time with making complex listview items
show properly.
   
 

I am using the following layout xml for the item:
   
 

codesource
?xml version=1.0 encoding=utf-8?
   
 

LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent
TextView android:id=@+id/TextView01
android:layout_width=wrap_content
android:layout_height=wrap_content 
android:textSize=18dip
android:layout_marginTop=4dip 
android:layout_marginBottom=4dip
android:layout_marginLeft=10dip android:text=sdf asdf asdf sdfghsdf
sdfg sdfgsd fsd fgdsfg sdfg sdfg sdfg sdf android:lines=1/
TextView
LinearLayout android:id=@+id/zero_view
android:layout_width=fill_parent
android:layout_height=fill_parent android:gravity=right|
center_vertical
ImageButton android:id=@+id/ImageButton01
android:layout_height=wrap_content

android:background=@drawable/double_right_arrow_24x22
android:layout_width=wrap_content/ImageButton
/LinearLayout
/LinearLayout
/source/code
   
 

The idea is to put a text (this item is a child of an expandable list
view item) and a simple arrow icon to the right of the item. The
problem is that with longer text, the icon doesn't show up, probably
having been pushed to the right outside the screen. Is there a way to
make sure I can solve this in a device independent way from the layout
only? Ideally the text should ellipsize and scroll in the textview, If
not possible, then it should cut off a few pixels before the icon.
How can I do this. Please help me asap, I am having problems
understanding how each layout settings affect the position. Speaking
of which, is there a comparison with options for each layout, item
position combinations other than the API Demos source code?
   

--
Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com
 
   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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


[android-developers] Re: How would I include non-class files in my apk?

2010-07-07 Thread Connick
More specifically ...have the files show up:
/data/data/com.mydomain.foo/media/foo.js

Is this something I would have to provision programatically at runtime?


On Wed, Jul 7, 2010 at 1:35 PM, Connick oconn...@gmail.com wrote:

 I'm looking to load some JS and CSS into a webview (via content provider)
 which is all well and good ...but how should these files be packaged in the
 APK such that I can reference them from the provider impl at runtime? i.e.
 com.domain.myprovider/foo.js

 Thanks!
 Stace


-- 
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 would I include non-class files in my apk?

2010-07-07 Thread Connick
Part of the answer. res/raw
Now just need to figure out where those end up. :)

On Wed, Jul 7, 2010 at 1:51 PM, Connick oconn...@gmail.com wrote:

 More specifically ...have the files show up:
 /data/data/com.mydomain.foo/media/foo.js

 Is this something I would have to provision programatically at runtime?



 On Wed, Jul 7, 2010 at 1:35 PM, Connick oconn...@gmail.com wrote:

 I'm looking to load some JS and CSS into a webview (via content provider)
 which is all well and good ...but how should these files be packaged in the
 APK such that I can reference them from the provider impl at runtime? i.e.
 com.domain.myprovider/foo.js

 Thanks!
 Stace




-- 
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 would I include non-class files in my apk?

2010-07-07 Thread Connick
R.raw

Case closed. :)


On Wed, Jul 7, 2010 at 1:56 PM, Connick oconn...@gmail.com wrote:

 Part of the answer. res/raw
 Now just need to figure out where those end up. :)




-- 
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 would I include non-class files in my apk?

2010-07-07 Thread Mark Murphy
Usually, for stuff to load into a WebView, assets/ is a better answer
than res/raw/. Here is a sample project:

http://github.com/commonsguy/cw-advandroid/tree/master/WebView/GeoWeb1/

On Wed, Jul 7, 2010 at 1:56 PM, Connick oconn...@gmail.com wrote:
 Part of the answer. res/raw
 Now just need to figure out where those end up. :)

 On Wed, Jul 7, 2010 at 1:51 PM, Connick oconn...@gmail.com wrote:

 More specifically ...have the files show up:
 /data/data/com.mydomain.foo/media/foo.js

 Is this something I would have to provision programatically at runtime?


 On Wed, Jul 7, 2010 at 1:35 PM, Connick oconn...@gmail.com wrote:

 I'm looking to load some JS and CSS into a webview (via content provider)
 which is all well and good ...but how should these files be packaged in the
 APK such that I can reference them from the provider impl at runtime? i.e.
 com.domain.myprovider/foo.js

 Thanks!
 Stace


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



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

_Android Programming Tutorials_ Version 2.8 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


Re: [android-developers] Re: How would I include non-class files in my apk?

2010-07-07 Thread Connick
Beauty. Thanks Mark.


On Wed, Jul 7, 2010 at 2:01 PM, Mark Murphy mmur...@commonsware.com wrote:

 Usually, for stuff to load into a WebView, assets/ is a better answer
 than res/raw/. Here is a sample project:

 http://github.com/commonsguy/cw-advandroid/tree/master/WebView/GeoWeb1/

 On Wed, Jul 7, 2010 at 1:56 PM, Connick oconn...@gmail.com wrote:
  Part of the answer. res/raw
  Now just need to figure out where those end up. :)


-- 
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] Do threads cache instance variables?

2010-07-07 Thread burtoogle

Hi,

I am starting to develop an Android App and have noticed the following
behaviour in my test code (not yet designed the real app):

A thread that loops around doing Bluetooth IO accesses an instance
variable that is declared in the enclosing class. That instance
variable gets set to null by the GUI thread in the onBackPressed()
method which also closes the Bluetooth socket which causes an
exception in the IO thread (which is what I want).

The odd thing is that if I set the instance variable to null before I
close the socket, the IO thread sees the null value, but if I close
the socket first and then set the variable to null, the IO thread
doesn't see the null value.

The instance variable is being used in a loop in the IO thread and it
appears as if that variable is being cached while within the loop. So
any changes to that variable by another thread are not visible. Is
that possible? If so, is there a workaround to guarantee that the VM
will read the value of the instance variable?

Cheers,

Mark

-- 
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 realize TextView control has wordwrap functionallity.

2010-07-07 Thread bobo123
Hi,
 I am a beginner of Android, I have a question need to resovlve.
String s = aaa;

TextView textView = new TextView(this);
 textView.setText(s);

The above code only show part of  s on the screen in a line.
I wish the textview control can automatically wrap it in multiline.
how can I do it? thanks.

Bo

-- 
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] android.text.format.Time.parse3339

2010-07-07 Thread Tom

the following code:

Time t = new Time(GMT);
t.parse3339(2010-06-25T11:30:00-07:00);

produces the following error:

android.util.TimeFormatException: Unexpected 0 at position 19.
Expected + or -

my understanding is that the format of the timestamp meets the
requirements:

2010-06-25T11:30:00-07:00

any thoughts?  here are the results of some more investigation:

Time t = new Time(GMT);
t.parse3339(2010-06-25T11:30:00.000Z);// works
t.parse3339(2010-06-25T11:30:00.000-08:00);   // works
t.parse3339(2010-06-25T11:30:00Z);// works
t.parse3339(2010-06-25T11:30:00-08:00);   // BROKEN

it appears that the fractional sections are required when a timezone
offset is present.

i'm using android 2.1 (API 7).

-- 
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 get Memory Usage in android?

2010-07-07 Thread Badal
Hello guys !

I am trying to develop a widget which can shows current memory  cpu
usage of a mobile.

to get Memory usage, I am using: /proc/meminfo command.

I have parsed the response for the both command, however it shows that

MemTotal:94348 kB
MemFree:  5784 kB

Is this the correct result? it shows that there is only 5 MB free. Or
am I missing something?


Regards,
Badal Z

-- 
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] problem with my browser

2010-07-07 Thread anil007
yesterday I got my android 2.2 update.
I was very happy that I got my updates,but after updating my browser
is not working.please guide me how to solve 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] IMAP TLS (accept all certificated) error on Android 2.2 (Froyo)

2010-07-07 Thread AA
Hello,

just got update to FRF91 on Nexus One this morning. Issue: the email
account, which was working perfectly on former Android 2.1, is not
working. Account is configured as IMAP, TLS (accept all certificate).
Error I got is: Cannot verify hostname: mydomain.com.
I tried to both specify name (mydomain.com) or change it and insert
concered IP address. Both cases, same error.

How can that be solved from Nexus One side, i.e. without acting on
IMAP server where I cannot change anything?

Thanks,
AA

-- 
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 detect whether android device supports audio video recording

2010-07-07 Thread vinay
hi,
   Is there any api that can let me know whether android device
supports audio video recording.


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

2010-07-07 Thread Ranjith
what can i do netbeans with sql database connection?

-- 
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] System-wide touch events OR User activity

2010-07-07 Thread bmjones2
I have been searching for some time for a method to solve my problem.
I am pretty sure this isn't possible, but thought I would ask anyway.

The problem that exists for me is I need a way to recognize when the
user is currently on their phone.  Not specifically on my application
but on any application. I dont need any data on what apps there using
or anything like that, just simply that they are using it.

The idea I had, was to be able to listen to system touch events.
However, all I need is a true or false of whether or not a touch event
occurred anywhere on the system, in any application. I don't want to
know the coordinates of the touch event or what app it was in, just
simply that it happened.

OR

Maybe a way to detect if the current view has changed or something
like that.

Any help is appreciated.

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


[android-developers] android emulator

2010-07-07 Thread dmbinbc
I cant get the emulator to work. It starts up but hangs forever. When
I look at the logCat I see many errors and warnings.

-- 
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 there an easier way?

2010-07-07 Thread Lucas
I am using Motodev Studio for Android. (develper.motorola.com)
It is an Eclipse with ADT already installed and with a lot of cool
stuff, that helps me in development, databases manipulation...
internationalization..
It is for free and, even being made by Motorola, it works for devices
of all manufacturers

On 3 jul, 05:10, Tim t...@mobiforms.com wrote:
 Dear Friend,

 There is an easier way!!!  If you want to master Android really fast
 then I suggest you have a look at rapid development tools such as our
 MobiForms Developer.

 MobiForms is the world's first rapid application development tool
 designed for Android and is also cross platform compatible with other
 environments such as Windows Mobile and Symbian.  MobiForms is ideal
 for creating data intensive business apps.

 With MobiForms there is no need to learn Java, XML, Eclipse or the
 Android SDK.  Instead MobiForms offers one compact development and
 deployment environment with most programming done just by drag and
 drop.

 For more information have a look at the MobiForms web site 
 at:http://www.mobiforms.com

 Kind regards,

 Tim @ MobiForms



 Jokerstud31 wrote:
  is there any other programs or ways to program with the SDK or the ADT
  other then Eclipse because i am having nothing but troubles with 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] Problem with PhoneStateListener.onSignalStrengthsChanged

2010-07-07 Thread TheArchedOne
I have written an android app which listens to the phone signal
strength. The app works perfectly with Android 1.6 and lower using
PhoneStateListener.SignalStrengthChanged(int asu), but I can't get it
to work on Android 2.1.

I know that I have to use onSignalStrengthsChanged(SignalStrength
signalStrength) but this override never seems to be called in my code.
SignalStrengthChanged(int asu) is called, but this always returns a
signal strength of -1 asu because its been depecated. I need to get
the onSignalStrengthsChanged(SignalStrength signalStrength) to
work does anyone know what I'm doing wrong?

I'm testing on a EVO with Android 2.1. The phone type
(TelephonyManager.getPhoneType) is CDMA and
TelephonyManager.getNetworkType returns EVDO_A.

Here's the code:

mSignalListener = new PhoneStateListener(){
  @Override
public void onSignalStrengthChanged(int asu){
  Log.d(Utils.LOGTAG, #1.  + String.valueOf(asu));
  if (mStrength != asu){
mStrength = asu;
NotifyUI();
  }
  super.onSignalStrengthChanged(asu);
}

  @Override
  public void onSignalStrengthsChanged(SignalStrength signalStrength)
{
Log.d(Utils.LOGTAG, #2.);  // this never gets called

if (signalStrength.isGsm())
  mStrength = signalStrength.getGsmSignalStrength();
else{
  int strength = -1;
  if (signalStrength.getEvdoDbm()  0)
strength = signalStrength.getEvdoDbm();
  else if (signalStrength.getCdmaDbm()  0)
strength = signalStrength.getCdmaDbm();

  if (strength  0){
// convert to asu
mStrength = Math.round((strength + 113f) / 2f);
  }

  NotifyUI();
}
super.onSignalStrengthsChanged(signalStrength);
  }
};


mTelManager =
(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
mTelManager.listen(mSignalListener,
PhoneStateListener.LISTEN_SIGNAL_STRENGTH);


Thanks in advance

TAO

-- 
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] URGENT: Opening for BSP/ Driver Engineers

2010-07-07 Thread Sakura Technologies
No of Openings: 12

Position:Software Engineer/ Senior Software Engineer,
Project Leader

Company:  Leading Semiconductor/ Software Company

Location:   Bangalore (may have to travel out of India for
long durations)

Experience Level: 2 - 8 years

Skills Required:
Base Porting:
- Strong C concepts and O/S concepts(Linux, Android).
- Strong Debugging skills.
- Strong knowledge of OMAP architecture or any other platform
- Strong knowledge of BSP.
- Experience on Power Management, USB, Audio, Video, SD, MMC, PCI, I2C.. etc

Pls send your resumes to sakura...@gmail.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] develop an application windows - android

2010-07-07 Thread iceman_82
Hi,
I'm searching how develop a program that run on windows machine but
manage my android phone. Are there anyone who could help me? Are there
API for this activity?
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 find if the device is connected via USB.

2010-07-07 Thread DPK
Hi All,

How can i find out if my device is already connected via USB.Is there
a way i can do it in code just the way i can check network
connectivity using ConnectivityManager. ??
I was able to broadcast my USB connected intent and receive it,but
was struggling to check if the device is already connected or not.

public class Startnext extends BroadcastReceiver{

@Override
public void onReceive(Context context, Intent intent) {
CharSequence text = USB connected;
int duration = Toast.LENGTH_SHORT;
Toast toast = Toast.makeText(context, text, duration);
toast.show();

}

}


Please help in this regard if anyone has an idea about 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] build android sdk from git on ubuntu 10.04 fail

2010-07-07 Thread zyanho
 i getting start with http://source.android.com/source/download.html.
 i use ubuntu 10.04 ,i install android step by step.
 i type make at last,i get an error

host C: libneo_util = external/clearsilver/util/neo_hash.c
host SharedLib: libneo_util (out/host/linux-x86/obj/lib/
libneo_util.so)
host C: libneo_cs = external/clearsilver/cs/csparse.c
host SharedLib: libneo_cs (out/host/linux-x86/obj/lib/libneo_cs.so)
host C: libneo_cgi = external/clearsilver/cgi/cgiwrap.c
host C: libneo_cgi = external/clearsilver/cgi/cgi.c
host C: libneo_cgi = external/clearsilver/cgi/html.c
host C: libneo_cgi = external/clearsilver/cgi/date.c
host C: libneo_cgi = external/clearsilver/cgi/rfc2388.c
host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/
4.4.3/../../../libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/
4.4.3/../../../libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for
-lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -
lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] error 1

  it look like somethings wrong with libz,but zlib1g-dev is install .i
try to google it all around web,but i get nothings,could anybody have
some idea with 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] Problem with Intents (I think)

2010-07-07 Thread CMWiii
New to Android so experimenting with some areas that are probably way
over my head.  Nevertheless,
I will plow on.


Top Level Description:

I have an activity (call it ActA) that is started via 'startActivity'
and is passed some data through a bundle.
The data is an unflattened componentname which, from my understanding
is, a combination
of the packagename and the class.

ActA creates a new intent and then does a
'setcomponent(ComponentName.unflattenfromstring)'
from the value extracted out of the bundle.

ActA executes a 'startActivity' (call it ActB) with the new intent and
then ActA
terminates itself.


Observations
In general this seems to work and the new activity (ActB) pops up on
the screen.  However, I have seen
several case where it doesn't.  When it doesn't work ActB is
displayed  correctly but I can
no longer start  ActA.  When it works properly (the way I want ) ActA
will start ActB and I can do
this several times in a row.

It is always the same applications that prevent me from using ActA
again.  There are no errors, log.i
messages seem to confirm the above flow.  If I terminate ActB using
the back button then the
whole process works again until I hit specific activities.



Final
I can certainly provide more info but at this point I wasn't sure what
is of value.  Any help
would be appreciated.




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


[android-developers] How to access modem in a native C libs

2010-07-07 Thread Rover
Hi there,

May I ask a question here?

I am porting a OS independent C library to Android (Libraries layer -
to be exact). The library needs to access SIM and mobile networking. I
think this needs to go through RILD interface (socket). But it is
found that the RILD is dedicated to the telephony. Is it possible to
set up another socket connection with RILD? If this is the case,
RILD's gonna have two clients: Telephony and my library. Could RILD
handle two clients simultaneously?

It's been noticed there is a webkit lib in this layer. Webkit lib also
needs to access mobile networking, doesn't it? How does it handle the
modem access? Is there any counterpart in the up layer to assist
accessing modem through telephony?

I am new to Android. Any comments that can show some light will be
highly appreciated.

Thanks for your time
Regard

Charles

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