[android-developers] Re: How to create SQLite database file

2011-07-13 Thread Ali Chousein
Take a look here: 
http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html
Also study one of the samples which come with the SDK installation,
which creates an SQLite DB (if you search-in-files for
SQLiteOpenHelper you'll find such examples).

--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
Cisco Android marketplace (Chosen for Cisco Cius)
https://marketplace.cisco.com/apphq/products/510


On Jul 12, 3:32 pm, siva  wrote:
> Hi,
>     I wanna create SQLite database file in res/assets directory. how
> can i do this??

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


[android-developers] Re: Where / How to install Google API for Android 2.2 in Eclipse

2011-07-13 Thread Ali Chousein
In Eclipse choose "Window - Android SDK and AVD Manager". On the
window which appears choose "Available packages". Then under the list
"Android Repository" you can choose and install any available version
of Google API.

--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
Cisco Android marketplace (Chosen for Cisco Cius)
https://marketplace.cisco.com/apphq/products/510


On Jul 12, 2:21 am, newbie_dev  wrote:
> From my project build target, I don't see Google API for Android 2.2.
> Where/How can to install it?

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


[android-developers] alternative call-screen

2011-07-13 Thread sbo
I'm developing an alternative call-screen for Android 2.1.

I thought, when I set a call directly in
com.android.internal.telephony.ITelephony no android call-screen will
appear, but I was wrong.

How can I manage to make the default android call-screen disappear?

Thanks Flo

p.s. I know that com.android.internal.telephony.ITelephony is a
private class and I know the risks.

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

2011-07-13 Thread Shibu S R
Hello,
   We are going to develop an android application for show a autocad
drawing file in svg format in which ecma script is using. We have
tested the application in emulator and opened the svg file in webview.
our problem is that ecmascript in XML tags are not executed in webview
in android. We know that android is supporting SVG from 3.0 only. Does
it not support ecmascript in svg?

Thanks in advance


final String mimeType = "text/html";
final String encoding = "utf-8";
final String html = "";

WebView wv = (WebView)
findViewById(R.id.webview_component);
wv.getSettings().setJavaScriptEnabled(true);
wv.loadDataWithBaseURL("fake://not/needed", html,
mimeType, encoding, "");


Ragards
Shibu

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

2011-07-13 Thread varun
can you explain your problem more clearly, so that we can help you.

as far as i understood u need to place four images in a rectangle
shape and when you click on each image you have to replace all the
four images with another set of images based on which image has been
clicked.

if that is the case then take a relative layout,
add four imageviews and set images to those imageviews and in onclick
listeners change the images depending on which imageView has clicked .

On Jul 13, 11:29 am, arun kumar  wrote:
> give me some guidance how to do...
> Thanks
> arun

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

2011-07-13 Thread gjs
Hi,

What was 'some error...' ?

If you have some error it is always better to include log output with
the error messages so we can help.

Regards

On Jul 13, 3:35 pm, saurabh kumar  wrote:
> Hi android developers,
>
> Please help me to resolve this problem:-
>
> 1. I am developing latin IME keyboard and using "array list" to store words.
> it is working fine for 5,000 words. but when i tried to increase its number
> to 70,000 it shows some error i searched and found that arraylist cant
> hold that much of words... one solution is to use SQLITE databse but i
> don't know how to use it.
>
> 2. I want to use my own latin IME keyboard which contains some words with
> inbuilt android sms dictionary i.e. need a code using which i can use
> android sms dictionary + words from my app as suggested words while typing
> sms both simultaneously.
>
> .
> Thanks and regards,
> Saurabh Kumar

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] memory leak managing service connection in onResume and onPause

2011-07-13 Thread Bouis, Laurent
Hi,

I've identified a memory leak issue managing connection to a service when an 
activity is quickly created/destroyed (or possibly quickly resumed/pause; at 
least this is what I am thinking based on testing).
I would like some help to understand what is causing this and how to fix it 
properly.
This happens when I switch from another app to my app, and the screen 
orientation was different (and my activity holding the connection object is not 
in the foreground, there is another activity on top of it); the activity that 
manages the service connection gets destroyed/created quickly twice (not sure 
exactly why it's twice but that's a different problem).
If I do this a few times, I end up with a bunch of activities (the one that 
connects to the service) that can't seem to be garbage collected because they 
seem to still be referenced by: 'LoadedApk$ServiceDispatcher$DeathMonitor' 
objects at the GC root.

I call bind in onResume() and unBind in onPause().
After doing some experiment, I believe the way I bind/unbind somehow the root 
cause of the issue. For example if I stop calling unbind, the memory leak stops 
but i get some ConnectionLeaked exceptions (I understand their cause).
Maybe calling unbind before the connection object receives a notification is 
causing this issue somehow (but I don't see errors in logcat, and the service 
properly receives the bind/unbind calls).
Also if I call 'bind' in onStart() and 'unBind' in onStop(), I do not see those 
memory leaks anymore (also no issue if I call bind in onCreate() and unbind in 
onDestroy()).


I see a bunch of activities instances with the following path to GC root  when 
i use the Eclipse Memory Analyzer (after I switch back and forth between my app 
and another app a few times):

MyActivity
mContext android.app.LoadedApk$ServiceDispatcher @ 0x41059d68
--this$0 android.app.LoadedApk$ServiceDispatcher$DeathMonitor @ 0x4105b548 
Native Stack


My source code is basically:

public class MyActivity extends Activity {

private final String TAG = "MyActivity";

public IREventService mREventService;
private ServiceConnection mConnection = new ServiceConnection() 
{
// Called when the connection with the service is 
established
public void onServiceConnected(ComponentName className, 
IBinder service) {
mREventService = 
IREventService.Stub.asInterface(service);
Log.e(TAG, "connected to 
service:"+MyActivity.this.toString()+ "connection: "+this.toString());

}

// Called when the connection with the service disconnects 
unexpectedly
public void onServiceDisconnected(ComponentName className) {
Log.e(TAG, "Service has unexpectedly 
disconnected:"+this.toString());
mREventService = null;
}
};

@Override
protected void onResume() {
super.onResume();
Intent intent = new Intent(this, 
EventService.class);
intent.setAction(this.toString());

Log.w(TAG, "bindService:"+this.toString());
bindService(intent,
mConnection, Context.BIND_AUTO_CREATE);
}


@Override
protected void onPause() {
super.onPause();
Log.w(TAG, "unbinding from 
service:"+this.toString());
unbindService(mConnection);

}


}



The logcats logs look like:

06-17 17:27:08.965: WARN/MyActivity(5987): MyActivity onStop()


06-17 17:27:09.415: INFO/ActivityManager(154): Config changed: { scale=1.0 
imsi=310/4 loc=en_US touch=3 keys=1/1/2 nav=1/2 orien=L layout=0x1014 
uiMode=0x11 seq=169}
06-17 17:29:44.855: WARN/MyActivity(5987): MyActivity onDestroy()
06-17 17:29:44.855: INFO/TabletStatusBar(205): DISABLE_BACK: no
06-17 17:29:45.015: WARN/MyActivity(5987): MyActivity onCreate()
06-17 17:29:45.015: WARN/MyActivity(5987): MyActivity onResume()
06-17 17:29:45.015: WARN/MyActivity(5987): bindService:MyActivity@408753a0
06-17 17:29:45.015: WARN/EventService(6009): onBind() MyActivity@408753a0
06-17 17:29:45.025: WARN/MyActivity(5987): MyActivity onPause()
06-17 17:29:45.025: WARN/MyActivity(5987): unbinding from 
service:MyActivity@408753a0
06-17 17:29:45.025: WARN/EventService(6009): onUnBind() MyActivity@408753a0
06-17 17:29:45.025: ERROR/MyActivity(5987): connected to 
service:MyActivity@408753a0connection: 
com.yogiplay.apps.MyActivity$1@40878328
06-17 17:29:45.065: DEBUG/dalvikvm(5987): GC_FOR_ALLOC freed 32K, 3% free 
31936K/32839K, paused 34ms
06-17 17:29:45.125: DEBUG/dalvikvm

[android-developers] Re: Permissions Not Working

2011-07-13 Thread Ali Chousein
Strange. Try "Project->Clean" and see if it helps. BTW, are you
editing your manifest file inside eclipse or in another editor? You
should do everything inside eclipse.

--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
Cisco Android marketplace (Chosen for Cisco Cius)
https://marketplace.cisco.com/apphq/products/510


On Jul 11, 8:17 pm, thedigitalsean  wrote:
> I am trying to test use of GPS in Android, however I am getting
> java.lang.SecurityException when I try to use the LocationManager
> object.  I know this question has been asked before but I have tried
> the posted suggestions without any success.  Here is the code where
> the exception is thrown in my OnCreate method of my main Activity
> which is called GetLocation:
>
>         LocationManager locManager =
> (LocationManager)getSystemService(Context.LOCATION_SERVICE);
>         final LocationListener locListener = new MyLocListener();
>
>         try{
>
> locManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0,
> 0, locListener);
>         }
>         catch (SecurityException se){
>
> ((TextView)findViewById(R.id.infobox)).setText(se.toString());
>                 se.printStackTrace();
>         }
>
> Here is the error I get in logcat:
>
> java.lang.SecurityException: Requires ACCESS_FINE_LOCATION or
> ACCESS_COARSE_LOCATION permission
>
> I know this is typically caused by not including the permissions in my
> AndroidManifest.xml.  However, I already have requested both
> ACCESS_FINE_LOCATION and ACCESS_COARSE_LOCATION in the file.  Here is
> my AndroidManifest.xml:
>
> 
> http://schemas.android.com/apk/res/android";
>       package="com.test.examples"
>       android:versionCode="1"
>       android:versionName="1.0">
>      android:name="android.permisssion.ACCESS_FINE_LOCATION"> permission>
>      android:name="android.permisssion.ACCESS_COARSE_LOCATION"> permission>
>      uses-permission>
>     
>                            android:label="@string/app_name">
>             
>                 
>                  android:name="android.intent.category.LAUNCHER" />
>             
>         
>     
> 
>
> This is my first attempt at using permissions so make no assumptions
> that my environment is configured correctly.  I have tried using other
> permissions in different applications and have seen similar behavior
> where, even though I request the permission in the
> AndroidManifest.xml, it doesn't get requested when I install it in the
> emulator or on my Android phone.  Could there be an issue with my
> eclipse setup?
>
> Thanks,
> Sean

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

2011-07-13 Thread Ralph Bergmann
Hello,


I use a ViewAnimator to switch between some views.

The problem is that the current view does not get an event that it comes
to foreground.

When I switch between the views how can I tell the current view that it
came to foreground? Is there a method to call which calls the onResume
method from the view?



Ralph

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Very slow start in my application

2011-07-13 Thread gjs
Hi,

I'd suggest you do find the culprit not just hide it away. Having
found it, consider what parts can be made to work asynchronously with
Threads or Async tasks. 5 second startup is close to getting ANR
warning message. Usual recommendation is don't do to much processing
(more than a second of so) on the UI thread.

Regards

On Jul 12, 8:07 pm, Thomas Lefort  wrote:
> Hi,
>
> I made a little compass application for fun. This app uses a number of
> sensors for orientation, magnetic field measurement and location. It
> also includes a map. Point is it takes 5s or more to get started. I am
> not 100% sure who the culprit is although I suspect the map init to
> take some time.
>
> The bottom line is the user experiences a 5s or more black screen with
> no feedback whatsoever.
> I was wondering if any of you knew of a clever way of showing a
> message at startup? I tried the progress dialog but it didn't work.
> Ideally some kind of splash screen would be great.
>
> Thanks for any pointers/help.
>
> BTW, I actually put the whole thing open source @ code.google.com/p/
> compastic/ if anyone is interested.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Auto photo capture on specific input

2011-07-13 Thread gjs
Hi,

Have a look at the zxing barcode project source code.

http://code.google.com/p/zxing/

Regards

On Jul 12, 2:25 pm, Friends Friend  wrote:
> Hi Guys!
>
> I need Help in developing an app for android.
>
> the concept is that i want to capture images of ID cards through the
> camera.
>
> What i want to do is that when the id cards 4 corners exactly fits in
> the image preview of the screen (which is displaying the preview to
> take the image) it automatically captures the image.
>
> Any help will be appreciated.

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


Re: [android-developers] Ksoap2

2011-07-13 Thread nageswara rao rajana
Hello friend Ksoap is android specific, using this jar files you can web
services(Soap) which were developed on java Or .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: Sony Ericsson EDK for Timescape

2011-07-13 Thread Johan Abramsson
Hi Android Developers,
The second version of the Sony Ericsson EDK has been released today.
The news is that you can now create extension applications for the
Musicplayer on Sony Ericsson Android phones as well.
Or to be more exact – application that can hook in to the infinite key
of the music player.
It can, like before, also be used to create Timescape extensions for
all Sony Ericsson Android phones.
For further information please check this link:
http://developer.sonyericsson.com/edk

Questions can be posted to this thread.
Kind regards
   /Johan
Sony Ericsson Developer Program



On Jul 7, 8:42 am, Johan Abramsson 
wrote:
> Hi there,
>
> Thanks for downloading theEDK, we hope you will find it useful. In
> our 2011 Android products the deep integration of Timescape was
> changed so that it is a standalone app, and in the same time we
> decided to specialise Timescape a little bit more also. Therefore, the
> email extensions were not part of this Timescape version. However, if
> you or any other developer would like to develop an extension for
> email client extensions, you are welcome!
>
> Feel free to submit any further questions about theEDKhere.
>
> Best regards,
> Johan
>
> On Jul 4, 10:16 pm, Rahul Popuri  wrote:
>
>
>
>
>
>
>
> > Hi Johan,
> > I just downloaded theEDKtoday and played around with the RSS extension,
> > looks really good!
> > I was wondering, how come Sony Ericsson didn't include an email extension
> > like they did with the 2010 Timescape?

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

2011-07-13 Thread Satya
thanks for replying
yes am referring to AlarmManager is there any way where i can stored
this in my app?

On Jul 13, 10:03 am, TreKing  wrote:
> On Tue, Jul 12, 2011 at 10:51 PM, Satya  wrote:
> > Can any one tell me how to get all previously set alarm list.
>
> If you're referring to the alarms set by AlarmManager, you can't, AFAIK.
>
> --- 
> --
> 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] Lock screen

2011-07-13 Thread mayank k varshney
yes it is possible check Power manager class

On Tue, Jul 12, 2011 at 9:55 AM, yoav bbb  wrote:

> Hello,
>
> Is it possible to change the default lock screen and use one of my
> own? with another way to unlock it?
>
> Yoav
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] GOOGLE API (8) for Android 2.2

