[android-developers] Re: Weird problem with ListView

2010-09-29 Thread Varun Khanduja
Hi John,

Although I don't have solution to your problem but I am trying to
learn how to make a list view similar to what you have done. I am
basically not able to understand how I can get that extra line below
the first line in each list item. Do you think you could share sample
code or help me out?

Thanks

On Sep 28, 6:51 pm, John Gaby jg...@gabysoft.com wrote:
 I have a ListView which presents a table of items.  The table is
 supposed to look like:

 http://gabytest.com/images/good.png

 but if I scroll around a bit, I sometimes see:

 http://gabytest.com/images/bug.png

 Now this only seems to happen when I run the program on an actual
 device (Motorola Droid with Android 2.2).  I have never seen this
 happen on the emulator.

 Has anyone ever seen anything like this?  Does anyone have any
 suggestions about what I might look for?

 Thanks.

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


[android-developers] Re: Passing arguments to JSON c# .net web service

2010-09-29 Thread titleist
The logcat log:




09-29 06:42:03.480: DEBUG/AndroidRuntime(399): 
AndroidRuntime START 
09-29 06:42:03.490: DEBUG/AndroidRuntime(399): CheckJNI is ON
09-29 06:42:03.920: DEBUG/AndroidRuntime(399): --- registering native
functions ---
09-29 06:42:05.740: DEBUG/dalvikvm(190): GC_EXPLICIT freed 130
objects / 6960 bytes in 101ms
09-29 06:42:05.920: DEBUG/PackageParser(60): Scanning package: /data/
app/vmdl59209.tmp
09-29 06:42:06.460: INFO/PackageManager(60): Removing non-system
package:si.trendnet.android.terra
09-29 06:42:06.460: INFO/ActivityManager(60): Force stopping package
si.trendnet.android.terra uid=10032
09-29 06:42:06.540: INFO/Process(60): Sending signal. PID: 388 SIG: 9
09-29 06:42:06.609: INFO/WindowManager(60): WIN DEATH: Window{440035a0
si.trendnet.android.terra/si.trendnet.android.terra.Home paused=false}
09-29 06:42:06.739: INFO/UsageStats(60): Unexpected resume of
com.android.launcher while already resumed in
si.trendnet.android.terra
09-29 06:42:07.010: WARN/InputManagerService(60): Got RemoteException
sending setActive(false) notification to pid 388 uid 10032
09-29 06:42:07.539: DEBUG/PackageManager(60): Scanning package
si.trendnet.android.terra
09-29 06:42:07.549: INFO/PackageManager(60): Package
si.trendnet.android.terra codePath changed from /data/app/
si.trendnet.android.terra-1.apk to /data/app/
si.trendnet.android.terra-2.apk; Retaining data and using new
09-29 06:42:07.559: INFO/PackageManager(60): /data/app/
si.trendnet.android.terra-2.apk changed; unpacking
09-29 06:42:07.599: DEBUG/installd(35): DexInv: --- BEGIN '/data/app/
si.trendnet.android.terra-2.apk' ---
09-29 06:42:08.869: DEBUG/dalvikvm(406): DexOpt: load 119ms, verify
688ms, opt 23ms
09-29 06:42:08.900: DEBUG/installd(35): DexInv: --- END '/data/app/
si.trendnet.android.terra-2.apk' (success) ---
09-29 06:42:08.909: WARN/PackageManager(60): Code path for pkg :
si.trendnet.android.terra changing from /data/app/
si.trendnet.android.terra-1.apk to /data/app/
si.trendnet.android.terra-2.apk
09-29 06:42:08.909: WARN/PackageManager(60): Resource path for pkg :
si.trendnet.android.terra changing from /data/app/
si.trendnet.android.terra-1.apk to /data/app/
si.trendnet.android.terra-2.apk
09-29 06:42:08.909: DEBUG/PackageManager(60):   Activities:
si.trendnet.android.terra.Home si.trendnet.android.terra.page1
si.trendnet.android.terra.main_menu
si.trendnet.android.terra.Mobile_Status_History
si.trendnet.android.terra.Service_Desk
si.trendnet.android.terra.Configuration
si.trendnet.android.terra.Settings_Info
si.trendnet.android.terra.settings_login
si.trendnet.android.terra.settings_url
09-29 06:42:08.919: INFO/ActivityManager(60): Force stopping package
si.trendnet.android.terra uid=10032
09-29 06:42:09.179: INFO/installd(35): move /data/dalvik-cache/
d...@app@si.trendnet.android.terra-2@classes.dex - /data/dalvik-
cache/d...@app@si.trendnet.android.terra-2@classes.dex
09-29 06:42:09.199: DEBUG/PackageManager(60): New package installed
in /data/app/si.trendnet.android.terra-2.apk
09-29 06:42:09.529: DEBUG/dalvikvm(60): GC_FOR_MALLOC freed 10054
objects / 573032 bytes in 177ms
09-29 06:42:09.759: INFO/ActivityManager(60): Force stopping package
si.trendnet.android.terra uid=10032
09-29 06:42:09.899: DEBUG/dalvikvm(134): GC_EXPLICIT freed 68
objects / 2992 bytes in 115ms
09-29 06:42:10.160: DEBUG/dalvikvm(164): GC_EXPLICIT freed 1653
objects / 83952 bytes in 201ms
09-29 06:42:10.579: DEBUG/dalvikvm(60): GC_EXPLICIT freed 5248
objects / 277888 bytes in 219ms
09-29 06:42:10.579: INFO/installd(35): unlink /data/dalvik-cache/
d...@app@si.trendnet.android.terra-1@classes.dex
09-29 06:42:10.629: WARN/RecognitionManagerService(60): no available
voice recognition services found
09-29 06:42:10.649: DEBUG/AndroidRuntime(399): Shutting down VM
09-29 06:42:10.659: DEBUG/dalvikvm(399): Debugger has detached; object
registry had 1 entries
09-29 06:42:10.759: INFO/AndroidRuntime(399): NOTE: attach of thread
'Binder Thread #3' failed
09-29 06:42:12.039: DEBUG/AndroidRuntime(412): 
AndroidRuntime START 
09-29 06:42:12.039: DEBUG/AndroidRuntime(412): CheckJNI is ON
09-29 06:42:12.459: DEBUG/AndroidRuntime(412): --- registering native
functions ---
09-29 06:42:13.809: INFO/ActivityManager(60): Starting activity:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x1000
cmp=si.trendnet.android.terra/.Home }
09-29 06:42:13.909: DEBUG/AndroidRuntime(412): Shutting down VM
09-29 06:42:13.929: DEBUG/dalvikvm(412): Debugger has detached; object
registry had 1 entries
09-29 06:42:14.059: INFO/AndroidRuntime(412): NOTE: attach of thread
'Binder Thread #3' failed
09-29 06:42:14.319: INFO/ActivityManager(60): Start proc
si.trendnet.android.terra for activity
si.trendnet.android.terra/.Home: pid=419 uid=10032 gids={3003}
09-29 06:42:15.680: ERROR/WebGetURL:(419): 172.17.1.62/JSON.asmx/Hello?
password=1234username=tadej
09-29 06:42:15.750: ERROR/Groshie:(419): Target host must not be null,
or set in 

[android-developers] Problem in getting GPS coordinates in 2.1

2010-09-29 Thread Rammi
Hi..

I am having a problem in getting GPS coordinates in 2.1.

The code i am using right now is working well in 1.6 but when i test
this same apk in 1.6 device is showing null values

plz help me to find a way to work with 2.1 devices also

Here is my code...


public class GpsLocator
{
private static String PROVIDER=gps;

private LocationManager myLocationManager=null;
public GpsLocator(Context context)
{

myLocationManager=(LocationManager)context.getSystemService(Context.LOCATION_SERVICE);

}

public void myOnresume()
{
myLocationManager.requestLocationUpdates(PROVIDER, 0,   0,
onLocationChange);
}

public void myonPause() {
myLocationManager.removeUpdates(onLocationChange);

}

public double getLatitude() {
Location loc=myLocationManager.getLastKnownLocation(PROVIDER);

if (loc==null) {
return(0);
}

return(loc.getLatitude());
}

public double getLongitude() {
Location loc=myLocationManager.getLastKnownLocation(PROVIDER);

if (loc==null) {
return(0);
}

return(loc.getLongitude());
}

LocationListener onLocationChange=new LocationListener() {
public void onLocationChanged(Location location) {

}

public void onProviderDisabled(String provider) {
// required for interface, not used
}

public void onProviderEnabled(String provider) {
// required for interface, not used
}

public void onStatusChanged(String provider, int status,Bundle
extras) {
// required for interface, not used
}
};
}
//
in the manifest file i add permission for accessing file
they are


   uses-permission android:name=android.permission.INTERNET /
uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION /
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION /
///

please help me...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Passing arguments to JSON c# .net web service

2010-09-29 Thread Kostya Vasilyev
 I'd guess it's these lines in logcat that might explain what you are 
seeing:


29.09.2010 10:53, titleist ?:

si.trendnet.android.terra/.Home: pid=419 uid=10032 gids={3003}
09-29 06:42:15.680: ERROR/WebGetURL:(419): 172.17.1.62/JSON.asmx/Hello?
password=1234username=tadej
*09-29 06:42:15.750: ERROR/Groshie:(419): Target host must not be null,
or set in parameters.*
09-29 06:42:15.770: ERROR/WebGetURL:(419): 172.17.1.62/JSON.asmx/
LogInUser?password=1234username=tadej
09-29 06:42:15.770: ERROR/Groshie:(419): Target host must not be null,
or set in parameters.
*09-29 06:42:15.969: DEBUG/Error:(419): Failed parsing JSON source:
java.io.stringrea...@43e6faf0 to Json*


Target host must not be null, or set in parameters
Failed parsing JSON source: java.io.StringReader

Looks like you have two errors (maybe one depends on the other) in the 
way you use JSON libraries. Since they seem to happen while your app 
tries to send its request, they prevent the web service from actually 
being called.


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

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

[android-developers] Re: Free version or not?

2010-09-29 Thread JonFHancock
I released one app, paid only.  It was successful for me, especially
after I got a couple of blog posts reviewing the app.  Granted, I had
a fairly successful web presence before I released the app.  If you
can get a blogger or two to write about your app, that will help
immensely. For starters, find every android blog and podcast, and tip
them off to your app.  They may not pick up the story right away. Also
work the discussion boards.  Don't be spammy, but search frequently,
and if your app can solve somebody's problem, tell them so.

On Sep 28, 1:34 pm, Darrin Smith darri...@gmail.com wrote:
 I have an application that I think is about two weeks or so from being ready
 to ship. I plan to charge for the app because I really believe many people
 will find it of value. The thing is how to go about getting the word out
 about it.

 What do you typically do when releasing a new application? Do you offer a
 slightly crippled free version, go for a full fledged version that has
 nuisance screens that tell people to upgrade, try the fully functional but
 with advertising route, or just release one app for purchase only?

 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] Extremely weird Null Pointer exception. Please help.

2010-09-29 Thread Kakyoin
Hi.  I'll try to explain the situation as clear as possible.  I'll
provide all the data I can.

My problem is: I click on a checkbox in my PreferenceActivity activity
and got a Null pointer exception. I took it from the API demo app. I
also borrow LunarView and LunarThread from Lunar Lander example.




These logs were taken right after I press a button to launch my
preference Activity.


09-29 14:21:50.413: INFO/ActivityManager(76): Starting activity:
Intent { cmp=com.company.mygame/.PreferencesFromXml }
09-29 14:21:50.423: WARN/com.company.mygame.GameActivity(934): SIS
called
09-29 14:21:51.013: INFO/ActivityManager(76): Displayed activity
com.company.mygame/.PreferencesFromXml: 581 ms (total 581 ms)

//***please notice these 2 lines.  This is exactly when I
clicked on one of the checkboxes. I printed out 2 objects that might
be the culprit  *//

09-29 14:21:52.033: ERROR/onSharedPreferenceChanged(934):
mlunarview=com.company.mygame.lunarv...@438c1448
mLunarThread=Thread[Thread-45,5,main]
09-29 14:21:52.033: ERROR/onSharedPreferenceChanged(934):
mlunarview=com.company.mygame.lunarv...@438c9930  mLunarThread=null

*then I suddenly got Null pointer
exception
//

09-29 14:21:52.043: DEBUG/AndroidRuntime(934): Shutting down VM
09-29 14:21:52.043: WARN/dalvikvm(934): threadid=3: thread exiting
with uncaught exception (group=0x4001da28)
09-29 14:21:52.043: ERROR/AndroidRuntime(934): Uncaught handler:
thread main exiting due to uncaught exception
09-29 14:21:52.103: ERROR/AndroidRuntime(934):
java.lang.NullPointerException
09-29 14:21:52.103: ERROR/AndroidRuntime(934): at
com.company.mygame.GameActivity
$1.onSharedPreferenceChanged(GameActivity.java:352)
09-29 14:21:52.103: ERROR/AndroidRuntime(934): at
android.app.ApplicationContext$SharedPreferencesImpl
$EditorImpl.commit(ApplicationContext.java:2727)
09-29 14:21:52.103: ERROR/AndroidRuntime(934): at
android.preference.Preference.tryCommit(Preference.java:1199)
09-29 14:21:52.103: ERROR/AndroidRuntime(934): at
android.preference.Preference.persistBoolean(Preference.java:1404)
09-29 14:21:52.103: ERROR/AndroidRuntime(934): at
android.preference.CheckBoxPreference.setChecked(CheckBoxPreference.java:
155)
09-29 14:21:52.103: ERROR/AndroidRuntime(934): at
android.preference.CheckBoxPreference.onClick(CheckBoxPreference.java:
143)
09-29 14:21:52.103: ERROR/AndroidRuntime(934): at
android.preference.Preference.performClick(Preference.java:811)


OK, I know you need more info, here's the content of GameActivity.java
around line 352:

OnSharedPreferenceChangeListener mOnSPListener = new
OnSharedPreferenceChangeListener() {

@Override
public void onSharedPreferenceChanged(
SharedPreferences sharedPreferences, String 
key) {
if (key.equals(sound_preference)) {

boolean soundOn = 
sharedPreferences.getBoolean(key, true);
Log.e(onSharedPreferenceChanged, 
mLunarView=+mLunarView+ 
mLunarThread=+mLunarThread);   //***you can see the log
output above for this line***//
mLunarThread.prefChangedSound(soundOn); 
//***line 352
is here***//

} else if (key.equals(music_preference)) {

boolean musicOn = 
sharedPreferences.getBoolean(key, true);
mLunarThread.prefChangedMusic(musicOn);

}
}
};



What's worse is this Null pointer won't always happen! To reproduce
this bug, I did this:
1. Launch my game. Initializing both LunarView and LunarThread.
2. Click 'Option' button to go into preference activity.
3. Click on a checkbox to turn on/off the sound or music.
4. Press back to return to title screen of my game.
5. Press back again to exit the game completely. Releasing any thread
that's running.


