[android-developers] Re: android accelerometer to measure distance

2012-01-29 Thread blindfold
So you want to emulate stereo vision based distance measurement
through two slightly displaced views? I'm afraid the phone's sensors
are not nearly good enough to let you independently measure small
(e.g. lateral) displacements with sufficient accuracy to obtain
absolute distance measures.

On Jan 29, 3:27 am, heri_hahihu heri.pc...@gmail.com wrote:
 i am sorry..
 i want to measure distance object by phone camera like smart measure app.
 but  i want to measure object without entering data of object like height
 of object.
 in my mehtode I do twice the measurement and here I must know the distance
 of displacement measurement of the first and second measurements.

 i am sorry if my question wrong. i hope you can understand my explanation

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Crash after StartActivity

2012-01-29 Thread Rudolf Polzer
The manifest file contains
activity android:name=.WakeActivity/activity
within the application tag.

The stack is
ActivityThread.handleReceiver(ActivityThread$ReceiverData) line:
2639
ActivityThread.access$3100(ActivityThread, ActivityThread
$ReceiverData) line: 119
ActivityThread$H.handleMessage(Message) line: 1913
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 123


On 28 Jan., 13:25, YuviDroid yuvidr...@gmail.com wrote:
 Can you post the entire stack trace?

 First thing that pops to my mind is: have you declared your WakeActivity in
 the android manifest?

 On Sat, Jan 28, 2012 at 11:48 AM, Rudolf Polzer rudolf.pol...@i-r-p.dewrote:









  I am working on an app for andoid 2.1-update 1 (API Level 7).
  After calling
     context.startActivity(new Intent(context, WakeActivity.class));
  the app crashes. The stack is then
     ActivityThread.handleReceiver(ActivityThread$ReceiverData) line:
  2639
  This may be unable to start receiver, but why?

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

 --
 YuviDroid
 Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
 to quickly access your favorite apps and 
 contacts!)http://android.yuvalsharon.net

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: sqlite size capacity

2012-01-29 Thread Doug Gordon
I believe that there is a maximum file size limit of 2Gb, but this has
more to do with Android in general than specifically with SQLite.
Performance has more to do with your database schema than with the
size of the file, but Android was not designed as a database engine
and I had to resort to some tricks -- such as record caching -- in my
app to achieve reasonable performance.

On Jan 28, 3:56 am, Live Happy livehap...@gmail.com wrote:
 what is the maximum size of sqlite on the mobiles phone (android, iPhone,
 blackberry, windows mobile) its the same on all of them
 and in wish of them sqlite more compatibility and the performance of it is
 high
 thx for 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] Irregular shapes on an imageview

2012-01-29 Thread New Developer

Hi All

Any thoughts how you can make Irregular shapes on an ImageView a touch 
button


Think of a map  with countries and islands.  Any way to accurately
color each country/island  when clicked ?

Thanks in advance

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

[android-developers] How to upgrade my own app?

2012-01-29 Thread Samuel
Hi,

I create an application where it always check new version from my
server. If found then it will download the apk file and install it. If
it successful updated, the file in the asset folder should be
changed.

I run the app through Eclipse.
The app has downloaded the apk to the sdcard successfully but nothing
change when install the new apk.

Here is the code :

Intent i = new Intent(Intent.ACTION_VIEW);
i.setDataAndType(Uri.fromFile(new File(Environment
.getExternalStorageDirectory()
+ /download/
+ outputFileName)),

application/vnd.android.package-archive);
startActivity(i);

Is the upgrade will change project file if it runs successfully?
What is the best way to test it in Virtual device?

Thanks in advance,
Samuel



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] voice navigation app

2012-01-29 Thread T.M.S.VIJAYKUMARR
Hi Friends,,

i am going to sell this project anybody want?

below link i mentioned project layout.
http://iamvijayakumar.blogspot.com/2012/01/mapview-draw-drive-route-direction-with.html#comments

-- 




-
Thanks  Regards,
T.M.S.VIJAYKUMARR
BloG:http://iamvijayakumar.blogspot.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: Crash after StartActivity

2012-01-29 Thread Kostya Vasilyev
Press F8 (Resume) in Eclipse a few times until you get the crash dialog 
on the device.


Then check the logcat.

Look for the part after Caused by:

-- Kostya

29.01.2012 15:21, Rudolf Polzer пишет:

The manifest file contains
 activity android:name=.WakeActivity/activity
within theapplication  tag.

The stack is
 ActivityThread.handleReceiver(ActivityThread$ReceiverData) line:
2639
 ActivityThread.access$3100(ActivityThread, ActivityThread
$ReceiverData) line: 119
 ActivityThread$H.handleMessage(Message) line: 1913
 ActivityThread$H(Handler).dispatchMessage(Message) line: 99
 Looper.loop() line: 123


--
Kostya Vasilyev

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Anyone using content management system for stuff like checkins/ratings/user sign in etc?