2011-07-13 Thread mayank k varshney
make the update from eclipse:
eclipse->windows tab->android sdk and avd manager0->install  packages->
update all

help->install new software->adt -
https://dl-ssl.google.com/android/eclipse/->check for developer tools-> next
and u will get all the further steps

On Tue, Jul 12, 2011 at 8:40 AM, newbie_dev  wrote:

> From my eclipse's project build target, I don't see Google API for android
> 2.2. Where/How can I install 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

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

2011-07-13 Thread Mark Murphy
On Tue, Jul 12, 2011 at 4:46 PM, cathal coffey  wrote:
> I've created a Widget and I would like to do something every time it
> is on screen.
> By on screen, I mean if the user moves to a screen that contains this
> widget. I want it to fire something like the below function.
>
> @override
> public void onActive(Context context, Intent intent)
> {
>    // Your widget is visible, do something.
> }
>
> Is there a function like this in the Android SDK?

No.

> The Android clock
> widgets seems to function like this, whenever the user moves to a
> screen that has an Andorid clock Widget, it updates it's display to
> show the current time.

That's not an app widget.

-- 
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://bit.ly/smand1, http://bit.ly/smand2

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

2011-07-13 Thread Shruthi Varma
But we can't create ArrayList at runtime right.

I am not able to find a different approach too.
 :(

Regards,
Shruthi.



On Wed, Jul 13, 2011 at 9:43 AM, Durgadoss Ramanathan  wrote:

> You can try ArrayList data structure...
>
> On Tue, Jul 12, 2011 at 7:55 PM, Shruthi Varma 
> wrote:
>
>> Hi All,
>>
>> I have to parse the xml pasted below and store all the images
>> under  tag under  tag in one Array.
>>
>> If there was only one  tag, It would be a simple job, to create
>> an array and store all the images in it.
>>
>> But there can be 1 or more than 1 magazines.
>>
>> I have to create separate arrays for each magazine's images.
>>
>> So, I don't know how to create arrays at run time depending on the number
>> of magazines.
>>
>> Please help.
>>
>> Regards,
>> Shruthi.
>>
>>
>>
>>
>>
>> 
>>  <
>> magazine> 3> > Carpenter Test Mag5> no_of_pages>TestN/A<
>> published_date>2011-06-29 00:00:00 UTCtrue> payed_yn>5
>>  118> >
>> http://magazine.ateemo.com/uploads/issue_images/11/10.png?1309344384> image_url>
>> 118
>> http://magazine.ateemo.com/uploads/issue_images/12/11.png?1309344422> image_url>
>> 118
>> http://magazine.ateemo.com/uploads/issue_images/13/12.png?1309344507> image_url>
>> 118
>> http://magazine.ateemo.com/uploads/issue_images/14/13.png?1309344544> image_url>
>> 118
>> http://magazine.ateemo.com/uploads/issue_images/15/14.png?1309344728> image_url>
>> 2 Blue Print Test Mag5
>> TestN/A<
>> published_date>2011-06-29 00:00:00 UTCtrue> payed_yn>5
>>  118> >
>> http://magazine.ateemo.com/uploads/issue_images/6/10.png?1309344030> image_url>
>> 118
>> http://magazine.ateemo.com/uploads/issue_images/7/11.png?1309344062> image_url>
>> 118
>> http://magazine.ateemo.com/uploads/issue_images/9/13.png?1309344157> image_url>
>> 118
>> http://magazine.ateemo.com/uploads/issue_images/10/14.png?1309344193> image_url>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Regards
> Durgadoss
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] API for processing/manipulating speech from telephone

2011-07-13 Thread Mark Murphy
There are no such APIs, sorry.