repeat 1-5 for three to four times then I got Null pointer when I
click on a checkbox. You can see the log above.

I'm really at a dead end now. Can experts help me please? I did
everything I can for the past 3 days.

btw this was tested on Dev Phone One and Motorola Milestone.

Thank you 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: Extremely weird Null Pointer exception. Please help.

2010-09-29 Thread Kakyoin
To point out the problem:

How did mLunarThread object suddenly become null  at line 352 of
GameActivity.java ??

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Proxy related code changes needed in Apps

2010-09-29 Thread praj
Hi,

We recently came to know that a lot of Mobile Carries in Asia/India
have proxy enabled to get Internet access via mobile. It turns out our
App does not work when the phone has internet via proxy setup (APN).

Does the APP need to handle proxy individually? and if so, can you
please tell me what code changes are needed or if you can please point
me to a doc that would be great. Prompt reply would be highly
appreciated

Thanks,
Prajakta

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Weird problem with ListView

2010-09-29 Thread MrChaz
At a guess I'd say it's caused by the listview recycling views.
There's a long talk here about ListView:
http://code.google.com/events/io/2010/sessions/world-of-listview-android.html



On Sep 29, 2:51 am, John Gaby jg...@gabysoft.com wrote:
 I have a ListView which presents a table of items.  The table is
 supposed to look like:

 http://gabytest.com/images/good.png

 but if I scroll around a bit, I sometimes see:

 http://gabytest.com/images/bug.png

 Now this only seems to happen when I run the program on an actual
 device (Motorola Droid with Android 2.2).  I have never seen this
 happen on the emulator.

 Has anyone ever seen anything like this?  Does anyone have any
 suggestions about what I might look for?

 Thanks.

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


[android-developers] Re: Passing arguments to JSON c# .net web service

2010-09-29 Thread titleist
Now when i start my application i get som result from webservice but
not the one i hoped. It seems that i can't configure port like:
http://172.17.1.62:58207/JSON.asmx. If I enter only my ip address in
emulator i get the default page of IIS, but if I enter ip:port/method
it doesn't work. I assume that port have to be set up in a different
way? Do you have any ideas maybe how to set up port?



Regards,
Tadej

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 telnet in Eclipse

2010-09-29 Thread Indicator Veritatis
The documentation you refer to assumes you understand telnet. From the
words, Each emulator instance provides a control console the you can
connect to and connect to the console of the target emulator
instance,, the author expects you to be able to figure out that it
does not matter where you connect from: you can use any console/
command window on your system that is capable of talking to the same
host (localhost) at port 5554.

Only once you have established this connection do you use the 'redir'
command, which being typed in the telnet window, is going to the
control console on the emulator instance itself (i.e. on the emulated
phone).

On Sep 28, 12:29 pm, cellurl gpscru...@gmail.com wrote:
 Hi,

 About once a day, I get this message. I reboot and it goes away. Its
 time I figure it out
 java.net.UnknownHostException:  Host is unresolvedwww.wikispeedia.org:80

 I found 
 this.http://developer.android.com/guide/developing/tools/emulator.html#net...
 which says to do these commands:

 telnet localhost 5554
 redir add tcp:5000:6000

 Q: Where do I type in these commands? I see console, DDMS, etc but
 where exactly do I enter commands?

 -thanks for any leads
 jim

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 prevent phone from sleeping

2010-09-29 Thread SOFTGAMES
Yeah

The code to prevent phone from sleeping:

getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);


Have fun!!!

On 27 Sep., 17:24, SOFTGAMES softgamesg...@googlemail.com wrote:
 Hello,

 I am developing an application, for an optimal operation I need that
 the app prevents phone from sleeping. How can I do it?
 It has to be like google maps:
 System Tools
 prevent phone from sleeping

 Greetings

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 prevent phone from sleeping

2010-09-29 Thread SOFTGAMES
Thank you!!!  Best answer!

the code is:

getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

On 27 Sep., 17:35, Mark Murphy mmur...@commonsware.com wrote:
 Another possibility, if it is an activity, is:

 http://developer.android.com/reference/android/view/WindowManager.Lay...





 On Mon, Sep 27, 2010 at 11:30 AM, Kostya Vasilyev kmans...@gmail.com wrote:
   There is this band called Power Manager and His Fabulous Wake Locks:

 http://developer.android.com/reference/android/os/PowerManager.WakeLo...

  -- Kostya

  27.09.2010 19:26, SOFTGAMES пишет:

  Hello,

  I am developing an application, for an optimal operation I need that
  the app prevents phone from sleeping. How can I do it?
  It has to be like google maps:
  System Tools
  prevent phone from sleeping

  Greetings

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

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

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

 Android Training in London:http://skillsmatter.com/go/os-mobile-server

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 Android 2.1(Eclair) For Testing

2010-09-29 Thread Ajmer singh
Hi

Please suggest me some Android based phone in india for testing purpose,Is
Samsung Galaxy Series Android2.1(Eclair) suitable for testing the Android
applications.

Please respond Have anyone used Samsung Galaxy Android 2.1(Eclair) for
testing.I need to buy a android phone for testing purpose.

-- 
*Thanks and Regards
Ajmer Singh*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Payment on updates?

2010-09-29 Thread Pieter
I received the following comment today:
Great little appbut you have to pay for every UPGRADE,SO I
WOULD NOT BUY IT.

This is the third time I get a comment like this (out of 300+ comments
in total for the paid version).

What is it that makes a user think they have to repay after an update?

Is there a technical reason why any user would need to pay again after
we bring out an update?

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


[android-developers] Re: How can I query the sms by conversation?

2010-09-29 Thread Jens
The URI you're looking for is

  content://mms-sms/conversations?simple=true

and the sort order is date DESC

And as usual, with undocumented APIs from Google - they may change in
the future / differ between handsets etc. - i.e. your app may stop
working and your users start whining.

If you're dead set on doing this I'd suggest adding a heap of error
handling and also test on multiple devices from different vendors.



On 28 Sep, 10:30, feeling3_4 lanwen.ban...@gmail.com wrote:
 Hi All,

 how can I query the latest sms of every conversation. just like native
 sms application in the android phone.

 everytime we start the sms application, it displays the conversations
 sorted by date. how can I achieve this?

 we can query all the sms, but I can't figure out how to query the sms
 by threads.

 thanks a lot

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Passing arguments to JSON c# .net web service

2010-09-29 Thread titleist
 Now I figured that all parameters in url are ok, because when i
debuged my application, i hovered mouse over the  response =
httpClient.execute(httpGet); I saw that (on httpGet) path, port.. are
all in right place and i get exception: connection time out


logcat log is:


09-29 09:49:44.109: DEBUG/AndroidRuntime(1306): 
AndroidRuntime START 
09-29 09:49:44.119: DEBUG/AndroidRuntime(1306): CheckJNI is ON
09-29 09:49:44.479: DEBUG/AndroidRuntime(1306): --- registering native
functions ---
09-29 09:49:45.479: DEBUG/dalvikvm(1298): Debugger has detached;
object registry had 432 entries
09-29 09:49:45.479: INFO/dalvikvm(1298): ignoring registerObject
request in thread=1
09-29 09:49:45.479: INFO/dalvikvm(1298): ignoring registerObject
request in thread=1
09-29 09:49:45.479: ERROR/Groshie:(1298): Connect to /
172.17.1.62:5 timed out
09-29 09:49:45.869: DEBUG/Error:(1298): Failed parsing JSON source:
java.io.stringrea...@43e72600 to Json
09-29 09:49:47.039: INFO/ActivityManager(60): Displayed activity
si.trendnet.android.terra/.Home: 373022 ms (total 753357 ms)
09-29 09:49:47.889: DEBUG/dalvikvm(190): GC_EXPLICIT freed 111
objects / 6072 bytes in 886ms
09-29 09:49:48.039: DEBUG/PackageParser(60): Scanning package: /data/
app/vmdl59235.tmp
09-29 09:49:48.580: INFO/PackageManager(60): Removing non-system
package:si.trendnet.android.terra
09-29 09:49:48.580: INFO/ActivityManager(60): Force stopping package
si.trendnet.android.terra uid=10032
09-29 09:49:48.689: INFO/Process(60): Sending signal. PID: 1298 SIG: 9
09-29 09:49:48.749: INFO/UsageStats(60): Unexpected resume of
com.android.launcher while already resumed in
si.trendnet.android.terra
09-29 09:49:48.830: INFO/WindowManager(60): WIN DEATH: Window{43fe8fc0
si.trendnet.android.terra/si.trendnet.android.terra.Home paused=false}
09-29 09:49:49.149: WARN/InputManagerService(60): Got RemoteException
sending setActive(false) notification to pid 1298 uid 10032
09-29 09:49:49.909: DEBUG/PackageManager(60): Scanning package
si.trendnet.android.terra
09-29 09:49:49.909: INFO/PackageManager(60): Package
si.trendnet.android.terra codePath changed from /data/app/
si.trendnet.android.terra-1.apk to /data/app/
si.trendnet.android.terra-2.apk; Retaining data and using new
09-29 09:49:49.939: INFO/PackageManager(60): /data/app/
si.trendnet.android.terra-2.apk changed; unpacking
09-29 09:49:49.980: DEBUG/installd(35): DexInv: --- BEGIN '/data/app/
si.trendnet.android.terra-2.apk' ---
09-29 09:49:51.230: DEBUG/dalvikvm(1313): DexOpt: load 127ms, verify
714ms, opt 25ms
09-29 09:49:51.270: DEBUG/installd(35): DexInv: --- END '/data/app/
si.trendnet.android.terra-2.apk' (success) ---
09-29 09:49:51.280: WARN/PackageManager(60): Code path for pkg :
si.trendnet.android.terra changing from /data/app/
si.trendnet.android.terra-1.apk to /data/app/
si.trendnet.android.terra-2.apk
09-29 09:49:51.280: WARN/PackageManager(60): Resource path for pkg :
si.trendnet.android.terra changing from /data/app/
si.trendnet.android.terra-1.apk to /data/app/
si.trendnet.android.terra-2.apk
09-29 09:49:51.280: DEBUG/PackageManager(60):   Activities:
si.trendnet.android.terra.Home si.trendnet.android.terra.page1
si.trendnet.android.terra.main_menu
si.trendnet.android.terra.Mobile_Status_History
si.trendnet.android.terra.Service_Desk
si.trendnet.android.terra.Configuration
si.trendnet.android.terra.Settings_Info
si.trendnet.android.terra.settings_login
si.trendnet.android.terra.settings_url
09-29 09:49:51.300: INFO/ActivityManager(60): Force stopping package
si.trendnet.android.terra uid=10032
09-29 09:49:51.560: INFO/installd(35): move /data/dalvik-cache/
d...@app@si.trendnet.android.terra-2@classes.dex - /data/dalvik-
cache/d...@app@si.trendnet.android.terra-2@classes.dex
09-29 09:49:51.560: DEBUG/PackageManager(60): New package installed
in /data/app/si.trendnet.android.terra-2.apk
09-29 09:49:51.769: DEBUG/dalvikvm(60): GC_FOR_MALLOC freed 8598
objects / 524136 bytes in 184ms
09-29 09:49:52.240: INFO/ActivityManager(60): Force stopping package
si.trendnet.android.terra uid=10032
09-29 09:49:52.390: DEBUG/dalvikvm(134): GC_EXPLICIT freed 153
objects / 6960 bytes in 120ms
09-29 09:49:52.800: WARN/RecognitionManagerService(60): no available
voice recognition services found
09-29 09:49:53.310: DEBUG/dalvikvm(60): GC_EXPLICIT freed 5153
objects / 278536 bytes in 469ms
09-29 09:49:53.680: INFO/installd(35): unlink /data/dalvik-cache/
d...@app@si.trendnet.android.terra-1@classes.dex
09-29 09:49:53.710: DEBUG/AndroidRuntime(1306): Shutting down VM
09-29 09:49:53.740: DEBUG/dalvikvm(1306): Debugger has detached;
object registry had 1 entries
09-29 09:49:53.780: INFO/AndroidRuntime(1306): NOTE: attach of thread
'Binder Thread #3' failed
09-29 09:49:54.890: DEBUG/AndroidRuntime(1319): 
AndroidRuntime START 
09-29 09:49:54.890: DEBUG/AndroidRuntime(1319): CheckJNI is ON
09-29 09:49:55.410: DEBUG/AndroidRuntime(1319): --- registering native
functions ---
09-29 09:49:57.040: 

[android-developers] Re: Display pdf file using webview

2010-09-29 Thread viktor
Yes, the same problem with PDF, for displaying is need additional
soft, in iPhone it is more flexible.

I don't understand why powerful Google doesn't implement it yet!!!

On 17 Вер, 09:48, Kumar Bibek coomar@gmail.com wrote:
 Does desktop browsers support displaying PDFs without additional
 plugins??? No. So, you cannot display PDFs on a WebView till, it
 supports such a feature is available. As of now, there's no such
 thing.

 And the WebView you are seeing when you open the file after
 downloading it, it's not a webview. It's apdfreader app.

 -Kumar Bibekhttp://techdroid.kbeanie.com

 On Sep 16, 4:33 pm, mindus contactkri...@gmail.com wrote:



  Hi
    I can able to displaypdffile (download to the device and using
  package manager dispaly it).

   The above things are working fine if the url ends with .pdf
  extension. But it is not working if thepdfurl ends with doc+2+pdf.

  Any idea how to displaypdffile (pdfurl ends wih doc+2+pdf)

  Thanks
  mindus

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Bug in Android 2.2 with move to sdcard home screen shortcuts?

2010-09-29 Thread Pent
 Unfortunately the exception could only happen in Home when it ultimately
 tries to persist itself, which is long after the app is involved, so any
 exception would result in home crashing.

An error message would be fine.

This one just got me too.

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: Samsung Galaxy Android 2.1(Eclair) For Testing

2010-09-29 Thread Kumar Bibek
Depends on what kind of testing you want to do. To test functionality
of your app, any fun is fine. But if you want to test your app for
different screen sizes and resolutions, you will have to get a few of
them.

-Kumar Bibek
http://techdroid.kbeanie.com

On Sep 29, 2:03 pm, Ajmer singh ajmer.si...@evontech.com wrote:
 Hi

 Please suggest me some Android based phone in india for testing purpose,Is
 Samsung Galaxy Series Android2.1(Eclair) suitable for testing the Android
 applications.

 Please respond Have anyone used Samsung Galaxy Android 2.1(Eclair) for
 testing.I need to buy a android phone for testing purpose.

 --
 *Thanks and Regards
 Ajmer Singh*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Payment on updates?

2010-09-29 Thread { Devdroid }
Competitors perhaps? Or common idiot user (that type who
gives 1 star and claims in comment your apps i.e. contains
ads or any other imaginary obstacle)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Payment on updates?

2010-09-29 Thread { Devdroid }
On 29 September 2010 11:34, Pieter pie...@gamesquare.nl wrote:
 I received the following comment today:
 Is there a technical reason why any user would need to pay again after
 we bring out an update?

