[android-developers] Re: Application wake up

2010-03-17 Thread Raj
Hi SAM,
As per the link that gives the sample application of handling the SMS,
you registers your application to the Android OS by mentioning in the
manifest file, the intended receiver on any incoming SMS message.
So your application need not be active for this. The moment device
receives an SMS, your application will get the notification at
onReceive.
Regards,
Raj

On Mar 18, 10:49 am, SAM  wrote:
> hi,
> I found a 
> link:http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-s...
>
> But to recieve the SMS, my application need not be runnning. Can I
> receive SMS when my app is not running. Moreover after scanning the
> SMS prefix eg: 'MyAppID':XYZ,  I also also want to start the
> application through code.
>
> Thanks
> Sameer
>
> On Mar 18, 10:03 am, SAM  wrote:
>
>
>
> > Hi,
> > I have a requirement to wake up my application upon receiving a
> > particular formatted SMS or App directed notification from server.
>
> > My application is in dead state. Whenever the device receives a event
> > may be a SMS in a particular format OR some notification(eg app
> > directed notification from server), android OS will start my
> > application.
>
> > Its possible in Windows Mobile and BREW.
>
> > Please let me know if its possible in Android and how.
>
> > Thanks
> > Sam- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Re: AIDL in multiple projects in Eclipse

2010-03-22 Thread RAJ
I am facing same problem too.
I dont ahve AIDL in both projects (i have it only in my service
project)
Am i supposed to have same AIDL in both projects?

On Mar 17, 1:58 am, Andreas  wrote:
> Hi,
>
> Do you set the android:exported property of your service to "true" in
> the manifest for the service?
>
> Regards
> Andreas
>
> On Mar 17, 1:47 am, Peter Fortuin  wrote:
>
>
>
> > I had that, but that didn't work. Now I just have set my Build Path in the
> > gui application.
>
> > 2010/3/16 Sime 
>
> > > Quick question, do you have the aidl file in both applications?
>
> > > Regards
>
> > > On 16 mar, 14:07, Peerke  wrote:
> > > > Hello,
>
> > > > I have problems with the following:
>
> > > > I want to create to applications. One with a Android service and one
> > > > with a Activity that will use functions on the Service.
> > > > Before I splitted this in to applications I got everything working in
> > > > one application. I can call functions (that are definned in the aidl-
> > > > file) on the service without problems.
>
> > > > Now the problems coms. I splitted the application into two parts, a
> > > > Service application and Gui application.
> > > > The bindins to the service (in the gui application) works and I see
> > > > that the service is getting created. Then in the onServiceConnected
> > > > function of the ServiceConnection class I created the following:
>
> > > > mService = IMyService.Stub.asInterface(service);
>
> > > > And this gives me the following exception:
>
> > > > 03-16 13:53:05.549: ERROR/AndroidRuntime(881):
> > > > java.lang.NoClassDefFoundError: MyPackage.IMyService$Stub
>
> > > > It looks like he can't find the Stub class in IMyService. But the Stub
> > > > is part of the java file generated out of the aidl-file.
>
> > > > Anyone has any idea why I get this exception or how I can resolve this
> > > > issue?
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com > >  cr...@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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] Re: AIDL in multiple projects in Eclipse

2010-03-22 Thread RAJ
Can you please explain how did u solve this problem? I am facing
problem too

On Mar 16, 6:07 am, Peerke  wrote:
> Hello,
>
> I have problems with the following:
>
> I want to create to applications. One with a Android service and one
> with a Activity that will use functions on the Service.
> Before I splitted this in to applications I got everything working in
> one application. I can call functions (that are definned in the aidl-
> file) on the service without problems.
>
> Now the problems coms. I splitted the application into two parts, a
> Service application and Gui application.
> The bindins to the service (in the gui application) works and I see
> that the service is getting created. Then in the onServiceConnected
> function of the ServiceConnection class I created the following:
>
> mService = IMyService.Stub.asInterface(service);
>
> And this gives me the following exception:
>
> 03-16 13:53:05.549: ERROR/AndroidRuntime(881):
> java.lang.NoClassDefFoundError: MyPackage.IMyService$Stub
>
> It looks like he can't find the Stub class in IMyService. But the Stub
> is part of the java file generated out of the aidl-file.
>
> Anyone has any idea why I get this exception or how I can resolve this
> issue?

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] Re: AIDL in multiple projects in Eclipse

2010-03-22 Thread RAJ
Did u fix this issue? If so, can u pls explain me the solution for the
same?

On Mar 16, 7:33 am, Sime  wrote:
> Quick question, do you have the aidl file in both applications?
>
> Regards
>
> On 16 mar, 14:07, Peerke  wrote:> Hello,
>
> > I have problems with the following:
>
> > I want to create to applications. One with a Android service and one
> > with a Activity that will use functions on the Service.
> > Before I splitted this in to applications I got everything working in
> > one application. I can call functions (that are definned in the aidl-
> > file) on the service without problems.
>
> > Now the problems coms. I splitted the application into two parts, a
> > Service application and Gui application.
> > The bindins to the service (in the gui application) works and I see
> > that the service is getting created. Then in the onServiceConnected
> > function of the ServiceConnection class I created the following:
>
> > mService = IMyService.Stub.asInterface(service);
>
> > And this gives me the following exception:
>
> > 03-16 13:53:05.549: ERROR/AndroidRuntime(881):
> > java.lang.NoClassDefFoundError: MyPackage.IMyService$Stub
>
> > It looks like he can't find the Stub class in IMyService. But the Stub
> > is part of the java file generated out of the aidl-file.
>
> > Anyone has any idea why I get this exception or how I can resolve this
> > issue?

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] Getting installed application Size

2009-04-07 Thread Raj

Hi,
I am using PackageManager class to retrive the information of the
installed application on the device.
But I didnt get any way to retrive the application Size on the device.

Can any one help me out in getting how to achive this.

Regards,
Raj

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



[android-developers] SMS Interception

2009-12-03 Thread Raj
Hi

My app needs to intercept SMS messages but the problem is that the SMS
are intercepted while my App is active and running.   Otherwise, the
SMS messages are delivered to the SMS app only.

How do you configure the Android Manifest file to let the system send
certain SMS messages to be send to a particular App.   Say.. all
messages matching certain attribute with in SMS like.. mime-type to be
send to my App.

Thanks
Raj

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

2009-08-13 Thread Raj

Hi, I am using KSOAP2 to call a .NET webservice from android
application,and the response from the web service is in the following
format

anyType{
UserName=anyType{};
Password=anyType{};
ApplicationCode=JOB;
ActionType=Query;
MessageParameters=anyType{Parameters=anyType{}; };
TableData=anyType{TableNo=167;
  TableName=Job;
  DataRows=
  anyType{
DataRow=
  anyType{
 DataRowValues=
anyType{
DataRowValue=
anyType{
FieldNo=1;
FieldName=No.;
PrimaryKey=true;
FieldType=Code20;
DataValue=DEERFIELD, 8 WP;
   };
   DataRowValue=
anyType
   {
FieldNo=3;
FieldName=Description;
PrimaryKey=false;
FieldType=Text50;
DataValue=Setting up Eight
Work Areas;
   };
 DataRowValue=
anyType
   {
FieldNo=4;
FieldName=Description 2;
PrimaryKey=false;
FieldType=Text50;
DataValue=anyType{};
   };
};
  };
   };
   };
};
 ResponseForRequest=GETTABLEDATA;
 CustomIdentifier=TestBB;
Applications=anyType{};
Forms=anyType{};
Menu=anyType{};
}

I am not aware about the format of this response and i don't know how
to parse this response to get particular result.Any one knows about it
please help me.

Note: i manually formatted this response for your understanding.

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



[android-developers] Creating Default Connection Entery..

2009-08-26 Thread Raj

Hi All,
I need my application to use a defined APN connection setting all the
time it connects to network.
Fot this I check for the APN entery and if its not there I create it
programatically. But how can I make sure that the application is using
that particular connection entry for its IP connectivity.
How can I set that APN as defualt? And also after using this setting I
should be able to revert the defualt entry set by the user.

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



[android-developers] HELP!! GPS wont stop even after I removed listeners or exited app

2009-04-30 Thread Raj

I am pulling my hair out. Please help

My app have 1 view, on chekbox it starts gps and on onother check it
stops gps to get current location. I have private listener class to
listen to location changes. onLocationUpdate it updates couple of
static variables.

I am explicitly removing the listener but I am still getting updates
to the static vars. I tried to set the listener to null, system.gc you
name it.

I put a toast to make sure that lm.removeUpdates(locationListener); is
happening and it is getting to that line.

Please help.

Device: Android Dev1 phone on ATT.

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



[android-developers] HELP!! GPS wont stop even after I removed listeners or exited app

2009-04-30 Thread Raj

I am pulling my hair out. Please help

My app have 1 view, on chekbox it starts gps and on onother check it
stops gps to get current location. I have private listener class to
listen to location changes. onLocationUpdate it updates couple of
static variables.

I am explicitly removing the listener but I am still getting updates
to the static vars. I tried to set the listener to null, system.gc you
name it.

I put a toast to make sure that lm.removeUpdates(locationListener); is
happening and it is getting to that line.

Please help.

Device: Android Dev1 phone on ATT.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 test sample Bluetooth application in Android emulator?

2010-02-02 Thread Raj
Hi to All,

I wanted to test a sample Bluetooth application in android
emulator, then i come to know that the android emulator does not have
bluetooth support.I read some thing connect external USB Bluetooth
dongle to the Mechine and bridge that dongle to android emulator.But
they didn't provided the steps.Now i plugged the USB Bluetooth dongle
to my System and i do not how to bridge that with android emulator.Is
there any way to do this?.I am struggling to achieve this, please some
body who knows the solution help me.