On Tue, Jul 12, 2011 at 4:50 PM, d.d.jones  wrote:
> I'd like to create an Android application which runs during a phone
> call and manipulates voice input from the caller on the "other end" of
> the call, for example prompting the person on the other end to speak
> and then parrot that speech back to them, etc. and/or do some simple
> voice recognition. (I'll leave the "why" for another discussion.)
> Could somebody tell me whether API's exist for this kind of speech
> processing?

-- 
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://bit.ly/smand1, http://bit.ly/smand2

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

2011-07-13 Thread DanielSchH
Hello,

I´m working on a app which needs a location. I ran into some problems,
that there are even no lastKnownPositions in the LocationProviders.
On the one hand, I have read something, that there is a way to get the
location from the GSM-Cell by sending the cell-id to a WS. On the
other hand, I haven't found anything about this from Google directly.

Are there any problems with this or is it forbidden to do so?

Tanks 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


Re: [android-developers] How to multi select the GridView Item?

2011-07-13 Thread Mark Murphy
On Tue, Jul 12, 2011 at 12:07 AM, Vinit Sharma  wrote:
> I have been Googling and stackflowing since last week but i am not
> able to find the way that how can i select multiple images in gridview
> as my application needs gridview not listview.

There is no multi-select concept built into GridView.

> Actually i want to download multiple images selected by the users in
> grid view (like on selection in check box )for one image my
> application is working .
> Please help me regarding it.

Add checkboxes to your GridView cells and manage it yourself.

Or, simply detect clicks on GridView cells and update them to indicate
checked/unchecked status (e.g., checkmark graphic superimposed in
upper-right corner.

-- 
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://bit.ly/smand1, http://bit.ly/smand2

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

2011-07-13 Thread Mark Murphy
new ArrayList()

On Wed, Jul 13, 2011 at 6:20 AM, Shruthi Varma wrote:

> But we can't create ArrayList at runtime right.
>
> I am not able to find a different approach too.
>  :(
>
> Regards,
> Shruthi.
>
>
>
> On Wed, Jul 13, 2011 at 9:43 AM, Durgadoss Ramanathan <
> r.durgad...@gmail.com> wrote:
>
>> You can try ArrayList data structure...
>>
>> On Tue, Jul 12, 2011 at 7:55 PM, Shruthi Varma > > wrote:
>>
>>> Hi All,
>>>
>>> I have to parse the xml pasted below and store all the images
>>> under  tag under  tag in one Array.
>>>
>>> If there was only one  tag, It would be a simple job, to create
>>> an array and store all the images in it.
>>>
>>> But there can be 1 or more than 1 magazines.
>>>
>>> I have to create separate arrays for each magazine's images.
>>>
>>> So, I don't know how to create arrays at run time depending on the number
>>> of magazines.
>>>
>>> Please help.
>>>
>>> Regards,
>>> Shruthi.
>>>
>>>
>>>
>>>
>>>
>>> 
>>>  <
>>> magazine> 3>> mid> Carpenter Test Mag5>> no_of_pages>TestN/A<
>>> published_date>2011-06-29 00:00:00 UTCtrue>> payed_yn>5
>>>  118>> iid>
>>> http://magazine.ateemo.com/uploads/issue_images/11/10.png?1309344384>> image_url>
>>> 118
>>> http://magazine.ateemo.com/uploads/issue_images/12/11.png?1309344422>> image_url>
>>> 118
>>> http://magazine.ateemo.com/uploads/issue_images/13/12.png?1309344507>> image_url>
>>> 118
>>> http://magazine.ateemo.com/uploads/issue_images/14/13.png?1309344544>> image_url>
>>> 118
>>> http://magazine.ateemo.com/uploads/issue_images/15/14.png?1309344728>> image_url>
>>> 2 Blue Print Test Mag
>>> 5TestN/A
>>> 2011-06-29 00:00:00 UTCtrue>> payed_yn>5
>>>  118>> iid>
>>> http://magazine.ateemo.com/uploads/issue_images/6/10.png?1309344030>> image_url>
>>> 118
>>> http://magazine.ateemo.com/uploads/issue_images/7/11.png?1309344062>> image_url>
>>> 118
>>> http://magazine.ateemo.com/uploads/issue_images/9/13.png?1309344157>> image_url>
>>> 118
>>> http://magazine.ateemo.com/uploads/issue_images/10/14.png?1309344193>> image_url>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>>
>>
>> --
>> Regards
>> Durgadoss
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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
>



-- 
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://bit.ly/smand1, http://bit.ly/smand2

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

2011-07-13 Thread Perumss Naren
HI ,

   I can't open the sample projects in *android-sdk_r11-windows* it
shows "*No projects are found to import*"

what i did :

 * File-> import->Existing project into workspace->next-> *

   then i Browse the sample projects from android-sdk_r11-windows ->
samples ->

   finally it shows "*No projects are found to import*"

can u please guide me what to do


Thanks and Regards,
Perumal.N

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

2011-07-13 Thread arun kumar
check www.developer.android.com for sample projects.

On Wed, Jul 13, 2011 at 4:22 PM, Perumss Naren  wrote:

> HI ,
>
>I can't open the sample projects in *android-sdk_r11-windows* it
> shows "*No projects are found to import*"
>
> what i did :
>
>  * File-> import->Existing project into workspace->next-> *
>
>then i Browse the sample projects from android-sdk_r11-windows
> -> samples ->
>
>finally it shows "*No projects are found to import*"
>
> can u please guide me what to do
>
>
> Thanks and Regards,
> Perumal.N
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] No projects are found to import in Eclipse

2011-07-13 Thread vijayakumar M
check your workspace ... i think manifest file missing..

On Wed, Jul 13, 2011 at 4:22 PM, Perumss Naren  wrote:

> HI ,
>
>I can't open the sample projects in *android-sdk_r11-windows* it
> shows "*No projects are found to import*"
>
> what i did :
>
>  * File-> import->Existing project into workspace->next-> *
>
>then i Browse the sample projects from android-sdk_r11-windows
> -> samples ->
>
>finally it shows "*No projects are found to import*"
>
> can u please guide me what to do
>
>
> Thanks and Regards,
> Perumal.N
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 




"Nobody can go back and start a new beginning, but anyone can start today
and make a new ending"
-
Thanks,
Regards,
νιנαソαkum@r M
BloG:http://iamvijayakumar.blogspot.com/
Mob.No:09048382536(Kerala)
Mob.No:09751076707(TN)

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

2011-07-13 Thread Perumss Naren
Hi,

  Sorry you not get my point.. "*No projects are found to import" *projects
is there but i could not open that project

Regards,
Perumal.N

On Wed, Jul 13, 2011 at 4:35 PM, arun kumar  wrote:

> check www.developer.android.com for sample projects.
>
> On Wed, Jul 13, 2011 at 4:22 PM, Perumss Naren  wrote:
>
>> HI ,
>>
>>I can't open the sample projects in *android-sdk_r11-windows* it
>> shows "*No projects are found to import*"
>>
>> what i did :
>>
>>  * File-> import->Existing project into workspace->next-> *
>>
>>then i Browse the sample projects from android-sdk_r11-windows
>> -> samples ->
>>
>>finally it shows "*No projects are found to import*"
>>
>> can u please guide me what to do
>>
>>
>> Thanks and Regards,
>> Perumal.N
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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

Re: [android-developers] No projects are found to import in Eclipse

2011-07-13 Thread Perumss Naren
Hi ,

 Thanks for your time i have manifest file even i have this issue

Regard,
Perumal.N

On Wed, Jul 13, 2011 at 4:39 PM, vijayakumar M wrote:

> check your workspace ... i think manifest file missing..
>
> On Wed, Jul 13, 2011 at 4:22 PM, Perumss Naren  wrote:
>
>> HI ,
>>
>>I can't open the sample projects in *android-sdk_r11-windows* it
>> shows "*No projects are found to import*"
>>
>> what i did :
>>
>>  * File-> import->Existing project into workspace->next-> *
>>
>>then i Browse the sample projects from android-sdk_r11-windows
>> -> samples ->
>>
>>finally it shows "*No projects are found to import*"
>>
>> can u please guide me what to do
>>
>>
>> Thanks and Regards,
>> Perumal.N
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
>
>
>
>
> "Nobody can go back and start a new beginning, but anyone can start today
> and make a new ending"
> -
> Thanks,
> Regards,
> νιנαソαkum@r M
> BloG:http://iamvijayakumar.blogspot.com/
> Mob.No:09048382536(Kerala)
> Mob.No:09751076707(TN)
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] No projects are found to import in Eclipse

2011-07-13 Thread arun kumar
you not import project by click import menu you goto file->new->android
project->create project from existing resource and give exact path its
perfectly open.

On Wed, Jul 13, 2011 at 4:41 PM, Perumss Naren  wrote:

> Hi,
>
>   Sorry you not get my point.. "*No projects are found to import" 
> *projects
> is there but i could not open that project
>
> Regards,
> Perumal.N
>
>
> On Wed, Jul 13, 2011 at 4:35 PM, arun kumar wrote:
>
>> check www.developer.android.com for sample projects.
>>
>>   On Wed, Jul 13, 2011 at 4:22 PM, Perumss Naren wrote:
>>
>>>  HI ,
>>>
>>>I can't open the sample projects in *android-sdk_r11-windows* it
>>> shows "*No projects are found to import*"
>>>
>>> what i did :
>>>
>>>  * File-> import->Existing project into workspace->next-> *
>>>
>>>then i Browse the sample projects from android-sdk_r11-windows
>>> -> samples ->
>>>
>>>finally it shows "*No projects are found to import*"
>>>
>>> can u please guide me what to do
>>>
>>>
>>> Thanks and Regards,
>>> Perumal.N
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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
>

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

2011-07-13 Thread A N K ! T
Create new project from existing source... then it will work fine...

On Wed, Jul 13, 2011 at 4:46 PM, arun kumar  wrote:

> you not import project by click import menu you goto file->new->android
> project->create project from existing resource and give exact path its
> perfectly open.
>
>
> On Wed, Jul 13, 2011 at 4:41 PM, Perumss Naren  wrote:
>
>> Hi,
>>
>>   Sorry you not get my point.. "*No projects are found to import" 
>> *projects
>> is there but i could not open that project
>>
>> Regards,
>> Perumal.N
>>
>>
>> On Wed, Jul 13, 2011 at 4:35 PM, arun kumar wrote:
>>
>>> check www.developer.android.com for sample projects.
>>>
>>>   On Wed, Jul 13, 2011 at 4:22 PM, Perumss Naren wrote:
>>>
  HI ,

I can't open the sample projects in *android-sdk_r11-windows* it
 shows "*No projects are found to import*"

 what i did :

  * File-> import->Existing project into workspace->next-> *

then i Browse the sample projects from
 android-sdk_r11-windows -> samples ->

finally it shows "*No projects are found to import*"

 can u please guide me what to do


 Thanks and Regards,
 Perumal.N

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

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

2011-07-13 Thread Perumss Naren
Hi,

   Thanks for you time and now working for me

Regards,
Perumal.N



On Wed, Jul 13, 2011 at 4:46 PM, arun kumar  wrote:

> you not import project by click import menu you goto file->new->android
> project->create project from existing resource and give exact path its
> perfectly open.
>
>
> On Wed, Jul 13, 2011 at 4:41 PM, Perumss Naren  wrote:
>
>> Hi,
>>
>>   Sorry you not get my point.. "*No projects are found to import" 
>> *projects
>> is there but i could not open that project
>>
>> Regards,
>> Perumal.N
>>
>>
>> On Wed, Jul 13, 2011 at 4:35 PM, arun kumar wrote:
>>
>>> check www.developer.android.com for sample projects.
>>>
>>>   On Wed, Jul 13, 2011 at 4:22 PM, Perumss Naren wrote:
>>>
  HI ,

I can't open the sample projects in *android-sdk_r11-windows* it
 shows "*No projects are found to import*"

 what i did :

  * File-> import->Existing project into workspace->next-> *

then i Browse the sample projects from
 android-sdk_r11-windows -> samples ->

finally it shows "*No projects are found to import*"

 can u please guide me what to do


 Thanks and Regards,
 Perumal.N

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

2011-07-13 Thread NaveenShrivastva
On Wed, Jul 13, 2011 at 5:35 PM, Perumss Naren  wrote:

> Hi,
>
>Thanks for you time and now working for me
>
> Regards,
> Perumal.N
>
>
>
> On Wed, Jul 13, 2011 at 4:46 PM, arun kumar wrote:
>
>> you not import project by click import menu you goto file->new->android
>> project->create project from existing resource and give exact path its
>> perfectly open.
>>
>>
>> On Wed, Jul 13, 2011 at 4:41 PM, Perumss Naren wrote:
>>
>>> Hi,
>>>
>>>   Sorry you not get my point.. "*No projects are found to import" 
>>> *projects
>>> is there but i could not open that project
>>>
>>> Regards,
>>> Perumal.N
>>>
>>>
>>> On Wed, Jul 13, 2011 at 4:35 PM, arun kumar wrote:
>>>
 check www.developer.android.com for sample projects.

   On Wed, Jul 13, 2011 at 4:22 PM, Perumss Naren wrote:

>  HI ,
>
>I can't open the sample projects in *android-sdk_r11-windows*it 
> shows "
> *No projects are found to import*"
>
> what i did :
>
>  * File-> import->Existing project into workspace->next-> *
>
>then i Browse the sample projects from
> android-sdk_r11-windows -> samples ->
>
>finally it shows "*No projects are found to import*"
>
> can u please guide me what to do
>
>
> Thanks and Regards,
> Perumal.N
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to
> android-developers@googlegroups.com
> To unsubscribe from this group, 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
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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



There is problem of directory staracture of project so need to copy src and
file and replace with new project

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

2011-07-13 Thread N K Shrivastva
Hello Android Developers,


 i want to Drag and drop functionality on list.  Here i donot want to
extend listActivity.


i want access Drag and drop functionality using extend activity class
with list id .

ListView lv1=(ListView)findviewById(---)


Please help me, i am getting lot of sample regarding drag and drop
functionality in android List they using extend ListActivity,  but i
want use List by extend Activity


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] How to delegate layout in an abstract ViewGroup