If it's update then no. Side note - contact google and ask for removal
of these coments - these are agains commenting MArket rules so
it should be no problem.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Passing arguments to JSON c# .net web service

2010-09-29 Thread Kostya Vasilyev

 29.09.2010 13:53, titleist пишет:

09-29 09:50:09.370: ERROR/Groshie:(1327): Connect to /
172.17.1.62:5 timed out


Your connection is timing out, not connecting. Check the IP and port.


09-29 09:50:09.540: DEBUG/Error:(1327): Failed parsing JSON source:
java.io.stringrea...@43e71b80 to Json


You are not correctly passing data to JSON library code.

Google for Failed parsing JSON source.

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

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


[android-developers] Re: Passing arguments to JSON c# .net web service

2010-09-29 Thread titleist
172.17.1.62 is my local ip address, port 5 is the port of asp.net
development server on my computer, and is 100% correct. I checked it
few times and there is no mistake with ip or port in android
application.

On 29 sep., 12:12, Kostya Vasilyev kmans...@gmail.com wrote:
   29.09.2010 13:53, titleist пишет:

  09-29 09:50:09.370: ERROR/Groshie:(1327): Connect to /
  172.17.1.62:5 timed out

 Your connection is timing out, not connecting. Check the IP and port.

  09-29 09:50:09.540: DEBUG/Error:(1327): Failed parsing JSON source:
  java.io.stringrea...@43e71b80 to Json

 You are not correctly passing data to JSON library code.

 Google for Failed parsing JSON source.

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

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


Re: [android-developers] Re: Passing arguments to JSON c# .net web service

2010-09-29 Thread Kostya Vasilyev

 Ok, that's good.

How are you making sure this IP address is reachable from the phone?

And how are you opening the port on the development computer?

-- Kostya

29.09.2010 14:24, titleist пишет:

172.17.1.62 is my local ip address, port 5 is the port of asp.net
development server on my computer, and is 100% correct. I checked it
few times and there is no mistake with ip or port in android
application.

On 29 sep., 12:12, Kostya Vasilyevkmans...@gmail.com  wrote:

   29.09.2010 13:53, titleist пишет:


09-29 09:50:09.370: ERROR/Groshie:(1327): Connect to /
172.17.1.62:5 timed out

Your connection is timing out, not connecting. Check the IP and port.


09-29 09:50:09.540: DEBUG/Error:(1327): Failed parsing JSON source:
java.io.stringrea...@43e71b80 to Json

You are not correctly passing data to JSON library code.

Google for Failed parsing JSON source.

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



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

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


[android-developers] Confirmation when mail has been sent

2010-09-29 Thread Amit
HI All,

I am using the configured mail applications on the device to send e-
mail from my android application.

When the user has actually send the mail, I want to know whether the
mail has been sent or not? How can i get the same information back in
my Android application.

Here is my current code snippet-

intent = new Intent(Intent.ACTION_SEND);
intent.setType(text/plain);
intent.putExtra(Intent.EXTRA_SUBJECT, my subject);
intent.putExtra(Intent.EXTRA_TEXT, msgBody);
try {
startActivity(Intent.createChooser(intent,Select Any));
}catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(this, There are no email clients installed.,
Toast.LENGTH_SHORT).show();


Kindly Help

Best Regards
Amit

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Confirmation when mail has been sent

2010-09-29 Thread Mark Murphy
On Wed, Sep 29, 2010 at 7:02 AM, Amit amitmishr...@gmail.com wrote:
 When the user has actually send the mail, I want to know whether the
 mail has been sent or not?

Sorry, but that is not part of the ACTION_SEND system, as far as I know.

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

Android Training in London: http://skillsmatter.com/go/os-mobile-server

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Passing arguments to JSON c# .net web service

2010-09-29 Thread titleist
I selected properties of my web service and i selected web tab, than
server and i selected specific port and i entered it(5). On the
bottom right side (where the clock is by default in windows) when i
expand, i see that development server is running on port 5. If I
enter only IP address in the emulators browser it returns me the
default page of IIS. And if I enter the address in my computer browser
it works. example: 
http://localhost:5/JSON.asmx/LogInUser?password=1234username=tadej
(I get both, the username and password back from web service, like i
should).



Regards,
Tadej


On 29 sep., 12:54, Kostya Vasilyev kmans...@gmail.com wrote:
   Ok, that's good.

 How are you making sure this IP address is reachable from the phone?

 And how are you opening the port on the development computer?

 -- Kostya

 29.09.2010 14:24, titleist пишет:





  172.17.1.62 is my local ip address, port 5 is the port of asp.net
  development server on my computer, and is 100% correct. I checked it
  few times and there is no mistake with ip or port in android
  application.

  On 29 sep., 12:12, Kostya Vasilyevkmans...@gmail.com  wrote:
     29.09.2010 13:53, titleist пишет:

  09-29 09:50:09.370: ERROR/Groshie:(1327): Connect to /
  172.17.1.62:5 timed out
  Your connection is timing out, not connecting. Check the IP and port.

  09-29 09:50:09.540: DEBUG/Error:(1327): Failed parsing JSON source:
  java.io.stringrea...@43e71b80 to Json
  You are not correctly passing data to JSON library code.

  Google for Failed parsing JSON source.

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

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

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


Re: [android-developers] tool to change ddx to java

2010-09-29 Thread Mark Murphy
On Tue, Sep 28, 2010 at 10:58 PM, cindy ypu01...@yahoo.com wrote:
 Is there any tool we can convert ddx file to java?

What is a ddx file?

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

Android Training in London: http://skillsmatter.com/go/os-mobile-server

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Payment on updates?

2010-09-29 Thread MrChaz
I have a feeling the download notification says 'authorizing' or some
such when you download an update for a paid add.  They may think
they're being charged again.

On Sep 29, 10:34 am, Pieter pie...@gamesquare.nl wrote:
 I received the following comment today:
 Great little appbut you have to pay for every UPGRADE,SO I
 WOULD NOT BUY IT.

 This is the third time I get a comment like this (out of 300+ comments
 in total for the paid version).

 What is it that makes a user think they have to repay after an update?

 Is there a technical reason why any user would need to pay again after
 we bring out an update?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 in getting GPS coordinates in 2.1

2010-09-29 Thread Mark Murphy
On Wed, Sep 29, 2010 at 3:08 AM, Rammi ram...@stellentsoft.com wrote:
 I am having a problem in getting GPS coordinates in 2.1.

 The code i am using right now is working well in 1.6 but when i test
 this same apk in 1.6 device is showing null values

 plz help me to find a way to work with 2.1 devices also

Your 2.1 device has GPS disabled. Or, it is not getting a GPS fix
(e.g., you are indoors).

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

Android 2.2 Programming Books: http://commonsware.com/books

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


Re: [android-developers] Re: Passing arguments to JSON c# .net web service

2010-09-29 Thread Kostya Vasilyev

 Ok, so the computer is reachable and the port is open. So far so good.

I'd recommend you next look at this error message in logcat:

09-29 09:50:09.540: DEBUG/Error:(1327): Failed parsing JSON source:
java.io.stringrea...@43e71b80 to Json


Google finds quite a lot of pages if you search for Failed parsing JSON 
source.


-- Kostya

29.09.2010 15:10, titleist пишет:

I selected properties of my web service and i selected web tab, than
server and i selected specific port and i entered it(5). On the
bottom right side (where the clock is by default in windows) when i
expand, i see that development server is running on port 5. If I
enter only IP address in the emulators browser it returns me the
default page of IIS. And if I enter the address in my computer browser
it works. example: 
http://localhost:5/JSON.asmx/LogInUser?password=1234username=tadej
(I get both, the username and password back from web service, like i
should).



Regards,
Tadej


On 29 sep., 12:54, Kostya Vasilyevkmans...@gmail.com  wrote:

   Ok, that's good.

How are you making sure this IP address is reachable from the phone?

And how are you opening the port on the development computer?

-- Kostya

29.09.2010 14:24, titleist пишет:






172.17.1.62 is my local ip address, port 5 is the port of asp.net
development server on my computer, and is 100% correct. I checked it
few times and there is no mistake with ip or port in android
application.
On 29 sep., 12:12, Kostya Vasilyevkmans...@gmail.comwrote:

29.09.2010 13:53, titleist пишет:

09-29 09:50:09.370: ERROR/Groshie:(1327): Connect to /
172.17.1.62:5 timed out

Your connection is timing out, not connecting. Check the IP and port.

09-29 09:50:09.540: DEBUG/Error:(1327): Failed parsing JSON source:
java.io.stringrea...@43e71b80 to Json

You are not correctly passing data to JSON library code.
Google for Failed parsing JSON source.
--
Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com

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



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

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


[android-developers] settings - is this a ListView ?

2010-09-29 Thread Marco Alexander Schmitz
Hi,

as we all know in the emulator under settings we can configure out
device.

Are these settings views just ListViews?

The have headings and almost every row looks different - a normal
ListView makes all rows look the same ?!

http://www.webinmotion.de/test/masc/device.png

Best regards,
DaRolla

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] settings - is this a ListView ?

2010-09-29 Thread Andrew Brampton
This is a ListView, as it is quite easy to have every row different.
But in fact that Activity is most likely a PreferenceActivity[1] that
takes a lot of the hassle out of creating a ListView and simplifies
handling preferences.

Andrew

[1] 
http://developer.android.com/reference/android/preference/PreferenceActivity.html

On 29 September 2010 12:19, Marco Alexander Schmitz
marco.alexander.schm...@googlemail.com wrote:
 Hi,

 as we all know in the emulator under settings we can configure out
 device.

 Are these settings views just ListViews?

 The have headings and almost every row looks different - a normal
 ListView makes all rows look the same ?!

 http://www.webinmotion.de/test/masc/device.png

 Best regards,
 DaRolla

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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] settings - is this a ListView ?

2010-09-29 Thread Mark Murphy
On Wed, Sep 29, 2010 at 7:19 AM, Marco Alexander Schmitz
marco.alexander.schm...@googlemail.com wrote:
 as we all know in the emulator under settings we can configure out
 device.

 Are these settings views just ListViews?

Yes.

 The have headings and almost every row looks different - a normal
 ListView makes all rows look the same ?!

 http://www.webinmotion.de/test/masc/device.png

You can have as many different types of rows as you want. You just
need an adapter that generates them. A simple adapter, like
ArrayAdapter or SimplerCursorAdapter, cannot do that. You need smarter
row-creation methods, plus override methods like getViewTypeCount()
and getItemViewType().

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

Android 2.2 Programming Books: http://commonsware.com/books

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


Re: [android-developers] settings - is this a ListView ?

2010-09-29 Thread Kostya Vasilyev

 It's a subclass of PreferenceActivity:

http://developer.android.com/reference/android/preference/PreferenceActivity.html

displaying preferences based on an XML file describing them:

http://developer.android.com/resources/samples/ApiDemos/res/xml/preferences.html

-- Kostya

29.09.2010 15:19, Marco Alexander Schmitz пишет:

Hi,

as we all know in the emulator under settings we can configure out
device.

Are these settings views just ListViews?

The have headings and almost every row looks different - a normal
ListView makes all rows look the same ?!

http://www.webinmotion.de/test/masc/device.png

Best regards,
DaRolla




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

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


[android-developers] Re: Confirmation when mail has been sent

2010-09-29 Thread Amit
Thanks mark,

I have changed my code and now I am suing startActivityForResult and
on the onActivityResult i am getting the result code as 0
(RESULT_CANCELED ) instead of -1 (RESULT_OK).

Surprisingly i am able to receive the mails in my inbox.

Why I am not getting -1?





On Sep 29, 4:07 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Sep 29, 2010 at 7:02 AM, Amit amitmishr...@gmail.com wrote:
  When the user has actually send the mail, I want to know whether the
  mail has been sent or not?

 Sorry, but that is not part of the ACTION_SEND system, as far as I know.

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

 Android Training in London:http://skillsmatter.com/go/os-mobile-server

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] VideoView does not display on entire display of android devices

2010-09-29 Thread monty
Hi everyone
   I have an issue with displaying videos on android devices.When any
video is displayed it does not take the entire screen size of device
even though i have given android:layout_width=fill_parent.There will
being some blank space on either sides.for eg.if i have a video of 480
by 320 it will work on 480 by 320 device fine but  on a  device like
say Nexus one  it wont take the entire display of device ,there will
be some blanl spaces on two sides.

  Is this a default feature of android devices or is there a solution
to resolve this ?Why does not the fill_parent attribute work?

thanks
neil

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Confirmation when mail has been sent

2010-09-29 Thread Mark Murphy
On Wed, Sep 29, 2010 at 7:34 AM, Amit amitmishr...@gmail.com wrote:
 I have changed my code and now I am suing startActivityForResult and
 on the onActivityResult i am getting the result code as 0
 (RESULT_CANCELED ) instead of -1 (RESULT_OK).

 Surprisingly i am able to receive the mails in my inbox.

 Why I am not getting -1?

Because this particular mail client does not support
startActivityForResult(), presumably.

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

Android 2.2 Programming Books: http://commonsware.com/books

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


[android-developers] Re: Extremely weird Null Pointer exception. Please help.

2010-09-29 Thread MarcoAndroid

First of all, pressing Back to exit the game doesn't necessarily mean
you game really exits. Android keeps Activities around and will only
really destroy it if it needs to.

Secondly: nowhere in your app you are setting mLunarThread to null? If
you are, then potentially that's causing it. Yes this is an open door
but just in case :) If you're not doing that anywhere, then it means
the onSharedPreferenceChanged code gets executed before mLunarThread
is set. To figure out what's going on, I suggest my third tip:

Thirdly: add lots more debug statements. Add it when entering
onSharedPreferenceChanged() and all the if/else parts, so you can
clearly see when it's called. Then also put a debug statement in
(almost) all Activity lifecycle methods: onCreate(), onStart(),
onResume() etc. Also put a log statement right before *any* access to
mLunarThread showing its value. If you're using a PreferenceActivity,
also put in debug statements in its onCreate() and get/set methods.
That way you can follow much better what's going on and see when
mLunarThread changes. Potentially you can set a dynamic breakpoint to
via the debugger, I haven't tried that for regular expressions.

Tip: you might want to use a PreferenceActivity instead for clearer
separation. Or is this not possible in the way your game is setup?


On 29 sep, 09:59, Kakyoin lgmc...@gmail.com wrote:
 To point out the problem:

 How did mLunarThread object suddenly become null  at line 352 of
 GameActivity.java ??

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: locale change does not affect menu

2010-09-29 Thread Adrian Vintu
Hi Engin,

I also noticed this behaviour - albeit, only in the emulator. I cannot test
on a 2.2 phone.

Unfortunately, I did have enough time to find out why this happens, so I
made a hack.

First, some info: this resetting of the locale probably happens somewhere
after the onResume(). This means that not only the menu gets reset to the
default locale, but also, for example, in onTextChanged if we show a
validation message, this message will also be displayed in the default
system locale.