2012-01-29 Thread pawpaw17
Guys,

Is anyone using a content management system in an Android App? I'm
wondering if it is possible
to find a system that can handle some of the repeated stuff that a lot
of apps do rather than
writing a new web app each time.

If anyone knows, thanks!

pawpaw17

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


[android-developers] Re: android help

2012-01-29 Thread ajay talreja
@kris : Sorry.
I'll start again.

I have problem with my GPS location applicationmy application
is not able to retrieve latitude and longitude... I'm providing the
code  for your reference.the below application is launching
successfully on emulator but unable to retrieve the values into Text
View.I have tried passing values from Emulator Control and
through command line via TELNETthen with Geo-pointsplease go
through the code..and tell me where i have gone wrong...


Files are as follows

1) gps.java

package d.gps;

import android.app.Activity;
import android.os.Bundle;
import android.content.Context;
import android.location.Location;
import android.location.LocationManager;
import android.widget.TextView;

public class gps extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
LocationManager locationManager;
locationManager =
(LocationManager)getSystemService(Context.LOCATION_SERVICE);
Location location =
locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);

updateWithNewLocation(location);
}
/** Update UI with a new location */
private void updateWithNewLocation(Location location) {
  TextView myLocationText =
(TextView)findViewById(R.id.myLocationText);

  String latLongString;

  if (location != null) {
double lat = location.getLatitude();
double lng = location.getLongitude();
latLongString = Lat: + lat + \nLong: + lng;
  } else {
latLongString = No location found;
  }

  myLocationText.setText(Your Current Position is:\n +
latLongString);
}

}

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

TextView
android:id=@+id/myLocationText
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/hello
  /
/LinearLayout

3)String.xml

?xml version=1.0 encoding=utf-8?
resources
string name=helloHello World, gps!/string
string name=app_namegps/string
/resources

4) androidmanifest.xml

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=d.gps
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.gps
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

/application
uses-sdk android:minSdkVersion=9 /
  uses-permission android:name=android.permission.INTERNET/uses-
permissionuses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/

/manifest

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] Android Market new app not appearing

2012-01-29 Thread albnok
Yeah I've submitted the forms on Android Developer Console. Just
wondering if anybody else is having this problem where you upload a
new app and it just doesn't show up - can't find it in the web market,
or on any device.

In case you're wondering, the app is:
Package Name: com.glaringnotebook.digitechpatchviewer
App Name: DigiTech RP255 Patch Viewer

All filters are off - heck I don't even require a touchscreen! (Hello
GoogleTV!) Only filter is that it's gotta be Android 1.6 and above.

This is certainly very weird given how fast the Market would update
when I last uploaded an app in 2011...

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


Re: [android-developers] Re: android help

2012-01-29 Thread Kristopher Micinski
Try getting the location through a location update.  (Use
requestLocationUpdate() or requestSingleUpdate() instead.)  Asking for
the last known location won't necessarily tell you anything.  This
might be your issue.

kris

On Sun, Jan 29, 2012 at 12:14 PM, ajay talreja ajayt...@gmail.com wrote:
 @kris : Sorry.
 I'll start again.

 I have problem with my GPS location applicationmy application
 is not able to retrieve latitude and longitude... I'm providing the
 code  for your reference.the below application is launching
 successfully on emulator but unable to retrieve the values into Text
 View.I have tried passing values from Emulator Control and
 through command line via TELNETthen with Geo-pointsplease go
 through the code..and tell me where i have gone wrong...


 Files are as follows

 1) gps.java

 package d.gps;

 import android.app.Activity;
 import android.os.Bundle;
 import android.content.Context;
 import android.location.Location;
 import android.location.LocationManager;
 import android.widget.TextView;

 public class gps extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        LocationManager locationManager;
        locationManager =
 (LocationManager)getSystemService(Context.LOCATION_SERVICE);
        Location location =
 locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);

        updateWithNewLocation(location);
        }
    /** Update UI with a new location */
    private void updateWithNewLocation(Location location) {
          TextView myLocationText =
 (TextView)findViewById(R.id.myLocationText);

          String latLongString;

      if (location != null) {
            double lat = location.getLatitude();
            double lng = location.getLongitude();
            latLongString = Lat: + lat + \nLong: + lng;
          } else {
            latLongString = No location found;
          }

          myLocationText.setText(Your Current Position is:\n +
 latLongString);
        }

 }

 2) main.xml
 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
    android:orientation=vertical
    android:layout_width=fill_parent
    android:layout_height=fill_parent
    
 TextView
    android:id=@+id/myLocationText
    android:layout_width=fill_parent
    android:layout_height=wrap_content
    android:text=@string/hello
  /
 /LinearLayout

 3)String.xml

 ?xml version=1.0 encoding=utf-8?
 resources
    string name=helloHello World, gps!/string
    string name=app_namegps/string
 /resources

 4) androidmanifest.xml

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
      package=d.gps
      android:versionCode=1
      android:versionName=1.0
    application android:icon=@drawable/icon android:label=@string/
 app_name
        activity android:name=.gps
                  android:label=@string/app_name
            intent-filter
                action android:name=android.intent.action.MAIN /
                category
 android:name=android.intent.category.LAUNCHER /
            /intent-filter
        /activity

    /application
    uses-sdk android:minSdkVersion=9 /
  uses-permission android:name=android.permission.INTERNET/uses-
 permissionuses-permission
 android:name=android.permission.ACCESS_FINE_LOCATION/

 /manifest

 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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Android Market new app not appearing