2011-07-13 Thread Tapomay Dey
I want to create a custom AdapterView/ViewGroup. Its DataAdapter/
childViews consists of elements that act as keys for a data filter.
This custom view is associated with another dataAdapter-adapterview
combo that holds the data to be filtered (based on what user selects
in the custom filter view).

Question is: i want to delegate the task of layout of this custom
filter view to a layout resource.
Eg:
 //most
probably a listview or linearlayout

What do I do to achieve this?

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


[android-developers] Running Camera app from source has bad menu layout

2011-07-13 Thread Rich E
Hi all,

I have been trying to work with the Camera app from git and when I run it
without _any_ modifications to the code, the menu fonts are wrong and the
menu frame is drawn funky.  Here are some screenshots of what I mean:

http://dl.dropbox.com/u/3905723/android_debug/camera_app_big_font_1.png
http://dl.dropbox.com/u/3905723/android_debug/camera_app_big_font_2.png

I am running this on a Nexus S with platform 2.3.3.  I am using the repo
at git://android.git.kernel.org/platform/packages/apps/Camera.git, I have
tried both the master branch and android-cts-2.3_r3.  Does anyone have any
ideas on why the menu would draw differently when I compile it as compared
to the default Camera app that comes with the device?

Thanks,
Rich

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 delegate layout in an abstract ViewGroup

2011-07-13 Thread Tapomay Dey
Following could be a solution:
In the setter method for layout resourceID, inflate the layout and add
it as child to the "this" View object.
Is this a clean approach?

Regards,
Tapomay.

On Jul 13, 5:26 pm, Tapomay Dey  wrote:
> I want to create a custom AdapterView/ViewGroup. Its DataAdapter/
> childViews consists of elements that act as keys for a data filter.
> This custom view is associated with another dataAdapter-adapterview
> combo that holds the data to be filtered (based on what user selects
> in the custom filter view).
>
> Question is: i want to delegate the task of layout of this custom
> filter view to a layout resource.
> Eg:
>  //most
> probably a listview or linearlayout
>
> What do I do to achieve this?

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


[android-developers] Program to generate MD5 hash for apk

2011-07-13 Thread rashmi
Hi,
Please let me know how to create a MD5 hash for an apk
programmatically. I want to compare the MD5 hash in the certificate
and the generated MD5 hash. There are some commands which can be
executed from command prompt to generate MD5 hash for an apk. But how
do I will generate it through program. Any example will be helpful.

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] Program to generate MD5 hash for apk

2011-07-13 Thread Nikolay Elenkov
On Wed, Jul 13, 2011 at 9:49 PM, rashmi  wrote:
> Hi,
> Please let me know how to create a MD5 hash for an apk
> programmatically. I want to compare the MD5 hash in the certificate
> and the generated MD5 hash. There are some commands which can be
> executed from command prompt to generate MD5 hash for an apk. But how
> do I will generate it through program. Any example will be helpful.
>

The hash of the apk and the hash of the certificate used to sign it
are two different things. To calculate the hash of the certificate, you
get the certificate as a byte array, then use the MessageDigest class
to calculate the hash. There is at least one thread about this, search
the archives. To calculate the hash of the APK, you need to find the
apk file and feed it to MessageDigest.

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

2011-07-13 Thread Gopu
Hi ,

How to emulatate a application upgrade without upgrading the full
firmware .Eg .upgrading from froyo to GB.

Is "abd install -r " is equal to application upgrade? .

Please provide some info about this.


Thanks
Gopu

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


Re: [android-developers] Re: How to delegate layout in an abstract ViewGroup

2011-07-13 Thread Kostya Vasilyev

Yeah, why not?

Presumably, you have some logic in the code that knows the type of UI 
it's building.


Add a ViewGroup to your layout with a known id, and have the code 
inflate the actual layout, then add it to the view group.


Another option is to use ViewStubs in the parent layout, and call 
inflate / show on just the needed stub. This will let you specify the 
actual layout in the XML. Once a ViewStub is inflated / shown, it 
removes itself from the view hierarchy, replacing itself with the 
inflated layout.


-- Kostya

13.07.2011 16:42, Tapomay Dey пишет:

Following could be a solution:
In the setter method for layout resourceID, inflate the layout and add
it as child to the "this" View object.
Is this a clean approach?

Regards,
Tapomay.



--
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] Calendar view i want highlight multiple specific date in adnroid?

2011-07-13 Thread vijayakumar M
hi,

i have calendar in gridview i want highlight particular list of dates. how
can i achieve this one? please anybody helpme..

-- 




"Nobody can go back and start a new beginning, but anyone can start today
and make a new ending"
-
Thanks,
Regards,
νιנαソαkum@r M
BloG:http://iamvijayakumar.blogspot.com/
Mob.No:09048382536(Kerala)
Mob.No:09751076707(TN)

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

2011-07-13 Thread bob
This app lets you do it

https://market.android.com/details?id=it.medieval.blueftp&feature=search_result

Is good.

On Jul 13, 12:47 am, Dalton Metzler  wrote:
> send it to your email instead
>
> On Jul 12, 10:44 pm, bob  wrote:
>
>
>
>
>
>
>
> > I sent an APK file to my phone using Bluetooth.
>
> > How do I access the file on the phone?

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


[android-developers] how to setup Android Environment in Windows