What I did is identify the key events that can happen in my application
AFTER the onResume.

I see that the user will either:
a. onPrepareOptionsMenu
or
b. onTextChanged

So two events - pretty easy for me.

I added in those methods something like this:

if (!hasSetLocaleSpecial)
{
setLocale();

hasSetLocaleSpecial = true;
}

Basically, I am calling the setLocale again, in the FIRST event that can
happen after onResume.

It is a horrible hack, but until I can get more info on why this happens, I
will stick to it.

I hope this will help you a little bit.

Best Regards,
Adrian Vintu
http://adrianvintu.com

PS another developer asked this question, but until now, no answer
http://groups.google.com/group/android-developers/browse_thread/thread/3c9b74cb8eb555e9/7ead8fd7ada84233?hl=en



On Wed, Jul 28, 2010 at 3:24 PM, Engin Arslan enginarsla...@gmail.comwrote:

 Richard,

 no it is not what i am trying to do.
 Suppose that I have an telephone which does not support Germany but i
 want to develop application supporting many languages as well as
 Germany . if the only way of changing language of application is
 changing Locale from telephone settings , it is impossible to .
 To summarize , i only want user to be able to choose my application
 language using application's settings. I partially achieved this using
 site that ı posted link. however, menu does not change when ı apply
 that way

 On Jul 28, 2:57 pm, RichardC richard.crit...@googlemail.com wrote:
  For multi-language apps you don't need to do any of this. Have a read
  of localization in the docs:
 http://developer.android.com/guide/topics/resources/localization.html
  you will get the collect localized resources loaded automatically by
  the platform.
 
  If however you are trying to switch language/localein a running app,
  then as DH pointed out the platform does not support this.
 
  I have not looked into the platform code for lanuage/locale(s) but I
  suppect that Android has no concept of an applicaton onlylocaleonly
  systemlocale.  If I am correct then are you trying to change thelocalefor
 the whole system?
 
  On Jul 28, 12:41 pm, Engin Arslan enginarsla...@gmail.com wrote:
 
 
 
   Hi,
 
   i am not trying to fight with system. i am just trying to publish
   application having multilanguage capability. so this should not be
   fighting.
Whatever,
 http://adrianvintu.com/blogengine/post/Force-Locale-on-Android.aspx
   in this link i have found alternative way of doing this. by this way
   all texts changed proposed language, however there is still problem in
   Menu even if i recreatemenuafter changinglocale.
 
   On Jul 27, 5:00 pm, RichardC richard.crit...@googlemail.com wrote:
 
You have already asked this and got a - don't do this - reply from
Dianne Hackborn.
 
DH  You are blowing away the current configuration in the resources
with your
own you have created that is not initialized.  Things aren't going to
work
when you do that.
 
You could improve that by giving it a properly created Configuration,
but I
don't want to help with doing that because what you are trying to do
is
never going to work quite right because you will be fighting with the
platform over what configuration is being used in the resources. 
 
See your previous thread:
 http://groups.google.com/group/android-developers/browse_thread/threa...
 
On Jul 27, 1:42 pm, Engin Arslan enginarsla...@gmail.com wrote:
 
 any ideas?
 
 On Jul 23, 3:17 pm, Engin Arslan enginarsla...@gmail.com wrote:
 
  Specifically,menulanguage changes to English (which is default
  language) when I try to changelocale. And then it does not change
 any
  other language
 
  On Jul 23, 2:18 pm, Engin Arslan enginarsla...@gmail.com
 wrote:
 
   Hi all,
 
   I am developing application in which user can choose
 application
   language. To achieve this, I am changing Locale as follows:
  Localelocale= newLocale(language code here);
  Locale.setDefault(locale);
   Configuration config = new Configuration();
   config.locale=locale;
  
 getBaseContext().getResources().updateConfiguration(config,
   getResources().getDisplayMetrics());
   and restart activity in following way:
 
  
 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
  
 

[android-developers] Re: Confirmation when mail has been sent

2010-09-29 Thread Amit
In that case what may be the solution?

On Sep 29, 4:36 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Sep 29, 2010 at 7:34 AM, Amit amitmishr...@gmail.com wrote:
  I have changed my code and now I am suing startActivityForResult and
  on the onActivityResult i am getting the result code as 0
  (RESULT_CANCELED ) instead of -1 (RESULT_OK).

  Surprisingly i am able to receive the mails in my inbox.

  Why I am not getting -1?

 Because this particular mail client does not support
 startActivityForResult(), presumably.

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

 Android 2.2 Programming Books:http://commonsware.com/books

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


[android-developers] how to save the state of checked item in ListView having Checkbox

2010-09-29 Thread RKJ (Android developer)
Hi,
I'm new to android, please help me how to save the state of checkbox,

i.e.

I've ListView with checkbox, three textview and again checkbox.
I wish to save the checked state of item(s),

how to save the state of checkbox.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] VideoView does not display on entire display of android devices

2010-09-29 Thread Mark Murphy
On Wed, Sep 29, 2010 at 7:35 AM, monty neilm30s...@gmail.com wrote:
   I have an issue with displaying videos on android devices.When any
 video is displayed it does not take the entire screen size of device
 even though i have given android:layout_width=fill_parent.There will
 being some blank space on either sides.for eg.if i have a video of 480
 by 320 it will work on 480 by 320 device fine but  on a  device like
 say Nexus one  it wont take the entire display of device ,there will
 be some blanl spaces on two sides.

Of course. That is what your users want.

  Is this a default feature of android devices or is there a solution
 to resolve this ?Why does not the fill_parent attribute work?

It does work.

The ratio of 480 to 320 is 3:2. The ratio of 800 to 480 is 5:3. You
cannot fill a 5:3 screen with a 3:2 video and maintain the original
aspect ratio. Hence, VideoView will expand the video (maintaining
aspect ratio) until it runs out of room on one axis.

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

Android 2.2 Programming Books: http://commonsware.com/books

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


Re: [android-developers] Re: Confirmation when mail has been sent

2010-09-29 Thread Mark Murphy
On Wed, Sep 29, 2010 at 7:40 AM, Amit amitmishr...@gmail.com wrote:
 In that case what may be the solution?

It is none of your business when the email is actually sent. That is
up to the user, their email client, and their email client
configuration.

If you feel it is your business when the data in the email is actually
sent, then you should not be using ACTION_SEND (e.g., use HttpClient
and deliver your data to a Web service).

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

Android 2.2 Programming Books: http://commonsware.com/books

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


Re: [android-developers] Re: User-set Locale always get reset after onCreate?

2010-09-29 Thread Adrian Vintu
Hi Yuku,

Please read my post here:
http://groups.google.com/group/android-developers/browse_thread/thread/5440163027722168/a0b2f1003843bd5b?hl=en

BR,
Adrian Vintu
http://adrianvintu.com


On Tue, Sep 14, 2010 at 8:11 PM, yuku yuk...@gmail.com wrote:

 Just noticed that this topic disappeared from the Discussion section
 of the group page.
 I found this using google web search engine.

 I wonder why?

 On Sep 14, 1:29 pm, yuku yuk...@gmail.com wrote:
  I want to have a configurable language settings in my app.
 
  So, in onCreate of my activity, I call Resources.updateConfiguration
  with the new locale.
 
  However, after onCreate (at some time, I can't find it when), the
  locale is set back to the default locale.
 
  On the code example below, the strings shown in the main layout (as
  inflated by setContentView) shows the
  in language version, BUT when I press the menu button, on which
  onCreateMenu is called, the strings is
  taken from the en (default) locale.
 
  The log shows this:
   18337   oncreate  D  { scale=1.0 imsi=525/1 loc=in
  touch=3 keys=1/1/2 nav=3/1 orien=1 layout=34 uiMode=17 seq=143}
   30430ActivityManager  I  Displayed activity
  yuku.coba.locale/.CobaLocaleActivity: 266 ms (total 266 ms)
   18337KeyCharacterMap  W  No keyboard for id 65540
   18337KeyCharacterMap  W  Using default keymap: /system/usr/
  keychars/qwerty.kcm.bin
   18337   onmenu  D  { scale=1.0 imsi=525/1 loc=en_GB
  touch=3 keys=1/1/2 nav=3/1 orien=1 layout=34 uiMode=17 seq=143}
 
  Between oncreate and onmenu, the locale magically changes.
 
  Please help, I have been tinkering with this with no luck.
 
  Thanks,
  Yuku
 
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
 
  Configuration c = new Configuration();
  c.locale = new Locale(in);
  getResources().updateConfiguration(c, null);
 
  setContentView(R.layout.main);
  Log.d(oncreate, getResources().getConfiguration().toString());
  }
 
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
  Log.d(onmenu, getResources().getConfiguration().toString());
  new MenuInflater(this).inflate(R.menu.utama, menu);
 
  return true;
  }

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: LVL -- where to specify params for Server policies?

2010-09-29 Thread MarcoAndroid
Are you talking about VT, GT, GR?

Those you can't set in the Market/dev-console yourself. When you're
running in test mode they are not filled, so you see in the logcat
that they get set to some default value e.g 1 minute MILLIS_PER_MINUTE
for mValidityTimestamp in ServerManagedPolicy.setValidityTimestamp().
When published you'll get real more useful values (apparently).

I guess you can change the logic in setValidityTimestamp to not obey
the VT, GT, GR you get back, but why would you if they are sensible
values (are they?)?