2012-01-29 Thread Kostya Vasilyev
It can take up to a few hours - have you waited that long?

29 января 2012 г. 21:29 пользователь albnok alb...@gmail.com написал:

 Yeah I've submitted the forms on Android Developer Console. Just
 wondering if anybody else is having this problem where you upload a
 new app and it just doesn't show up - can't find it in the web market,
 or on any device.

 In case you're wondering, the app is:
 Package Name: com.glaringnotebook.digitechpatchviewer
 App Name: DigiTech RP255 Patch Viewer

 All filters are off - heck I don't even require a touchscreen! (Hello
 GoogleTV!) Only filter is that it's gotta be Android 1.6 and above.

 This is certainly very weird given how fast the Market would update
 when I last uploaded an app in 2011...

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

2012-01-29 Thread Rudolf Polzer

The LogCat contents after the crash is

ERROR/AndroidRuntime(19994): java.lang.RuntimeException: Unable to start 
receiver irp.plan.OnAlarmReceiver: android.util.AndroidRuntimeException: 
Calling startActivity() from outside of an Activity  context requires 
the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?

...
ERROR/AndroidRuntime(19994): Caused by: 
android.util.AndroidRuntimeException: Calling startActivity() from 
outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK 
flag. Is this really what you want?


So I guess I have to add the FLAG_ACTIVITY_NEW_TASK flag to the intent 
to start the activity, because the startActivity() is called from inside 
the message receiver OnAlarmReceiver.



Am 29.01.2012 16:09, schrieb Kostya Vasilyev:

Press F8 (Resume) in Eclipse a few times until you get the crash dialog
on the device.

Then check the logcat.

Look for the part after Caused by:

-- Kostya

29.01.2012 15:21, Rudolf Polzer пишет:

The manifest file contains
activity android:name=.WakeActivity/activity
within theapplication tag.

The stack is
ActivityThread.handleReceiver(ActivityThread$ReceiverData) line:
2639
ActivityThread.access$3100(ActivityThread, ActivityThread
$ReceiverData) line: 119
ActivityThread$H.handleMessage(Message) line: 1913
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 123




--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Crash after StartActivity

2012-01-29 Thread Kostya Vasilyev
Correct.

Keep in mind though, that, except for some specific cases (an alarm clock
and the like), this -- an activity popping out of nowhere -- can be an
unexpected and jarring experience for the user.

I can see it as a plot device for Final Destination 6: someone's bleeding
to death, trying to call 911 on his Android phone, and is interrupted by a
popup window: 5 days to Jane's birthday. Cut to black.

:)

-- Kostya

29 января 2012 г. 21:41 пользователь Rudolf Polzer
rudolf.pol...@i-r-p.deнаписал:

 The LogCat contents after the crash is

 ERROR/AndroidRuntime(19994): java.lang.RuntimeException: Unable to start
 receiver irp.plan.OnAlarmReceiver: android.util.**AndroidRuntimeException:
 Calling startActivity() from outside of an Activity  context requires the
 FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
 ...
 ERROR/AndroidRuntime(19994): Caused by: 
 android.util.**AndroidRuntimeException:
 Calling startActivity() from outside of an Activity  context requires the
 FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?

 So I guess I have to add the FLAG_ACTIVITY_NEW_TASK flag to the intent to
 start the activity, because the startActivity() is called from inside the
 message receiver OnAlarmReceiver.


 Am 29.01.2012 16:09, schrieb Kostya Vasilyev:

  Press F8 (Resume) in Eclipse a few times until you get the crash dialog
 on the device.

 Then check the logcat.

 Look for the part after Caused by:

 -- Kostya

 29.01.2012 15:21, Rudolf Polzer пишет:

 The manifest file contains
 activity android:name=.WakeActivity**/activity
 within theapplication tag.

 The stack is
 ActivityThread.handleReceiver(**ActivityThread$ReceiverData) line:
 2639
 ActivityThread.access$3100(**ActivityThread, ActivityThread
 $ReceiverData) line: 119
 ActivityThread$H.**handleMessage(Message) line: 1913
 ActivityThread$H(Handler).**dispatchMessage(Message) line: 99
 Looper.loop() line: 123



 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@**googlegroups.comandroid-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=enhttp://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] Android Market new app not appearing