Regards,
Raj

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

2009-12-07 Thread Raj
can we register a URI scheme just like the iphone SDK so as to open
the App.

Like  for example:   myapp://  is registered with my app and I should
be able to start my
app when SMS content contains the myapp:// link embedded.

Thanks for the answer

Raj

On Dec 7, 6:58 am, "Dexter's Brain"  wrote:
> Hi Raj,
>
> This is not possible, since thisSMSbroadcast is an unordered
> broadcast. So you can't intercept it, and prevent the broadcast to
> reach the defaultSMSapplication.
>
> Thanks,
> Kumar Bibekhttp://tech-droid.blogspot.com
>
> On Dec 3, 9:03 pm, Raj  wrote:
>
> > Hi
>
> > My app needs to interceptSMSmessages but the problem is that theSMS
> > are intercepted while my App is active and running.   Otherwise, the
> >SMSmessages are delivered to theSMSapp only.
>
> > How do you configure the Android Manifest file to let the system send
> > certainSMSmessages to be send to a particular App.   Say.. all
> > messages matching certain attribute with inSMSlike.. mime-type to be
> > send to my App.
>
> > Thanks
> > Raj

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


[android-developers] Looking for Android Developers for 6 Months contract in the US

2009-12-10 Thread Raj
Folks

Not sure if this is appropriate but couldnt hurt posting this one in a
down economy. I am looking for two Android User Interface developers
to join my team for a 6 month stint.

The candidates must be in the US. I can only entertain US candidates
at this time please. Preferably in NJ or Denver Colorado.

I am the end client. Please send resumes or your contact info to
rajm...@gmail.com and I will get in touch with you.

Remember I need someone who has a great background in UI development
and on Android.

Thanks
Raj



**
Two US based contractors for a 6 -9 Month position for Android UI
Development. Candidates must have at least one full project
implementation on Android Mobile development and expertise and
emphasis on User Interface development. Candidate must be able to show
sample screens or mock applications in Android and avail for a casual
technical interview.



Must Have skills: Experienced java developers, Mobile development and
a flair for UI development. Flash development is a plus.
**

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


[android-developers] Format SD card.

2009-12-18 Thread Raj
Hi,

Is there any way to Format the SD card data, through Android SDK code?

Regards,
Raj

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


[android-developers] Upgrade Application

2010-01-11 Thread Raj
Hi,
I have a service running in my application. This service gets the
upgraded APK from the server and starts the Inataller Intent to
upgrade the application.
Now if user selects to upgrade, application gets upgraded
successfully, without deleting the persistance.
But while upgarding, all the receivers and services are killed
forcefully by the PackageManager. And it does not re-start the
services that were running before upgrade.
Is there are way to get the notification when the service is killed
and upgareded, so that it can be restarted automatically on upgarade?
Or is there any other better way to implement upgrade with running
services getting killed?

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

[android-developers] Re: Upgrade Application

2010-01-13 Thread Raj
Any One ? Can this be done??

On Jan 12, 10:35 am, Raj  wrote:
> Hi,
> I have a service running in my application. This service gets the
> upgraded APK from the server and starts the Inataller Intent to
> upgrade the application.
> Now if user selects to upgrade, application gets upgraded
> successfully, without deleting the persistance.
> But while upgarding, all the receivers and services are killed
> forcefully by the PackageManager. And it does not re-start the
> services that were running before upgrade.
> Is there are way to get the notification when the service is killed
> and upgareded, so that it can be restarted automatically on upgarade?
> Or is there any other better way to implement upgrade with running
> services getting killed?
>
> Regards.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to work with startSearch()?

2010-01-13 Thread Raj
Hi!
I am working on android2.0.I need help about android default
search.when I click on search button(url+enter search key) it's
internally call another activity.How to display search result within
same view instead calling another activity?
Please help me .It's very argent .please please help me

Thanks & Regards
Basudev
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Blocking on a Socket read operation while in sleep mode

2010-01-19 Thread Raj
Yes, the CPU is OFF when the device goes to sleep. The socket is non-
responsive at this time.
Hope that helpps.

On Dec 28 2009, 8:52 pm, Omer Gilad  wrote:
> I have code that runs in the background and holds a connected Socket
> and it's InputStream.
> It calls read() infinitely until something is received, then continues
> to parse. Socket timeout is 0 of course.
>
> I am interested in what would happen when the device goes to sleep? Is
> the CPU off? Will this socket be responsive in this case (Say, my
> server sends some notification)?
>
> 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 Start application On-Install

2009-06-16 Thread Raj

Hi,
I want to start my application just after it gets installed on the
device. Is there any way out in Android to do so.
I was wondering if there is any receiver to get informed on package
installed.
Regards
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: help with apn settings insertion

2009-06-17 Thread Raj

use following permission in your manifest file:


Should solve your problem. Mind you that on 1.5 sdk, the apn may not
appear on the device list.
Let me know if it solves the problem.

On Jun 16, 8:13 pm, kalyan simhan  wrote:
> hi ppl...
> im getting permission error when trying to insert into apn
> setting table(carriers)
> ContentResolver contentResolver = getContentResolver();
>         contentResolver.insert(Uri.parse("content://telephony/carriers"),
> cv);
> im using sdk 1.5 ... kindly help!!
> thanks in advance!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to Start application On-Install

2009-06-17 Thread Raj

Thanks erictcrook for the idea, but it wont work unless and untill you
start the application manually once.

Hi Dianne, so there is no way out in Android for the application to
run on install, correct?
But I feel that this feature should have been there, as it is
available in all other mobile platform like Symbian, WinCE,RIM etc. As
there is NO silent installation API available in Android hence, it is
the user only which is going to install the application, then what is
the harm on making the application up on install complete?
Or Andoird is having the future plan on this?

Thanks,
Raj

On Jun 18, 1:55 am, Dianne Hackborn  wrote:
> There is a button in market to launch the app.  So you see in the status bar
> that the download is down, select the notification, now you are in market
> about the app saying it is installed, and you can press the button there to
> launch the app for the first time.
>
>
>
>
>
> On Wed, Jun 17, 2009 at 12:05 PM, MrSnowflake  wrote:
>
> > I think that's a very good reason not to send it to a newly installed
> > app. Though you could give the user the option to start the app
> > immediately after install, with a button for example.
>
> > On Jun 17, 8:55 pm, Dianne Hackborn  wrote:
> > > We deliberately don't send this broadcast to an app when it is first
> > > installed (as of cupcake you -will- get the broadcast when being updated
> > > from a previous install).  It is generally up to the user to launch your
> > app
> > > when they want to.
>
> > > On Tue, Jun 16, 2009 at 12:11 PM, erictcr...@gmail.com <
> > erictcr...@gmail.com
>
> > > > wrote:
>
> > > > I'm not sure, but I believe the following code may help.
>
> > > > put the folling in your AndroidManifest.xml as a child of your
> > > > Application tag
>
> > > >        > > > android:enabled="true">
> > > >                
> > > >                         > > > android:name="android.intent.action.PACKAGE_ADDED" /
>
> > > >                        
> > > >                
> > > >        
>
> > > > Then create a class that extends BroadcastReceiver, and use it's
> > > > onReceive method to start your activity
>
> > > >   public class InstallReceiver extends BroadcastReceiver {
>
> > > >   public void onReceive(Context context, Intent intent) {
>
> > > >      String data = intent.getDataString();
>
> > > >      if (data.equals("package:com.ericcrook.InstallReceiver")) {
> > > >         //Start your application using startActivity or whatever is
> > > > appropriate for
> > > >         //your project
> > > >      }
> > > >   }
> > > > }
>
> > > > I'm not very good with the Intent system, so some of this may be
> > > > correct, but hopefully this is better than nothing.
>
> > > > On Jun 16, 6:21 am, Raj  wrote:
> > > > > Hi,
> > > > > I want to start my application just after it gets installed on the
> > > > > device. Is there any way out in Android to do so.
> > > > > I was wondering if there is any receiver to get informed on package
> > > > > installed.
> > > > > Regards
>
> > > --
> > > 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.
>
> --
> 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.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to Start application On-Install

2009-06-18 Thread Raj

Thanks a lot Dianne for the reply.
So I will take that - there is no way out in Android for the
application to "run-on-install" as of now.

Regards,
Raj