On 28 sep, 20:23, DulcetTone dulcett...@gmail.com wrote:
 I do not see within the LVL documentation and example app who/what/
 where you specify the frequency with which license checks must be
 performed.

 I would expect that we could just new up a ServerManagedPolicy and set
 these parameters on it.

 Are we intended to modify the actual file ServerManagedPolicy.java
 (rather than subclass it) to overwrite the private final statics
 therein?

 I see that some of this comes via extras on the Intent... but that
 seems to imply to me that the Market console will have a place from
 where I specify these parameters, as it is the source of these extras
 (I'd guess?)

 Confused...

 tone

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


[android-developers] Adding Java JCE provider statically as part of Android

2010-09-29 Thread Kamal
Hi,
Is there a way to load Java JCE provider statically as part of
Android.

Regards,
Kamal.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Synchronization period

2010-09-29 Thread Roman Mazur
Tanks for explanations.

I have one more strange thing with synchronization.
Calling ContentResolver.requestSync does nothing unfortunately. But I expect
the synchronization to start.
Dose anyone know a reason for such a behavior?

On 27 September 2010 16:09, Roman Mazur mazur.ro...@gmail.com wrote:




 -- Forwarded message --
 From: Jens dunkingbikk...@gmail.com
 Date: Sep 26, 11:50 pm
 Subject: Synchronization period
 To: Android Developers


 If you are using 2.2 / api level 8 you could use

 http://developer.android.com/reference/android/content/ContentResolve...)

 For 2.1 you're going to have to use the AlarmManager to schedule your
 synchronizations.

 On 24 Sep, 13:50, Roman Mazur mazur.ro...@gmail.com wrote:



  What is the method to define a sync period for some account?
  ContentResolver allows to set automatic sync flag only. But what is
  period?
  Have I missed something?
  Or have I to schedule sync requests myself using the AlarmManager?

  Thanks.




-- 
Best regards,
Roman Mazur

Tech Lead at Stanfy (http://stanfy.com.ua)
Skype: roman.mazur.f
LinkedIn: http://ua.linkedin.com/in/romanmazur
Twitter: http://twitter.com/roman_mazur

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Synchronization period

2010-09-29 Thread Roman Mazur
Tanks for explanations.

I have one more strange thing with synchronization.
Calling ContentResolver.requestSync does nothing unfortunately. But I
expect the synchronization to start.
Dose anyone know a reason for such a behavior?

On Sep 26, 11:50 pm, Jens dunkingbikk...@gmail.com wrote:
 If you are using 2.2 / api level 8 you could use

 http://developer.android.com/reference/android/content/ContentResolve...)

 For 2.1 you're going to have to use the AlarmManager to schedule your
 synchronizations.

 On 24 Sep, 13:50, Roman Mazur mazur.ro...@gmail.com wrote:



  What is the method to define asyncperiodfor some account?
  ContentResolver allows to set automaticsyncflag only. But what is
 period?
  Have I missed something?
  Or have I to schedulesyncrequests myself using the AlarmManager?

  Thanks.

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


Re: [android-developers] Re: Synchronization period

2010-09-29 Thread Connick
I don't believe you can rely on a sync request to be executed on
immediately. It will be added to the queue of accounts to be synchronized
which means it may take a number of seconds before action is taken. Also, be
sure that sync is not turned off under Accounts  sync.

Cheers,
Stacy


On Wed, Sep 29, 2010 at 8:10 AM, Roman Mazur mazur.ro...@gmail.com wrote:

 Tanks for explanations.

 I have one more strange thing with synchronization.
 Calling ContentResolver.requestSync does nothing unfortunately. But I
 expect the synchronization to start.
 Dose anyone know a reason for such a behavior?

 On 27 September 2010 16:09, Roman Mazur mazur.ro...@gmail.com wrote:




 -- Forwarded message --
 From: Jens dunkingbikk...@gmail.com
 Date: Sep 26, 11:50 pm
 Subject: Synchronization period
 To: Android Developers


 If you are using 2.2 / api level 8 you could use

 http://developer.android.com/reference/android/content/ContentResolve...)

 For 2.1 you're going to have to use the AlarmManager to schedule your
 synchronizations.

 On 24 Sep, 13:50, Roman Mazur mazur.ro...@gmail.com wrote:



  What is the method to define a sync period for some account?
  ContentResolver allows to set automatic sync flag only. But what is
  period?
  Have I missed something?
  Or have I to schedule sync requests myself using the AlarmManager?

  Thanks.




 --
 Best regards,
 Roman Mazur

 Tech Lead at Stanfy (http://stanfy.com.ua)
 Skype: roman.mazur.f
 LinkedIn: http://ua.linkedin.com/in/romanmazur
 Twitter: http://twitter.com/roman_mazur

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: locale change does not affect menu

2010-09-29 Thread Adrian Vintu
I also added a setLocale in onStart and onConfigurationChanged, but this is
really getting out of control :(

BR,
Adrian Vintu
http://adrianvintu.com


On Wed, Sep 29, 2010 at 1:38 PM, Adrian Vintu adrianvi...@gmail.com wrote:

 Hi Engin,

 I also noticed this behaviour - albeit, only in the emulator. I cannot test
 on a 2.2 phone.

 Unfortunately, I did have enough time to find out why this happens, so I
 made a hack.

 First, some info: this resetting of the locale probably happens somewhere
 after the onResume(). This means that not only the menu gets reset to the
 default locale, but also, for example, in onTextChanged if we show a
 validation message, this message will also be displayed in the default
 system locale.

 What I did is identify the key events that can happen in my application
 AFTER the onResume.

 I see that the user will either:
 a. onPrepareOptionsMenu
 or
 b. onTextChanged

 So two events - pretty easy for me.

 I added in those methods something like this:

 if (!hasSetLocaleSpecial)
 {
 setLocale();

 hasSetLocaleSpecial = true;
 }

 Basically, I am calling the setLocale again, in the FIRST event that can
 happen after onResume.

 It is a horrible hack, but until I can get more info on why this happens, I
 will stick to it.

 I hope this will help you a little bit.

 Best Regards,
 Adrian Vintu
 http://adrianvintu.com

 PS another developer asked this question, but until now, no answer
 http://groups.google.com/group/android-developers/browse_thread/thread/3c9b74cb8eb555e9/7ead8fd7ada84233?hl=en




 On Wed, Jul 28, 2010 at 3:24 PM, Engin Arslan enginarsla...@gmail.comwrote:

 Richard,

 no it is not what i am trying to do.
 Suppose that I have an telephone which does not support Germany but i
 want to develop application supporting many languages as well as
 Germany . if the only way of changing language of application is
 changing Locale from telephone settings , it is impossible to .
 To summarize , i only want user to be able to choose my application
 language using application's settings. I partially achieved this using
 site that ı posted link. however, menu does not change when ı apply
 that way

 On Jul 28, 2:57 pm, RichardC richard.crit...@googlemail.com wrote:
  For multi-language apps you don't need to do any of this. Have a read
  of localization in the docs:
 http://developer.android.com/guide/topics/resources/localization.html
  you will get the collect localized resources loaded automatically by
  the platform.
 
  If however you are trying to switch language/localein a running app,
  then as DH pointed out the platform does not support this.
 
  I have not looked into the platform code for lanuage/locale(s) but I
  suppect that Android has no concept of an applicaton onlylocaleonly
  systemlocale.  If I am correct then are you trying to change
 thelocalefor the whole system?
 
  On Jul 28, 12:41 pm, Engin Arslan enginarsla...@gmail.com wrote:
 
 
 
   Hi,
 
   i am not trying to fight with system. i am just trying to publish
   application having multilanguage capability. so this should not be
   fighting.
Whatever,
 http://adrianvintu.com/blogengine/post/Force-Locale-on-Android.aspx
   in this link i have found alternative way of doing this. by this way
   all texts changed proposed language, however there is still problem in
   Menu even if i recreatemenuafter changinglocale.
 
   On Jul 27, 5:00 pm, RichardC richard.crit...@googlemail.com wrote:
 
You have already asked this and got a - don't do this - reply from
Dianne Hackborn.
 
DH  You are blowing away the current configuration in the
 resources
with your
own you have created that is not initialized.  Things aren't going
 to
work
when you do that.
 
You could improve that by giving it a properly created
 Configuration,
but I
don't want to help with doing that because what you are trying to do
is
never going to work quite right because you will be fighting with
 the
platform over what configuration is being used in the resources. 
 
See your previous thread:
 http://groups.google.com/group/android-developers/browse_thread/threa...
 
On Jul 27, 1:42 pm, Engin Arslan enginarsla...@gmail.com wrote:
 
 any ideas?
 
 On Jul 23, 3:17 pm, Engin Arslan enginarsla...@gmail.com wrote:
 
  Specifically,menulanguage changes to English (which is default
  language) when I try to changelocale. And then it does not
 change any
  other language
 
  On Jul 23, 2:18 pm, Engin Arslan enginarsla...@gmail.com
 wrote:
 
   Hi all,
 
   I am developing application in which user can choose
 application
   language. To achieve this, I am changing Locale as follows:
  Localelocale= newLocale(language code here);
  Locale.setDefault(locale);
   Configuration config = new Configuration();
   config.locale=locale;

[android-developers] Request synchronization

2010-09-29 Thread Roman Mazur
I have a strange thing with synchronization.
Calling ContentResolver.requestSync does nothing unfortunately. But I
expect the synchronization to start.
Dose anyone know a reason for such a behavior?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Passing arguments to JSON c# .net web service

2010-09-29 Thread titleist
I think that this problem appears because input is not in appropriate
format. If I comment these lines for parsing I still get error for
connection.. And in logcat it's now the only error still left. Once
again logcat:



09-29 12:30:54.389: DEBUG/dalvikvm(190): GC_EXPLICIT freed 226
objects / 15152 bytes in 111ms
09-29 12:30:54.569: DEBUG/PackageParser(60): Scanning package: /data/
app/vmdl59240.tmp
09-29 12:30:55.189: INFO/PackageManager(60): Removing non-system
package:si.trendnet.android.terra
09-29 12:30:55.189: INFO/ActivityManager(60): Force stopping package
si.trendnet.android.terra uid=10032
09-29 12:30:55.289: INFO/Process(60): Sending signal. PID: 1511 SIG: 9
09-29 12:30:55.349: INFO/WindowManager(60): WIN DEATH: Window{44043510
si.trendnet.android.terra/si.trendnet.android.terra.Home paused=false}
09-29 12:30:55.399: INFO/UsageStats(60): Unexpected resume of
com.android.launcher while already resumed in
si.trendnet.android.terra
09-29 12:30:55.759: DEBUG/dalvikvm(60): GC_FOR_MALLOC freed 13092
objects / 688072 bytes in 288ms
09-29 12:30:55.949: WARN/InputManagerService(60): Got RemoteException
sending setActive(false) notification to pid 1511 uid 10032
09-29 12:30:56.799: DEBUG/PackageManager(60): Scanning package
si.trendnet.android.terra
09-29 12:30:56.820: INFO/PackageManager(60): Package
si.trendnet.android.terra codePath changed from /data/app/
si.trendnet.android.terra-2.apk to /data/app/
si.trendnet.android.terra-1.apk; Retaining data and using new
09-29 12:30:56.829: INFO/PackageManager(60): /data/app/
si.trendnet.android.terra-1.apk changed; unpacking
09-29 12:30:56.879: DEBUG/installd(35): DexInv: --- BEGIN '/data/app/
si.trendnet.android.terra-1.apk' ---
09-29 12:30:58.379: DEBUG/dalvikvm(1526): DexOpt: load 130ms, verify
840ms, opt 28ms
09-29 12:30:58.479: DEBUG/installd(35): DexInv: --- END '/data/app/
si.trendnet.android.terra-1.apk' (success) ---
09-29 12:30:58.490: WARN/PackageManager(60): Code path for pkg :
si.trendnet.android.terra changing from /data/app/
si.trendnet.android.terra-2.apk to /data/app/
si.trendnet.android.terra-1.apk
09-29 12:30:58.490: WARN/PackageManager(60): Resource path for pkg :
si.trendnet.android.terra changing from /data/app/
si.trendnet.android.terra-2.apk to /data/app/
si.trendnet.android.terra-1.apk
09-29 12:30:58.490: DEBUG/PackageManager(60):   Activities:
si.trendnet.android.terra.Home si.trendnet.android.terra.page1
si.trendnet.android.terra.main_menu
si.trendnet.android.terra.Mobile_Status_History
si.trendnet.android.terra.Service_Desk
si.trendnet.android.terra.Configuration
si.trendnet.android.terra.Settings_Info
si.trendnet.android.terra.settings_login
si.trendnet.android.terra.settings_url
09-29 12:30:58.509: INFO/ActivityManager(60): Force stopping package
si.trendnet.android.terra uid=10032
09-29 12:30:58.919: INFO/installd(35): move /data/dalvik-cache/
d...@app@si.trendnet.android.terra-1@classes.dex - /data/dalvik-
cache/d...@app@si.trendnet.android.terra-1@classes.dex
09-29 12:30:58.929: DEBUG/PackageManager(60): New package installed
in /data/app/si.trendnet.android.terra-1.apk
09-29 12:30:59.279: INFO/ActivityManager(60): Force stopping package
si.trendnet.android.terra uid=10032
09-29 12:30:59.449: DEBUG/dalvikvm(134): GC_EXPLICIT freed 322
objects / 16400 bytes in 138ms
09-29 12:30:59.739: DEBUG/dalvikvm(1421): GC_EXPLICIT freed 1549
objects / 78272 bytes in 242ms
09-29 12:31:00.180: WARN/RecognitionManagerService(60): no available
voice recognition services found
09-29 12:31:00.639: DEBUG/dalvikvm(60): GC_EXPLICIT freed 7592
objects / 477664 bytes in 210ms
09-29 12:31:01.020: INFO/installd(35): unlink /data/dalvik-cache/
d...@app@si.trendnet.android.terra-2@classes.dex
09-29 12:31:01.250: DEBUG/AndroidRuntime(1519): Shutting down VM
09-29 12:31:01.270: DEBUG/dalvikvm(1519): Debugger has detached;
object registry had 1 entries
09-29 12:31:02.580: DEBUG/AndroidRuntime(1532): 
AndroidRuntime START 
09-29 12:31:02.580: DEBUG/AndroidRuntime(1532): CheckJNI is ON
09-29 12:31:03.010: DEBUG/AndroidRuntime(1532): --- registering native
functions ---
09-29 12:31:04.750: INFO/ActivityManager(60): Starting activity:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x1000
cmp=si.trendnet.android.terra/.Home }
09-29 12:31:04.900: DEBUG/AndroidRuntime(1532): Shutting down VM
09-29 12:31:04.920: DEBUG/dalvikvm(1532): Debugger has detached;
object registry had 1 entries
09-29 12:31:05.010: INFO/AndroidRuntime(1532): NOTE: attach of thread
'Binder Thread #3' failed
09-29 12:31:05.060: INFO/ActivityManager(60): Start proc
si.trendnet.android.terra for activity
si.trendnet.android.terra/.Home: pid=1539 uid=10032 gids={3003}
09-29 12:31:06.590: ERROR/WebGetURL:(1539):
http://172.17.1.62:5/JSON.asmx/LogInUser?password=1234username=tadej
09-29 12:31:14.851: WARN/ActivityManager(60): Launch timeout has
expired, giving up wake lock!
09-29 12:31:15.785: WARN/ActivityManager(60): Activity idle timeout

Re: [android-developers] Confirmation when mail has been sent

2010-09-29 Thread { Devdroid }
On 29 September 2010 13:02, Amit amitmishr...@gmail.com wrote:
 HI All,

 I am using the configured mail applications on the device to send e-
 mail from my android application.

 When the user has actually send the mail, I want to know whether the
 mail has been sent or not? How can i get the same information back in
 my Android application.

You can't. Basically please note you are not sending the mail as you falsely
believe. You are passing some data to external application which claims
it knows how to send it. But these two are NOT equal. If you want to
ensure mail is sent, you have to deal with it yourself, but I'd rather
not recommend these unless you really got a valid reason to.

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


Re: [android-developers] Re: Passing arguments to JSON c# .net web service

2010-09-29 Thread Kostya Vasilyev
 What happens if you change the address in your Android code to 
10.0.2.2? Keep the port number, just change the address.


-- Kostya

29.09.2010 16:35, titleist пишет:

I think that this problem appears because input is not in appropriate
format. If I comment these lines for parsing I still get error for
connection.. And in logcat it's now the only error still left. Once
again logcat:



09-29 12:30:54.389: DEBUG/dalvikvm(190): GC_EXPLICIT freed 226
objects / 15152 bytes in 111ms
09-29 12:30:54.569: DEBUG/PackageParser(60): Scanning package: /data/
app/vmdl59240.tmp
09-29 12:30:55.189: INFO/PackageManager(60): Removing non-system
package:si.trendnet.android.terra
09-29 12:30:55.189: INFO/ActivityManager(60): Force stopping package
si.trendnet.android.terra uid=10032
09-29 12:30:55.289: INFO/Process(60): Sending signal. PID: 1511 SIG: 9
09-29 12:30:55.349: INFO/WindowManager(60): WIN DEATH: Window{44043510
si.trendnet.android.terra/si.trendnet.android.terra.Home paused=false}
09-29 12:30:55.399: INFO/UsageStats(60): Unexpected resume of
com.android.launcher while already resumed in
si.trendnet.android.terra
09-29 12:30:55.759: DEBUG/dalvikvm(60): GC_FOR_MALLOC freed 13092
objects / 688072 bytes in 288ms
09-29 12:30:55.949: WARN/InputManagerService(60): Got RemoteException
sending setActive(false) notification to pid 1511 uid 10032
09-29 12:30:56.799: DEBUG/PackageManager(60): Scanning package
si.trendnet.android.terra
09-29 12:30:56.820: INFO/PackageManager(60): Package
si.trendnet.android.terra codePath changed from /data/app/
si.trendnet.android.terra-2.apk to /data/app/
si.trendnet.android.terra-1.apk; Retaining data and using new
09-29 12:30:56.829: INFO/PackageManager(60): /data/app/
si.trendnet.android.terra-1.apk changed; unpacking
09-29 12:30:56.879: DEBUG/installd(35): DexInv: --- BEGIN '/data/app/
si.trendnet.android.terra-1.apk' ---
09-29 12:30:58.379: DEBUG/dalvikvm(1526): DexOpt: load 130ms, verify
840ms, opt 28ms
09-29 12:30:58.479: DEBUG/installd(35): DexInv: --- END '/data/app/
si.trendnet.android.terra-1.apk' (success) ---
09-29 12:30:58.490: WARN/PackageManager(60): Code path for pkg :
si.trendnet.android.terra changing from /data/app/
si.trendnet.android.terra-2.apk to /data/app/
si.trendnet.android.terra-1.apk
09-29 12:30:58.490: WARN/PackageManager(60): Resource path for pkg :
si.trendnet.android.terra changing from /data/app/
si.trendnet.android.terra-2.apk to /data/app/
si.trendnet.android.terra-1.apk
09-29 12:30:58.490: DEBUG/PackageManager(60):   Activities:
si.trendnet.android.terra.Home si.trendnet.android.terra.page1
si.trendnet.android.terra.main_menu
si.trendnet.android.terra.Mobile_Status_History
si.trendnet.android.terra.Service_Desk
si.trendnet.android.terra.Configuration
si.trendnet.android.terra.Settings_Info
si.trendnet.android.terra.settings_login
si.trendnet.android.terra.settings_url
09-29 12:30:58.509: INFO/ActivityManager(60): Force stopping package
si.trendnet.android.terra uid=10032
09-29 12:30:58.919: INFO/installd(35): move /data/dalvik-cache/
d...@app@si.trendnet.android.terra-1@classes.dex -  /data/dalvik-
cache/d...@app@si.trendnet.android.terra-1@classes.dex
09-29 12:30:58.929: DEBUG/PackageManager(60): New package installed
in /data/app/si.trendnet.android.terra-1.apk
09-29 12:30:59.279: INFO/ActivityManager(60): Force stopping package
si.trendnet.android.terra uid=10032
09-29 12:30:59.449: DEBUG/dalvikvm(134): GC_EXPLICIT freed 322
objects / 16400 bytes in 138ms
09-29 12:30:59.739: DEBUG/dalvikvm(1421): GC_EXPLICIT freed 1549
objects / 78272 bytes in 242ms
09-29 12:31:00.180: WARN/RecognitionManagerService(60): no available
voice recognition services found
09-29 12:31:00.639: DEBUG/dalvikvm(60): GC_EXPLICIT freed 7592
objects / 477664 bytes in 210ms
09-29 12:31:01.020: INFO/installd(35): unlink /data/dalvik-cache/
d...@app@si.trendnet.android.terra-2@classes.dex
09-29 12:31:01.250: DEBUG/AndroidRuntime(1519): Shutting down VM
09-29 12:31:01.270: DEBUG/dalvikvm(1519): Debugger has detached;
object registry had 1 entries
09-29 12:31:02.580: DEBUG/AndroidRuntime(1532):
AndroidRuntime START
09-29 12:31:02.580: DEBUG/AndroidRuntime(1532): CheckJNI is ON
09-29 12:31:03.010: DEBUG/AndroidRuntime(1532): --- registering native
functions ---
09-29 12:31:04.750: INFO/ActivityManager(60): Starting activity:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x1000
cmp=si.trendnet.android.terra/.Home }
09-29 12:31:04.900: DEBUG/AndroidRuntime(1532): Shutting down VM
09-29 12:31:04.920: DEBUG/dalvikvm(1532): Debugger has detached;
object registry had 1 entries
09-29 12:31:05.010: INFO/AndroidRuntime(1532): NOTE: attach of thread
'Binder Thread #3' failed
09-29 12:31:05.060: INFO/ActivityManager(60): Start proc
si.trendnet.android.terra for activity
si.trendnet.android.terra/.Home: pid=1539 uid=10032 gids={3003}
09-29 12:31:06.590: ERROR/WebGetURL:(1539):

[android-developers] Re: Passing arguments to JSON c# .net web service

2010-09-29 Thread titleist
Now it works! Why 10.0.2.2? Now i have to work on parsing error.. I've
uncommented those two lines for parsing and the error is still there.
But still, this is a big break :)  Thank you! I appreciate it.



Regards,
Tadej

On 29 sep., 14:58, Kostya Vasilyev kmans...@gmail.com wrote:
   What happens if you change the address in your Android code to
 10.0.2.2? Keep the port number, just change the address.

 -- Kostya

 29.09.2010 16:35, titleist пишет:





  I think that this problem appears because input is not in appropriate
  format. If I comment these lines for parsing I still get error for
  connection.. And in logcat it's now the only error still left. Once
  again logcat:

  09-29 12:30:54.389: DEBUG/dalvikvm(190): GC_EXPLICIT freed 226
  objects / 15152 bytes in 111ms
  09-29 12:30:54.569: DEBUG/PackageParser(60): Scanning package: /data/
  app/vmdl59240.tmp
  09-29 12:30:55.189: INFO/PackageManager(60): Removing non-system
  package:si.trendnet.android.terra
  09-29 12:30:55.189: INFO/ActivityManager(60): Force stopping package
  si.trendnet.android.terra uid=10032
  09-29 12:30:55.289: INFO/Process(60): Sending signal. PID: 1511 SIG: 9
  09-29 12:30:55.349: INFO/WindowManager(60): WIN DEATH: Window{44043510
  si.trendnet.android.terra/si.trendnet.android.terra.Home paused=false}
  09-29 12:30:55.399: INFO/UsageStats(60): Unexpected resume of
  com.android.launcher while already resumed in
  si.trendnet.android.terra
  09-29 12:30:55.759: DEBUG/dalvikvm(60): GC_FOR_MALLOC freed 13092
  objects / 688072 bytes in 288ms
  09-29 12:30:55.949: WARN/InputManagerService(60): Got RemoteException
  sending setActive(false) notification to pid 1511 uid 10032
  09-29 12:30:56.799: DEBUG/PackageManager(60): Scanning package
  si.trendnet.android.terra
  09-29 12:30:56.820: INFO/PackageManager(60): Package
  si.trendnet.android.terra codePath changed from /data/app/
  si.trendnet.android.terra-2.apk to /data/app/
  si.trendnet.android.terra-1.apk; Retaining data and using new
  09-29 12:30:56.829: INFO/PackageManager(60): /data/app/
  si.trendnet.android.terra-1.apk changed; unpacking
  09-29 12:30:56.879: DEBUG/installd(35): DexInv: --- BEGIN '/data/app/
  si.trendnet.android.terra-1.apk' ---
  09-29 12:30:58.379: DEBUG/dalvikvm(1526): DexOpt: load 130ms, verify
  840ms, opt 28ms
  09-29 12:30:58.479: DEBUG/installd(35): DexInv: --- END '/data/app/
  si.trendnet.android.terra-1.apk' (success) ---
  09-29 12:30:58.490: WARN/PackageManager(60): Code path for pkg :
  si.trendnet.android.terra changing from /data/app/
  si.trendnet.android.terra-2.apk to /data/app/
  si.trendnet.android.terra-1.apk
  09-29 12:30:58.490: WARN/PackageManager(60): Resource path for pkg :
  si.trendnet.android.terra changing from /data/app/
  si.trendnet.android.terra-2.apk to /data/app/
  si.trendnet.android.terra-1.apk
  09-29 12:30:58.490: DEBUG/PackageManager(60):   Activities:
  si.trendnet.android.terra.Home si.trendnet.android.terra.page1
  si.trendnet.android.terra.main_menu
  si.trendnet.android.terra.Mobile_Status_History
  si.trendnet.android.terra.Service_Desk
  si.trendnet.android.terra.Configuration
  si.trendnet.android.terra.Settings_Info
  si.trendnet.android.terra.settings_login
  si.trendnet.android.terra.settings_url
  09-29 12:30:58.509: INFO/ActivityManager(60): Force stopping package
  si.trendnet.android.terra uid=10032
  09-29 12:30:58.919: INFO/installd(35): move /data/dalvik-cache/
  d...@a...@si.trendnet.android.terra-1@classes.dex -  /data/dalvik-
  cache/d...@a...@si.trendnet.android.terra-1@classes.dex
  09-29 12:30:58.929: DEBUG/PackageManager(60): New package installed
  in /data/app/si.trendnet.android.terra-1.apk
  09-29 12:30:59.279: INFO/ActivityManager(60): Force stopping package
  si.trendnet.android.terra uid=10032
  09-29 12:30:59.449: DEBUG/dalvikvm(134): GC_EXPLICIT freed 322
  objects / 16400 bytes in 138ms
  09-29 12:30:59.739: DEBUG/dalvikvm(1421): GC_EXPLICIT freed 1549
  objects / 78272 bytes in 242ms
  09-29 12:31:00.180: WARN/RecognitionManagerService(60): no available
  voice recognition services found
  09-29 12:31:00.639: DEBUG/dalvikvm(60): GC_EXPLICIT freed 7592
  objects / 477664 bytes in 210ms
  09-29 12:31:01.020: INFO/installd(35): unlink /data/dalvik-cache/
  d...@a...@si.trendnet.android.terra-2@classes.dex
  09-29 12:31:01.250: DEBUG/AndroidRuntime(1519): Shutting down VM
  09-29 12:31:01.270: DEBUG/dalvikvm(1519): Debugger has detached;
  object registry had 1 entries
  09-29 12:31:02.580: DEBUG/AndroidRuntime(1532):
  AndroidRuntime START
  09-29 12:31:02.580: DEBUG/AndroidRuntime(1532): CheckJNI is ON
  09-29 12:31:03.010: DEBUG/AndroidRuntime(1532): --- registering native
  functions ---
  09-29 12:31:04.750: INFO/ActivityManager(60): Starting activity:
  Intent { act=android.intent.action.MAIN
  cat=[android.intent.category.LAUNCHER] flg=0x1000
  cmp=si.trendnet.android.terra/.Home }
  09-29 12:31:04.900: DEBUG/AndroidRuntime(1532): Shutting down VM
  

Re: [android-developers] Re: Passing arguments to JSON c# .net web service

2010-09-29 Thread Kostya Vasilyev
 10.0.2.2 is the way you can refer to the host computer's localhost 
from inside an Android emulator.


The usual 127.0.0.1 from within Android refers to the phone's or the 
emulator's localhost, not the computer's.


It should have worked with the old IP address, but I suspect you either 
have a firewall setting, or perhaps your web server only runs on 
localhost, or else the old IP address is what's assigned to a virtual 
network interface by PPTP / L2TP, not the computer's network card.


Anyway, you should be able to now work on parsing the web server response.

-- Kostya

29.09.2010 17:32, titleist пишет:

Now it works! Why 10.0.2.2? Now i have to work on parsing error.. I've
uncommented those two lines for parsing and the error is still there.
But still, this is a big break :)  Thank you! I appreciate it.