2011-07-13 Thread Perumss Naren
Hi,

   Did any one having *Android Environment setup document*  (no need
link of  http://developer.android.com/sdk/installing.html )
   I need a document please help me and send document using that *any
one can install Android Environment setup *like a prototype

Thanks and Regards,
Perumal.N

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

2011-07-13 Thread Shruthi Varma
Hi,

You didn't get my point.

After parsing that xml, I will get a number of magazines (images).

I have to store all the images of each magazine in a separate ArrayList.

If I know in advance that I will get 3 magazines, I can initialize 3
ArrayList and store images in it as you said.

But the number of magazines can change from time to time (in the server
side).

So, how can I initialize "n" number of ArrayList where n is determined at
runtime. :(

Regards,
Shruthi.
On Wed, Jul 13, 2011 at 6:41 PM, Durgadoss Ramanathan  wrote:

> Hi Shruti,
>
> I do not clearly understand what you mean by "not usable at runtime"
>
> For example,
>
> In the Beginning, you initialize an ArrayList like this:
>
> ArrayList mNames = new ArrayList();
> In your parsing code, as when you discover an item, you can do:
>
> mNames.add(item.toString());
>
> I hope this helps you to an extent..
>
> --
> Regards
> Durgadoss
>

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

2011-07-13 Thread Y
Hello all!

I'm developing an app on 2.2 in which I have 6 tabs. I have one
activity for each tab. My first Tab has a SafeViewFlipper which works
fine. However, I'm facing two problems.

1. The contents of the first tab are visible in all other tabs. Any
ideas why?

2. When I rotate the device(Galaxy Tab) or emulator from portrait to
landscape mode, the contents of all tabs disappear. To change the
layout for different orientations, I created layout-land and layout-
portrait folders but this does not fix the problem. Any suggestions
would be highly appreciated.

More information:

I have an xml file for each tab which I have included in the main.xml
file using 

This is my main.xml file:


http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@android:id/tabhost">










Thanks in advance,
Y

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

2011-07-13 Thread Justin Anderson
You are getting arrays and ArrayList mixed up... ArrayList is dynamic and
you can modify it at runtime.
http://developer.android.com/reference/java/util/ArrayList.html

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Jul 13, 2011 at 8:00 AM, Shruthi Varma wrote:

> Hi,
>
> You didn't get my point.
>
> After parsing that xml, I will get a number of magazines (images).
>
> I have to store all the images of each magazine in a separate ArrayList.
>
> If I know in advance that I will get 3 magazines, I can initialize 3
> ArrayList and store images in it as you said.
>
> But the number of magazines can change from time to time (in the server
> side).
>
> So, how can I initialize "n" number of ArrayList where n is determined at
> runtime. :(
>
> Regards,
> Shruthi.
> On Wed, Jul 13, 2011 at 6:41 PM, Durgadoss Ramanathan <
> r.durgad...@gmail.com> wrote:
>
>> Hi Shruti,
>>
>> I do not clearly understand what you mean by "not usable at runtime"
>>
>> For example,
>>
>> In the Beginning, you initialize an ArrayList like this:
>>
>> ArrayList mNames = new ArrayList();
>> In your parsing code, as when you discover an item, you can do:
>>
>> mNames.add(item.toString());
>>
>> I hope this helps you to an extent..
>>
>> --
>> Regards
>> Durgadoss
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: How to delegate layout in an abstract ViewGroup

2011-07-13 Thread Tapomay Dey
Thanks for the ViewStub approach.

On Jul 13, 6:08 pm, Kostya Vasilyev  wrote:
> Yeah, why not?
>
> Presumably, you have some logic in the code that knows the type of UI
> it's building.
>
> Add a ViewGroup to your layout with a known id, and have the code
> inflate the actual layout, then add it to the view group.
>
> Another option is to use ViewStubs in the parent layout, and call
> inflate / show on just the needed stub. This will let you specify the
> actual layout in the XML. Once a ViewStub is inflated / shown, it
> removes itself from the view hierarchy, replacing itself with the
> inflated layout.
>
> -- Kostya
>
> 13.07.2011 16:42, Tapomay Dey пишет:
>
> > Following could be a solution:
> > In the setter method for layout resourceID, inflate the layout and add
> > it as child to the "this" View object.
> > Is this a clean approach?
>
> > Regards,
> > Tapomay.
>
> --
> 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


Re: [android-developers] Re: Alarm list

2011-07-13 Thread TreKing
On Wed, Jul 13, 2011 at 3:57 AM, Satya  wrote:

> yes am referring to AlarmManager is there any way where i can stored this
> in my app?
>

I suppose you are free to track the alarms you've set on the AlarmManager.
Why purpose this would serve, I don't know.

-
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] Re: Error: Failed to generate emma coverage.

2011-07-13 Thread Diego Torres Milano
You build is probably not instrumented and thus why coverage
information is not generated.
Chapter 10 of Android Application Testing Guide (http://
www.packtpub.com/android-application-testing-guide/book) includes a
step-by-step guide of getting your build instrumented and generating
code coverage.
Hope this helps.

On Jul 12, 6:25 am, erinwon  wrote:
> Recently I am in a android development group and in charge of the test
> work.
> I do my test work automatically under the robotium framework. In order
> to get code coverage for my Robotium tests, I use ant to make this
> under the instruction 
> ofhttp://code.google.com/p/robotium/wiki/QuestionsAndAnswers#How_can_I_...
> andhttp://dev.10086.cn/cmdn/wiki/index.php?edition-view-5456-1.html
> (sorry, this page is in Chinese).
>
> Step by step, I passed the "ant debug" and "ant run-tests"
> successfully. I almost achieved the result ,yeh!
> However when I runned "ant coverage" and everything seems went
> smoothly, the tragedy happend finally.
> The hints as follows:
>
>  [exec] Error: Failed to generate emma coverage.
>  [echo] Downloading coverage file into project directory...
>  [exec] remote object '/data/data/com.appleJuice/files/coverage.ec'
> does not exist
>
> PS: the test  are successfully passed and the test_rules.xml under the
> android sdk is no problem
>
> The information about the emma of android test is very limit in the
> Internet and I get no help
> Here is my last resort. Help!!!

--
Have you read my blog ?
http://dtmilano.blogspot.com
android junit tests ui linux cult thin clients

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 run code on the quarter hour?

2011-07-13 Thread Fred Niggle
Yes, alarmmanager is the way to go, but i cant find a way to make it
fire *on* the quarter hour.
I can get it to fire off 15 minutes after the code starts (i.e. at
12:08, but not at 12.15,12.30,12.45, etc)

I know im missing something here... coders block i guess :-(

On 13/07/2011, Mark Murphy  wrote:
> Use AlarmManager.
>
> On Tue, Jul 12, 2011 at 8:32 PM, Fred Niggle 
> wrote:
>> Hello,
>> I've looked and found many tutorials and code samples, but have found
>> nothing that gives a clear indication of how to run code on every
>> 0,15,30 and 45 minutes of the hour.
>>
>> Can anyone point me in the direction of a tutorial, etc?
>>
>> Thanks for taking your time,
>> Fred
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> 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


Re: [android-developers] How to create Dynamic Arrays?

2011-07-13 Thread A N K ! T
@ shruthi

as Durgadoss gave u clear example. u can add any number of item at run time.
with specifying it.
go through documentation of ArrayList

--
Regards,
Ankit

On Wed, Jul 13, 2011 at 7:34 PM, Justin Anderson wrote:

> You are getting arrays and ArrayList mixed up... ArrayList is dynamic and
> you can modify it at runtime.
> http://developer.android.com/reference/java/util/ArrayList.html
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Wed, Jul 13, 2011 at 8:00 AM, Shruthi Varma 
> wrote:
>
>> Hi,
>>
>> You didn't get my point.
>>
>> After parsing that xml, I will get a number of magazines (images).
>>
>> I have to store all the images of each magazine in a separate ArrayList.
>>
>> If I know in advance that I will get 3 magazines, I can initialize 3
>> ArrayList and store images in it as you said.
>>
>> But the number of magazines can change from time to time (in the server
>> side).
>>
>> So, how can I initialize "n" number of ArrayList where n is determined at
>> runtime. :(
>>
>> Regards,
>> Shruthi.
>> On Wed, Jul 13, 2011 at 6:41 PM, Durgadoss Ramanathan <
>> r.durgad...@gmail.com> wrote:
>>
>>> Hi Shruti,
>>>
>>> I do not clearly understand what you mean by "not usable at runtime"
>>>
>>> For example,
>>>
>>> In the Beginning, you initialize an ArrayList like this:
>>>
>>> ArrayList mNames = new ArrayList();
>>> In your parsing code, as when you discover an item, you can do:
>>>
>>> mNames.add(item.toString());
>>>
>>> I hope this helps you to an extent..
>>>
>>> --
>>> Regards
>>> Durgadoss
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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

Re: [android-developers] Re: apk sent

2011-07-13 Thread Raghav Sood
Use a file manager to go to the bluetooth folder on the sdcard.It will be
there in misc (android 2.2).

On Wed, Jul 13, 2011 at 7:02 PM, bob  wrote:

> This app lets you do it
>
>
> https://market.android.com/details?id=it.medieval.blueftp&feature=search_result
>
> Is good.
>
> On Jul 13, 12:47 am, Dalton Metzler  wrote:
> > send it to your email instead
> >
> > On Jul 12, 10:44 pm, bob  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > I sent an APK file to my phone using Bluetooth.
> >
> > > How do I access the file on the phone?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Raghav Sood
http://www.raghavsood.com/
http://wiki.androidappcheck.com/
http://www.telstop.tel/
https://market.android.com/developer?pub=Raghav+Sood

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 run code on the quarter hour?

2011-07-13 Thread Mark Murphy
On Wed, Jul 13, 2011 at 10:43 AM, Fred Niggle
 wrote:
> Yes, alarmmanager is the way to go, but i cant find a way to make it
> fire *on* the quarter hour.
>
> I can get it to fire off 15 minutes after the code starts (i.e. at
> 12:08, but not at 12.15,12.30,12.45, etc)
>
> I know im missing something here... coders block i guess :-(

Your call to setRepeating() takes a starting time. Specify the
starting time to be whatever the next quarter-hour is.

-- 
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://bit.ly/smand1, http://bit.ly/smand2

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

2011-07-13 Thread Bryan Glick
I am working on an augmented reality-type application. I noticed an issue
with GPS not updating as expected. I have put a counter on-screen so that I
can keep track of how often onLocationChanged is being called.

The GPS receives lock ok, and begins calling onLocationChanged. After some
time (less than a minute) onLocationChanged will stop being called, and the
GPS location is no longer being updated. This happens whether we are
standing stationary or driving in a car. We can usually get the GPS to
continue updating if we set the phone down on a surface with the camera
sensor down (so the screen shows nothing but black). After that it will
continue to update for some time before again stopping.

We've produced two more applications to help debug this issue.
One is this application:
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html
modified to work with Android 2.2. We've added a LocationListener and an
on-screen onLocationChanged counter and nothing else. This application
functions the same way as the augmented reality application, with
intermittent stoppages in GPS updates.

The other application is just a location listener and an on-screen counter,
without using the camera. That application works perfectly fine. The
location listener never stops updating, and functions exactly as we'd
expect.

We've tried requesting location updates with different time and distance
parameters, but they don't seem to affect functionality.

We've used two different HTC Inspire 4G phones to test this, and both
function the same way. We've also tested on a Motorola Droid 2 that did not
seem to have the same issue, although we were not able to test as thoroughly
on the Droid 2. The HTC Inspires are running the stock HTC Android 2.2.1 OS.

Any ideas? Is there any reason the GPS would work better when the camera
sensor is covered and not letting any light in? That's the variable that
seems to affect functionality the most (although it's not completely
consistent).

I've found a few threads that mention an issue with using GPS and the camera
simultaneously, but all have been open-ended, unanswered questions.

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] potential bug in Gooole Analytics Android SDK

2011-07-13 Thread TreKing
On Tue, Jul 12, 2011 at 4:29 AM, chen  wrote:

> any suggestions?


Post your code?

-
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] How to run code on the quarter hour?

2011-07-13 Thread Fred Niggle
Many thanks for your time Mark, its very appreciated.
That was just the nudge I needed.

On 13/07/2011, Mark Murphy  wrote:
> On Wed, Jul 13, 2011 at 10:43 AM, Fred Niggle
>  wrote:
>> Yes, alarmmanager is the way to go, but i cant find a way to make it
>> fire *on* the quarter hour.
>>
>> I can get it to fire off 15 minutes after the code starts (i.e. at
>> 12:08, but not at 12.15,12.30,12.45, etc)
>>
>> I know im missing something here... coders block i guess :-(
>
> Your call to setRepeating() takes a starting time. Specify the
> starting time to be whatever the next quarter-hour is.
>
> --
> 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://bit.ly/smand1, http://bit.ly/smand2
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] App behaves wired after the task is killed by a TaskKiller

2011-07-13 Thread dillipk
Hello,
   My app have some issues after being killed by Task Killer.

Sequence: -
- Run the app
- Press HOME key
- Kill all the tasks by TaskKiller
- Again run the app..

 At this point, instead of starting the App gracefully(by starting the
first screen which is a splash screen), it directly go to some other
screen with EMPTY data.. Whole app behaves wired and the data is empty
everywhere.


Can my app listen to any event, when it is killed by a TaskKiller..? I
tried debugging by going to onDestroy(), but it never got fired..

Any help on this would greatly appreciated..

Thanks in advance..

DK

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

2011-07-13 Thread TreKing
On Tue, Jul 12, 2011 at 4:29 AM, kurnia niakk  wrote:

> please help me to make an image zoom using zoombutton..


Please help us help you: http://www.catb.org/~esr/faqs/smart-questions.html

-
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] strange camera preview image buffer wrapping problem

2011-07-13 Thread Qianqian Fang

hi

I found a strange problem when processing the
preview images grabbed from my Epic 4G phone
camera (android 2.2.1).

The image data were captured in a callback set up
by setPreviewCallbackWithBuffer(). The pixelformat
of the image were set to RGB565. For each callback,
I simply dump the raw data via FileOutputStream and
then add the buffer back.

The 1st to 6th image frames are shown in the following
link (plotted with matlab, I did not bother to decode it).

http://nmr.mgh.harvard.edu/~fangq/temp/camera_preview_image_wrapping.png

From this plot, you can see the image wraps around the
y-axis: for each frame, the y boundary moves about 4
pixels. My preview size was set to 480x320; the orientation
was portrait.

has anyone reported this issue before? anything that I
should do to correct this?

thanks

Qianqian

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Calendar view i want highlight multiple specific date in adnroid?

2011-07-13 Thread TreKing
On Wed, Jul 13, 2011 at 8:20 AM, vijayakumar M wrote:

> i have calendar in gridview i want highlight particular list of dates. how
> can i achieve this one?


Write code to do that.

Do you have something a little more specific you're having trouble with?
http://www.catb.org/~esr/faqs/smart-questions.html

-
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] building signed APK fast

2011-07-13 Thread bob
Is there any easy way I can build a signed APK without entering my
password twice?

I've been e-mailing my phone APK files but having to enter passwords
is slowing me down.

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

2011-07-13 Thread Nikolay Elenkov
Use Ant for your builds. You can then have the password in a properties file
and build with a single comand.
 On Jul 14, 2011 1:44 AM, "bob"  wrote:
> Is there any easy way I can build a signed APK without entering my
> password twice?
>
> I've been e-mailing my phone APK files but having to enter passwords
> is slowing me down.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] building signed APK fast