On Jun 18, 1:34 pm, Dianne Hackborn  wrote:
> This is working as intended, and there is no plan at this point to change
> it.
>
>
>
>
>
> On Wed, Jun 17, 2009 at 10:49 PM, Raj  wrote:
>
> > Thanks erictcrook for the idea, but it wont work unless and untill you
> > start the application manually once.
>
> > Hi Dianne, so there is no way out in Android for the application to
> > run on install, correct?
> > But I feel that this feature should have been there, as it is
> > available in all other mobile platform like Symbian, WinCE,RIM etc. As
> > there is NO silent installation API available in Android hence, it is
> > the user only which is going to install the application, then what is
> > the harm on making the application up on install complete?
> > Or Andoird is having the future plan on this?
>
> > Thanks,
> > Raj
>
> > On Jun 18, 1:55 am, Dianne Hackborn  wrote:
> > > There is a button in market to launch the app.  So you see in the status
> > bar
> > > that the download is down, select the notification, now you are in market
> > > about the app saying it is installed, and you can press the button there
> > to
> > > launch the app for the first time.
>
> > > On Wed, Jun 17, 2009 at 12:05 PM, MrSnowflake 
> > wrote:
>
> > > > I think that's a very good reason not to send it to a newly installed
> > > > app. Though you could give the user the option to start the app
> > > > immediately after install, with a button for example.
>
> > > > On Jun 17, 8:55 pm, Dianne Hackborn  wrote:
> > > > > We deliberately don't send this broadcast to an app when it is first
> > > > > installed (as of cupcake you -will- get the broadcast when being
> > updated
> > > > > from a previous install).  It is generally up to the user to launch
> > your
> > > > app
> > > > > when they want to.
>
> > > > > On Tue, Jun 16, 2009 at 12:11 PM, erictcr...@gmail.com <
> > > > erictcr...@gmail.com
>
> > > > > > wrote:
>
> > > > > > I'm not sure, but I believe the following code may help.
>
> > > > > > put the folling in your AndroidManifest.xml as a child of your
> > > > > > Application tag
>
> > > > > >        > > > > > android:enabled="true">
> > > > > >                
> > > > > >                         > > > > > android:name="android.intent.action.PACKAGE_ADDED" /
>
> > > > > >                        
> > > > > >                
> > > > > >        
>
> > > > > > Then create a class that extends BroadcastReceiver, and use it's
> > > > > > onReceive method to start your activity
>
> > > > > >   public class InstallReceiver extends BroadcastReceiver {
>
> > > > > >   public void onReceive(Context context, Intent intent) {
>
> > > > > >      String data = intent.getDataString();
>
> > > > > >      if (data.equals("package:com.ericcrook.InstallReceiver")) {
> > > > > >         //Start your application using startActivity or whatever is
> > > > > > appropriate for
> > > > > >         //your project
> > > > > >      }
> > > > > >   }
> > > > > > }
>
> > > > > > I'm not very good with the Intent system, so some of this may be
> > > > > > correct, but hopefully this is better than nothing.
>
> > > > > > On Jun 16, 6:21 am, Raj  wrote:
> > > > > > > Hi,
> > > > > > > I want to start my application just after it gets installed on
> > the
> > > > > > > device. Is there any way out in Android to do so.
> > > > > > > I was wondering if there is any receiver to get informed on
> > package
> > > > > > > installed.
> > > > > > > Regards
>
> > > > > --
> > > > > Dianne Hackborn
> > > > > Android framework engineer
> > > > > hack...@android.com
>
> > > > > Note: please don't send private questions to me, as I don't have time
> > to
> > > 

[android-developers] Released: Contact Groups + New & Forward MMS/MMS to Your groups as SMS/MMS/Email

2009-07-17 Thread Raj

Released: V1.0.0

Contact Groups + New & Forward MMS/MMS to Your groups as SMS/MMS/Email

- Create and manage multiple SMS/MMS/EMAIL groups from your contacts.
- Initiate new SMS/MMS/EMAIL to one or more contacts and/or groups.
- Forward your SMS and MMS (Picture) to your groups as SMS/MMS or
Emails (With your own comments)
- Long press on message for full view

PS: Interface emulated as the "Other" 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] URI.parse is not working correctly in 2.3

2011-05-25 Thread raj
①Content Provider(XML)
 
②,③src
  Uri uri = Uri.parse( "content://jp.test.testapp.provider/
starter.html?XXX" );
  Intent intent = new Intent(Intent.ACTION_VIEW,uri);
  intent.setClassName("com.android.browser",
"com.android.browser.BrowserActivity");
  startActivity( intent );

this is the code which is running in android v2.2 but it is not
working in android v2.3.

In 2.2 it is displaying the exact web site.
but in 2.3 it is staying on same page.

what is the problem?

in android 2.3 anything change in API level which effect this code?

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


[android-developers] how to create xml file in android

2011-06-06 Thread raj
I want to create xml file in my  project for saving some data to it
please can anyone help me

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


[android-developers] Flipping a draw 9 image horizonally..

2011-06-08 Thread Raj
Hi

I am trying to rotate a draw 9 image horiontally.  But all the
stretching is done.

Bitmap bmp =
BitmapFactory.decodeResource(res,incomingColorId);

   Matrix matrix = new Matrix();
matrix.setScale(-1.0f, 1.0f);
Bitmap incomingImageFlipped
=Bitmap.createBitmap(bmp,
0,0,bmp.getWidth(),bmp.getHeight(),matrix,false);
BitmapDrawable bd = new
BitmapDrawable(incomingImageFlipped);
listItemCellView.setBackgroundDrawable(bd.getCurrent());


But it doesn't stretch properly.  It stretches like a regular image.

Any ideas any one

Thanks
Raj

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


[android-developers] Flipping a draw 9 image horizonally..

2011-06-08 Thread Raj
Hi

I am trying to rotate a draw 9 image horiontally.  But all the
stretching is done.

Bitmap bmp =
BitmapFactory.decodeResource(res,incomingColorId);

Matrix matrix = new Matrix();
matrix.setScale(-1.0f, 1.0f);
Bitmap incomingImageFlipped =Bitmap.createBitmap(bmp,
0,0,bmp.getWidth(),bmp.getHeight(),matrix,false);
BitmapDrawable bd = new
BitmapDrawable(incomingImageFlipped);
listItemCellView.setBackgroundDrawable(bd.getCurrent());

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


[android-developers] web services

2012-04-02 Thread raj
how i can integrate web services in ma application like connecting our
mobile with othes..

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


[android-developers] Custom Keyboard IME with default auto-correct

2012-08-02 Thread raj
Hi,

I am developing a custom keyboard/IME for my project. Is there anyway(like 
API) that I could enable auto-correct using the inbuilt dictionary.
I do not worry about languages(english is good enough). But, I need the 
auto-correct to be enabled.

Any suggestions?

Best,
R

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

[android-developers] Uploading large size files to server using HttpUrlConnection in Android

2012-08-29 Thread Raj
Hi:

If we use HttpUrlConnection for uploading large MB files (20 MB) with PUT 
method, getting out of memory error. We have used the method 
setFixedLengthOnStream() to over come from Out of Memory error. However the 
response from server is coming as 411 (CONTENT_LENGTH NOT FOUND), though we 
have explicitly set this

If we use POST, we need server side script (PHP) to handle this which we 
are trying to avoid

Regards
Raj

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

[android-developers] Is there any way to change contents of shape.xml of drawable folder?

2011-09-08 Thread Raj
Hello,
In app, I've used a shape.xml for giving a rounded rectangle shape to my 
view (as seen below) and in that, I've used some color. Now, what I want to 
do is change the color in this shape.xml dynamically so that I can make some 
fade color animation out of it. So is there any way to change the color 
value in that file dynamically? Here is that file -

**
*http://schemas.android.com/apk/res/android"*
*android:shape="rectangle">*
**
**
**
*

*Alternatively, can you suggest some dynamic code from which I can achieve 
the same that this shape.xml does, so that I can pass a color as a parameter 
over there?
*
Please Help.*
*
*
*-Regards,*
*Rajkiran Bande.*

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

[android-developers] Record audio stream before it reaches speakerphone or headset. (Not a noob question.)

2011-09-20 Thread Raj
Hello all,
I googled a lot for this and went through all possible forums but I couldn't 
find any solution so I thought of giving it a last try here. Coming back to 
the point-

In my app, I am playing some sounds on click of buttons. What I want to do 
is whenever the users clicks on those buttons in any tempo it should play 
(like a piano) and also that sound stream must get stored somewhere so as to 
record the sounds that were played. The only solution I found till now is 
using

MediaRecorder.AudioSource.MIC

But, this records the stream with the surroundings sounds also (because it 
is recording the sound that comes from speakerphone. Won't work in case of 
headphones.)
So, please give me a solution for this. Thank you in advance.

__

Regards,
Rajkiran Bande.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 mix or append mp3 or wave files one after the other and save the resulting file onto the SD card in android?

2011-09-26 Thread Raj


I have some mp3 files in my /res/raw folder. What I am doing is that, 
whenever a user clicks on a button a respective sound is played and after he 
is finished with pressing all the buttons, I want to club all those mp3 
files together and a make a new audio file out of it and save it to sd card. 
I googled a lot and foundAudioTrack and SoundPoolclasses useful but they 
couldn't resolve the issue.

Please Help.

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

[android-developers] How to record whatever is being played by the MediaPlayer or SoundPool in android?

2011-09-28 Thread Raj


In my app I am playing a different sound on click of each button and 
whatever the buttons are clicked, there respective sound is being played. 
What I want to do is, record those sounds (or that stream) which are getting 
played in the background and save it to a file in sdcard.

A sample code or link would be very much helpful.

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

[android-developers] Image zoom on double tap and scroll to next image if crosses view's boundary

2012-04-26 Thread raj
Dear All,


Please explain me more on the following.
I have 3 images.
1.on double zoom the image.
2. Provide scroll in the zoomed image
3.move to the next image once it crosses boundary
4.set thumnail accordingly.

Thanks in advance.

Raaj

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


[android-developers] Media Player progressive download

2012-06-29 Thread Raj
Hi ,

I am new to android. i am developing an app that has the capabilities to 
play video.

I used default media player. what i want is while streaming video through 
http i want to save the video in SD Card.
so that next time i can play it from the SD card instead of playing from 
server.

Can anyone please help me.

  

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

[android-developers] How to get the keyCode on keypress for Android 2.3

2012-06-29 Thread raj
Hi,

For my experiment I have created a custom keyboard by extending the 
soft-keyboard code in the examples.
Part of the experiment is to add new keys and act on them.

But unfortunately all my efforts to intercept the keyPress is not working 
100%.
I have debug log statements to check the flow of keypress which works for 
'enter', 'backspace' etc, but dosen't work for any other keys.

Any help in atleast pointing me to right direction would be of great help.

Best,
R

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

[android-developers] WebView & JavaScript

2011-07-25 Thread Raj
I have a webview which loads a url. That page has some javascript
functions that I want to call which return JSON data. What is the best
way to 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] Divider b/w Linear Layout items