Regards,
Tadej

On 29 sep., 14:58, Kostya Vasilyevkmans...@gmail.com  wrote:

   What happens if you change the address in your Android code to
10.0.2.2? Keep the port number, just change the address.

-- Kostya

29.09.2010 16:35, titleist пишет:






I think that this problem appears because input is not in appropriate
format. If I comment these lines for parsing I still get error for
connection.. And in logcat it's now the only error still left. Once
again logcat:
09-29 12:30:54.389: DEBUG/dalvikvm(190): GC_EXPLICIT freed 226
objects / 15152 bytes in 111ms
09-29 12:30:54.569: DEBUG/PackageParser(60): Scanning package: /data/
app/vmdl59240.tmp
09-29 12:30:55.189: INFO/PackageManager(60): Removing non-system
package:si.trendnet.android.terra
09-29 12:30:55.189: INFO/ActivityManager(60): Force stopping package
si.trendnet.android.terra uid=10032
09-29 12:30:55.289: INFO/Process(60): Sending signal. PID: 1511 SIG: 9
09-29 12:30:55.349: INFO/WindowManager(60): WIN DEATH: Window{44043510
si.trendnet.android.terra/si.trendnet.android.terra.Home paused=false}
09-29 12:30:55.399: INFO/UsageStats(60): Unexpected resume of
com.android.launcher while already resumed in
si.trendnet.android.terra
09-29 12:30:55.759: DEBUG/dalvikvm(60): GC_FOR_MALLOC freed 13092
objects / 688072 bytes in 288ms
09-29 12:30:55.949: WARN/InputManagerService(60): Got RemoteException
sending setActive(false) notification to pid 1511 uid 10032
09-29 12:30:56.799: DEBUG/PackageManager(60): Scanning package
si.trendnet.android.terra
09-29 12:30:56.820: INFO/PackageManager(60): Package
si.trendnet.android.terra codePath changed from /data/app/
si.trendnet.android.terra-2.apk to /data/app/
si.trendnet.android.terra-1.apk; Retaining data and using new
09-29 12:30:56.829: INFO/PackageManager(60): /data/app/
si.trendnet.android.terra-1.apk changed; unpacking
09-29 12:30:56.879: DEBUG/installd(35): DexInv: --- BEGIN '/data/app/
si.trendnet.android.terra-1.apk' ---
09-29 12:30:58.379: DEBUG/dalvikvm(1526): DexOpt: load 130ms, verify
840ms, opt 28ms
09-29 12:30:58.479: DEBUG/installd(35): DexInv: --- END '/data/app/
si.trendnet.android.terra-1.apk' (success) ---
09-29 12:30:58.490: WARN/PackageManager(60): Code path for pkg :
si.trendnet.android.terra changing from /data/app/
si.trendnet.android.terra-2.apk to /data/app/
si.trendnet.android.terra-1.apk
09-29 12:30:58.490: WARN/PackageManager(60): Resource path for pkg :
si.trendnet.android.terra changing from /data/app/
si.trendnet.android.terra-2.apk to /data/app/
si.trendnet.android.terra-1.apk
09-29 12:30:58.490: DEBUG/PackageManager(60):   Activities:
si.trendnet.android.terra.Home si.trendnet.android.terra.page1
si.trendnet.android.terra.main_menu
si.trendnet.android.terra.Mobile_Status_History
si.trendnet.android.terra.Service_Desk
si.trendnet.android.terra.Configuration
si.trendnet.android.terra.Settings_Info
si.trendnet.android.terra.settings_login
si.trendnet.android.terra.settings_url
09-29 12:30:58.509: INFO/ActivityManager(60): Force stopping package
si.trendnet.android.terra uid=10032
09-29 12:30:58.919: INFO/installd(35): move /data/dalvik-cache/
d...@a...@si.trendnet.android.terra-1@classes.dex -/data/dalvik-
cache/d...@a...@si.trendnet.android.terra-1@classes.dex
09-29 12:30:58.929: DEBUG/PackageManager(60): New package installed
in /data/app/si.trendnet.android.terra-1.apk
09-29 12:30:59.279: INFO/ActivityManager(60): Force stopping package
si.trendnet.android.terra uid=10032
09-29 12:30:59.449: DEBUG/dalvikvm(134): GC_EXPLICIT freed 322
objects / 16400 bytes in 138ms
09-29 12:30:59.739: DEBUG/dalvikvm(1421): GC_EXPLICIT freed 1549
objects / 78272 bytes in 242ms
09-29 12:31:00.180: WARN/RecognitionManagerService(60): no available
voice recognition services found
09-29 12:31:00.639: DEBUG/dalvikvm(60): GC_EXPLICIT freed 7592
objects / 477664 bytes in 210ms
09-29 12:31:01.020: INFO/installd(35): unlink /data/dalvik-cache/
d...@a...@si.trendnet.android.terra-2@classes.dex
09-29 12:31:01.250: DEBUG/AndroidRuntime(1519): Shutting down VM
09-29 12:31:01.270: DEBUG/dalvikvm(1519): Debugger has detached;
object registry had 1 entries
09-29 12:31:02.580: 

[android-developers] Synchronization request

2010-09-29 Thread Roman Mazur
Sorry if it's a duplicate post, I have something wrong with posting to
the group.

I have a strange thing with synchronization.
Calling ContentResolver.requestSync does nothing unfortunately. But I
expect the synchronization to start.
Dose anyone know a reason for such a behavior? How to make
synchronization to be performed?

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] call web service every 2 mins untill success message receives..?

2010-09-29 Thread Gold
Hi..All,

  I want to call web service in some frequent
interval, when button is clicked..!

  How can i achieve this..!




Thanks in advance,

Gold

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Null Pointer exception in Location Manager

2010-09-29 Thread Gold
Hi,,


 Finally i got the solution..!

The mistakes are 1) I am not assign port to telnet
  2) Add uses permission for
mock location..now i got latitude..



Thanks  Warm Regards,
Gold

On Sep 29, 2:11 am, TreKing treking...@gmail.com wrote:
 On Tue, Sep 28, 2010 at 4:09 PM, Gold thangadura...@gmail.com wrote:
  hi..

  No ,  still i am checking, Now while loading home
  screen itself thorw the error
  The application stopped unexpectly in log also i get same error null
  pointer exception

  thanks  warm regards,
  gold

 A) Please respond to the group
 B) Again, use your debugger to step through your code around where it's
 throwing the exception. This should tell you EXACTLY what's null. The rest
 of us are not going to be able to debug your program for you like this.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: separate views list view