2012-01-29 Thread Harri Smått

On Jan 29, 2012, at 7:29 PM, albnok wrote:
 In case you're wondering, the app is:
 Package Name: com.glaringnotebook.digitechpatchviewer
 App Name: DigiTech RP255 Patch Viewer

Shows fine for me. Using search and direct package id url.

--
H

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Android Market new app not appearing

2012-01-29 Thread Jim Graham
On Sun, Jan 29, 2012 at 09:29:47AM -0800, albnok wrote:
 Yeah I've submitted the forms on Android Developer Console. Just
 wondering if anybody else is having this problem where you upload a
 new app and it just doesn't show up - can't find it in the web market,
 or on any device.

As others have pointed out, it does take some time before it hits
the market (after you submit it).  It's also been pointed out that
your app can be found via search.

You should know, however, that that may well be the ONLY way it'll ever
be found.  If you app is not one of the TOP apps (Top New Free or Top New
Paid) before you post it, it won't show up except for a search.  If enough
people search for and find your app and then install it, it MIGHT reach
the Top x listings.  Welcome to google's world.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

  The iPad is a status symbol for yuppies. The Android
 is for people who actually want something that works.

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Activated background for custom item layouts?

2012-01-29 Thread Kostya Vasilyev
My app has some lists where I'd like to show items in activated state,
where appropriate (when they are checked).

I'd like to use the platform's standard appearance for this activated
state, so it matches other lists and other apps - esp. since the activation
color is quite different between Android 3.* and 4.*.


And this is where I'm running into a snag:


- The SDK has ready-made list item layouts that support activated state,
for example @android:layout/simple_list_item_activated_1

- I have my own list item layouts, so can't use one of those

- The platform's list item layouts use:

android:background=?android:attr/activatedBackgroundIndicator

- item name=activatedBackgroundIndicator in the platform's
res/values/themes.xml is marked with @hide, referencing it from my layouts
produces an error

- Following the actual definition of this attribute, we come
to @android:drawable/activated_background_holo_light - which a private
resource and can't be referenced from an application


I know I can copy the drawables out of the platform(s) and put them under
res/drawable-v11 and res/drawable-v14, including all the density
variations, but...

... I'm really hoping that I've missed something and there is a way to
highlight activated list items without adding more platform resources to my
app.


So, any ideas on what I missed?


Thanks,
-- Kostya

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Activated background for custom item layouts?

2012-01-29 Thread Mark Murphy
On Sun, Jan 29, 2012 at 1:59 PM, Kostya Vasilyev kmans...@gmail.com wrote:
 - item name=activatedBackgroundIndicator in the platform's
 res/values/themes.xml is marked with @hide, referencing it from my layouts
 produces an error

I have a couple of projects with this in res/values-v11/styles.xml:

?xml version=1.0 encoding=utf-8?
resources
  style name=activated parent=android:Theme.Holo
item 
name=android:background?android:attr/activatedBackgroundIndicator/item
  /style
/resources

I have had no errors, compile or runtime, and some of that code is
nearly a year old.

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

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

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


Re: [android-developers] Activated background for custom item layouts?

2012-01-29 Thread Kostya Vasilyev
Ah, ye...

I was wrong about the @hide - it's applied to a different item before the
one I need.

Thanks.

29 января 2012 г. 23:11 пользователь Mark Murphy
mmur...@commonsware.comнаписал:

 On Sun, Jan 29, 2012 at 1:59 PM, Kostya Vasilyev kmans...@gmail.com
 wrote:
  - item name=activatedBackgroundIndicator in the platform's
  res/values/themes.xml is marked with @hide, referencing it from my
 layouts
  produces an error

 I have a couple of projects with this in res/values-v11/styles.xml:

 ?xml version=1.0 encoding=utf-8?
 resources
  style name=activated parent=android:Theme.Holo
item
 name=android:background?android:attr/activatedBackgroundIndicator/item
  /style
 /resources

 I have had no errors, compile or runtime, and some of that code is
 nearly a year old.

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

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

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

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

2012-01-29 Thread Jim McGivney
NewBee question here.
I receive an email on my Android Device.  I want to be able to use
information (data) from the email in my App.  Where do I place the
data so that my app can access the data?  Articles, tutorials or
sample
code welcomed.  Thanks in advance for your help,
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


Re: [android-developers] NewBee Question

2012-01-29 Thread Mark Murphy
On Sun, Jan 29, 2012 at 3:28 PM, Jim McGivney mcgivney@gmail.com wrote:
 NewBee question here.
 I receive an email on my Android Device.  I want to be able to use
 information (data) from the email in my App.  Where do I place the
 data so that my app can access the data?