2011-07-29 Thread Raj
Hi,
   I am using LinearLayout(Horizontal orientation) inside which I have
2 views
   1. TextView
   2. ImageView

I was looking to bring a divider line b/w each view(ie TextView &
ImageView)
I found that there is a constant SHOW_DIVIDER_MIDDLE  which I believe
can be used to show divider b/w each items (Refer
http://developer.android.com/reference/android/widget/LinearLayout.html#attr_android:weightSum)

I just could not figure out a way on how to add this constant in my
XML layout file. Can someone please help me on 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] Copy video to internal memory and play

2011-08-02 Thread Raj
Hello,
I want to copy a video from sdcard to internal memory and play it. I was 
successful in copying the video to internal memory since the file size for 
both source and destination are same. But when I try to play the video from 
the internal memory it doesn't play it.
If I copy the video to sdcard at some other location the video gets copied & 
plays successfully with the same code.

Please help.

Here's the code - 

String actualPath = "/sdcard/DCIM/Camera/sample.3gp";
File source = new File(actualPath);
File destination = new File(getFilesDir(),"sample.3gp");

try {
destination.createNewFile();
} catch (IOException e) {
e.printStackTrace();
}

copyFile(source, destination);  //Function to copy the file

if(destination.exists())
{
getWindow().setFormat(PixelFormat.TRANSLUCENT); 
videoHolder = new VideoView(this); 
videoHolder.setMediaController(new MediaController(this)); 
setContentView(videoHolder);

if(destination.exists())
{
videoHolder.setVideoURI(Uri.fromFile(destination));
videoHolder.requestFocus();
videoHolder.start();
}
else{
alertbox.setMessage("Sorry, no such video found!");
alertbox.show();
}
}
else
Toast.makeText(this, "Video does not exist", Toast.LENGTH_LONG).show();

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 delete a video file's entry from content provider

2011-08-04 Thread Raj
Hello,
In my app, I've moved the recorded video to some other location. When I try 
to find the file from explorer, there is no file present (but obvious). But, 
an entry of that video (a thumbnail) is present in the gallery. When I click 
on that thumbnail, the video doesn't play. So, I want to remove this entry 
from the gallery. I think the reason is, content provider.
So I want a sample code to remove the entry of that moved video from content 
provider.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 delete a video file's entry from content provider

2011-08-04 Thread Raj
Hello,
In my app, I've moved the recorded video to some other location. When I try 
to find the file from explorer, there is no file present (but obvious). But, 
an entry of that video (a thumbnail) is present in the gallery. When I click 
on that thumbnail, the video doesn't play. So, I want to remove this entry 
from the gallery. I think the reason is, content provider.
So I want a sample code to remove the entry of that moved video from content 
provider.

Thank you in advnace.

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

[android-developers] Click an item in GridView programmatically

2011-08-10 Thread Raj
Hello all,
I have a problem with GridView. What I want to do is click on an item in the 
GridView programmatically, i.e. without any need to click on it by user. I 
know that performClick() is the function to do so. But, how to use it with 
GridView? Because, I want to click on a specific item in that gridview, not 
an entire gridView. Please help.

-

Regards,

Rajkiran Bande.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 we have a RelativeLayout with rounded rectangle shape and an image in the background?

2011-08-25 Thread Raj
Hello,
I am stuck. Can we have a RelativeLayout with rounded rectangle shape and an 
image in the background? I was successful in giving roundrect shape/image in 
the background, but not both. So can anybody tell me how can we acheive 
both?

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

[android-developers] arrow keys like in swype

2012-11-05 Thread raj
Hi,

I am learning android programming and have taken the task of creating my 
own IME.
I am using LatinIME for this and creating my own SWYPE keyboard.

How can I implement the select-text with arrow keys that we have in SWYPE?
I have implemented the arrow-keys and can move the cursor around, but do 
not know how to make the selection work.

ic.setSelection(start, end) is one available function, but do not getting 
how to correctly set those values either.

Any help is appreciated.

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

[android-developers] Re: arrow keys like in swype

2012-11-05 Thread raj
got it...just had to send:
sendDownUpKeyEvents(KeyEvent.KEYCODE_SHIFT_LEFT);

On Monday, 5 November 2012 03:14:24 UTC-5, raj wrote:
>
> Hi,
>
> I am learning android programming and have taken the task of creating my 
> own IME.
> I am using LatinIME for this and creating my own SWYPE keyboard.
>
> How can I implement the select-text with arrow keys that we have in SWYPE?
> I have implemented the arrow-keys and can move the cursor around, but do 
> not know how to make the selection work.
>
> ic.setSelection(start, end) is one available function, but do not getting 
> how to correctly set those values either.
>
> Any help is appreciated.
>

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

[android-developers] How to retrive device log

2008-12-19 Thread Raj

Hello All,

I am developint a small application in which I have to show the device
log into the screen. If any one has the solution or any helpful link
then please reply..

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



[android-developers] How to get all list of running applications onto the emulator.

2008-12-20 Thread Raj

Hi,
   I want make a list of applications. How many applications installed
on to the emulator and among that how many are in running mode at the
background. How to get the applications list ?

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



[android-developers] How to get default applications intent

2008-12-20 Thread Raj

I want to make a log of default application. How I get the intent of
default application.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to read a file from res/text folder

2008-09-29 Thread Raj

You make the file connection by giving file path as parameter.
It works same as in java just like below

I had read file from the sdcard and store using this type
Hope so it will help you


File fileCon = new File();

FileOutputStream outputStream = new FileOutputStream(fileCon);

outputStream.write(temp);

outputStream.flush();


On Sep 29, 8:41 am, Sudha <[EMAIL PROTECTED]> wrote:
> I have a file in res/text/
> I need to read it.
> we use getClass().getResourceAsStream("/text/text.txt") in J2Me.
> How it can be possible in android ?

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



[android-developers] Re: Create menu

2008-06-17 Thread Raj

//  Activity callback that lets your handle the selection in the class.
//  Return true to indicate that you've got it, false to indicate
//  that it should be handled by a declared handler object for that
//  item (handler objects are discouraged for reasons of efficiency).
@Override
public boolean onOptionsItemSelected(Menu.Item item){
switch (item.getId()) {
case 0:
//setContentView(R.layout.login);
onRestart();
//showAlert("Menu Item Clicked", "File", "ok", null, 
false, null);
return true;
case 1:
showAlert("Menu Item Clicked", "Edit", "ok", null, 
false, null);
return true;
case 2:
showAlert("Menu Item Clicked", "View", "ok", null, 
false, null);
return true;
case 3:
showAlert("Menu Item Clicked", "WWW", "ok", null, 
false, null);
//  WebView webView = new WebView(this);
//  webView.loadUrl("http://www.google.com";);
//  webView.setFocusable(true);
return true;
case 5:
showAlert("Sub Menu Item Clicked", "Monday", "ok", 
null, false,
null);
return true;
case 13:
showAlert("Sub Menu Item Clicked", "Rajkumar", "ok", 
null, false,
null);
return true;
case 14:
showAlert("Sub Menu Item Clicked", "Arun", "ok", null, 
false,
null);
return true;
}
return false;
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
// title
menu.add(0, 0, "Back");
menu.add(0, 1, "Edit");
// Add our submenu.
SubMenu sub = menu.addSubMenu(1, 4, "Days of the week");
sub.add(0, 5, "Monday");
sub.add(0, 6, "Tuesday");
sub.add(0, 7, "Wednesday");
sub.add(0, 8, "Thursday");
sub.add(0, 9, "Friday");
sub.add(0, 10, "Saturday");
sub.add(0, 11, "Sunday");
SubMenu sub1 = menu.addSubMenu(2, 12, "Friends");
sub1.add(0, 13, "Rajkumar");
sub1.add(0, 14, "Arun");
return true;
}

On Jun 11, 12:13 am, "pravin gajera" <[EMAIL PROTECTED]> wrote:
> Hello Friends
>  my Q. is how to create menu in android system
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to change image on focus and unfocus

2008-06-23 Thread Raj

How to chanage the image on focus and unfocus
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Button - onKeyDown()

2008-06-25 Thread Raj

use OnFocusChangeListener interface and override its OnFocusChanged
method and set images to buttons it will work


On Jun 25, 9:17 am, redhatab <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is it possible to do something while a key is being clicked or is in
> focus by the arrow keys.
>
> For example, suppose there are multiple buttons on the screen. Now in
> the keyDown event, can we change the text of the button. Or even if
> the arrow keys are used to navigate through the buttons, and when this
> particular button is in focus, can we make the changes to that
> particular button.
>
> And help is greatly appreciated.
>
> 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] java.lang.IllegalArgumentException

2008-06-26 Thread Raj

I used one method number of times. In that method I connected using
HttpUrlConnection. Each time I disconnect the connection. but when I
use the same function many time it gives Exeception.

DEBUG/(HttpConnection conn)(610): java.lang.IllegalArgumentException:
Argument must not be null.

It works 2 times after that it gives this exception.

What is the reason behind that...



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: My App screenshots

2008-06-29 Thread Raj


In Application is there any facility to add new TO DO ITEM because I
have not seen any add button there

On Jun 30, 8:30 am, Ulzii <[EMAIL PROTECTED]> wrote:
> Hi all,
> Here is my developed Android App screenshots.
>
> http://water.appspot.com/
>
> Give us your opinions.
>
> Thanks,
> Ulzii
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to push photos on sd card using commands

2008-06-29 Thread Raj

Hi,

I want to check the uploading file of images for that it is very
necessary to add images/photos on sdcard, I have created sdcard but I
am not getting the information,to push photos on sdcard. I know one
solution to add photos through the program means to write the image
file on sdcard.

But I want to add from commands not programetically of application.