2011-07-13 Thread Fred Niggle
Short answer is yes.

You can use ANT, more details can be found
http://www.androidengineer.com/2010/06/using-ant-to-automate-building-android.html

On 13/07/2011, bob  wrote:
> Is there any easy way I can build a signed APK without entering my
> password twice?
>
> I've been e-mailing my phone APK files but having to enter passwords
> is slowing me down.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Installing APK + DB

2011-07-13 Thread hectordu...@yahoo.com
hi guys, thanks for comments, i've strongly reduced the size of my
DB :-) and thigs are better now!

btw,

1 . I am working in improving the activity lifecycle and i am getting
also a message like "  appl is not responding, force quit OR WAIT".
by typing WAIT the process continues ... is there a timer somewhere ?
or it is also an "activity change" related issue ?

2. may somebody send me a ":memory:" database example ?

thanks in advance,

On Jul 11, 7:14 am, lbendlin  wrote:
> Or just include it as a raw resource (give the file a silly name so Android
> doesn't think it is a database) and then upon the initial program run/
> database version update  use your copy routine to place the (large) database
> stub where you need it.

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


[android-developers] Re: How to create Dynamic Arrays?

2011-07-13 Thread Indicator Veritatis
Not only should he go through the documentation for ArrayList, but the
Collections Tutorial at 
http://download.oracle.com/javase/tutorial/collections/TOC.html.
For it is clear that this is a Java question, not an Android question,
and one well dealt with by the Tutorial Trail on Collections.

On Jul 13, 7:46 am, "A N K ! T"  wrote:
> @ shruthi
>
> as Durgadoss gave u clear example. u can add any number of item at run time.
> with specifying it.
> go through documentation of ArrayList
>
> --
> Regards,
> Ankit
>
> On Wed, Jul 13, 2011 at 7:34 PM, Justin Anderson wrote:
>
> > You are getting arrays and ArrayList mixed up... ArrayList is dynamic and
> > you can modify it at runtime.
> >http://developer.android.com/reference/java/util/ArrayList.html
>
> > Thanks,
> > Justin Anderson
> > MagouyaWare Developer
> >http://sites.google.com/site/magouyaware
>
> > On Wed, Jul 13, 2011 at 8:00 AM, Shruthi Varma 
> > wrote:
>
> >> Hi,
>
> >> You didn't get my point.
>
> >> After parsing that xml, I will get a number of magazines (images).
>
> >> I have to store all the images of each magazine in a separate ArrayList.
>
> >> If I know in advance that I will get 3 magazines, I can initialize 3
> >> ArrayList and store images in it as you said.
>
> >> But the number of magazines can change from time to time (in the server
> >> side).
>
> >> So, how can I initialize "n" number of ArrayList where n is determined at
> >> runtime. :(
>
> >> Regards,
> >> Shruthi.
> >> On Wed, Jul 13, 2011 at 6:41 PM, Durgadoss Ramanathan <
> >> r.durgad...@gmail.com> wrote:
>
> >>> Hi Shruti,
>
> >>> I do not clearly understand what you mean by "not usable at runtime"
>
> >>> For example,
>
> >>> In the Beginning, you initialize an ArrayList like this:
>
> >>> ArrayList mNames = new ArrayList();
> >>> In your parsing code, as when you discover an item, you can do:
>
> >>> mNames.add(item.toString());
>
> >>> I hope this helps you to an extent..
>
> >>> --
> >>> Regards
> >>> Durgadoss
>
> >>  --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to android-developers@googlegroups.com
> >> To unsubscribe from this group, 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


Re: [android-developers] App behaves wired after the task is killed by a TaskKiller

2011-07-13 Thread Mark Murphy
On Wed, Jul 13, 2011 at 12:22 PM, dillipk  wrote:
> Can my app listen to any event, when it is killed by a TaskKiller..?

No, sorry.

-- 
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://bit.ly/smand1, http://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Strange emulator behaviour after installing 3.1 rev 2

2011-07-13 Thread jtoolsdev
Just a follow up but on the discussion group I was informed by Android 
support that it is a known issue with the new emulator.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can I find how many home screens?

2011-07-13 Thread Hal Harrison
My about-to-be-released live wallpaper app works well if I know the
number of home screens. I  observe that the 2.1 emulator has three and
2.2 and later have five. I can distinguish between them with
Build.VERSION myvbld = new Build.VERSION();
if(myvbld.RELEASE.contains("2.2")) ...
but I know Motorola and others ship phones with seven, and perhaps
more.

Is there any way I can query for the number of home screens, 3, 5, 7,
9, ..., available on my user's phone?

I'm nearing a dead end. Thanks for any 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] "Can not identify source of the application" WARNING message upon install

2011-07-13 Thread James.sense.C
Hello,

I have tried searching for this warning in some forums and straight-up
on Google, but haven't found a hit that will resolve my issue yet.

I have successfully exported and signed (with own private key) my
app / apk, but when I install on my device (Samsung Galaxy series
equivalent) I get:

_
WARNING:

Can not identity source of the application.  Your personal information
might be disclosed.  And network or phone operation might become
unstable.  If any of these happen, you have to remove the
application.  Are you sure you want to continue?
_

I have since tried publishing my app on Android Market to no avail.

Thank you!
James Chung

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can I find how many home screens?

2011-07-13 Thread Mark Murphy
On Wed, Jul 13, 2011 at 4:02 PM, Hal Harrison
 wrote:
> My about-to-be-released live wallpaper app works well if I know the
> number of home screens. I  observe that the 2.1 emulator has three and
> 2.2 and later have five. I can distinguish between them with
>                Build.VERSION myvbld = new Build.VERSION();
>                if(myvbld.RELEASE.contains("2.2")) ...
> but I know Motorola and others ship phones with seven, and perhaps
> more.
>
> Is there any way I can query for the number of home screens, 3, 5, 7,
> 9, ..., available on my user's phone?

No, sorry. I can envision a home screen implementation with infinite
"home screens".

-- 
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] Re: Accessing local data in a bound service

2011-07-13 Thread Ab Caballero
Thanks, Mark.

My onServiceConnected() code looks like this:

public void onServiceConnected(ComponentName className, IBinder
service) {

 Log.i("INFO", "Service bound ");
mBoundService = ((MainService.LocalBinder)service).getService();

}

I'm assuming that the binder is mBoundService, which is of type
MainService. Once I do this, I'm not sure how to pass TRIP_INFO to it.
My knowledge of binders is slim.

Thanks,

/Ab

On Jul 12, 5:01 pm, Mark Murphy  wrote:
> On Tue, Jul 12, 2011 at 7:54 PM, Ab Caballero  wrote:
> > What i wanted to do then was pass data to the service (one parameter)
> > by using putExtra() but i couldn't figure out how to get it to work.
> > Is it possible to use putExtra() while binding to a running service?
>
> To a running service, no. onBind() is only called once per distinct
> Intent, and you do not want to bind multiple times from the same
> activity, anyway.
>
> However, bear in mind that the primary -- perhaps complete -- reason
> you are binding is to get a Binder. You can supply TRIP_INFO via a
> method call on the Binder in onServiceConnected(). Passing data via
> extras is used when you are using startService() to send commands,
> rather than binding.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!

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


[android-developers] alert dialog with refreshable listview

2011-07-13 Thread kamiseq
hej,
I want to create a simple AlertDialog with ListView. the list contains
all entries in my local db, so in onCreateDialog I created alert
builder and added items to it with onItemClick callback.

AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(R.string.recorded_list_titile)
   .setItems(new CharSequence[]{}, new
DialogInterface.OnClickListener()
   {
   @Override
   public void onClick(DialogInterface
dialogInterface, int index)
   {
//actions
   }
   });
return  builder.create();

but then I realized that list will change any time user adds entry to
db. so I added onPrepareDialog. and now Im lost. I could use adapter
from dialog listView but this adapter operates only on list of names.

my entry from db is mapped to class Entry {id, name}. in order to find
out which id user selected I have to created custom adapter -
CustomAdapter. but adapter expect definition of row layout
which I really dont need because AlertDialog should already create
standard one.

then I probably end writing my own ViewHolder for adapter and
onItemClick callback.

I think this should be a lot simpler!!!

thanks for any 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


Re: [android-developers] Re: Accessing local data in a bound service

2011-07-13 Thread Mark Murphy
On Wed, Jul 13, 2011 at 4:36 PM, Ab Caballero  wrote:
> My onServiceConnected() code looks like this:
>
> public void onServiceConnected(ComponentName className, IBinder
> service) {
>
>  Log.i("INFO", "Service bound ");
>    mBoundService = ((MainService.LocalBinder)service).getService();
>
> }
>
> I'm assuming that the binder is mBoundService, which is of type
> MainService. Once I do this, I'm not sure how to pass TRIP_INFO to it.
> My knowledge of binders is slim.

Implement a method on MainService.LocalBinder named
hereIsYourAllImportantTripInfo() (or whyAreYouMakingThisSoHard(), if
you prefer) that takes TRIP_INFO as a parameter. Call this method.

-- 
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] alert dialog with refreshable listview

2011-07-13 Thread TreKing
On Wed, Jul 13, 2011 at 3:53 PM, kamiseq  wrote:

> but then I realized that list will change any time user adds entry to db.
> so I added onPrepareDialog.
>

What I do is use
http://developer.android.com/reference/android/app/Activity.html#removeDialog(int)
after
the dialog is used so it's forced to be recreated with the latest data in
your list.

-
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] SurfaceView#setZOrderMediaOverlay(true) not working as expected