If by from the email you mean attachment, you can create an activity with an
intent-filter that tries to respond when the user tries to view the
attachment. Since MIME types with email attachments are often
unreliable for non-standard files, you will probably need to use
android:pathPattern in your filter's data element, which has its own
set of issues IIRC.

If by from the email you mean from the email's message body, come
up with another solution for
getting data to your app, such as by using a Web service.

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

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

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


[android-developers] WebView problem with youtube video

2012-01-29 Thread drenda
Hi,
i made a simple example in order to display in my app some youtube's
video of a playlist.
I created a WebView:

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
try {
setContentView(R.layout.video);

final WebView webView = (WebView) 
findViewById(R.id.video_webview);
webView.loadUrl(getString(R.string.urlYouTube));
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setPluginsEnabled(true);

} catch (Exception e) {
Log.e(Rubner, e.getMessage());
e.printStackTrace();
}

The webview is render correctly and display the videos of playlist.
When you click on a video is displayed the page of the video with play
button  but if you click on it the video don't start!!!

Are raised these errors:

01-29 22:37:28.714: W/System.err(5963): Error reading from ./org/
apache/harmony/luni/internal/net/www/protocol/data/Handler.class
01-29 22:37:28.934: E/libEGL(5963): call to OpenGL ES API with no
current context (logged once per thread)
01-29 22:37:28.934: D/ShaderProgram(5963): couldn't load the vertex
shader!

Any ideas of the problem??

Thanks

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


Re: [android-developers] How to get utf-8 encode page with HTTP request?

2012-01-29 Thread TurboMan
Forgot to mention,
It happens in andrıoid emulation.
I have not tried in a real android device.

Regards
TM

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Lunch and Accessible only to a Specific location-Within State.

2012-01-29 Thread gjs
Hi,

You could use GPS or Network location to determine if the device is
within your state and act accordingly.

Regards

On Jan 29, 6:39 pm, Kristopher Micinski krismicin...@gmail.com
wrote:
 At the same time.. Once somebody gets your apk, there's no way to stop
 them from installing it outside of that region, but you're probably
 just most worried about market distribution anyway.

 kris







 On Sun, Jan 29, 2012 at 2:25 AM, TreKing treking...@gmail.com wrote:
  On Sat, Jan 28, 2012 at 6:04 AM, kumar varma kkvarm...@gmail.com wrote:

  My Client requirement is to lunch the application only in Andhra Pradesh-
  India !

 http://support.google.com/androidmarket/developer/bin/answer.py?hl=en...

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Lunch and Accessible only to a Specific location-Within State.

2012-01-29 Thread Kristopher Micinski
This can be faked.. If you use GPS, it's easy, if you use the
telephone network, harder, but still doable.

kris

On Sun, Jan 29, 2012 at 8:25 PM, gjs garyjamessi...@gmail.com wrote:
 Hi,

 You could use GPS or Network location to determine if the device is
 within your state and act accordingly.

 Regards

 On Jan 29, 6:39 pm, Kristopher Micinski krismicin...@gmail.com
 wrote:
 At the same time.. Once somebody gets your apk, there's no way to stop
 them from installing it outside of that region, but you're probably
 just most worried about market distribution anyway.

 kris







 On Sun, Jan 29, 2012 at 2:25 AM, TreKing treking...@gmail.com wrote:
  On Sat, Jan 28, 2012 at 6:04 AM, kumar varma kkvarm...@gmail.com wrote:

  My Client requirement is to lunch the application only in Andhra Pradesh-
  India !

 http://support.google.com/androidmarket/developer/bin/answer.py?hl=en...

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

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

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


[android-developers] Re: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState

2012-01-29 Thread Teo Yan
Thx Murphy.

I try to fix it by like this:

boolean activityActive = true;

protected void onResume() {
// do something
activityActive = true;
}

protected void onPause() {
   // do something
   activityActive = false;
}

public boolean onKeyUp(int keyCode, KeyEvent event)  {
   if (!activityActive) {
  return false;
  }
  // do something
}

public boolean onKeyDown(int keyCode, KeyEvent event) {
   if (!activityActive) {
  return false;
  }
  // do something
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: On ICS, Stopped service can't receive an intent.

2012-01-29 Thread Doug
To be honest, I wouldn't expect a service that is not started to
receive anything.  This is the same expectation that I would have
about  an activity that has not yet been created or has been
destroyed.

I would expect, however, a broadcast receiver registered in my
manifest to receive valid intents for which the app holds permission,
and I would expect that broadcast receiver be able to start a service
if needed.

Doug

On Jan 23, 9:30 pm, Ravi Pandey ravi@gmail.com wrote:
 I have tried to design a Service in such a way that once it's receiver
 can receive the BOOT_COMPLETED intent , the service gets started.
 Basically the startService() function gets called when the Service's
 BroadCastReceiver receives the BOOT_COMPLETED intent inside it's
 onReceive() function.

 Now using Gingerbread environment, when I try to send the
 android.intent.action.BOOT_COMPLETED intent (lets say from terminal
 using the 'am' command). My Service (which is currently in NOT running
 state) is able to receive this intent in it's onReceive() and
 processes the further executions.

 But when I am using the ICS environment, when I try to send the
 android.intent.action.BOOT_COMPLETED intent as mentioned above, my
 Service (which is currently in NOT running state) is NOT able to
 receive this intent in it's onReceive().
 For this case, when I try somehow to start my Service by calling it's
 onCreate() explicitly by using some other Application and then if I
 again send the BOOT_COMPLETED intent as above, then it is able to
 receive this intent in it's onReceive() (i.e. only when my Service is
 in running state).

 I would really appreciate if someone can confirm that in case of using
 ICS environment , do we need to start a service first before actually
 making it able to receive an intent in it's onReceive() function ?
 Also, the reasoning for this would be highly appreciable, if there is
 some  :-)  ?

 Thanks in advance !!

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