Thanks in advance...


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] android.os.BinderNative Not found in new sdk

2008-07-01 Thread Raj

Hi

I am not able to find "BinderNative" class into "android.os.*"
package. Where it will found or Is there any extenal jar file is
required for this class.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: About "adb install"

2008-07-10 Thread Raj

If u want to install the .apk file

follow the folling procedure

1. run the emulator of android from the eclipse
2. start - > run -> cmd in window
3. type command in console   adb kill-server
4.type command in console   adb start-server
5 type command in console   adb install <.apk file with its full path>


On Jul 11, 8:48 am, gunaaa <[EMAIL PROTECTED]> wrote:
> Hi Analdyn,
>     From where you want to install .apk? From folder or from terminal
> or from eclipse? Anywhere its possible.Better install from eclipse.
> Its easy. in DDMS go to data-->app-->then push file
>
> Regards,
> Guna
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Heatmaps

2013-06-07 Thread raj
This is really nice and would like to try them out.
Quick Question: I see that you are using overlays. Will that work with 
Google Maps for Android API V2? 

R

On Thursday, 9 June 2011 09:59:39 UTC-4, Vinicius Carvalho wrote:
>
> Hi, just would like to share a lib that I was building for the past 
> week: http://code.google.com/p/mapex/ 
>
> There you will find a heatmap implementation, demos of it working with 
> some real data. And also other things like support for a selection box 
> on a map (something that I was in need for a while) 
>
> I intend to add more features to it, for instance clustering for 
> markers (I already have the algorithm in plain java for server side, 
> just porting it) 
>
> I'm really trying to get this working any comment would be great. I 
> know there's some bugs here and there, working on them, please report 
> them, as well features requests. 
>
> Regards

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




[android-developers] heatmap using TileOverlay on Google Maps v2

2013-06-21 Thread raj
Hi,

I am trying to generate a heatmap, based on a set of LatLng points in 
Android Maps v2.
I am using the algorithm from here: 
http://blog.furiousbob.com/2011/05/12/heating-up-my-new-xoom-tablet/
I have gone through some examples online, but it uses Overlays which is not 
just deprecated, but removed from the v2 of Maps API.

I have been told that I can achieve the same using TileOverlay, which I 
would like to try, but am unable to find even a simple example of it, which 
does not use UrlTileProvider or pre-created set of images.

I can use a View to generate the heatmap as a bitmap(via the view canvas), 
but there dosen't seems to be anyway to map the bitmap to Tiles. 

PS: Currently, I am placing this view over the map, which needs a lot of 
re-computations when the map is panned or zoomed, and would want to avoid 
that.

Please let me know if anyone has any recommendations.

Best,
R

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: heatmap using TileOverlay on Google Maps v2

2013-06-27 Thread raj
Just wanted to update the thread with latest developments:

I created a feature request on the Google Android Forum, and while the 
status is still marked 'New', I did get a reply. Hopefully, this will be 
available in future.
But, as I cannot wait till that happens, I have planned to go ahead with my 
implementation(using the above mentioned algorithm).
I am using a View to draw the heatmap, and then pass one the bitmap to a 
ground overlay.
Unfortunately, both TileOverlay and GroundOverlay are final classes, and so 
I cannot do extend them to do it my way.

Here is a link to the request: 
https://code.google.com/p/gmaps-api-issues/issues/detail?id=5534&q=apitype%3DAndroid2&sort=-id%20-status%20project&colspec=ID%20Type%20Status%20Introduced%20Fixed%20Summary%20Stars%20Internal%20Project%20Apitype

As you see, I was told to prefer TileOverlay over GroundOverlay, but am not 
sure how to do that, because the the transparent view I create is over the 
map-view, and its dimension is controlled by the screen size(match-parent), 
from where i get the screen location for each latlng point, and not the map 
itself. So if a point is not visible, then it will not be drawn by the 
algorithm(this was not intended, i am not able to find a workaround right 
now).
I feel, I will have the same issue with TileOverlay, as the image 
generated, will be only for the part visible on screen, and so I decided to 
go with GroundOverlay, which was much simpler.

I would really appreciate if anyone is willing to share ideas to make this 
better.

[Unfortunately I cannot post code online.]



On Friday, 21 June 2013 14:20:56 UTC-4, raj wrote:
>
> Hi,
>
> I am trying to generate a heatmap, based on a set of LatLng points in 
> Android Maps v2.
> I am using the algorithm from here: 
> http://blog.furiousbob.com/2011/05/12/heating-up-my-new-xoom-tablet/
> I have gone through some examples online, but it uses Overlays which is 
> not just deprecated, but removed from the v2 of Maps API.
>
> I have been told that I can achieve the same using TileOverlay, which I 
> would like to try, but am unable to find even a simple example of it, which 
> does not use UrlTileProvider or pre-created set of images.
>
> I can use a View to generate the heatmap as a bitmap(via the view canvas), 
> but there dosen't seems to be anyway to map the bitmap to Tiles. 
>
> PS: Currently, I am placing this view over the map, which needs a lot of 
> re-computations when the map is panned or zoomed, and would want to avoid 
> that.
>
> Please let me know if anyone has any recommendations.
>
> Best,
> R
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: heatmap using TileOverlay on Google Maps v2

2013-06-29 Thread raj
Hi gjs,

Thanks for the response. 
I am exactly using the same method, as in using shapes(gradient circles) .
And I know that zooming the map will auto zoom the images as well, but that 
will be against the kind of heatmap I need. My heatmap's density is based 
on the number of adjoining points, and so if a cluster was initially 
red(high density), then zooming in will move the markers farther, reducing 
the density and so will have to redraw based on the current zoom layout.

I am okay with redrawing when the zoom changes(i don't see any other way 
either, unless we create and store all images), but my main problem is that 
the overlayed layer is restricted based on the screen size(match-parent, 
and parent's size is fixed based on map container size), and so the image 
created on the overlayed layer is only for the markers currently visible on 
screen. Drawing circles directly on map will not work, as I don't think we 
can change the colors by pixel(the way we can do on a bitmap)

R


On Friday, 28 June 2013 07:16:52 UTC-4, gjs wrote:
>
> Hi,
>
> I am actually doing similar stuff to most things you mentioned, using a 
> custom View (overlayed) onto top of the Map and drawing bitmaps to the 
> canvas but not needing to rescale the bitmaps for zoom, using TileOverlay, 
> using GroundOverlay and also drawing Polylines, filled Polygons & Circles.
>
> I'm not needing heatmaps as yet myself, but I thought if your heatmaps are 
> fairly simple you could also try experimenting with drawing overlapping 
> filled Circles with different colors & also varying levels of transparency 
> to achieve a reasonable heatmap effect. If you do it this way I don't think 
> you will need to be resizing these when zooming.
>
> See https://developers.google.com/maps/documentation/android/shapes for 
> details.
>
> And no I can't post any code either.
>
> Good luck !
>
> Regards
>
> On Friday, June 28, 2013 5:54:07 AM UTC+10, raj wrote:
>>
>> Just wanted to update the thread with latest developments:
>>
>> I created a feature request on the Google Android Forum, and while the 
>> status is still marked 'New', I did get a reply. Hopefully, this will be 
>> available in future.
>> But, as I cannot wait till that happens, I have planned to go ahead with 
>> my implementation(using the above mentioned algorithm).
>> I am using a View to draw the heatmap, and then pass one the bitmap to a 
>> ground overlay.
>> Unfortunately, both TileOverlay and GroundOverlay are final classes, and 
>> so I cannot do extend them to do it my way.
>>
>> Here is a link to the request: 
>> https://code.google.com/p/gmaps-api-issues/issues/detail?id=5534&q=apitype%3DAndroid2&sort=-id%20-status%20project&colspec=ID%20Type%20Status%20Introduced%20Fixed%20Summary%20Stars%20Internal%20Project%20Apitype
>>
>> As you see, I was told to prefer TileOverlay over GroundOverlay, but am 
>> not sure how to do that, because the the transparent view I create is over 
>> the map-view, and its dimension is controlled by the screen 
>> size(match-parent), from where i get the screen location for each latlng 
>> point, and not the map itself. So if a point is not visible, then it will 
>> not be drawn by the algorithm(this was not intended, i am not able to find 
>> a workaround right now).
>> I feel, I will have the same issue with TileOverlay, as the image 
>> generated, will be only for the part visible on screen, and so I decided to 
>> go with GroundOverlay, which was much simpler.
>>
>> I would really appreciate if anyone is willing to share ideas to make 
>> this better.
>>
>> [Unfortunately I cannot post code online.]
>>
>>
>>
>> On Friday, 21 June 2013 14:20:56 UTC-4, raj wrote:
>>>
>>> Hi,
>>>
>>> I am trying to generate a heatmap, based on a set of LatLng points in 
>>> Android Maps v2.
>>> I am using the algorithm from here: 
>>> http://blog.furiousbob.com/2011/05/12/heating-up-my-new-xoom-tablet/
>>> I have gone through some examples online, but it uses Overlays which is 
>>> not just deprecated, but removed from the v2 of Maps API.
>>>
>>> I have been told that I can achieve the same using TileOverlay, which I 
>>> would like to try, but am unable to find even a simple example of it, which 
>>> does not use UrlTileProvider or pre-created set of images.
>>>
>>> I can use a View to generate the heatmap as a bitmap(via the view 
>>> canvas), but there dosen't seems to be anyway to map the bitmap to Tiles. 
>>>
>>> PS: Currently, I am placing this view over t

[android-developers] memory issue with Google Maps API v2

2013-11-04 Thread raj
Hi,

I am looking for ideas to tackle a memory issue that I face with Google 
Maps for Android API v2.
My application requires loading thousands of markers (20k or 40k etc). In 
testing with 10k markers, i see that the map gets loaded in 20secs, which 
for now is okay.

but the problem is that the user can go back to a different activity and 
return to the map activity(with a filter), at which point i need to load 
say 5k markers(could be different). But this time the GC is called and it 
might take upto 10 mins to load 5k markers.

Can someone provide me some ideas to tackle this? I do need to show all 
markers.

Best,
R

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: memory issue with Google Maps API v2

2013-11-15 Thread raj
Thanks Everyone for the reply. We are stress testing our app. We do it in 
all platform and seems like Android has a poor performance(or my 
implementation is poor). We do not do any special thing for iOS, but the 
all the 20/40K markers are rendered within 5-10 secs. Now I agree that the 
A6 chip can have better performance than the Qualcomm ones(i read an 
article about how that Samsung will boost its clock speed when it detects 
any benchmark apps).
Leaving that aside, I have done everything that the Google IO talked about 
memory management, and not sure where I am wrong(or what am missing).

On another note, If say i am using the app for sometime(to create lot of 
objects) and then connect the device to DDMS and 'cause  GC', i see that it 
works fine, which means that those objects could have been collected. But 
the system is not able to collect them automatically. Any ideas?

R

On Tuesday, 5 November 2013 00:09:29 UTC-5, raj wrote:
>
> Hi,
>
> I am looking for ideas to tackle a memory issue that I face with Google 
> Maps for Android API v2.
> My application requires loading thousands of markers (20k or 40k etc). In 
> testing with 10k markers, i see that the map gets loaded in 20secs, which 
> for now is okay.
>
> but the problem is that the user can go back to a different activity and 
> return to the map activity(with a filter), at which point i need to load 
> say 5k markers(could be different). But this time the GC is called and it 
> might take upto 10 mins to load 5k markers.
>
> Can someone provide me some ideas to tackle this? I do need to show all 
> markers.
>
> Best,
> R
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Send SMS fails on CDMA Device.

2010-04-26 Thread Raj
Hi,
I was trying to send sms from a CDMA android device, but it crashes
with null pointer exception in the function call to
SmsManager::sendDataMessage() function.

SmsManager smsManager = SmsManager.getDefault();
smsManager.sendDataMessage(smscHost,null, (short)8021, text, sentPI,
null); //Null pointer exception.

The same code works fine for GSM devices. I am using the API from
"android.telephony.SmsManager", which as per the documnetation should
work for GSM and CDMA devices.

Have any one tried doing this on CDMA device? Do I need to use some
other API for sending SMS from CDMA device?

Regards,
Raj

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


[android-developers] How to get my "actual" IP address on emulator

2010-04-27 Thread RAJ
Can anyone suggest a solution for emulator to get my own local IP (not
10.0.2.15)? But i want to get my actual IP of my system. Is there any
solution to 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] Screen off suspends the Thread