2011-07-13 Thread Shri
I have a small screen camera preview being shown on top of a larger
video (see layout at the end). I use
SurfaceView#setZOrderMediaOverlay(true) on the small camera preview,
and this works most of the time. However, occasionally, the camera
preview is not fully displayed. Only the part of it not blocked by the
larger video view is displayed, while the 5dip black border *is* fully
displayed on top of the large video.

So it seems like SurfaceView#setZOrderMediaOverlay(true) is not
working as expected. My understanding of the API is that it guarantees
that the SurfaceView will be displayed on top of other SurfaceViews.

I do not want to use #setZOrderOnTop as I do want to overlap the
camera preview with some icons, and using #setZOrderOnTop(true) would
cause the camera preview to display on top of the overlay icons.

Any idea why #setZOrderMediaOverlay(true) misbehaves occasionally? I
am on Honeycomb MR1 on Motorola Xoom.

Thanks,
Shri

http://schemas.android.com/apk/res/
android"
  android:orientation="horizontal"
  android:layout_width="match_parent"
  android:layout_height="match_parent">





  
  
  




-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Accessing local data in a bound service

2011-07-13 Thread Ab Caballero
Thank, Mark!

I chose the latter as the name of method as it seemed appropriate.

/Ab

On Jul 13, 1:54 pm, Mark Murphy  wrote:
> On Wed, Jul 13, 2011 at 4:36 PM, Ab Caballero  wrote:
> > My onServiceConnected() code looks like this:
>
> > public void onServiceConnected(ComponentName className, IBinder
> > service) {
>
> >  Log.i("INFO", "Service bound ");
> >    mBoundService = ((MainService.LocalBinder)service).getService();
>
> > }
>
> > I'm assuming that the binder is mBoundService, which is of type
> > MainService. Once I do this, I'm not sure how to pass TRIP_INFO to it.
> > My knowledge of binders is slim.
>
> Implement a method on MainService.LocalBinder named
> hereIsYourAllImportantTripInfo() (or whyAreYouMakingThisSoHard(), if
> you prefer) that takes TRIP_INFO as a parameter. Call this method.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!

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


[android-developers] Re: "Can not identify source of the application" WARNING message upon install

2011-07-13 Thread Peter Sinnott
Do you have unknown sources ticked in applications settings?


On Jul 13, 8:59 pm, "James.sense.C" 
wrote:
> Hello,
>
> I have tried searching for this warning in some forums and straight-up
> on Google, but haven't found a hit that will resolve my issue yet.
>
> I have successfully exported and signed (with own private key) my
> app / apk, but when I install on my device (Samsung Galaxy series
> equivalent) I get:
>
> _
> WARNING:
>
> Can not identity source of the application.  Your personal information
> might be disclosed.  And network or phone operation might become
> unstable.  If any of these happen, you have to remove the
> application.  Are you sure you want to continue?
> _
>
> I have since tried publishing my app on Android Market to no avail.
>
> Thank you!
> James Chung

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

2011-07-13 Thread kamiseq
I think this is the stupidest thing in android there should be a model
that could be easily invalidated :/

thanks Ill use that for now

any other tips highly appreciated ;]

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


[android-developers] Re: alert dialog with refreshable listview

2011-07-13 Thread kamiseq
OK but still I cannot use the default adapter as I need map selected
item index to entry id!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] unable to use USB if ADB on tcp port?

2011-07-13 Thread Allen Curtis
Hello,

Is it possible to use the USB port for other purposes if ADB is running?

ADB has been reconfigured to operate over Wifi. I have successfully connected 
to the TCP port .

When I try to load the USB ethernet gadget driver, I get device busy.   
(modprobe g_ether)

We need to use the USB for our application. Is it possible to have ADB as well?

Thanks
Allen

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

2011-07-13 Thread nadam
perhaps this one http://sourceforge.net/projects/javaocr

On 12 Juli, 11:48, Lwe  wrote:
> how to read image as text

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


[android-developers] How come extending ListActivity results in a crash

2011-07-13 Thread Steven Bruce
I have changed my Bluetooth class from extends Activity to extends
ListActivity. Now everytime I run the program BOOM!! It bombs out!
What the hell is going on??

Steve

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 come extending ListActivity results in a crash

2011-07-13 Thread Mark Murphy
On Wed, Jul 13, 2011 at 5:54 PM, Steven Bruce  wrote:
> I have changed my Bluetooth class from extends Activity to extends
> ListActivity. Now everytime I run the program BOOM!! It bombs out!

Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and look at the stack trace associated with your "BOOM". My
guess is that you are missing the required android:id value of the
ListView if you are supplying your own layout.

-- 
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] Re: Sent SMS doesn't show up in the messaging app?

2011-07-13 Thread Erik
All messaging apps use the Telephony content provider to store messages. So 
you could insert() a message into the content://sms/ provider. It's not 
simple, you'll probably need to read through the code of the open source 
messaging app to figure out how to format the message.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Sent SMS doesn't show up in the messaging app?

2011-07-13 Thread Mark Murphy
On Wed, Jul 13, 2011 at 6:44 PM, Erik  wrote:
> All messaging apps use the Telephony content provider to store messages.

And your proof of this is... what, exactly?

Please cite the study where somebody has examined each and every
"messaging app" to determine that they all use a content provider that
may not exist.

-- 
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] Re: Streaming Wav Audio Error: MediaPlayer Prepare failed status=0x1

2011-07-13 Thread b0b
The sad truth is that you can't expect WAV http streaming to work on
all phones.
Some may work but not others.
MediaPlayer is very limited for audio http streaming and has all kind
of issues.
AAC and MP3 kind of works (with issues) and that's it.
It's so bad that most apps serious about http streaming will use
something else, often ffmpeg.
To play streamed WAV I've had to implement it myself (it is not very
difficult), feeding an AudioTrack.

On Jul 13, 12:42 am, nbonwit  wrote:
> Hello,
>
> We are streaming audio via http from ffserver/ffmpeg on Angstrom
> Linux.  The ffmpeg audio codec is PCM signed 16-bit little endian
> "pcm_s16le".  The ffmpeg stream format is "wav".  Both of these are
> claimed to be supported on Android 
> here:http://developer.android.com/guide/appendix/media-formats.html#core
>

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

2011-07-13 Thread goosedroid
I'm trying to find detailed information on how SQLiteCursor manages
large sets of data. I've read through the code but it isn't clear to
me.

Does anyone have any in-depth information on how exactly SQLiteCursor
behaves when working with a large resultset or one that would not
typically fit in memory? I'm specifically interested in how memory is
managed.

How is memory managed between sqlite and the Java bindings ?

There appears to be this concept of a window. When the current
position is about to go from one window to the next, does filling /
loading the next window happen on the UI thread?

I have a large dataset (30k) of items and would like to 'select *
from' this, but I have seen problems where users got errors saying
that the cursor could not grow in size. I have also heard when jumping
around in a large resultset, there can be lots of pauses.

However, I can't find any good information on how this really works.

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] question about ExpandableListView and a large string array

2011-07-13 Thread Jim Graham
I have a string array containing, at present, 286 entries, all of
which have matching entries (same int index in the other arrays)
that contain data relative to the first.  In other words,
position 1 in the first, has data in position 1 of the other
arrays, and so on.  These are all split up by brand/grain names
(e.g., "Briess 2 Row" and "Briess Caramel 20").

If I chose, instead of a simple ListView, to migrate this to an
ExpandableListView (where group 1 would be individual brands),
would I need to split all of those arrays[1], or would I merely
add a list of brands, that would then point to ranges in the main
list?  Or have I got all of this COMPLETELY wrong?

Thanks,
   --jim

[1] Splitting the lists would be easy enough to do via the same
Tcl script that created the big lists from the database I
built (in Tcl), so I wouldn't mind doing it...just not sure
if I need to.

-- 
73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W
Point Lobos Photography Set 1 (Photo-posters):  http://jdgapps.com

Do not look into laser with remaining eye!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Sent SMS doesn't show up in the messaging app?

2011-07-13 Thread Erik
On Wednesday, July 13, 2011 3:49:31 PM UTC-7, Mark Murphy (a Commons Guy) 
wrote:
>
> And your proof of this is... what, exactly?


Well, the messaging app my company wrote uses the Telephony content 
provider. Handcent SMS uses it, as does GO SMS. I'm guessing all the SMS 
backup apps out there back up the Telephony content provider.

If there's a phone out there that doesn't have this content provider, then 
the OP's app should be written to fail gracefully, but I think those will be 
few and far between.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 find how many home screens?

2011-07-13 Thread Hal Harrison
> No, sorry. I can envision a home screen implementation with infinite
> "home screens".

Thanks, Mark, for the reply. I was afraid of that and am looking at my
problem again.

What about this?

Occasionally onOffsetsChanged() gives an xStep of 0.0 or -1.0.
Otherwise it consistently gives 0.5 (emulator 2.1 with three home
screens) or 0.25 (emulator 2.2 with five home screens). Therefore, I
assume:

(1 / xStep) + 1 = number of current home screens.

Any problem with my assumption?  //at least until xStep gets
infinitesimally small : )

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

2011-07-13 Thread David Turner
Not NDK related, please try android-developers

On Wed, Jul 13, 2011 at 11:38 AM, Андрей Жданов  wrote:

> Hello everyone! :) I've found next problem. I've convert image resource
> with:
>
>
> BitmapFactory.Options o = new BitmapFactory.Options();
> o.inPreferredConfig = Bitmap.Config.RGB_565;
> BitmapFactory.decodeResource(r, R.raw.test003, o);
>
>
> Bitmap has format ARGB_/ (and others) but i expect in out RGB_565!
> Problem manifested with my device: *HTC Desire HD*. At an android emulator
> it's Ok
>
> --
> You received this message because you are subscribed to the Google Groups
> "android-ndk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/android-ndk/-/v48E-9V4dUYJ.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to
> android-ndk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/android-ndk?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: Application update emulator

2011-07-13 Thread Hal Harrison
> Is "abd install -r " is equal to application upgrade? .

I don't yet have an app in release, but with the emulators the abd
install -r from a command line while the emulator is running usually
works well to replace my *.apk without touching anything else on the
emulator. With emulator 2.1 this reinstall of my living wallpaper app
replaces the old code but not its Shared Preferences and when I invoke
the app onCreate() runs. With emulator 2.2, the old code is
overwritten and onCreate() doesn't run.

You may be asking something else, if so, my apologies.
Hal Harrison.

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


Re: [android-developers] Re: How can I find how many home screens?

2011-07-13 Thread Mark Murphy
On Wed, Jul 13, 2011 at 7:44 PM, Hal Harrison
 wrote:
> Occasionally onOffsetsChanged() gives an xStep of 0.0 or -1.0.
> Otherwise it consistently gives 0.5 (emulator 2.1 with three home
> screens) or 0.25 (emulator 2.2 with five home screens). Therefore, I
> assume:
>
> (1 / xStep) + 1 = number of current home screens.
>
> Any problem with my assumption?  //at least until xStep gets
> infinitesimally small : )

Yeah, OK, that's outside my scope of expertise. It sounds plausible, though.

-- 
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] Re: How can I find how many home screens?

2011-07-13 Thread Dianne Hackborn
This is part of the information in onOffsetsChanged(), give by the step
size.  Sorry for the lacking documentation there; you can get more
information about their meaning from here:

http://developer.android.com/reference/android/app/WallpaperManager.html#setWallpaperOffsetSteps(float,
float)

On Wed, Jul 13, 2011 at 4:44 PM, Hal Harrison
wrote:

> > No, sorry. I can envision a home screen implementation with infinite
> > "home screens".
>
> Thanks, Mark, for the reply. I was afraid of that and am looking at my
> problem again.
>
> What about this?
>
> Occasionally onOffsetsChanged() gives an xStep of 0.0 or -1.0.
> Otherwise it consistently gives 0.5 (emulator 2.1 with three home
> screens) or 0.25 (emulator 2.2 with five home screens). Therefore, I
> assume:
>
> (1 / xStep) + 1 = number of current home screens.
>
> Any problem with my assumption?  //at least until xStep gets
> infinitesimally small : )
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] App behaves wired after the task is killed by a TaskKiller

2011-07-13 Thread Dianne Hackborn
A task killer doesn't do anything more than the platform would when it needs
to kill your process when it is in the background.  You just need to deal
with this case.

On Wed, Jul 13, 2011 at 9:22 AM, dillipk  wrote:

> Hello,
>   My app have some issues after being killed by Task Killer.
>
> Sequence: -
> - Run the app
> - Press HOME key
> - Kill all the tasks by TaskKiller
> - Again run the app..
>
>  At this point, instead of starting the App gracefully(by starting the
> first screen which is a splash screen), it directly go to some other
> screen with EMPTY data.. Whole app behaves wired and the data is empty
> everywhere.
>
>
> Can my app listen to any event, when it is killed by a TaskKiller..? I
> tried debugging by going to onDestroy(), but it never got fired..
>
> Any help on this would greatly appreciated..
>
> Thanks in advance..
>
> DK
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Tomcat + Connectify + Android mobile

2011-07-13 Thread Sergio Michels
Hi all!

I'm trying to run one app that is installed on my notebook in my android
smartphone. To connect the devices I use Connectify.

The note and the android have ip address. From my note I can ping the
mobile, but from mobile I can't access the app.

Also, from the note I can access the app with the IP that android should
access...

Any tips?

Thanks in advice!

Regards,
Sérgio

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: "Can not identify source of the application" WARNING message upon install

2011-07-13 Thread James.sense.C
Thank you for your reply - I do have ''Unknown Sources' ticked and can
install other 3rd party applications (not through Android Market) on
my phone.  If I untick this setting, the device will not allow
installation at all.

I have tried across multiple devices, which also allow installation.
Prompting of the WARNING seems to vary by device / manufacturer
setting (I am guess that they have tweaked the base admin/security
settings from the reference builds of Android Google provides them
with).

The apps is also built in release mode and I am signing with private
1024 RSA key with KeyTool using Eclipse ADT.

Also during discussions with our CTO, is it possible this warning is
due to using a self-generated non-certificate authority signing key?

Thank you!

On Jul 14, 6:26 am, Peter Sinnott  wrote:
> Do you have unknown sources ticked in applications settings?
>
> On Jul 13, 8:59 pm, "James.sense.C" 
> wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I have tried searching for thiswarningin some forums and straight-up
> > on Google, but haven't found a hit that will resolve my issue yet.
>
> > I have successfully exported and signed (with own private key) my
> > app / apk, but when I install on my device (Samsung Galaxy series
> > equivalent) I get:
>
> > _
> >WARNING:
>
> > Can not identity source of the application.  Your personal information
> > might be disclosed.  And network or phone operation might become
> > unstable.  If any of these happen, you have to remove the
> > application.  Are you sure you want to continue?
> > _
>
> > I have since tried publishing my app on Android Market to no avail.
>
> > Thank you!
> > James Chung

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Fading views after interaction stops for a time...

2011-07-13 Thread Neal Sanche
Hi All,

I have a set of requirements that I'm not sure how to solve with
Android.

1) Initially show a set of views to the user.
2) After something happens in the app, set a timer for a few seconds
and fade the views so they are invisible.
3) If the user single taps on the application, fade the views back so
they are visible.
4) While the user interacts with the views, they will remain visible.
5) When the user stops interacting, fade the views away again after
the timeout.

So, I started playing with the Skeleton Application template. I saw
that Activity has an onUserInteraction method. After experiementation
I found that it is fired less frequently than I would like. It
definitely fires when the first touch happens, but it won't fire again
until the finger is lifted and put back down again. If the user is
interacting with a slider, or doing something silly like slowly
stroking a button in tiny little circles, the timeout will expire and
the view will fade out.

Here's some code for you to ponder. I apologize for the state of this.


public class SkeletonActivity extends Activity {

static final private int BACK_ID = Menu.FIRST;
static final private int CLEAR_ID = Menu.FIRST + 1;

private EditText mEditor;

private Handler mHandler;

public SkeletonActivity() {
}

/** Called with the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

mHandler = new Handler();

// Inflate our UI from its XML layout description.
setContentView(R.layout.skeleton_activity);

// Find the text editor view inside the layout, because we
// want to do various programmatic things with it.
mEditor = (EditText) findViewById(R.id.editor);

// Hook up button presses to the appropriate event handler.
((Button)
findViewById(R.id.back)).setOnClickListener(mBackListener);
((Button)
findViewById(R.id.clear)).setOnClickListener(mClearListener);

mEditor.setText(getText(R.string.main_label));

mButtonLayout = (LinearLayout)findViewById(R.id.buttonLayout);

mHandler.postDelayed(mTimeoutHandler, 2000);

}

private Runnable mTimeoutHandler = new Runnable() {

@Override
public void run() {
AlphaAnimation fade = new AlphaAnimation(1,0);
fade.setDuration(2000);
fade.setFillAfter(true);

fade.setAnimationListener(new AnimationListener() {

@Override
public void onAnimationStart(Animation arg0) { }

@Override
public void onAnimationRepeat(Animation arg0) { }

@Override
public void onAnimationEnd(Animation arg0) {
mButtonLayout.setVisibility(View.INVISIBLE);
}
});
mButtonLayout.startAnimation(fade);
mButtonLayout.setEnabled(false);
}

};



@Override
public boolean onTouchEvent(MotionEvent event) {
mHandler.removeCallbacks(mTimeoutHandler);
mHandler.postDelayed(mTimeoutHandler, 2000);
return super.onTouchEvent(event);
}

@Override
public void onUserInteraction() {
Log.e("UI","UserInteraction");
if (!mButtonLayout.isEnabled()) {
mButtonLayout.setEnabled(true);
AlphaAnimation fade = new AlphaAnimation(0,1);
fade.setDuration(100);
fade.setFillAfter(true);
mButtonLayout.setVisibility(View.VISIBLE);
mButtonLayout.startAnimation(fade);
}
mHandler.removeCallbacks(mTimeoutHandler);
mHandler.postDelayed(mTimeoutHandler, 2000);
}

...

The rest of the code is identical to the standard Skeleton Application
complete with the Back and Clear buttons and all I did was set the
linear layout around the buttons and imageview to have an different
id:

android:id="@+id/buttonLayout"

So, my deep questions are: Is there a way to intercept the flow of
messages to an activity at a lower layer than the touch events? If
not, is there a way to intercept all of the touch events for a given
view heirarchy so I can know for sure if the user is currently
interacting with something?

And a final question, for bonus points, how do I stop the views in the
buttonLayout from being clicked when they are invisible? Maybe it's
just that they are getting the touch events because my code is making
the view visible in the onUserInteraction?

Thanks in advance for any help.

Cheers.

-Neal

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

2011-07-13 Thread Shereef Marzouk
the whole idea behind using the Android_ID is not having to set a permission 
read phone state
it defeats the purpose Rampanda

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Fading views after interaction stops for a time...

2011-07-13 Thread Neal Sanche
> So, my deep questions are: Is there a way to intercept the flow of
> messages to an activity at a lower layer than the touch events? If
> not, is there a way to intercept all of the touch events for a given
> view heirarchy so I can know for sure if the user is currently
> interacting with something?

I may have answered my main question by discovering that I can
override the dispatchTouchEvent method in my Activity. This gives me
events no matter what I'm interacting with. I just implemented:

@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
Log.e("UI","dispatchTouchEvent");

mHandler.removeCallbacks(mTimeoutHandler);
mHandler.postDelayed(mTimeoutHandler, 2000);

return super.dispatchTouchEvent(ev);
}

With this I am able to postpone the timeout while the user is
interacting, indefinitely. Then two seconds after they let go of the
screen, the timeout handler gets called back and it will fade out the
buttons. That'll probably solve my issues for now. Is this solution a
bad one for some reason?

Cheers,

Neal

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

2011-07-13 Thread Zsolt Vasvari
There is some sort of fixed maximum size to the dataset.  When I hit
it, moving the Cursor backwards in the data set becomes unusable.  It
still works, but just unbearably slowly.  Forward movement in the
dataset is no problem still.  That said, I've never ran into an issue
where it would give an actual crash due to memory or other problems.



On Jul 14, 7:11 am, goosedroid  wrote:
> I'm trying to find detailed information on how SQLiteCursor manages
> large sets of data. I've read through the code but it isn't clear to
> me.
>
> Does anyone have any in-depth information on how exactly SQLiteCursor
> behaves when working with a large resultset or one that would not
> typically fit in memory? I'm specifically interested in how memory is
> managed.
>
> How is memory managed between sqlite and the Java bindings ?
>
> There appears to be this concept of a window. When the current
> position is about to go from one window to the next, does filling /
> loading the next window happen on the UI thread?
>
> I have a large dataset (30k) of items and would like to 'select *
> from' this, but I have seen problems where users got errors saying
> that the cursor could not grow in size. I have also heard when jumping
> around in a large resultset, there can be lots of pauses.
>
> However, I can't find any good information on how this really works.
>
> 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


  1   2   >