2010-09-29 Thread TreKing
On Tue, Sep 28, 2010 at 8:40 PM, Varun Khanduja varunkhand...@gmail.comwrote:

 If anyone has time please try to help me out. Thanks, I looked into some
 examples but really found it hard to see how I can have the custom adapter
 runnning.


The custom part of an adapter is basically returning the View you want to
show in your list for a given item.

Currently you have the default ArrayAdapter that works on Strings. Since you
want something more complicated, all you have to do is create a class that
extends ArrayAdapter and override the getView() method to return the layouts
you want (as you described) based on the state of your list.

So the first thing to do is create your custom ArrayAdapter, override
getView, then set it as the adapter to your list and verify your views show
up as expected.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] call web service every 2 mins untill success message receives..?

2010-09-29 Thread Kostya Vasilyev
 Use AlarmManager to schedule PendingIntent alarms to be fired at 
regular intervals.


Receive them in a BroadcastReceiver (either declared in the manifest, or 
registered from code).


Run your web service requests upon receiving those PengingIntent alarms.

Acquire a wake lock while the web service request is running, release 
after receiving web service response.


Cancel the alarm when done.

You can use WakefulIntentService instead of steps 2-4.

-- Kostya

29.09.2010 18:40, Gold пишет:

Hi..All,

   I want to call web service in some frequent
interval, when button is clicked..!

   How can i achieve this..!




Thanks in advance,

Gold




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

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


[android-developers] Maps API and legacy

2010-09-29 Thread arnouf
Hi all,

I found this post

This posting 
http://stackoverflow.com/questions/2023669/j2me-android-blackberry-driving-directions-route-between-two-locations
suggests that you must not use the Map Service with any applications
for route guidance, including but not limited to turn-by-turn route
guidance that is synchronized to the position of a user's sensor-
enabled device

so if I understand we can use maps API to retrieve a route between two
points (and kml file provided by the URL) and draw on a mapview the
way. Is it right ?

Thanks for your answer

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


[android-developers] Re: How can I query the sms by conversation?

2010-09-29 Thread feeling3_4
Wow, thanks a lot! I will give it a try.

On 9月29日, 下午5时40分, Jens dunkingbikk...@gmail.com wrote:
 The URI you're looking for is

   content://mms-sms/conversations?simple=true

 and the sort order is date DESC

 And as usual, with undocumented APIs from Google - they may change in
 the future / differ between handsets etc. - i.e. your app may stop
 working and your users start whining.

 If you're dead set on doing this I'd suggest adding a heap of error
 handling and also test on multiple devices from different vendors.

 On 28 Sep, 10:30,feeling3_4lanwen.ban...@gmail.com wrote:

  Hi All,

  how can I query the latest sms of every conversation. just like native
  sms application in the android phone.

  everytime we start the sms application, it displays the conversations
  sorted by date. how can I achieve this?

  we can query all the sms, but I can't figure out how to query the sms
  by threads.

  thanks a lot

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] requestLocationUpdates / non-UI-thread / getMainLooper()

2010-09-29 Thread Pent
Is there anything wrong with specifying the main thread looper to
handle messages about location update like this:

lm.requestLocationUpdates(
  LocationManager.GPS_PROVIDER,
  0L,
  0L,
  locListenerGPS,
  Looper.getMainLooper()
);

(call is made from a non-UI thread)

Am I going to start getting weird unexplicable errors in other places
due to the looper voodoo ?

Thanks,

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: Weird problem with ListView

2010-09-29 Thread John Gaby
That was a most informative video.  I am not sure it will solve this
particular problem, but it will help me address some other issues I
have with the ListView.

Thanks.

On Sep 29, 1:21 am, MrChaz mrchazmob...@gmail.com wrote:
 At a guess I'd say it's caused by the listview recycling views.
 There's a long talk here about 
 ListView:http://code.google.com/events/io/2010/sessions/world-of-listview-andr...

 On Sep 29, 2:51 am, John Gaby jg...@gabysoft.com wrote:

  I have a ListView which presents a table of items.  The table is
  supposed to look like:

 http://gabytest.com/images/good.png

  but if I scroll around a bit, I sometimes see:

 http://gabytest.com/images/bug.png

  Now this only seems to happen when I run the program on an actual
  device (Motorola Droid with Android 2.2).  I have never seen this
  happen on the emulator.

  Has anyone ever seen anything like this?  Does anyone have any
  suggestions about what I might look for?

  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] Settings for wallpapers

2010-09-29 Thread Peter Webb
I'm very new to Android programming, but have put a Live Wallpaper on
the market, and its doing surprisingly well.

I'm very pleased.

What I want do is make some money out of it, but I don't know the
technical architecture to use.

What I want is for users to be able to change the settings of the
wallpaper far more directly than through the whole wallpaper settings,
and tie that settings screen it into an application that I sell.

I can intercept a single tap and hence a double tap on a blank area of
the screen in a wallpaper, and do already in my app. Could I use this
to fire up a regular application to edit the wallpaper settings? Could
I pick from two settings screens, depending on whether they had
installed my paid app? How would I send the settings back? Could I use
intents?

What about the other way? Could I have a desktop app which sent
settings info to a Live Wallpaper? What if it isn't running? Can I/
should I try and communicate through the SD file system - although its
only a few hundred bytes of data?

Finally, as I want to sell a premium version, can my Live Wallpaper
check to see if the premium version is installed?

Sorry, I have no idea, but my product is doing well and I want to do
this properly ... please help!



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


[android-developers] Re: Maps API and legacy

2010-09-29 Thread arnouf
I found a solution calling Intent. Is it legal ?
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(http://
maps.google.com/maps?
f=dhl=ensaddr=43.593051,43.593051daddr=43.593052,7.004667ie=UTF80om=0));


On Sep 29, 5:27 pm, arnouf arnaud.far...@gmail.com wrote:
 Hi all,

 I found this post

 This 
 postinghttp://stackoverflow.com/questions/2023669/j2me-android-blackberry-dr...
 suggests that you must not use the Map Service with any applications
 for route guidance, including but not limited to turn-by-turn route
 guidance that is synchronized to the position of a user's sensor-
 enabled device

 so if I understand we can use maps API to retrieve a route between two
 points (and kml file provided by the URL) and draw on a mapview the
 way. Is it right ?

 Thanks for your answer

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


Re: [android-developers] how to save the state of checked item in ListView having Checkbox

2010-09-29 Thread TreKing
On Wed, Sep 29, 2010 at 6:40 AM, RKJ (Android developer) 
rkjhaw1...@gmail.com wrote:

 I'm new to android, please help me how to save the state of checkbox,


Depends on how persistent you need the state to be.

See this: 
onSaveInstanceStatehttp://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState%28android.os.Bundle%29
And this: Data 
Storagehttp://developer.android.com/guide/topics/data/data-storage.html

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

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

[android-developers] What is a binder thread?

2010-09-29 Thread DanH
I tried Google, but the only answer I could find is They were created
by the system and they don't do any harm.  I'm not worried about them
per se, but was just curious about what they actually do and why
they're there.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] What is a binder thread?

2010-09-29 Thread Mark Murphy
If I understand correctly, for IPC via AIDL, the object that is
responding to the IPC is invoked on a binder thread. The object
definitely is not invoked on the main application thread.

They may have additional uses, but that's the one I can think off of
the top o' my head.

On Wed, Sep 29, 2010 at 12:37 PM, DanH danhi...@ieee.org wrote:
 I tried Google, but the only answer I could find is They were created
 by the system and they don't do any harm.  I'm not worried about them
 per se, but was just curious about what they actually do and why
 they're there.

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

Android 2.2 Programming Books: http://commonsware.com/books

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


[android-developers] Re: How to read Meta-Data

2010-09-29 Thread carrerasrodrigo
thanks mfavef!
I wrote a post about this, if someone is interested.
http://programandoando.com.ar/2010/08/android-manifest-meta-data/

On Aug 5, 12:52 pm, mfavez mfa...@gmail.com wrote:
 ApplicationInfo ai =
 ctx.getPackageManager().getApplicationInfo(ctx.getPackageName(),
 PackageManager.GET_META_DATA);
 String myvalue = ai.metaData.getString(myname);

 On Jul 2, 9:58 pm, carrerasrodrigo carrerasrodr...@gmail.com wrote:

  hi! i would like to put the following tag in the manifest file.

  manifest xmlns:android=http://schemas.android.com/apk/res/android;
       package=org.package.app
      application
          ..
          meta-data android:value=myvalue android:name=myname /
  meta-data
      /application
  /manifest

  The question is, how i can read the value of the meta-data tag
  (myname) ??

  thanks a lot!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: requestLocationUpdates / non-UI-thread / getMainLooper()

2010-09-29 Thread ADRA
I could be wrong about this due to inexperience, but due to the nature
of the looper, if you put it on the main looper and the GPS decides to
randomly disappear for seconds then the GUI freezes along with it. I
don't know if that really happen in reality, but I imagine the
possibility could occur. If you want to make sure that the location
updates don't mess up your UI you could always do something like:


class MyLocThread extends Thread
{
public MyLocThread ()
{
setDaemon(true);
setName(LocationThread);
}

public void run()
{
Looper.prepare();
   lm.requestLocationUpdates(
  LocationManager.GPS_PROVIDER,
  0L,
  0L,
  locListenerGPS,
  Looper.getLooper()
);
Looper.loop();
}
}


On Sep 29, 8:35 am, Pent tas...@dinglisch.net wrote:
 Is there anything wrong with specifying the main thread looper to
 handle messages about location update like this:

 lm.requestLocationUpdates(
   LocationManager.GPS_PROVIDER,
   0L,
   0L,
   locListenerGPS,
   Looper.getMainLooper()
 );

 (call is made from a non-UI thread)

 Am I going to start getting weird unexplicable errors in other places
 due to the looper voodoo ?

 Thanks,

 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: AudioRecord weirdness on Samsung Moment (SPH-M900)

2010-09-29 Thread Steve Hugg
Dan, not sure since it's customer reported. We do know the model is
SPH-M900 and running 2.1-update1.

On Sep 6, 4:59 pm, dan raaka danra...@gmail.com wrote:
 what is the build fingerprint on your device ?

 $ adb shell getprop | grep finger
 -Dan




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] To finish() an Activity ?

2010-09-29 Thread Emre A. Yavuz


Hi,

 

Does anybody know why an [app_process] stays alive after the finish() method 
is called to stop an Activity ?

 

Here's the (simplified) story in detail;

 

Let's say I have an Activity where I call a class instance within its 
onCreate() method. Let's call this class ClassA.

 

After ClassA is constructed, I call a method that belongs to ClassA again 
from the Activity's onCreate() method. Say this method is for listening 
location for updates, so it starts listening by activating GPS.

 

Now, when I need to stop the Activity, (assume we have a Stop button on the 
screen and the user presses it when needed) I first remove the request for 
location updates and then call the finish() method. I don't do anything special 
in onDestroy() method (just super.onDestroy()).

 

Here's the result;

 

If it's the first time that I am running this activity after the device is 
booted, then location updates are removed (GPS symbol on top disappears) and 
the application stops. However, [app_process] stays alive and keeps on 
running. If I start the application again at this point (another [app_process] 
is popped up at this stage), it starts running however it doesn't even respond 
to any stopping attempt, not even the GPS symbol goes away. This is probably 
due to the application not being properly killed in the first place (and thus 
[app_process] can still be observed as one of the running processes on the 
phone).

 

So, does anybody have any idea on what is missing here ?

 

Thanks in advance,

 

Emre
  

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] To finish() an Activity ?

2010-09-29 Thread Mark Murphy
On Wed, Sep 29, 2010 at 1:13 PM, Emre A. Yavuz eayl...@hotmail.com wrote:
 Does anybody know why an [app_process] stays alive after the finish()
 method is called to stop an Activity ?

Because there are other components still active. If all components are
inactive, the process will remain alive until Android terminates or
recycles it.

http://developer.android.com/guide/topics/fundamentals.html#proclife

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

Android 2.2 Programming Books: http://commonsware.com/books

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


[android-developers] What is a binder thread?

2010-09-29 Thread Nam Ngo
As I know, they take control over Activity interaction also, because we
use IPC to communicate between Activity.
There is also a limitation of data we can transmit over a BinderThread,
usually  1MB.

BR,
Nam

On Wed, 2010-09-29 at 12:42 -0400, Mark Murphy wrote:
 If I understand correctly, for IPC via AIDL, the object that is
 responding to the IPC is invoked on a binder thread. The object
 definitely is not invoked on the main application thread.
 
 They may have additional uses, but that's the one I can think off of
 the top o' my head.
 
 On Wed, Sep 29, 2010 at 12:37 PM, DanH danhi...@ieee.org wrote:
  I tried Google, but the only answer I could find is They were created
  by the system and they don't do any harm.  I'm not worried about them
  per se, but was just curious about what they actually do and why
  they're there.
 
 -- 
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy
 
 Android 2.2 Programming Books: http://commonsware.com/books
 

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


[android-developers] Avoiding compression on large files

2010-09-29 Thread DanH
Apparently you can't have a file in assets larger than 1MB (except
for certain file types) because it's considered too large to
uncompress.

But I'm finding mixed info about how to circumvent this limitation.
Some say that you can put the files in raw and avoid the limitation
but others say that files in raw are compressed too.  And there's
the -0 aapt option that can be used to turn off compression for
certain file types, but there's no way to specify aapt options in
Carbide.

I realize that I can break the file into pieces, but that's error-
prone on both ends.  And using one of the known uncompressed file
types not only confuses things but also runs the risk that the Android
PTB will decide to start compressing that file type.

So what are my options really?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] What is a binder thread?

2010-09-29 Thread Nam Ngo
As I know, they take control over Activity interaction also, because we
use IPC to communicate between Activity.
There is also a limitation of data we can transmit over a BinderThread,
usually  1MB.

BR,
Nam

On Wed, 2010-09-29 at 09:37 -0700, DanH wrote:
 I tried Google, but the only answer I could find is They were created
 by the system and they don't do any harm.  I'm not worried about them
 per se, but was just curious about what they actually do and why
 they're there.
 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: AudioRecord weirdness on Samsung Moment (SPH-M900)

2010-09-29 Thread Steve Hugg
More information.. here is the logcat when the issue occurs. We first
try 16000 Hz, and then 8000.

D/App ( 2618): Main activity starting
I/AudioPolicyManager( 1889): getInput() inputSource 1, samplingRate
16000, format 1, channels 10, acoustics 0
W/AudioHardwareALSA( 1889): openInputStream : mInput already exists!!
E/AudioRecord( 2618): Could not get audio input for record source 1
E/AudioRecord-JNI( 2618): Error creating AudioRecord instance:
initialization check failed.
E/AudioRecord-Java( 2618): [ android.media.AudioRecord ] Error code
-20 when initializing native AudioRecord object.
W/AudioHardwareALSA( 1889): openInputStream : mInput already exists!!
E/AudioRecord( 2618): Could not get audio input for record source 1
E/AudioRecord-JNI( 2618): Error creating AudioRecord instance:
initialization check failed.
E/AudioRecord-Java( 2618): [ android.media.AudioRecord ] Error code
-20 when initializing native AudioRecord object.
D/App ( 2618): AudioRecord: 8000 Hz, 4480 buffer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: call web service every 2 mins untill success message receives..?