2010-05-06 Thread Raj
Hi All,
I have a created a thread in my application, and have a sleep for 5sec
in the run() function. This sleep function returns properly after 5
secs only if the device screen is turned ON. In case the device screen
goes to Hibernate, sleep function returns after around 2-3
minutes(instead of 5 sec).

Have any one faced this issue earlier?

Regards,
Raj

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


[android-developers] Stopping other Activity from my Service..

2010-05-06 Thread Raj
Hi,
I want to stop an Activity that is in some other application from my
Applications service.
Is there any mechanism to do so?

Thanks,
Raj

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


[android-developers] Buy android apps

2010-08-24 Thread Raj
Hello Guys,
 I am looking to buy android apps. Let me know if anybody have it
Thanks,
Raj

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


[android-developers] Backup and Restore service not working

2011-02-22 Thread Raj
Hi All,

I am trying out the back up and restore service of Android
Am able to successfully do back up of data and also restore when I
uninstall and then install the application (using bmgr tool).

But when I reflash and try restoring, I am getting error: "Unable to
restore package". I am using the sample application provided by
google.

I have:

a) Registered for B&R service and placed the key in manifest file.
b) Enabled backup and restore option.
c) Connected to gmail (is it needed or just network connectivity is
fine ?).

It would really help if anyone can provide some input on this issue?
Thanks :)

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


[android-developers] Re: Backup and Restore service not working

2011-02-24 Thread Raj
Hi,

Some more findings which suggest the default backup and restore
service does not work as expected or atleast for me !!!

My requirement is to store my application data on google cloud server.
After doing a backup when I uninstall the app, delete the DB, restart
the phone and try to do a restore operation after installing the app,
it fails. It never works :(

As I have already mentioned I have enabled the bmgr service.
Registered for B&R service as well as placed the generated key in
manifest file.

Seems the data is getting stored in some temp file that gets deleted
on restart/reboot/reset and never sent to the server.

Is it a known issue or I am doing something wrong?

Anyone please ...

- Thanks.


On Feb 22, 5:58 pm, Raj  wrote:
> Hi All,
>
> I am trying out the back up and restore service of Android
> Am able to successfully do back up of data and also restore when I
> uninstall and then install the application (using bmgr tool).
>
> But when I reflash and try restoring, I am getting error: "Unable to
> restore package". I am using the sample application provided by
> google.
>
> I have:
>
> a) Registered for B&R service and placed the key in manifest file.
> b) Enabled backup and restore option.
> c) Connected to gmail (is it needed or just network connectivity is
> fine ?).
>
> It would really help if anyone can provide some input on this issue?
> Thanks :)

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


[android-developers] Re: Backup and Restore service not working

2011-03-01 Thread Raj
Hi Again,

I am still trying to get the solution.

I changed the transport through "$adb shell bmgr transport" to google
backup transport.

When I do back up of my data on google server "$adb shell bmgr run",
it throws error:

===
W/BackupTransportService(  241): Not ready for backup request right
now: [OperationScheduler: enabledState=false
moratoriumSet=2011-03-01/10:47:06 moratorium=1970-01-01/05:30:00
trigger=1970-01-01/05:30:00]
E/PerformBackupThread(  241): Transport error in initializeDevice()
W/PerformBackupThread(  241): Backup pass unsuccessful, restaging
===

What does the error mean ?

FYI - It works fine when I change the transport to local, but I don't
want to store my data locally.

Please help !!!


On Feb 24, 8:26 pm, Raj  wrote:
> Hi,
>
> Some more findings which suggest the default backup and restore
> service does not work as expected or atleast for me !!!
>
> My requirement is to store my application data on google cloud server.
> After doing a backup when I uninstall the app, delete the DB, restart
> the phone and try to do a restore operation after installing the app,
> it fails. It never works :(
>
> As I have already mentioned I have enabled the bmgr service.
> Registered for B&R service as well as placed the generated key in
> manifest file.
>
> Seems the data is getting stored in some temp file that gets deleted
> on restart/reboot/reset and never sent to the server.
>
> Is it a known issue or I am doing something wrong?
>
> Anyone please ...
>
> - Thanks.
>
> On Feb 22, 5:58 pm, Raj  wrote:
>
>
>
> > Hi All,
>
> > I am trying out the back up and restore service of Android
> > Am able to successfully do back up of data and also restore when I
> > uninstall and then install the application (using bmgr tool).
>
> > But when I reflash and try restoring, I am getting error: "Unable to
> > restore package". I am using the sample application provided by
> > google.
>
> > I have:
>
> > a) Registered for B&R service and placed the key in manifest file.
> > b) Enabled backup and restore option.
> > c) Connected to gmail (is it needed or just network connectivity is
> > fine ?).
>
> > It would really help if anyone can provide some input on this issue?
> > Thanks :)- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Re: How to record audio..?

2011-03-02 Thread RAJ
Did anyone solve this problem? I am experiencing same issue only on
some devices only...weird

On Jan 12, 1:11 am, Abhilash baddam
 wrote:
> any help...
>
> On Wed, Jan 12, 2011 at 1:55 PM, Abhilash baddam 
>  wrote:
> > Hi friends,
>
> >               How can we record the voice and save it to sdcard. I tried
> > but getting *unsupported parameter:
> > x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value,*
> >          *   VerifyAndSetParameter failed and
> >  PVMFOMXEncNode-Audio_AMRNB::DoPrepare(): Got Component OMX.PV.amrencnb
> > handle..*
> > *
> > *
> > *
> > *
> >            if anybody know how capture audio..?send me the code snippets
> > and useful links...

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


[android-developers] Integrating password manager into native web browser

2010-08-02 Thread Raj
Hi,

I'm an android newbie getting my hands wet.
I have developed a password manager app to store my passwords. I would
like to know how i can send the stored passwords to the native web
browser to auto fill the username/password fields for the respective
websites. I thought about about some methods, but i'm not sure if they
will work/possible in Android. Your help is much appreciated.

1. Use a bookmarklet to read the username/password from the password
app and fill the fields in the browser. But i'm not sure if this is
possible to do. How exactly can a javascript communicate with a local
app on the phone?
I looked at this example:
http://apps-for-android.googlecode.com/svn/trunk/Samples/WebViewDemo/src/com/google/android/webviewdemo/WebViewDemo.java

but, here the app can only start a javascript (can it pass the
username/password as parameters in this call?) in a local webview, not
in the native browser.

2.  Let the user click the particular site in the password manager and
the password manager opens the particular site with the username/
password (constructing the url directly with the values)
--> First, will this work. Second, even if it works, i think it wont
work for https sites, since the url has to be posted after the session
establishment...

any pointers to how to go solve this problem would greatly help.

Thanks and cheers,
raj

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


[android-developers] Cannot Debug Andriod Service

2010-12-23 Thread Raj
Folks,

I have a very simple service with a service started that receives
the BOOT_COMPLETED intent. When I try to launch the debugger, it never
breaks on any line, even though I have waitForDebugger() set. Any
ideas on how I could debug this service. I am debugging this on an
emulator, not on the device.