[android-developers] Re: how to distribute a Library Project WITHOUT source code (as jar file) as some sort of SDK?

2012-01-29 Thread Doug
On Jan 26, 2:33 pm, Mark Murphy mmur...@commonsware.com wrote:
 True, though I'm a bit hesitant to rely upon that behavior until they
 release the full library-project-as-distributable-JAR support.

Why is this?  You're basically just depending on the R symbols being
defined in a class that's not in the library jar file but instead is
elsewhere in the classpath of the VM.  Typical shared library stuff.
The host project will create and include that R class from the
resources that are in your library project and everything is good.
The user of your lib just can't be messing with the names of the
resource files -- then there will be a problem.

Granted, it would be much better if Google created a full library-as-
JAR solution, making AAPT smart enough to grab resources out a jar
instead of looking for them in the filesystem.  But this should work
as long as nothing is meddled with.

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: Poll: how many of you use a backend service or roll your own

2012-01-29 Thread Doug
Probably every major app that requires backend support will have
created their own backend and protocol for interacting with it.  It's
not a problem, it's just work.  I solve it just like I would any Java
app that has Apache HTTPClient available.  In fact, my Java code for
dealing with backend stuff is pure java that I can use in any Java
context, given HTTPClient and other pure java libs as infrastructure.
The only extra stuff I have to do in the Android side is use loaders
and some special configuration.

Doug

On Jan 28, 4:31 pm, Kristopher Micinski krismicin...@gmail.com
wrote:
 All,

 This is to you developers who want to backend communication in your
 apps.  This need pops up naturally in many apps because there just
 isn't any other way to do it. (For example, file exchange, syncs with
 a server, etc..)  Right now I think that there are a few up and coming
 libraries and backend services, but my guess is that many of you roll
 your own backends using rest and json.  It feels to me like this
 probably causes a lot of people problems, because there interface
 between your app and your backend isn't really baked in to the
 semantics of the programming language or Android platform, so you have
 to develop the protocol and follow your nose while debugging to get it
 right.  Do people run into this problem, or is it in practice a
 nonissue because you test it once and it's obviously right?  (Same
 question for security!)

 kris

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Poll: how many of you use a backend service or roll your own

2012-01-29 Thread Kristopher Micinski
On Sun, Jan 29, 2012 at 9:43 PM, Doug beafd...@gmail.com wrote:
 Probably every major app that requires backend support will have
 created their own backend and protocol for interacting with it.  It's
 not a problem, it's just work.  I solve it just like I would any Java
 app that has Apache HTTPClient available.  In fact, my Java code for
 dealing with backend stuff is pure java that I can use in any Java
 context, given HTTPClient and other pure java libs as infrastructure.
 The only extra stuff I have to do in the Android side is use loaders
 and some special configuration.

 Doug


Right, right.  I don't think that this is extremely Android specific,
but I think that Android apps are much more likely to do restful
communication with a backend than standard apps.  Maybe this hasn't
been your experience, but it's been mine.  (And that could just be
because of the types of apps I write.)  Thanks for your input, though,
I do suspect that major apps all roll their own.

kris

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Anyone using content management system for stuff like checkins/ratings/user sign in etc?

2012-01-29 Thread Kristopher Micinski
I recently asked about this again, but I've recently (did you ask this
yesterday?  I think so...) started using parse, parse.com, perhaps?  I
need to find another one of these types of services so I don't sound
like an advocate.., I'm sure there are others as well

kris

On Sun, Jan 29, 2012 at 12:07 PM, pawpaw17 georgefraz...@yahoo.com wrote:
 Guys,

 Is anyone using a content management system in an Android App? I'm
 wondering if it is possible
 to find a system that can handle some of the repeated stuff that a lot
 of apps do rather than
 writing a new web app each time.

 If anyone knows, thanks!

 pawpaw17

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

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


[android-developers] Javascript binding issues

2012-01-29 Thread Greg Donald
I'm working up some new code that uses Javascript binding, described here:

http://developer.android.com/guide/webapps/webview.html#BindingJavaScript


1) Is there any way to speed it up?  There's about a 2-3 second delay
before a click executes my Javascript clickContact() function in my
activity.  I'm attaching to my tr with jQuery, like this:

$.each($('tr[class=contact]'), function(i, obj) {
  $(obj).click(function() {
Android.clickContact($(obj).attr('id'));
  });
});

I tried attached to my a tags, but that's just as slow.


My Android code:

public class ContactsJS
{
  private final Contacts con;
  private final Context c;

  public ContactsJS( final Contacts contacts, final Context context )
  {
con = contacts;
c = context;
  }

  public void clickContact( final String contact_id )
  {
con.clickContact( contact_id );
  }
}


WebView contacts = (WebView) findViewById( R.id.contacts );
contacts.addJavascriptInterface( new ContactsJS( this, this ), Android );


It works, but it's really slow.


2) How can I get WebKit to provide some sort of click feedback?  Since
I have problem #1, described above, I really need to provide some
click/tap feedback.  My jQuery code below works great in Chrome and
Firefox, highlights red like expected, but in the Android browser it
doesn't do anything.  I had some debug code in there, mousedown and
mouseup never fire.

$.each($('a[class=click]'), function(i, obj) {
  $(obj).mousedown(function() {
$(obj).parent().css(background-color, '#f00');
  }).mouseup(function() {
$(obj).parent().css(background-color, 'transparent');
  });
});

I also tried the other mouse events described here:

http://api.jquery.com/category/events/mouse-events/

And I tried attaching to the trs and tds instead of my as, can't
get anything to fire in the Android browser.

How can I provide some click feedback for my slow Javascript binding?


Thanks,


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Poll: how many of you use a backend service or roll your own

2012-01-29 Thread Nikolay Elenkov
On Mon, Jan 30, 2012 at 11:46 AM, Kristopher Micinski
krismicin...@gmail.com wrote:


 Right, right.  I don't think that this is extremely Android specific,
 but I think that Android apps are much more likely to do restful
 communication with a backend than standard apps.  Maybe this hasn't
 been your experience, but it's been mine.  (And that could just be
 because of the types of apps I write.)  Thanks for your input, though,
 I do suspect that major apps all roll their own.