2010-09-29 Thread Gold
Hi..

 Is there any sample code for achieve this


Thanks  Warm Regards,
Gold


On Sep 29, 7:48 pm, Kostya Vasilyev kmans...@gmail.com wrote:
   Use AlarmManager to schedule PendingIntent alarms to be fired at
 regular intervals.

 Receive them in a BroadcastReceiver (either declared in the manifest, or
 registered from code).

 Run your web service requests upon receiving those PengingIntent alarms.

 Acquire a wake lock while the web service request is running, release
 after receiving web service response.

 Cancel the alarm when done.

 You can use WakefulIntentService instead of steps 2-4.

 -- Kostya

 29.09.2010 18:40, Gold пишет:

  Hi..All,

                     I want to call web service in some frequent
  interval, when button is clicked..!

                     How can i achieve this..!

  Thanks in advance,

  Gold

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

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


[android-developers] webview - hide the address bar

2010-09-29 Thread dashman
how can i hide the address bar.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] webview - hide the address bar

2010-09-29 Thread Mark Murphy
On Wed, Sep 29, 2010 at 2:13 PM, dashman erjdri...@gmail.com wrote:
 how can i hide the address bar.

There is no address bar on WebView.

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

Android 2.2 Programming Books: http://commonsware.com/books

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


[android-developers] Re: VerifyError reloaded

2010-09-29 Thread Dirk
Just for the sake of completeness:
In order to get around the problem, I tried to replace the whole
switch-statement with lots of if-elseif statements.
Unfortunately, another problem arose. The Verifyer now says:

09-29 18:02:44.058: WARN/dalvikvm(450): VFY: arbitrarily rejecting
large method (regs=127 count=34916)

There's already another thread on this topic:
http://groups.google.com/group/android-developers/browse_thread/thread/e2a36821d0476057/b549ddd81b5e8ca7?lnk=raot

Maybe one should keep this issue in mind when fixing the Verifier bug,
cause they seem to go hand in hand.

Cheers Dirk

The method has several thousand lines ( ~ 3000 to 9000 lines,
depending on the formatting) of code
On 28 Sep., 22:53, fadden fad...@android.com wrote:
 On Sep 28, 11:28 am, Dirk dirkb...@googlemail.com wrote:

  Before filing a bug, I would feel much better if someone else could
  have a look and approve that there's really something not working as
  it should.

 It's a bug in the verifier.  Specifically, dvmCheckSwitchTargets is
 treating the switch table offset as a 16-bit value when it's actually
 a 32-bit value.  The switch statement data starts at 0x8664.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Free version or not?

2010-09-29 Thread Brad Gies

 Greg,

What are the changes that Google Adsense made that affect how much you make?


Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.com
http://bistroblurb.com
http://ihottonight.com
http://forcethetruth.com
---

Everything in moderation, including abstinence

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead


On 28/09/2010 2:38 PM, Greg Donald wrote:

On Tue, Sep 28, 2010 at 3:34 PM, Darrin Smithdarri...@gmail.com  wrote:

I have an application that I think is about two weeks or so from being ready
to ship. I plan to charge for the app because I really believe many people
will find it of value. The thing is how to go about getting the word out
about it.

What do you typically do when releasing a new application? Do you offer a
slightly crippled free version, go for a full fledged version that has
nuisance screens that tell people to upgrade, try the fully functional but
with advertising route, or just release one app for purchase only?

Thanks.

I always release two version.. a free version with ads, and a paid
version without.

I used to could say I made ALOT more off the free version of my apps
using Google AdSense, but that is no longer the case since Google made
some changes to AdSense recently.  Someone besides me is now getting
rich off my free versions.




--
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Free version or not?

2010-09-29 Thread Greg Donald
On Wed, Sep 29, 2010 at 1:50 PM, Brad Gies rbg...@gmail.com wrote:
  Greg,

 What are the changes that Google Adsense made that affect how much you make?

They changed the banner so only a tiny portion of it is now clickable.
 As a result I get much fewer clicks.  I guess users don't get the
fact that they have to click the tiny little arrow now.

They lowered the eCPM rate so I now make much, much less per click.  I
suppose on this one they looked at their competitors and adjusted
things to be more in line with them.


-- 
Greg Donald
destiney.com | gregdonald.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] Emulator performance

2010-09-29 Thread kypriakos

Hi all,

a while back I mentioned that running the imported p2p codebase I have
on the emulator (on a fairly powerful laptop with plenty of mem and a
fast
processor) was pretty slow. I blamed all that on the codebase and in
fact
I was able to profile it and make it much lighter. Well still the
overall
app performance is slow --- and I am finding that most apps I run on
the
emulator are fairly slow. Is this a common trend? I do expect
emulators,
who are by no means a real device, to have such processing delays but
are they in general this slow? Any metrics or any other feedback from
anyone
that depict the factor of slowdowns you would expect on an emulator vs
the real device? I know a lot of this are machine dependent as well
but
consider an idle powerful machine.
And regarding memory - I am loading Eclipse with close to 1G to be
able to
run the emulator and its basic services - is that normal?

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] Resources from gen/ classpath: works in Eclipse, but not Ant

2010-09-29 Thread Anm

I have a .properties file be generated in the gen/ classpath.
Both Eclipse and Ant build tools copy the file to bin/ when compiling.
The .apk created by Eclipse works fine.
The .apk created by Ant returns null at class.getResourceAsStream(..).

Unzipping the .apk's, I see the classpath with file in the
Eclipse .apk file but not the Ant built .apk.
Decompiling the classes.dex with dedexer, I see Eclipse built file
decompiles fine, but the Ant built file fails to decompile with the
following exception:

java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at
hu.uw.pallergabor.dedexer.DexAnnotationParser.getAnnotationVisibilityFlag(DexAnnotationParser.java:
251)
at
hu.uw.pallergabor.dedexer.JasminStyleCodeGenerator.addMethodAnnotation(JasminStyleCodeGenerator.java:
1012)
at
hu.uw.pallergabor.dedexer.JasminStyleCodeGenerator.generate(JasminStyleCodeGenerator.java:
84)
at hu.uw.pallergabor.dedexer.Dedexer.run(Dedexer.java:158)
at hu.uw.pallergabor.dedexer.Dedexer.main(Dedexer.java:14)

Any idea why the two build tools are treating the file so differently?


Background on my non-Android ways:
I need a resource loaded before I have a Context in a static
initializer.  Thus Context.getResources() doesn't help.

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


[android-developers] Re: Marketplace updates - notified if apk not installed through marketplace?

2010-09-29 Thread Doug
On Sep 28, 2:45 pm, TreKing treking...@gmail.com wrote:
 On Tue, Sep 28, 2010 at 4:16 PM, Prakash Iyer thei...@gmail.com wrote:
  Not seen issue 2.

 Just to sanity check myself, I looked around and there's a bug report for
 it. Last commenter says it's happening on N1 with Froyo.

 http://code.google.com/p/android/issues/detail?id=3829q=market%20not...

This bug comments on the accuracy of the number of updates pending.  I
think the issue at hand in this thread is whether or not the
notification appears at all if an update is available.

I've never NOT been notified (in the notification bar) of a pending
update, but I also don't always get the notification very quickly.  It
could sometimes be a couple days after the update is available.  But
it is always there.  Sometimes I beat the notification if I launch
the market and look at my downloads and there happens to be an update,
but I don't think it's broken.  I just think it's slow.  Perhaps the
service that issues the notification just doesn't poll very
frequently.

Doug


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: webview - hide the address bar

2010-09-29 Thread dashman

webview = new WebView(this);
setContentView(webview);

have an activity with this in the onCreate method.

is this not an webview - i see an address bar.


On Sep 29, 2:17 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Sep 29, 2010 at 2:13 PM, dashman erjdri...@gmail.com wrote:
  how can i hide the address bar.

 There is no address bar on WebView.

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

 Android 2.2 Programming Books:http://commonsware.com/books

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


Re: [android-developers] Re: requestLocationUpdates / non-UI-thread / getMainLooper()

2010-09-29 Thread Kostya Vasilyev
Being able to specify a Looper in requestLocationUpdates seems to imply that
LocationManager uses Looper/Message mechanism to deliver location updates to
the application.

Using the UI Looper seems safe then, since location update messages would be
delivered to the main thread, decoded into Java callback method calls, and
invoked as usual.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

29.09.2010 21:13 пользователь ADRA dche...@gmail.com написал:

I could be wrong about this due to inexperience, but due to the nature
of the looper, if you put it on the main looper and the GPS decides to
randomly disappear for seconds then the GUI freezes along with it. I
don't know if that really happen in reality, but I imagine the
possibility could occur. If you want to make sure that the location
updates don't mess up your UI you could always do something like:


class MyLocThread extends Thread
{
public MyLocThread ()
{
setDaemon(true);
setName(LocationThread);
}

public void run()
{
Looper.prepare();

lm.requestLocationUpdates(
LocationManager.GPS_PROVIDER,
0L,
0L,
locListenerGPS,
 Looper.getLooper()
);
Looper.loop();

}
}


On Sep 29, 8:35 am, Pent tas...@dinglisch.net wrote:
 Is there anything wrong with specifyi...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: webview - hide the address bar

2010-09-29 Thread Mark Murphy
On Wed, Sep 29, 2010 at 3:24 PM, dashman erjdri...@gmail.com wrote:

        webview = new WebView(this);
        setContentView(webview);

 have an activity with this in the onCreate method.

 is this not an webview - i see an address bar.

That is not a WebView. Probably that is the Browser activity.

Most likely, you have told the WebView to load some URL that issued a
redirect (e.g., http://www.google.com). Redirects, like clicks on
links, by default open up in the Browser, even if they originated in a
WebView.

You can use WebViewClient and shouldOverrideUrlLoading() to find out
about the redirect/click and load the page in the WebView itself.

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

Android 2.2 Programming Books: http://commonsware.com/books

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


[android-developers] Re: webview - hide the address bar

2010-09-29 Thread dashman
after the setContentView, i do

 webview.loadUrl(url);

that seems to be creating an instance of the native browser.

i guess my question is - how do i set a url w/o forcing
the native browser from opening.

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


[android-developers] Re: Emulator performance

2010-09-29 Thread ADRA

 Is this a common trend?

I find the emulator to be pretty slow in comparison to my NexusOne
sitting right next to my PC. The factor is probably around 0.5x -
0.75x the speed. The PC is a Core2Duo 5400 3Ghz so no slouch by any
means. I suppose that if they bothered to accelerate the GFX / etc..
and better utilize the virtualization functions they could squeeze out
some more into the emulator. That said, having the emulator slower
than most devices is a good (though incidental) test of how your app
will run in the real world.

I don't know if its related, but in the last tooling update the
debugger is killing my processing performance, like horribly. Try
running the app stand-alone vs. debugging and make sure it isn't just
debugging/profiling cutting into emulator performance.

 And regarding memory - I am loading Eclipse with close to 1G to be
 able to
 run the emulator and its basic services - is that normal?

The emulator runs in its own process. If you mean to actually get your
app to launch then well Eclipse is a ram heavy platform. You get a ton
of features for that investment. If you really need a slimmer eclipse,
try to find features you don't use and remove them. Personally I peg
my eclipse at heap 1.5g and permgen 256 and it never blinks (Even with
the J2EE tools which eats resources like crazy).

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: webview - hide the address bar

2010-09-29 Thread Mark Murphy
On Wed, Sep 29, 2010 at 3:28 PM, dashman erjdri...@gmail.com wrote:
 after the setContentView, i do

                 webview.loadUrl(url);

 that seems to be creating an instance of the native browser.

 i guess my question is - how do i set a url w/o forcing
 the native browser from opening.

As I wrote previously:

Most likely, you have told the WebView to load some URL that issued a
redirect (e.g., http://www.google.com). Redirects, like clicks on
links, by default open up in the Browser, even if they originated in a
WebView.

You can use WebViewClient and shouldOverrideUrlLoading() to find out
about the redirect/click and load the page in the WebView itself.

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

Android 2.2 Programming Books: http://commonsware.com/books

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


[android-developers] Re: Avoiding compression on large files

2010-09-29 Thread Bret Foreman
In many cases, I/O speeds are slower than decompression speeds. In
these cases, it's actually faster to load/decompress a compressed file
that just loading an uncompressed file. If you really want best
performance, you should profile your flash read speed versus your
decompression speed.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Avoiding compression on large files

2010-09-29 Thread Kostya Vasilyev
Regarding compression in raw - you can test this pretty easily by first
adding a large text file into that folder, then a large pre-compressed file
(e.g. cut a portion out of a video file, or use a JPEG) and comparing
resulting .apk sizes...

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

29.09.2010 23:51 пользователь Bret Foreman bret.fore...@gmail.com
написал:

In many cases, I/O speeds are slower than decompression speeds. In
these cases, it's actually faster to load/decompress a compressed file
that just loading an uncompressed file. If you really want best
performance, you should profile your flash read speed versus your
decompression speed.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers ...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Amazon | xxx - Business Opportunity

2010-09-29 Thread Shane Isbell
As more details emerge: 1) only US customers; 2) $99 registration; 3) only
Amazon approved devices - it's a no-go in my book. What advantage could this
provide, with such a narrow distribution and high-entry fee?

On Sun, Sep 26, 2010 at 1:34 AM, Doug beafd...@gmail.com wrote:

 On Sep 25, 8:03 pm, Shane Isbell shane.isb...@gmail.com wrote:
  Personally, I'd use Amazon over AndroidMarket, if the rating and comment
  system was any where near the quality Amazon has on their primary site.

 Personally (as a person who wants to get paid for work), I'd prefer
 any mechanism that's built into phones that ship today.  That
 mechanism is Android Market.

 I have an app that's on both Android Market and SlideME.  SlideME
 provides less than 1/100 of the sales that the market provides me
 today, despite SlideME's superior market coverage.

 Unless Amazon can position itself as a market leader for Android
 mobile apps worldwide, I'd leave it alone.  (The barrier for Amazon to
 do this is somewhat similar to the barrier any that desktop web
 browser has over IE in terms of raw ubiquity.  Just wait for the
 injunction that requires Android phone manufacturers to require app
 market alternatives to require something other than Android Market.)

 Doug

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: Marketplace updates - notified if apk not installed through marketplace?

2010-09-29 Thread TreKing
On Wed, Sep 29, 2010 at 2:23 PM, Doug beafd...@gmail.com wrote:

 This bug comments on the accuracy of the number of updates pending.  I
 think the issue at hand in this thread is whether or not the notification
 appears at all if an update is available.


Right - I was responding to Prakash saying he hadn't seen the 2nd issue I
mentioned, which was this problem with the counts.

I just think it's slow.  Perhaps the service that issues the notification
 just doesn't poll very frequently.


This could very well be. I do check the Market quite often.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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   >