The manifest file is


http://schemas.android.com/apk/res/android";
  package="com.preciseinc.DroidLocator"
  android:versionCode="1"
  android:versionName="1.0">





















The simple code is
-
package com.preciseinc.DroidLocator;

import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class ServiceAutoStarter extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {
android.os.Debug.waitForDebugger();
Intent serviceIntent = new Intent();
serviceIntent.setComponent(new
ComponentName("com.preciseinc.DroidLocator",
"com.preciseinc.DroidLocator.DroidService"));
context.startService(serviceIntent);
}

}
--

This starts up the service code, which is as follows:

package com.preciseinc.DroidLocator;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.location.LocationManager;
import android.os.IBinder;

public class DroidService extends Service {

@Override
public IBinder onBind(Intent arg0) {
// TODO Auto-generated method stub
return null;
}

@Override
public void onCreate() {
android.os.Debug.waitForDebugger();
super.onCreate();
LocationManager lm =
(LocationManager)getSystemService(Context.LOCATION_SERVICE);
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000L,
500.0f, new DroidLocationListener());
}

 @Override
 public void onStart(final Intent intent, final int startId) {
 android.os.Debug.waitForDebugger();
  super.onStart(intent, startId);
  LocationManager lm =
(LocationManager)getSystemService(Context.LOCATION_SERVICE);
  lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000L,
500.0f, new DroidLocationListener());
 }


@Override
public void onDestroy() {
super.onDestroy();
}
}
---

Any and all help appreciated.

Regards,

Raj.

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


[android-developers] Handler usage

2010-12-28 Thread raj
http://www.androzid.com/2010/12/handler-example.html

i'm a newbie and new to the android development


Comments are always welcome.

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


[android-developers] HELP: Receiver killed on startup.

2010-12-29 Thread Raj
Experts,

I have a simple receiver that listens to the BOOT_COMPLETED
action. The manifest is as follows

--

http://schemas.android.com/apk/res/android";
  package="com.preciseinc.DroidLocator"
  android:versionCode="1"
  android:versionName="1.0">














--

However, when I start debugging with an emulator, the apk gets
installed, but the receiver process is terminated. Please see a
snippet of the logcat below.

--
12-29 13:55:48.674: DEBUG/PackageManager(60): Scanning package
com.preciseinc.DroidLocator
12-29 13:55:48.684: INFO/PackageManager(60): Package
com.preciseinc.DroidLocator codePath changed from /data/app/
com.preciseinc.DroidLocator-1.apk to /data/app/
com.preciseinc.DroidLocator-2.apk; Retaining data and using new
12-29 13:55:48.694: INFO/PackageManager(60): /data/app/
com.preciseinc.DroidLocator-2.apk changed; unpacking
12-29 13:55:48.704: DEBUG/installd(35): DexInv: --- BEGIN '/data/app/
com.preciseinc.DroidLocator-2.apk' ---
12-29 13:55:48.934: DEBUG/dalvikvm(363): DexOpt: load 47ms, verify
29ms, opt 2ms
12-29 13:55:48.954: DEBUG/installd(35): DexInv: --- END '/data/app/
com.preciseinc.DroidLocator-2.apk' (success) ---
12-29 13:55:48.954: WARN/PackageManager(60): Code path for pkg :
com.preciseinc.DroidLocator changing from /data/app/
com.preciseinc.DroidLocator-1.apk to /data/app/
com.preciseinc.DroidLocator-2.apk
12-29 13:55:48.954: WARN/PackageManager(60): Resource path for pkg :
com.preciseinc.DroidLocator changing from /data/app/
com.preciseinc.DroidLocator-1.apk to /data/app/
com.preciseinc.DroidLocator-2.apk
12-29 13:55:48.954: DEBUG/PackageManager(60):   Receivers:
com.preciseinc.DroidLocator.ServiceAutoStarter
12-29 13:55:48.974: INFO/ActivityManager(60): Force stopping package
com.preciseinc.DroidLocator uid=10040
12-29 13:55:49.134: INFO/installd(35): move /data/dalvik-cache/
d...@app@com.preciseinc.droidlocator-2@classes.dex -> /data/dalvik-
cache/d...@app@com.preciseinc.droidlocator-2@classes.dex
12-29 13:55:49.144: DEBUG/PackageManager(60): New package installed
in /data/app/com.preciseinc.DroidLocator-2.apk
12-29 13:55:49.354: INFO/ActivityManager(60): Force stopping package
com.preciseinc.DroidLocator uid=10040
12-29 13:55:49.664: WARN/RecognitionManagerService(60): no available
voice recognition services found
12-29 13:55:49.844: DEBUG/dalvikvm(60): GC_FOR_MALLOC freed 8811
objects / 535480 bytes in 171ms
12-29 13:55:49.984: DEBUG/dalvikvm(60): GC_EXPLICIT freed 511
objects / 27096 bytes in 139ms
12-29 13:55:49.984: INFO/installd(35): unlink /data/dalvik-cache/
d...@app@com.preciseinc.droidlocator-1@classes.dex
12-29 13:55:49.994: DEBUG/AndroidRuntime(356): Shutting down VM
12-29 13:55:50.034: DEBUG/dalvikvm(356): Debugger has detached; object
registry had 1 entries
12-29 13:55:50.074: INFO/AndroidRuntime(356): NOTE: attach of thread
'Binder Thread #3' failed
--

Any ideas on why this is being terminated, and any workarounds? Any
and all help greatly appreciated.

Regards,

Raj Malhotra.

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

2011-01-04 Thread Raj
Mark,

Thank you for your informative response. I had a Logcat() as the
very first call in the receiver. Unfortunately, it never gets hit, and
I do no see that message in the Logcat.  I also see the following in
the logcat

[2011-01-04 11:43:35 - DroidLocator] No Launcher activity found!
[2011-01-04 11:43:35 - DroidLocator] The launch will only sync the
application package on the device!

Do I need to do anything special in the manifest?

Thanks, again.

Regards,

Raj.


On Dec 29 2010, 2:29 pm, Mark Murphy  wrote:
> On Wed, Dec 29, 2010 at 2:04 PM, Raj  wrote:
> >    I have a simplereceiverthat listens to the BOOT_COMPLETED
> > action.
>
> 
>
> > However, when I start debugging with an emulator, the apk gets
> > installed, but thereceiverprocess is terminated.
>
> Of course.
>
> Actually, yourreceiverprocess was probably terminated earlier, as a
> manifest-registered BroadcastReceiver can only live for a few seconds,
> tops.
>
> > and any workarounds?
>
> Don't install a new version of your APK.
>
> To debug BOOT_COMPLETED receivers, add Log statements to your code and
> reboot your emulator. Examine LogCat to see what happened. Adjust your
> code. Lather, rinse, repeat.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

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


[android-developers] Broadcast Receiver registering Location Listener problem

2011-01-05 Thread Raj
Android Experts,

I am trying to write a simple receiver that will receive the
BOOT_COMPLETED broadcast, and in turn register a location change
listener. I know the receiver is transient, and has a short lifespan.
Once the receiver dies, will my listener still continue to be
registered, or do I have to write a (perpetual) service to register
the listener?

My code snippet for the receiver is

---
public class LocationReceiver extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {
Log.d("PreciseLocator", "===In Receiver, starting listener");
LocationManager lm =
(LocationManager)context.getSystemService(Context.LOCATION_SERVICE);
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000L,
500.0f, new DroidLocationListener());

}
..

---

And my manifest looks like follows. Can I have just a receiver,
without an activity in the manifest?

---

http://schemas.android.com/apk/res/android";
  package="com.preciseinc.PreciseLocator"
  android:versionCode="1"
  android:versionName="1.0">













---

Any and all help appreciated.

Regards,

Raj.

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

2011-01-05 Thread Raj
Mark,

Once again, thanks for an informative response. I will try the 
AlarmManager route, while I eagerly await your service. On the manifest 
question, everytime I load my application on the emulator, I get a "No 
Launcher activity found!" on the console. Is this normal?

Thanks again.

Best Regards,

Raj.

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

[android-developers] DNS WHOIS query support

2011-01-07 Thread RAJ
Is there a android SDK API to get DNS name servers from given URL,
using WHOIS query?
Or We will have to implement our own code and parse to decode the
response?
Any links?
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] Protecting service from getting killed.

2010-11-08 Thread Raj
Hi All,
I have a service in my application, that keeps running in the device
to interact with our server.
I found that there are certain application available in Android Market
app, that can kill the services running in a given application.

Is there any way to protect our service getting killed by the 3rd
party applications? This can be certainly done if we run the
application as a system process. But is it possible while running
under dalvik?

Regards,
Rajan

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

2010-11-16 Thread Raj
Had this same problem with the phone state intent and couldn't understand why
until I read your post.  Thanks for posting your experience!



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


[android-developers] FileObserver issue..

2010-11-17 Thread Raj
Hi All,
I have an application that start a watcher
(FileObserver::startWatching()) to another application package (say: /
data/data/com.androiddeveloper.sample/) path.
I have seen this working fine for 1.5 & 1.6 device. But looks like the
API implementation is changed from 2.* onwards.

Can anyone please confirm this? Is this API behaviour change is
documented anywhere by Google? Or this is a kind of functionality
break?

Regards,
Raj

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


[android-developers] Editing video on android

2010-12-10 Thread Raj
Is there any support in Android development for editing/encoding
videos ?
The possibility to trim, crop, resize or encode the video to a new
format and save as a new file is very essential for any phone
development platform. Is there any support for this at present ? Or
any thing planned for future release of SDK ?
Please reply ASAP and it is very urgent.

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