Far from being major, but I use my own, running on App Engine.
Not really a problem, just some extra work. Authentication can
be tricky though, if you don't want to use Google accounts
(which is easy, but a lot of people freak out when they see
account related permissions on an app). If you only wanted to
store files/unstructured data, using the Google Cloud storage
(Google's S3) would probably be the easiest solution, no need
for a dedicated frontend.

Amazon makes it fairly easy to use their services (S3, DynamoDB,
etc), but you need to running a server just to get authentication tokens
(Token Vending Machine), which is a pain (and potentially expensive).
For example, you can store data directly in their DynamoDB, without
needing to roll your own REST frontend:

http://aws.amazon.com/articles/7439603059327617

TVM:
http://aws.amazon.com/articles/4611615499399490

And then there is https://www.parse.com/ which reportedly takes
care of all this stuff for you, but I haven't actually used it.

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


Re: [android-developers] Re: Poll: how many of you use a backend service or roll your own

2012-01-29 Thread Kristopher Micinski
On Sun, Jan 29, 2012 at 10:45 PM, Nikolay Elenkov
nikolay.elen...@gmail.com wrote:
 On Mon, Jan 30, 2012 at 11:46 AM, Kristopher Micinski
 krismicin...@gmail.com wrote:


 Right, right.  I don't think that this is extremely Android specific,
 but I think that Android apps are much more likely to do restful
 communication with a backend than standard apps.  Maybe this hasn't
 been your experience, but it's been mine.  (And that could just be
 because of the types of apps I write.)  Thanks for your input, though,
 I do suspect that major apps all roll their own.


 Far from being major, but I use my own, running on App Engine.
 Not really a problem, just some extra work. Authentication can
 be tricky though, if you don't want to use Google accounts
 (which is easy, but a lot of people freak out when they see
 account related permissions on an app). If you only wanted to
 store files/unstructured data, using the Google Cloud storage
 (Google's S3) would probably be the easiest solution, no need
 for a dedicated frontend.


Hey, thanks for telling me this!  I had never known of that perception
before, and it's really good feedback!

 Amazon makes it fairly easy to use their services (S3, DynamoDB,
 etc), but you need to running a server just to get authentication tokens
 (Token Vending Machine), which is a pain (and potentially expensive).
 For example, you can store data directly in their DynamoDB, without
 needing to roll your own REST frontend:

 http://aws.amazon.com/articles/7439603059327617


Cool!  Thanks for the links, I had heard of these before, but I hadn't
investigated them too much.

 TVM:
 http://aws.amazon.com/articles/4611615499399490


Thanks,

 And then there is https://www.parse.com/ which reportedly takes
 care of all this stuff for you, but I haven't actually used it.


I keep wanting to use it to see what their service is like, so I
signed up and am going to try it out for a while..

kris

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Lunch and Accessible only to a Specific location-Within State.

2012-01-29 Thread gjs
Hi,

In computing anything can be faked...

Regards

On Jan 30, 12:27 pm, Kristopher Micinski krismicin...@gmail.com
wrote:
 This can be faked.. If you use GPS, it's easy, if you use the
 telephone network, harder, but still doable.

 kris







 On Sun, Jan 29, 2012 at 8:25 PM, gjs garyjamessi...@gmail.com wrote:
  Hi,

  You could use GPS or Network location to determine if the device is
  within your state and act accordingly.

  Regards

  On Jan 29, 6:39 pm, Kristopher Micinski krismicin...@gmail.com
  wrote:
  At the same time.. Once somebody gets your apk, there's no way to stop
  them from installing it outside of that region, but you're probably
  just most worried about market distribution anyway.

  kris

  On Sun, Jan 29, 2012 at 2:25 AM, TreKing treking...@gmail.com wrote:
   On Sat, Jan 28, 2012 at 6:04 AM, kumar varma kkvarm...@gmail.com wrote:

   My Client requirement is to lunch the application only in Andhra 
   Pradesh-
   India !

  http://support.google.com/androidmarket/developer/bin/answer.py?hl=en...

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

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

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


[android-developers] Strange ClassNotFoundException

2012-01-29 Thread Mort
Hi,

I got several mails about my app crashing since the recent update. In the 
developer console, I see several stack traces with a ClassNotFoundException.
Strange thing is, the class surely exists, and the error doesn't seem to 
happen on every device. At least the developer edition (i.e. debug 
signature, not signed for market) worked fine on mine, and I also got some 
mails with everything's working fine, but wish list.

I tried to find some more information in this group, but my picks in 
threads with promising topic didn't quite help. Closest thing I found was a 
similar error when the SD card's removed without proper unmount, but I 
can't imagine this happens to so many people, especially not on devices 
where the SD card is in fact just internal memory.

Any idea?

Here's the trace:
java.lang.RuntimeException: Unable to instantiate receiver my receiver 
class: java.lang.ClassNotFoundException: my receiver class in loader 
dalvik.system.PathClassLoader[/mnt/asec/app package/pkg.apk]
at android.app.ActivityThread.handleReceiver(ActivityThread.java:1960)
at android.app.ActivityThread.access$2400(ActivityThread.java:132)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1093)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4196)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: my receiver class in loader 
dalvik.system.PathClassLoader[/mnt/asec/app package/pkg.apk]
at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:1951)
... 10 more

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Lunch and Accessible only to a Specific location-Within State.

2012-01-29 Thread Kristopher Micinski
On Mon, Jan 30, 2012 at 2:32 AM, gjs garyjamessi...@gmail.com wrote:
 Hi,

 In computing anything can be faked...

 Regards


True story..

kris

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

2012-01-29 Thread T.M.S.VIJAYKUMARR
Please check your manifest file your receiver class register or not.

 On Mon, Jan 30, 2012 at 1:04 PM, Mort m...@sto-helit.de wrote:

 Hi,

 I got several mails about my app crashing since the recent update. In the
 developer console, I see several stack traces with a ClassNotFoundException.
 Strange thing is, the class surely exists, and the error doesn't seem to
 happen on every device. At least the developer edition (i.e. debug
 signature, not signed for market) worked fine on mine, and I also got some
 mails with everything's working fine, but wish list.

 I tried to find some more information in this group, but my picks in
 threads with promising topic didn't quite help. Closest thing I found was a
 similar error when the SD card's removed without proper unmount, but I
 can't imagine this happens to so many people, especially not on devices
 where the SD card is in fact just internal memory.

 Any idea?

 Here's the trace:
 java.lang.RuntimeException: Unable to instantiate receiver my receiver
 class: java.lang.ClassNotFoundException: my receiver class in loader
 dalvik.system.PathClassLoader[/mnt/asec/app package/pkg.apk]
 at android.app.ActivityThread.handleReceiver(ActivityThread.java:1960)
 at android.app.ActivityThread.access$2400(ActivityThread.java:132)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1093)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:143)
 at android.app.ActivityThread.main(ActivityThread.java:4196)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:507)
 at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
 at dalvik.system.NativeStart.main(Native Method)
 Caused by: java.lang.ClassNotFoundException: my receiver class in loader
 dalvik.system.PathClassLoader[/mnt/asec/app package/pkg.apk]
 at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
 at android.app.ActivityThread.handleReceiver(ActivityThread.java:1951)
 ... 10 more

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




-- 




-
Thanks  Regards,
T.M.S.VIJAYKUMARR
BloG:http://iamvijayakumar.blogspot.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