[android-developers] Problem debugging Android Bootup Service

2010-10-06 Thread Raj
Android Experts,

I have a simple Android Service, which should start on device
bootup. However, I cannot debug this using Eclipse on Windows.

The error I get from Logcat is

10-01 21:06:30.788: DEBUG/AndroidRuntime(487): >>>>>>>>>>>>>>
AndroidRuntime START <<<<<<<<<<<<<<
10-01 21:06:30.788: DEBUG/AndroidRuntime(487): CheckJNI is ON
10-01 21:06:31.008: DEBUG/AndroidRuntime(487): --- registering native
functions ---
10-01 21:06:32.008: DEBUG/AndroidRuntime(487): Shutting down VM
10-01 21:06:32.008: DEBUG/dalvikvm(487): Debugger has detached; object
registry had 1 entries
10-01 21:06:32.038: INFO/AndroidRuntime(487): NOTE: attach of thread
'Binder Thread #3' failed


My manifest looks like


http://schemas.android.com/apk/res/android";
  package="com.preciseinc.DroidLocator"
  android:versionCode="1"
  android:versionName="1.0">




















I have a breakpoint in my ServiceAutoStarter code (below), which is
never hit.

public class ServiceAutoStarter extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {
Intent serviceIntent = new Intent();
serviceIntent.setComponent(new
ComponentName("com.preciseinc.DroidLocator",
"com.preciseinc.DroidLocator.DroidService"));
context.startService(serviceIntent);
}

}

Appreciate any and all Help.

Regards,

Raj.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 open or create cache for system/app/test.apk

2010-10-11 Thread Raj
Hi All,

When I am trying to build my application as a part of image I am
getting the following error :

E/dalvikvm( 1334): Can't open dex cache '/data/dalvik-cache/
sys...@app@test@classes.dex': No such file or directory
I/dalvikvm( 1334): Unable to open or create cache for /system/app/
test.apk (/data/dalvik-cache/sys...@app@test@classes.dex)
E/Util( 1334): Class Not Found :
java.lang.ClassNotFoundException:

But when I push the apk manually to the device (into system/app), it
works fine.

I am wondering why is it so as both ways the apk is present at system/
app only.

Any ideas ??

Thanx.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Unable to open or create cache for system/app/test.apk

2010-10-12 Thread Raj
Thanks Frank.

But the app has to be made as part of image and while building it that
way it gets installed in system/app. I am moving this query to android-
platform.

Thanks.

On Oct 12, 12:06 pm, FrankG  wrote:
> a) I would go with this kind of questions to android-platform
>
> b) I would not put my own apps under system/app
>    instead provide them as a vendor extension ( look for the vendor
> dir )
>
> Good luck ! Frank
>
> On 12 Okt., 08:23, Raj  wrote:
>
>
>
> > Hi All,
>
> > When I am trying to build my application as a part of image I am
> > getting the following error :
>
> > E/dalvikvm( 1334): Can't open dex cache '/data/dalvik-cache/
> > sys...@a...@test@classes.dex': No such file or directory
> > I/dalvikvm( 1334): Unable to open or create cache for /system/app/
> > test.apk (/data/dalvik-cache/sys...@a...@test@classes.dex)
> > E/Util    ( 1334): Class Not Found :
> > java.lang.ClassNotFoundException:
>
> > But when I push the apk manually to the device (into system/app), it
> > works fine.
>
> > I am wondering why is it so as both ways the apk is present at system/
> > app only.
>
> > Any ideas ??
>
> > Thanx.- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Re: Unable to open or create cache for system/app/test.apk

2010-10-12 Thread Raj
Hi,

The application is under vendor extension only and its getting
installed in system/app after building.

My problem is : While running the app it gives "Unable to open or
create cache for /system/app/
test.apk (/data/dalvik-cache/sys...@a...@test@classes.dex)"

Just to check the behaviour I pushed that apk manually to system/app
and it worked fine, but it's not the proper way.

I need to know why there is different behaviour in both cases and how
to resolve it.

Thanks.

On Oct 13, 1:17 am, FrankG  wrote:
> Also vendor extensions will be part of the system image and
> will be installed under system/app.
>
> IMHO it is a better "style" in my eyes to seperate your own stuff from
> the rest.
>
> On 12 Okt., 11:48, Raj  wrote:
>
>
>
> > Thanks Frank.
>
> > But the app has to be made as part of image and while building it that
> > way it gets installed in system/app. I am moving this query to android-
> > platform.
>
> > Thanks.
> >-- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Open Max Test App documents

2010-10-13 Thread Raj
Hi Guys,

I am new to the Android world. I would appreciate any pdf/ppt which
has brief info about the over all Android.
Secondly I am looking for OpenMax test app documents. I have both
Eclair as well as Froyo versions. I don't see the test app code at
this location : mydroid/external/opencore/codecs_v2/omx/ in case of
Eclair but the same are there in Froyo version. The only thins missing
is the doc folder.

Can anybody point me to the link which could have that?

I would appreciate that. Thanks in advance.

Raj

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


[android-developers] https://dl-ssl.google.com/android/repository/repository.xml

2010-07-02 Thread Raj
Hi,

When i dowloaded the Android for windows getting the Error "https://dl-
ssl.google.com/android/repository/repository.xml" during the
installation. Kindly let me the root cause for the problem as i
couldn't complete the installation.

Thanks,
J.Gopi

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

2009-04-27 Thread raj.10788

Hi All,

Can anyone tell me how to import the Android Default projects into our
Eclipse. E.g

 androidsourceroot\packages\apps\AlarmClock

I want to import this project to my eclipse work space, I tried with
import projects and open excisting Android Projects. But that two are
not working.

So please can some one tell me is it possible to do this?

thanks in Advance for pointers and solutions.


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

2009-05-05 Thread raj.10788

Hi All,

I am trying to create a application, which is capable of making phone
calls to the given number at the scheduled time (someting like
reminder). But at the same time once it starts to make the call, my
application should take a picture from Camera. So after starting the
call activity, after few seconds I want the on call screen activity
should go to back ground and my own camera app(A activity with
surface) should come to the foreground to take a picture.

I tried the above one in the following way,

1. create a Action calll intent and started the call activity from my
Applications Main Activity.
2. After few seconds I started my own camera activity from my App Mail
Activity.

But it's not working. Once I start the call, the on call screen only
showing in the foreground, that camera Activity is not at all coming
to forground. So when I give back button the camera Activity is coming
to foreground.


I don know the reason. Can anyone tell me what's wrong in this. I
think am missing some thing inthis. any pointers to this one is highly
appriciated.


thanks
raj


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



[android-developers] " Touch events from my PC to device using adb shell "

2009-05-11 Thread raj.10788

Hi All,

Can we able to send the touch events like key events. Can anyone tell
me how to do that. Is it possible to send touch events from my PC to
device using adb shell.


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

2009-06-04 Thread raj.10788

Hi All,

Now we have the adb support to install out own developed applications
to the device. But after some day will this adb support to the
Android
Mobile Phones will be there and also this debug support will be
there.?


Will it be there in the release version?

If any of you tell some info on this that will be great.

Thanks
Raj


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



[android-developers] A good opportunity to investment

2010-02-10 Thread anitha raj
Social Networking has been effectively used in reaching the goal of
bringing down the prices of costly items through volume shopping. Go
shopping with  http://www.shoppingreps.com?SourceId=1243
You can earn online, NO INVESTMENT, NO DEPOSIT, NO MLM and NO JOINING
FEES! http://www.shoppingreps.com?SourceId=1243  DON'T miss this
opportunity, join today for free, and earn more without paying single
rupees...NO SCAM ALL THE BEST

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


[android-developers] A good opportunity to investment

2010-02-10 Thread anitha raj
Social Networking has been effectively used in reaching the goal of
bringing down the prices of costly items through volume shopping. Go
shopping with  http://www.shoppingreps.com?SourceId=1244
You can earn online, NO INVESTMENT, NO DEPOSIT, NO MLM and NO JOINING
FEES! http://www.shoppingreps.com?SourceId=1244  DON'T miss this
opportunity, join today for free, and earn more without paying single
rupees...NO SCAM ALL THE BEST

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


[android-developers] A good opportunity to investment

2010-02-18 Thread anitha raj
Social Networking has been effectively used in reaching the goal of
bringing down the prices of costly items through volume shopping. Go
shopping with  http://www.shoppingreps.com?SourceId=1243
You can earn online, NO INVESTMENT, NO DEPOSIT, NO MLM and NO JOINING
FEES! http://www.shoppingreps.com?SourceId=1243  DON'T miss this
opportunity, join today for free, and earn more without paying single
rupees...NO SCAM ALL THE BEST

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


[android-developers] free registration

2010-02-20 Thread anitha raj
Social Networking has been effectively used in reaching the goal of
bringing down the prices of costly items through volume shopping. Go
shopping with  http://www.shoppingreps.com?SourceId=1244
You can earn online, NO INVESTMENT, NO DEPOSIT, NO MLM and NO JOINING
FEES! http://www.shoppingreps.com?SourceId=1244  DON'T miss this
opportunity, join today for free, and earn more without paying single
rupees...NO SCAM ALL THE BEST

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


[android-developers] free registration

2010-02-20 Thread anitha raj
Social Networking has been effectively used in reaching the goal of
bringing down the prices of costly items through volume shopping. Go
shopping with  http://www.shoppingreps.com?SourceId=1243
You can earn online, NO INVESTMENT, NO DEPOSIT, NO MLM and NO JOINING
FEES! http://www.shoppingreps.com?SourceId=1244  DON'T miss this
opportunity, join today for free, and earn more without paying single
rupees...NO SCAM ALL THE BEST

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


  1   2   3   4   >