Re: [android-developers] App Updation from playstore

2015-02-10 Thread Mukesh Srivastav
You will have to create the new package and new key and upload as new and
secondly this time save your key in your mailbox or a secure place where
you can remember it back.

On Tue, Feb 10, 2015 at 4:16 PM, Rahul Kaushik rahulkaushi...@gmail.com
wrote:

 Hi,

 Due to my lost key store i was unable to sign my updated app ,all those
 users who have already installed my app ,should get the updated app
 notification from my play store on there mobile devices

 Note:-am using the same package which i used in my earlier app

 will users get the update notifications on there mobile after i upload my
 updated app with new key store?if not please suggest how to do that


 Thanks
 RK

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] GCM extras Bundle from value

2015-02-05 Thread Mukesh Srivastav
Great.

I am using GCM since a year ago for a logistics company and we have 3000
drives where in we need to push the messages to all the drivers who are
running our applications

On Thu, Feb 5, 2015 at 3:26 PM, marten marten.ga...@googlemail.com wrote:

 Hi Mukesh,

 thanks for your response. Our app needs to be able to receive push
 messages from different publishers. The publishers are determined
 dynamically and might change. Of course each publisher has its own sender
 id which doesn't change.

 In them meantime I was able to resolve the problem. Apparently messages
 with empty from value originated at a publisher that we were no longer
 registered with. The old publisher still had our old registration id and
 kept pushing messages to it. These messages arrived without from value.
 For some other reason the messages from the new publisher didn't make it
 through, but that's a different story.

 So everything works as intended.

 cheers

 Marten



 Am Mittwoch, 4. Februar 2015 09:31:46 UTC+1 schrieb Mukesh Srivastav:

 Hello Marten,

 Not sure why do you want to change the SENDER ID, the sender id would
 remain same/constant unless you create the new SENDERID through the google
 developer console and secondly the most RegistrationID which gets change
 that you can always update from the APK code to the DB (locally).

 and secondly if there is  a change in the SENDER ID the apk will not
 receive the GCM at all ?



 On Tue, Feb 3, 2015 at 9:53 PM, Marten Gajda mar...@dmfs.org wrote:

 Hi all,

 in my project I need to be able to update/change the sender ids of the
 GCM registration. In general, this seems to work.

 However, after changing the sender ID the received extras bundle doesn't
 contain a from value anymore.

 When I register for the first time, the push messages look like:

 Bundle[{from=, topic=b1c398b8-a9c7-4c73-a98d-d89b5272beec,
 collapse_key=do_not_collapse}]

 where  is the sender id.

 After I change the sender id to  I receive this:

 Bundle[{from=, topic=b1c398b8-a9c7-4c73-a98d-d89b5272beec,
 collapse_key=do_not_collapse}]

 Is this intended behavior? Is it just temporary? Is there any way to get
 the sender id back in there?

 thanks

 Marten

 --
 Marten Gajda
 Schandauer Straße 34
 01309 Dresden
 Germany

 tel: +49 177 4427167
 email: mar...@dmfs.org
 twitter: twitter.com/dmfs_org

 VAT Reg. No.: DE269072391

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




 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] GCM extras Bundle from value

2015-02-04 Thread Mukesh Srivastav
Hello Marten,

Not sure why do you want to change the SENDER ID, the sender id would
remain same/constant unless you create the new SENDERID through the google
developer console and secondly the most RegistrationID which gets change
that you can always update from the APK code to the DB (locally).

and secondly if there is  a change in the SENDER ID the apk will not
receive the GCM at all ?



On Tue, Feb 3, 2015 at 9:53 PM, Marten Gajda mar...@dmfs.org wrote:

 Hi all,

 in my project I need to be able to update/change the sender ids of the GCM
 registration. In general, this seems to work.

 However, after changing the sender ID the received extras bundle doesn't
 contain a from value anymore.

 When I register for the first time, the push messages look like:

 Bundle[{from=, topic=b1c398b8-a9c7-4c73-a98d-d89b5272beec,
 collapse_key=do_not_collapse}]

 where  is the sender id.

 After I change the sender id to  I receive this:

 Bundle[{from=, topic=b1c398b8-a9c7-4c73-a98d-d89b5272beec,
 collapse_key=do_not_collapse}]

 Is this intended behavior? Is it just temporary? Is there any way to get
 the sender id back in there?

 thanks

 Marten

 --
 Marten Gajda
 Schandauer Straße 34
 01309 Dresden
 Germany

 tel: +49 177 4427167
 email: mar...@dmfs.org
 twitter: twitter.com/dmfs_org

 VAT Reg. No.: DE269072391

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Get log/console output without root access

2015-01-28 Thread Mukesh Srivastav
Hi Stefan,

Here it is , if you are talking about Crash/FC that needs to be capture at
the class level/function level and the which line it fails,then you need to
handle it UncaughtExceptionHandler  exception.

here is the code for you which needs to be included in the Application
class.

private Thread.UncaughtExceptionHandler androidDefaultUEH;

private Thread.UncaughtExceptionHandler handler = new
Thread.UncaughtExceptionHandler() {
public void uncaughtException(Thread thread, Throwable ex) {
StackTraceElement[] stackTrace = ex.getStackTrace();
FileLogger.appendLog(uncaughtException, ex.toString());
for (int i = 0; i  stackTrace.length; i++) {
//Here the filelogger is your class where you put the application logs and
here, I am logging the crash in the file logger.
FileLogger.appendLog(
uncaughtException,
stackTrace[i].getClassName() +  : 
+ stackTrace[i].getMethodName() +  : 
+ stackTrace[i].getLineNumber());
}

androidDefaultUEH.uncaughtException(thread, ex);
}
};


and call this onCreate of the Application.

@Override
public void onCreate() {
// TODO Auto-generated method stub
super.onCreate();
//Here the filelogger is your class where you put the application logs.
FileLogger.appendLog(PalsApplication, onCreate);
androidDefaultUEH = Thread.getDefaultUncaughtExceptionHandler();
Thread.setDefaultUncaughtExceptionHandler(handler);
}








On Wed, Jan 28, 2015 at 1:19 PM, Stefan Alder twigbra...@gmail.com wrote:

 I need to get logcat output from our app is which appears to be crashing
 on load for a beta tester.  I have not been able to replicate the issue
 myself.

 Is there an easy way a beta tester (who is not a developer and doesn't
 have adb) to capture logcat output?


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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Re: FusedLocation Provider fail

2015-01-18 Thread Mukesh Srivastav
Hi Nathan,

I am in the same situation, I have my app where in there are 3000 drivers
are using and in 20% of cases are getting failed (No locations,location was
getting very far(200 miles... :(

Here is the approach.

I was using google play store location which is not at all reliable
solution to use it, later on,i have switched to the actual location
provider api's to get the lat and long.

I had put lots of checks like the first priority is gps, if that fails use
network, if that fails use passive and in all i was also checking if the
location is the same as last, then again loop through the location api
(making it null and creating the provider instance again) and try to get
the new location.

Now the situation is under control and the failures are like only 5%,though
i am still exploring the other areas to get the right data.



On Sun, Jan 18, 2015 at 4:01 AM, Nathan nathan.d.mel...@gmail.com wrote:

 OK, this is really getting ridiculous.

 Google Play Location Provider just isn't reliable.

 Only once in a great while can I even get a location. I'm not sure how I
 did it. I can't find any combination of settings that is reliable. Device
 Only mode has never worked except perhaps once. GPS was never activated as
 far as I can tell.

 getLastLocation() states
 If a location is not available, which should happen very rarely, null
 will be returned. The best accuracy available while respecting the location
 permissions will be returned.

 Not true. Seems pretty common for me and is happening a lot for end users
 as well. Not such a big deal if one could ask for the location and expect
 to get it.

 Still nowhere is documented what settings the user has to have for me to
 get location through Google Play Services.

 So far the promise of the FusedLocationProvider is coming short bigtime.
 I'm close to crawling back to the supposedly inferior LocationManager.

 Nathan



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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Aam Aadmi Party #IFundHonestParty Challenge

2015-01-16 Thread Mukesh Srivastav
Dear Sandeep,

Here is the problem with the politics and with the people like you who poke
their nose every where.

This is a group/platform where the techies talk about the android
platform/issues related with the android but not the politics.

Please keep away the politics sir


Thank You.
Mukesh

On Fri, Jan 16, 2015 at 3:12 PM, Sandeep Solanki solanki.scor...@gmail.com
wrote:

  Accept Challenge
 http://mandrillapp.com/track/click/30165539/aamaadmiparty.ref-r.com?p=eyJzIjoiaVZmbThRR2J2T056OEdKZUFfRE93OF9KRnlrIiwidiI6MSwicCI6IntcInVcIjozMDE2NTUzOSxcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvYWFtYWFkbWlwYXJ0eS5yZWYtci5jb21cXFwvY1xcXC9pXFxcLzExM1xcXC85NDczNzY_cj1lbWFpbFwiLFwiaWRcIjpcIjRlY2ZmMjFlMjI5YTQ5NWFhZTU0Yjc3YWNiNGY0NDE0XCIsXCJ1cmxfaWRzXCI6W1wiZGM2Yjc3ZDc1MjlhNTIyMmVjZjkxYWFkMTY5ZjY5NmNhY2EyM2YxN1wiXX0ifQ

 As you know, I support Aam Aadmi Party (AAP) because  it has offered  an
 alternative politics rather than turning into just another political
 alternative. In spite of some actions on which we may have differing
 opinions, I feel that AAP still deserves a second chance and support from
 all of us as they are fully committed to corruption-free development,
 non-criminal candidates and Swaraj.

 AAP strongly believes that honest politics can only exist when elections
 are fought on clean money  received as donation from supporters.  I have
 taken the #iFundHonestParty Challenge and donated to AAP and seek your
 donation and support.  To continue this challenge, donate now and throw the
 #IFundHonestParty Challenge to at least 10 friends and family members in
 your network.

 I know that you will accept my request and step forward to do your bit to
 support the cause and further this movement. I would love to discuss about
 it if you have any questions :-)

 Sandeep Solanki
 Accept Challenge
 http://mandrillapp.com/track/click/30165539/aamaadmiparty.ref-r.com?p=eyJzIjoiaVZmbThRR2J2T056OEdKZUFfRE93OF9KRnlrIiwidiI6MSwicCI6IntcInVcIjozMDE2NTUzOSxcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvYWFtYWFkbWlwYXJ0eS5yZWYtci5jb21cXFwvY1xcXC9pXFxcLzExM1xcXC85NDczNzY_cj1lbWFpbFwiLFwiaWRcIjpcIjRlY2ZmMjFlMjI5YTQ5NWFhZTU0Yjc3YWNiNGY0NDE0XCIsXCJ1cmxfaWRzXCI6W1wiZGM2Yjc3ZDc1MjlhNTIyMmVjZjkxYWFkMTY5ZjY5NmNhY2EyM2YxN1wiXX0ifQ

 http://mandrillapp.com/track/click/30165539/www.facebook.com?p=eyJzIjoiX0xUMU9vR2JnMzNoajZQdzYyN1hCUzFLQU1RIiwidiI6MSwicCI6IntcInVcIjozMDE2NTUzOSxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3d3dy5mYWNlYm9vay5jb21cXFwvQWFtQWFkbWlQYXJ0eVwiLFwiaWRcIjpcIjRlY2ZmMjFlMjI5YTQ5NWFhZTU0Yjc3YWNiNGY0NDE0XCIsXCJ1cmxfaWRzXCI6W1wiYWI3OTE4ZGMwMzQyMGJhZGUwNzk3NjlkYmNiZmIyN2Y2ZDczMzZkZFwiXX0ifQ
 http://mandrillapp.com/track/click/30165539/twitter.com?p=eyJzIjoiMTM3am5tYzJQMWhWc2gwdmZkTFBOaVVzYzJVIiwidiI6MSwicCI6IntcInVcIjozMDE2NTUzOSxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL3R3aXR0ZXIuY29tXFxcL0FhbUFhZG1pUGFydHlcIixcImlkXCI6XCI0ZWNmZjIxZTIyOWE0OTVhYWU1NGI3N2FjYjRmNDQxNFwiLFwidXJsX2lkc1wiOltcImE2M2VjOTZlZTUwOGY3ZjAwMGVkNWU3MWI4YjdiOWJjMzA1NzIzMDlcIl19In0

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


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


[android-developers] Query related with the barcode

2015-01-16 Thread Mukesh Srivastav
Hi There,

I need to make use of the USB Barcode scanner which also has the bluetooth
with that.

so we i need to make use of the bluetooth api's to read the scanned data.


Please advise.

Thanks,
Mukesh

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


[android-developers] Question on the Action bar

2015-01-16 Thread Mukesh Srivastav
Hi All,

I have a question on using action bar libraries. is it not increasing the
size of the application ?

Please advise

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


Re: [android-developers] connect android app to remote web services

2014-12-08 Thread Mukesh Srivastav
I have helped here already... she was not having the internet connection on
her device and therefor thei application was throwing the exception
hostnotfound and also she did not returned the statment on exception but
instead trying to do the json parsing.

On Mon, Dec 8, 2014 at 7:36 PM, TreKing treking...@gmail.com wrote:


 On Mon, Dec 8, 2014 at 4:05 AM, asma rezgui asmarezgu...@gmail.com
 wrote:

 Can someone help me please ?


 You'll have to provide a little more information, like how you're trying
 to connect, what URL you're trying to connect to, and what errors you're
 seeing.


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

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Re: GPS Background Service Stops Receiving Updates

2014-11-25 Thread Mukesh Srivastav
Party is not over you might find the issue like

1. Though the GPS and Network is disable, The Location manger returns
Network provider and returns the invalid/long distance lat and long data.

2.Sometimes, though you put your tablet/application in one place, the
Network/GPS Provider will return the lat longs of the different location.

3.Though you mention the distance and time, the Network provider return the
data of Asia pacific.

4.At a times, you might also get the locationmanager object as null, though
it work the full day but it fails at one point.

5.and also, what is the logic you have put to avoid the duplicate lat and
long to be uploaded.

I had the situation earlier and i have shared you my experience.



On Tue, Nov 25, 2014 at 1:58 PM, gjs garyjamessi...@gmail.com wrote:

 Hi,

 re - I am holding the home button and the list of apps comes up and I
 swipe away my app to kill it. This is what others have mentioned above. I
 don't know if this is samsung only or not. Maybe this method is supposed to
 kill all running services and processes of the app and is not a good way to
 test.

 Ok I think you are referring to the rectangular 'Recent Apps' button, not
 the Home button, but I get what you mean about swiping to close a recent
 Activity from that list.

 And yes, what Treking said about StartForeground.

 Regards


 On Tuesday, November 25, 2014 7:29:07 AM UTC+11, Tony Pitman wrote:

 It looks like calling startForeground was the key. I am still not able to
 kill the app using the method mentioned above, but at least now when I let
 the app sit for a long period of time the GPS notifications keep coming
 into the service even when it looks like the app has been shut down by the
 OS for lack of use.

 I do have another related question. When I did my service I was following
 the example of a service on the google dev site. This is the link to what I
 followed:

 http://developer.android.com/guide/components/services.html

 You will notice about the middle of the page there is the example code
 that I followed and then modified. They use a HandlerThread to create the
 Looper that gets used in the mServiceHandler thread to process the actual
 work.

 They pass in a parameter to that HandlerThread called
 Process.THREAD_PRIORITY_BACKGROUND.

 Is this different than using the startForeground that now fixed my issue?
 I left that HandlerThread the way it was and it now works with the
 startForeground.

 Thanks!

 On Monday, November 24, 2014 8:17:18 AM UTC-7, Tony Pitman wrote:

 Thank you everyone for the replies. Here are my responses:

 I am holding the home button and the list of apps comes up and I swipe
 away my app to kill it. This is what others have mentioned above. I don't
 know if this is samsung only or not. Maybe this method is supposed to kill
 all running services and processes of the app and is not a good way to test.

 I tried giving the service a different process. I tried 2 things. First
 I just added the android:process tag to my service. I gave it a name with
 the ':' in front so it would be private to my app.

 This did not change anything. The service still dies when I kill the
 app. The other thing I noticed is when I go to the Settings - Application
 Manager - Running I see my app. If I tap on it to see what it is doing I
 get the following sections / information:

 Active App:
 MyApp
 1 process and 1 service

 Services:
 MyService
 Start by application

 Processes:
 MyApp
 com.mycompany.myappspace:MyService

 Main process in use.

 So I decided to try adding the android:process section to the main
 application entry in the xml as well. I gave it a different name just in
 case. I called it MyApp instead of MyService. This did not make any
 difference. The information shown in the settings panel were the same.

 So am I to assume that the service is running in the same process as the
 app so that when I kill the app using the method above that is why the
 service is also dying? Is killing the app that way the wrong way to test?

 The whole reason I am doing this is because originally I just put my gps
 stuff inside the app itself. I would start my app and then many hours later
 I would enter the geofence area I had set up and the app did not trigger
 what I wanted it to do. I would go to the app and it looked like it was
 starting all over.

 Maybe I should just start my app and let it run for several hours and
 see if the service keeps going.

 Thanks for all the help.

 On Monday, November 24, 2014 7:58:36 AM UTC-7, Mukesh Srivastav wrote:

 As my understanding here, the service was stopped some where in the
 code and hence it is behaving like that.

 On Mon, Nov 24, 2014 at 7:38 PM, Mark Phillips 
 ma...@phillipsmarketing.biz wrote:

 On my Samsung Galaxy 4 phone from T-Mobile, I can hold down the home
 button and get a list of running apps. I can kill each one individually
 with a swipe, and there is a trashcan icon at the bottom of the screen 
 that
 will kill

Re: [android-developers] Re: GPS Background Service Stops Receiving Updates

2014-11-24 Thread Mukesh Srivastav
As my understanding here, the service was stopped some where in the code
and hence it is behaving like that.

On Mon, Nov 24, 2014 at 7:38 PM, Mark Phillips m...@phillipsmarketing.biz
wrote:

 On my Samsung Galaxy 4 phone from T-Mobile, I can hold down the home
 button and get a list of running apps. I can kill each one individually
 with a swipe, and there is a trashcan icon at the bottom of the screen that
 will kill all the apps running. I use this feature to extend my battery
 time when the batter is getting low. It may be a special Samsung app that
 does this.

 Mark

 On Mon, Nov 24, 2014 at 1:13 AM, gjs garyjamessi...@gmail.com wrote:

 Hi,

 What do you mean by -

 ...I test this by holding down the home button and killing my app ?

 If I start an app, then press  hold down the Home button, the app that
 was running is sent to the background (not killed)  the only option that
 appears is a circle that pops up to run Google Now - if I then swipe
 upwards. There is no option to kill any apps via the Home button
 interaction you described as far as I know, I tested this on (stock) Nexus
 5 with Android 5 as well as Sony Xperia 2 with Android 4.4 phone devices.

 The only (stock) standard way I know to kill apps is via Android
 Settings-Apps-Downloaded-(select App)-Press 'Force stop' button.

 I'd suggest you try in the service manifest entry android:exported=true
 if that is ok for your app. Other things to try are android:process  also
 make sure you are using startForeground(..)  stopForeground(.) calls in
 your service or it will be killed by the OS after a period of time and
 finally you probably need to use a wake lock to keep the CPU running when
 the display is turned off. I use these settings to get a GPS (background)
 Service to continue to run ok indefinitely after the uses exits my app or
 presses the home button or turns the screen off. (But be warned that these
 actions can deplete the device battery fairly quickly which many users do
 not like).

 The user can still always kill the app  background service even when the
 app is stopped / service in the background via Android
 Settings-Apps-Downloaded-(select App)-Press 'Force stop', there is
 nothing your app can do to avoid this...

 Regards






 On Sunday, November 23, 2014 5:44:45 PM UTC+11, Tony Pitman wrote:

 I am writing an app that needs to get gps location information in the
 background. I created a class derived from Service to do this. I copied the
 example on the Android developer site about making a background service. It
 uses the ServiceHandler thread to do the work.

 I use location manager and set up the receiving of updates.

 I have my main activity create the service using the normal way like
 this:

 Intent intent = new Intent(_context, MyService.class);
 _context.startService(intent);

 Inside my service I create the location manager and start getting
 location updates.

 This works great so far. I am doing this as a service because I want my
 service to receive updates even if my application is shut down. I test this
 by holding down the home button and killing my app.

 The problem is that as soon as I kill my app the service stops getting
 updates. The service does not go away, as far as I can tell, it just quits
 receiving GPS updates.

 As long as I leave the app running, even in the background, the service
 keeps getting the GPS updates.

 Can someone tell me how to continue to get GPS updates in my service
 even if the app that started it gets killed?

 I have some settings in my AndroidManifest.xml that might be affecting
 it. I have the service set up so it is not exported and has permissions. I
 do this because I don't want other applications to use my service. Could
 these be affecting it?

 Here is my service entry in the xml:

 service android:name=com.mycompany.mypackage.MyService
 android:permission=com.mycompany.MY_SERVICE android:exported=false
 /

 Just after that outside of the application tag I have this:

   permission android:name=com.mycompany. MY_SERVICE/
   uses-permission android:name=com.mycompany. MY_SERVICE /


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


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this 

Re: [android-developers] Experienced Android developer needed

2014-11-06 Thread Mukesh Srivastav
Thanks for sharing your experience ...



On Thu, Nov 6, 2014 at 4:39 PM, Vo Trung Liem lie...@gmail.com wrote:

 Hi Guys,

 I have worked for this guys in last year. I completed the projects for him
 but he didn't pay for me.

 It is a worst guy that I work.

 Regards,

 On Wed, Oct 1, 2014 at 12:45 PM, Rakesh Jha rkjhaw1...@gmail.com wrote:

 I'm interested, please check my profile.

 in.linkedin.com/in/rakeshkumarjha7/

 Rakesh
 +91 9886336619

 On Wed, Oct 1, 2014 at 12:14 AM, Josphat Muchiri jmuchir...@gmail.com
 wrote:

 Hey,
 I am in need of several android developers to work on a project
 start-up, working from  anywhere you are. Contact me asap.

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




 --
 Thanks  Regards

 Rakesh Kumar Jha
 Android Developer, Trainer and Mentor
 Bangalore
 Skype - rkjhaw
 (O) +918050753516
 (R) +919886336619

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


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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] GCM pernision how impact our application.

2014-11-02 Thread Mukesh Srivastav
What do you mean by how it works ?

here are the steps on this.

1. create a GCM server componenent which push the message to the APK(your
application)

https://developer.android.com/google/gcm/server.html

the GCM server uses REGISTRATIONID (Which apk gets it when register it to
the server) in order to push the message to the correct device.







On Sun, Nov 2, 2014 at 4:14 PM, 12169 ashish.a...@gmail.com wrote:

 Hi,

 i read about GCM client side implementation. and in the manifest i declare
 a permission and then i use the same permission in the manifest (to insure
 application messages deliver  to only application), but i do not how it
 works.

 permission
 android:name=com.xxx.android.permission.C2D_MESSAGE
 android:protectionLevel=signature /

 uses-permission android:name=com.xxx.android.permission.C2D_MESSAGE
 /

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Google Maps API on Android 4.4 taking wrong location

2014-10-16 Thread Mukesh Srivastav
It is not only your's or 4.3 issue, even i am having it and i have no clue
to do that

On Thu, Oct 16, 2014 at 5:07 AM, SAndy sandy.go...@gmail.com wrote:

 I am using the Google Play Location API to locate my destination from my
 current location.

 My current location is picked up correctly by Android 4.0 to 4.3 but
 getting wrong current location in 4.4 device.

 If there is no fix for this, then they should deprecate the
 requestLocationUpdates method.


 Also pointing to my destination, when I type, it gives me suggestions, and
 when I choose the suggestion, it automatically takes wrong suggestion.

 For ex- I am searching for Sydney Domestic Airport and it gives me
 suggestion, and when I choose the ’Sydney Domestic Airport’ suggestion,
 Google Maps by itself start pointing to ’Sydney Airport’ and end up in
 wrong destination.

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] J2ME custom font

2014-10-13 Thread Mukesh Srivastav
you would need to include J2ME-Polish to do that, by default, J2ME/Midp api
doesnt gives you the flexiblity to change the font or color, so go for
J2ME-Polish.


Regards,
Mukesh,
Hyderabad,India.
Freelancer/consultant on Mobile platform (J2ME,Android and Blackberry)

On Mon, Oct 13, 2014 at 6:10 PM, ANKUR GOEL ankur1...@gmail.com wrote:

 HI all ,

 sorry for raising this question here ..  ..but got stuck so i though
 someone can help me .


 I am doing one j2me project and want to have custom font verdana
 Can somebody help me with this .


 Thanks and Regards:-

 Ankur Goel

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] J2ME custom font

2014-10-13 Thread Mukesh Srivastav
just a bit of googled would haved seriously help in understanding and
implementing the J2ME-Polish.

On Mon, Oct 13, 2014 at 8:37 PM, ANKUR GOEL ankur1...@gmail.com wrote:

 Hi Mukesh ,

 can u guide me for the Custom Font , for j2me polish or provide with some
 sample code or link .

 I want to support verdana font .

 Thanks

 Thanks and Regards:-

 Ankur Goel
 09019040351
 S/W Engg.

 On Mon, Oct 13, 2014 at 7:10 PM, Mukesh Srivastav mukicha...@gmail.com
 wrote:

 you would need to include J2ME-Polish to do that, by default, J2ME/Midp
 api doesnt gives you the flexiblity to change the font or color, so go for
 J2ME-Polish.


 Regards,
 Mukesh,
 Hyderabad,India.
 Freelancer/consultant on Mobile platform (J2ME,Android and Blackberry)

 On Mon, Oct 13, 2014 at 6:10 PM, ANKUR GOEL ankur1...@gmail.com wrote:

 HI all ,

 sorry for raising this question here ..  ..but got stuck so i though
 someone can help me .


 I am doing one j2me project and want to have custom font verdana
 Can somebody help me with this .


 Thanks and Regards:-

 Ankur Goel

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




 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

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





-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Regarding location based app.

2014-10-09 Thread Mukesh Srivastav
Dear Yogesh,

Please add the following user defined permission in the AndroidManifest.xml
file
uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION
/
uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION /
uses-permission android:name=android.permission.ACCESS_FINE_LOCATION
/




On Thu, Oct 9, 2014 at 8:35 PM, yogendra G yogi2...@gmail.com wrote:

 Dear All,

 I am developing an app which require location access of the user.
 I tried to do a prototype of the app but whenever i am within some building
 were network is not that good am getting location has null even in google
 maps if i tried to find out my location its not happening.

 I have used following things in my code:
 1. Network provider.
 2. Gps.
 3. Fused location.

 Turned on all location services in settings also.

 So,what would be best approach for this kind of problems.

 Thanks  Br,
 Yogendra G.
 +91-9916168647

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Experienced Android developer needed

2014-09-30 Thread Mukesh Srivastav
I am available. I am having 11 Years of mobile application and product
development experience. I started with J2ME,Blackberry and since last 4+
years into Android development.



On Wed, Oct 1, 2014 at 12:14 AM, Josphat Muchiri jmuchir...@gmail.com
wrote:

 Hey,
 I am in need of several android developers to work on a project start-up,
 working from  anywhere you are. Contact me asap.

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Opensource messaging.

2014-09-18 Thread Mukesh Srivastav
I have been using gcm for one of my product since last one year which has
1800 users and everyday the GCM server sends min 200 and max 2000 messages
to the all users and i dont see any issues in using it.

yeah, at times i found that due to the updateregistratioid, the message
dont deliver , so the app always update the gcm registration id in the SQL
SERVER so that the gcm server picks the right regisration id.




On Thu, Sep 18, 2014 at 11:37 AM, Tushar Lal tush...@gmail.com wrote:

 You can take a look at Ejabberd for server and asmack lib for android
 device.
 On Sep 17, 2014 10:35 PM, yogendra G yogi2...@gmail.com wrote:

 Dear All,

 I am in need of some nice open source for message broadcasting between
 many android devices without using GCM.

 Please help me out.

 Thanks  Br,
 Yogendra G.
 +91-9916168647

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

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Opensource messaging.

2014-09-18 Thread Mukesh Srivastav
hmmm'

GCM server will pull all the registrationid of all the users from my db and
send the message... no matter which db you use

On Thu, Sep 18, 2014 at 12:39 PM, Dallas Singletary devdal...@gmail.com
wrote:

 You host your own SQL server for GCM?
 On Sep 18, 2014 3:01 AM, Mukesh Srivastav mukicha...@gmail.com wrote:

 I have been using gcm for one of my product since last one year which has
 1800 users and everyday the GCM server sends min 200 and max 2000 messages
 to the all users and i dont see any issues in using it.

 yeah, at times i found that due to the updateregistratioid, the message
 dont deliver , so the app always update the gcm registration id in the SQL
 SERVER so that the gcm server picks the right regisration id.




 On Thu, Sep 18, 2014 at 11:37 AM, Tushar Lal tush...@gmail.com wrote:

 You can take a look at Ejabberd for server and asmack lib for android
 device.
 On Sep 17, 2014 10:35 PM, yogendra G yogi2...@gmail.com wrote:

 Dear All,

 I am in need of some nice open source for message broadcasting between
 many android devices without using GCM.

 Please help me out.

 Thanks  Br,
 Yogendra G.
 +91-9916168647

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

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




 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

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

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Android app installation

2014-09-16 Thread Mukesh Srivastav
if i am not wrong, you are looking to install only those which are
available in the Playstore or in other words, stop installing the Unsource
app

On Tue, Sep 16, 2014 at 5:33 PM, Paulo Morandi psmora...@gmail.com wrote:

 Hello, unfortunately you can't. At my company we developed a custom
 android launcher that permits only server side configured apps. The
 launcher blocks everything that it's not allowed. The only way to
 accomplish this, I think.

 --
 Paulo Morandi

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] App Backgrounded check, onTrimMemory Activity finish(), behaviour

2014-09-02 Thread Mukesh Srivastav
Dear Omkar,

Here is the code to check if the apk pid..

private boolean isMyServiceRunning() {
ActivityManager manager = (ActivityManager)
getSystemService(Context.ACTIVITY_SERVICE);
for (RunningServiceInfo service : manager
.getRunningServices(Integer.MAX_VALUE)) {
 if (yourclassname.class.getName().equalsIgnoreCase(
service.service.getClassName())) {
return true;
}
}
return false;
}

it returns true if succeeded...





On Tue, Sep 2, 2014 at 4:07 PM, Omkar omk...@gmail.com wrote:

 Hi Mukesh, Any suggestions on how to get current pid?
 ActivityManager.getRecentTasks is deprecated by google in android OS L for
 provacy purposes. so can not use any ActivityManager method to get current
 PID/Running task. onTrimMemory seems reliable way to get if app is hidden
 or not, but only have problem descibed above.


 On Monday, September 1, 2014 5:59:44 PM UTC+10, Mukesh Srivastav wrote:

 why not just check the current pid state of the app rather than doing all
 those things..




 On Fri, Aug 29, 2014 at 11:25 AM, Omkar omk...@gmail.com wrote:

 Hi All,
 I am working on a App where functionality is when ever User goes out of
 the app and comes back it should ask him login details, so when ever user
 kicks himself out of app, by pressing home button or multi-task button or
 start other app on my app, then my app should automatically logoff/logout
 user and when he comes back ask for credentials.

 To check backgrounded state of app I tried using 
 ActivityManager.getRecentTasks(1);
 and check if topactivity package is other than my app package and if yes
 then I assumed app is backgrounded,
 This works good till Kitkat/OS L where google has deprecated
 ActivityManager.getRecentTasks method for privacy purpose.

 Second solution we implemented was to use ComponentCallbacks2 and check
 onTrimMemory(int level) for level = TRIM_MEMORY_UI_HIDDEN. This worked
 in almost all cases, but one. onTrimMemory Component call back is
 registered for Application class.

 When call to Activity finish() happens onTrimMemory call back will not
 be triggered. Say I have activity A and B, Activity A starts Activity B,
 Now I complete some work in Activity B and call finish() on B, From time
 when finish() on B is called till Activity A's onStart/onResume will be
 called, in this timeframe if user press home buttom/ multitask button and
 goes out of the app, onTrimMemory is not called and it is not possible to
 know if app was backgrounded, because of this we can not logoff session. So
 if user gets out of app in that timeframe and goes back he will get same
 session back.

 Second case we detect same behavior is, if we call finish() in activity
 B's onPause() and user press home/multitask button or start other app from
 notification area then because of this finish() call in onPause, we are not
 getting onTrimMemory call back.

 There should be some standard api/call back to check if app is
 backgrounded, if not, apis like onTrimMemory should be consistent with
 their call backs. Kindly 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-d...@googlegroups.com

 To unsubscribe from this group, 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/d/optout.




 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

Re: [android-developers] App Backgrounded check, onTrimMemory Activity finish(), behaviour

2014-09-01 Thread Mukesh Srivastav
why not just check the current pid state of the app rather than doing all
those things..




On Fri, Aug 29, 2014 at 11:25 AM, Omkar omk...@gmail.com wrote:

 Hi All,
 I am working on a App where functionality is when ever User goes out of
 the app and comes back it should ask him login details, so when ever user
 kicks himself out of app, by pressing home button or multi-task button or
 start other app on my app, then my app should automatically logoff/logout
 user and when he comes back ask for credentials.

 To check backgrounded state of app I tried using
 ActivityManager.getRecentTasks(1); and check if topactivity package is
 other than my app package and if yes then I assumed app is backgrounded,
 This works good till Kitkat/OS L where google has deprecated
 ActivityManager.getRecentTasks method for privacy purpose.

 Second solution we implemented was to use ComponentCallbacks2 and check
 onTrimMemory(int level) for level = TRIM_MEMORY_UI_HIDDEN. This worked in
 almost all cases, but one. onTrimMemory Component call back is registered
 for Application class.

 When call to Activity finish() happens onTrimMemory call back will not be
 triggered. Say I have activity A and B, Activity A starts Activity B, Now I
 complete some work in Activity B and call finish() on B, From time when
 finish() on B is called till Activity A's onStart/onResume will be called,
 in this timeframe if user press home buttom/ multitask button and goes out
 of the app, onTrimMemory is not called and it is not possible to know if
 app was backgrounded, because of this we can not logoff session. So if user
 gets out of app in that timeframe and goes back he will get same session
 back.

 Second case we detect same behavior is, if we call finish() in activity
 B's onPause() and user press home/multitask button or start other app from
 notification area then because of this finish() call in onPause, we are not
 getting onTrimMemory call back.

 There should be some standard api/call back to check if app is
 backgrounded, if not, apis like onTrimMemory should be consistent with
 their call backs. Kindly 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
 ---
 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/d/optout.




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Re: Play a Youtube video

2014-08-26 Thread Mukesh Srivastav
Hello Patrick,

Sorry on late reply... last couple of years back i was working on the same
and able to play the Youtube video without using API's.

here is the thing.

First convert the Youtube video with the RTSP url and with the Android
build in player you can play it.

 Yes,i agree the video quality is poor, but we can check that.


On Mon, Aug 25, 2014 at 6:10 PM, Patrick patrick.god...@gmail.com wrote:

 Hello Mukesh,
 As I stated in my first post, I cannot use the Youtube API, because it
 requires the Youtube app installed, and I want to distribute my app on
 platforms where it's not installed (Amazon, Blackberry...).
 I've found how to stream from Youtube in RTSP, but the video quality is
 very bad, unless I missed something.
 The solution with WebView is almost working, except on Android 2.x as I
 explained.
 So I still need a solution that works in all cases.
 Thanks,
 Patrick

 Le lundi 25 août 2014 14:01:40 UTC+2, Mukesh Srivastav a écrit :

 Hello Patrick,

 There are two ways to acheive this.

 first using the google Android Youtube Api.

 https://developers.google.com/youtube/android/player/

  or

  if you are good in rtsp protocol then you can stream the videos of the
 youtube.

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Re: Play a Youtube video

2014-08-25 Thread Mukesh Srivastav
Hello Patrick,

There are two ways to acheive this.

first using the google Android Youtube Api.

https://developers.google.com/youtube/android/player/

 or

 if you are good in rtsp protocol then you can stream the videos of the
youtube.





On Mon, Aug 25, 2014 at 3:52 PM, Patrick patrick.god...@gmail.com wrote:

 Since Google owns both Youtube and Android, I can't believe it's so
 difficult to put a Youtube video in an Android app...

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] It is legal to delete and upload again an application to google play?

2014-08-08 Thread Mukesh Srivastav
Currently there is no provision of deleting the app. but you can upload the
new one with the diffrent package name.


On Fri, Aug 8, 2014 at 9:04 PM, saex elpablos...@gmail.com wrote:

 i have an app that in the begining has some errors and a lot of users rate
 it with 1 star and now it have very bad rate.

 Now the app has solved the errors but still have a lot of negative
 votes. and no one is downloading it because of the negative rate.

 ¿It is legal to delete the app and to upload it again to start with 0
 installations and 0 rates?

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] saving GeoCoder location address legality

2014-08-08 Thread Mukesh Srivastav
What is illegal in this ? Geocoder returns the Address based on the lat
long you have. you need to check the legal things with the user since
capturing data with out user notification is illegal.


On Wed, Aug 6, 2014 at 2:24 AM, Goutom goutom.sust@gmail.com wrote:

 Hi

 I can parse location address using the following code.

 ListAddress addresses = null;
 addresses = geocoder.getFromLocation(loc.getLatitude(),loc.getLongitude(), 1);

 I want to save that location in my own database when user is offline. Is that 
 legal ? I don't find any legal notices on GeoCoder  address api.

 Thanks

 Goutom Roy

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] I always get a crash when reading an InputStream on Android

2014-07-17 Thread Mukesh Srivastav
Please print the stack trace so that we can check what went wrong.


On Thu, Jul 17, 2014 at 11:25 PM, Fabrizio Bartolomucci fbarto...@gmail.com
 wrote:

 I am trying to receive the result of an url request and transform it into
 a string to analyze if everything works fine. Yet whenever I call:

 content.read(buffer));

 as in this test function:

 private void processStream(InputStream content) throws
 ClientProtocolException, IOException {

  // TODO Auto-generated method stub

  Toast toast=Toast.makeText(this, ricevuto stream,Toast.LENGTH_LONG);

  toast.show();

  byte[] buffer=new byte[1024];

   Log.d(LOG_TAG, risultato=+content.read(buffer));

 content.close();

 }

 I get an unspecified crash. What might it be and what to do instead?

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Android GCM without a 3rd party server (Device to Device push notification without 3rd party server via GCM)

2014-07-09 Thread Mukesh Srivastav
@Haris..

You would need to store the GCM- Registration Id in the Database(Server
side) so that the Server API/Webservice api/ should able to pick the
Registration Id from the DB and send me message to the correct device
(Based on the registration id).

 here is the way i used it. I have an logistics app where in the Admin
decide the take a load or do a refresh upon receving the GCM Message. The
server db is having a GCM table with the following structure.

RegistrationID | DriverId | Message | Status|.

xxx | 2113 | Refresh | 1

The data will be pulled by the HTTP request which inturn send the message
to the device so that Driver get to know that there is a updated data and
it requires to download after downloading the data the APK will update the
status back to 3 so that the HTTP request should not pull the same record.










On Tue, Jul 8, 2014 at 11:09 PM, MS ms.jackspar...@gmail.com wrote:

 Hi Harri Smatt,

 Sender Id needs to be in the App to register with GCM server and get the
 GCM ID. I believe you are referring to GCM API key.

 We will be encrypting the GCM API Key in our app.
 On top of that we will be using DexGuard to obfuscate the code.
 And more over sending message to GCM is an *HTTPS *call.
 Considering all the above, we think that it should be secure enough.

 Thanks a lot for your reply. Do you foresee any other issues?

 Varun


 On Tuesday, 8 July 2014 22:24:17 UTC+5:30, Harri Smatt wrote:


 On 7 Jul 2014, at 16:38, MS ms.jack...@gmail.com wrote:

 Are we missing anything by not choosing to push via our own server?

 Is following such an implementation correct?


 Guess it works - but isn’t it any concern to you that you need to bundle
 your Sender Id, usually stored only on 3rd party application server, within
 the application?

 And, well, can’t tell how Google reacts once their GCM server gets
 hammered from millions, if not trillions, different IPs with your Sender Id.

 —
 H

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Android GCM without a 3rd party server (Device to Device push notification without 3rd party server via GCM)

2014-07-09 Thread Mukesh Srivastav
Further to that. . as soon the APK register the device it gets the
RegistrationId which inturn store in the Server DB so that the Server can
push the messsage. for example;

https://myserver/api/updategcmdata
driverid=2113
registrationid=x

The service will update/create the new record in the DB.


On Wed, Jul 9, 2014 at 12:55 PM, Mukesh Srivastav mukicha...@gmail.com
wrote:

 @Haris..

 You would need to store the GCM- Registration Id in the Database(Server
 side) so that the Server API/Webservice api/ should able to pick the
 Registration Id from the DB and send me message to the correct device
 (Based on the registration id).

  here is the way i used it. I have an logistics app where in the Admin
 decide the take a load or do a refresh upon receving the GCM Message. The
 server db is having a GCM table with the following structure.

 RegistrationID | DriverId | Message | Status|.

 xxx | 2113 | Refresh | 1

 The data will be pulled by the HTTP request which inturn send the message
 to the device so that Driver get to know that there is a updated data and
 it requires to download after downloading the data the APK will update the
 status back to 3 so that the HTTP request should not pull the same record.










 On Tue, Jul 8, 2014 at 11:09 PM, MS ms.jackspar...@gmail.com wrote:

 Hi Harri Smatt,

 Sender Id needs to be in the App to register with GCM server and get the
 GCM ID. I believe you are referring to GCM API key.

 We will be encrypting the GCM API Key in our app.
 On top of that we will be using DexGuard to obfuscate the code.
 And more over sending message to GCM is an *HTTPS *call.
 Considering all the above, we think that it should be secure enough.

 Thanks a lot for your reply. Do you foresee any other issues?

 Varun


 On Tuesday, 8 July 2014 22:24:17 UTC+5:30, Harri Smatt wrote:


 On 7 Jul 2014, at 16:38, MS ms.jack...@gmail.com wrote:

 Are we missing anything by not choosing to push via our own server?

 Is following such an implementation correct?


 Guess it works - but isn’t it any concern to you that you need to bundle
 your Sender Id, usually stored only on 3rd party application server, within
 the application?

 And, well, can’t tell how Google reacts once their GCM server gets
 hammered from millions, if not trillions, different IPs with your Sender Id.

 —
 H

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




 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Re: Promoting a Game

2014-02-05 Thread Mukesh Srivastav
You are trying to be over smart and promoting your game in android
developer forum.


On Wed, Feb 5, 2014 at 9:17 PM, JackN j...@jacknorth.com wrote:

 Looks like you've done well. Unless you are willing to pay for
 advertising, why not just give similar games bad reviews and mention your
 game in the review.

 On Wednesday, February 5, 2014 3:18:53 AM UTC-8, Martin jules wrote:

 Hi everyone,

 I published my game 2 days ago on google play, and i'm having trouble
 with promotion.
 So i came here to ask you, what is the best way to promote a android
  game ?

 I made a good presentation of the game, https://play.google.com/
 store/apps/details?id=com.tower.bruiser
 a youtube trailer :
 http://www.youtube.com/watch?v=UfMmo5FiWUU

 Thanks.

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Best Chart Library

2014-01-09 Thread Mukesh Srivastav
I have used achartengine and found very useful

https://code.google.com/p/achartengine/




On Thu, Jan 9, 2014 at 1:21 PM, sourabh sahu souruit...@gmail.com wrote:

 Dear All,

 Which is the best open source library for drawing Chart on Android.

 Regards,
 Sourabh

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Android xml2class tool

2014-01-02 Thread Mukesh Srivastav
I have tried it, it is nice


On Tue, Dec 31, 2013 at 3:40 PM, Göksel Güren goksel7...@gmail.com wrote:

 Hi everybody,

 We released a tool for generating Activity Class with only pasting your
 xml source code to tool. Maybe somebody can use it
 http://lab.mobillium.com/ http://lab.mobillium.com/xml2class/step1

 Thanks.

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] how to optimize reliability of gcm messages on 2G network?

2013-12-09 Thread Mukesh Srivastav
I had the similar situation where in the GCM was not able to receive on 2G
and most of the time it failed. I have drawn a work around, since my
application deals with the Webservices, I have created  a new webservice
called Getgcmfromthedb, I am calling the same service before calling any
other services and updating the status back to 2 for READ and 3 for Process.





On Tue, Dec 10, 2013 at 10:27 AM, ranjit R ranjitr...@gmail.com wrote:

 I am using 2g network for Instant messaging .with payload less than 2kb..
  In 3g network success rate of receiving gcm messages is 10/10 with out
 queueing of messages in gcm messaged in GCM server.

 In 2G network  here Is the problem 5/10 messages are received instantly
 other 5 goes in to queue I n GCM server ..
 My question is
 As Google queue messages on gcm server When phone is idle.
 1 is there a callback to device when gcm message is queue in server.
  2 is there way to optimize gcm messages on 2g network
 3 when does gcm expire.
 4 or is there better way of handling gcm message for 2G

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Re: With Updated APK, Can't Purge Previous Data

2013-12-03 Thread Mukesh Srivastav
Basically on upgrade move the data to the same DB and let say,if you add
new filed in your sqlite, just update the version of the DB that helps in
retaining the old data.


On Wed, Dec 4, 2013 at 3:45 AM, Streets Of Boston
flyingdutc...@gmail.comwrote:

 If your updated APK has its own SQLite database and your app uses a
 sub-class of SQLiteOpenHelper, you could increase your database version
 each time your update your app (increase version value in SQLiteOpenHelper
 constructor) and implement that sub-class' onUpgrade method to clear out
 data (e.g. delete files or caches, etc).


 http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html

 Note that your implementing the onUpgrade is mainly meant to upgrade the
 SQLite database(s) of your app, but you could do other stuff as well, such
 as deleting files, clearing SharedPreferences, etc.


 On Monday, December 2, 2013 7:03:58 AM UTC-5, Cayce wrote:

 This is making me crazy. I'm having an app built that is initially
 downloaded as an empty carrier for different regions of data. The person
 using the app will then choose the region/data to be purchased, make that
 in-app purchase, and the region/data loads into the app shell. I have to
 test each updated APK by going through the process of purchasing a region
 of data. The problem is that even after deleting the previous install of
 the previous APK, the newly updated APK shows the previous APK's purchases.

 The only way I've been able to work around this is to create a whole new
 GMail account with each updated APK, delete the previous accounts on my
 testing devices, and start over. Aside from the time consuming process this
 entails, Google requires telephone (voice or text) verification of each
 newly created GMail account, and only allows one phone number to be used a
 certain number of times before it won't allow that number any longer. It's
 about 5 times, I think. I've run out of phone numbers.

 The question: How are other developers dealing with this? How can I purge
 the data from a previously installed APK? The data isn't in the device,
 because I did a factory reset this morning thinking I would just do that
 each time, reloaded a new APK, and the previous in-app purchases showed up.

 Any help would be appreciated.

 Thanks.

 Cayce

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] With Updated APK, Can't Purge Previous Data

2013-12-02 Thread Mukesh Srivastav
I have done this in one of my product and but i am dealing with my sqlite
data, not sure, if you are using the same.





On Mon, Dec 2, 2013 at 5:33 PM, Cayce ca...@cayceweb.com wrote:

 This is making me crazy. I'm having an app built that is initially
 downloaded as an empty carrier for different regions of data. The person
 using the app will then choose the region/data to be purchased, make that
 in-app purchase, and the region/data loads into the app shell. I have to
 test each updated APK by going through the process of purchasing a region
 of data. The problem is that even after deleting the previous install of
 the previous APK, the newly updated APK shows the previous APK's purchases.

 The only way I've been able to work around this is to create a whole new
 GMail account with each updated APK, delete the previous accounts on my
 testing devices, and start over. Aside from the time consuming process this
 entails, Google requires telephone (voice or text) verification of each
 newly created GMail account, and only allows one phone number to be used a
 certain number of times before it won't allow that number any longer. It's
 about 5 times, I think. I've run out of phone numbers.

 The question: How are other developers dealing with this? How can I purge
 the data from a previously installed APK? The data isn't in the device,
 because I did a factory reset this morning thinking I would just do that
 each time, reloaded a new APK, and the previous in-app purchases showed up.

 Any help would be appreciated.

 Thanks.

 Cayce

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Avoid app force closed issue.

2013-12-02 Thread Mukesh Srivastav
For force close, there could be two reasons.

1. Your application logic might depends on the data you get from the
webserver, there you might be doing a parsing with the Null or incorrect
data which is causing the force close.

2. While handling the HTTP Connections, make sure you also handle the
timeout and show a valid message to the user rather then FORCE CLOSE.



On Tue, Dec 3, 2013 at 10:38 AM, sree android
android.sreeni...@gmail.comwrote:

 Hi friends,
 some times i am faceing a problum.That is when i am getting data from
 server using web services ,some times my app is force closed due to low
 internet peers(Low internet signals).how can i handle this problum and how
 can i avoid app force close problum.

 when my app app is force close at that time alert will display,when i
 press that alert i will navigate to home screen.


 thank you in advance.

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] If the application force closes, will the registered intent filters also removed or deregistered?

2013-11-19 Thread Mukesh Srivastav
First you avoid the force close by doing the following.

Register the broadcast on  Resume

Unregister the same onPause

and seconldy, let's say, if you get a force close, your app will try to
register in the onResume method and that will solve your problem.



On Sat, Nov 16, 2013 at 4:27 PM, Sathya Sri sathya.sr...@gmail.com wrote:

 Hi All,

 I have created my own dial pad in my application. And i added intent
 filters to that dial pad in manifest file as like below.

 intent-filter  action
 android:name=android.intent.action.CALL_PRIVILEGED / action
 android:name=android.intent.action.CALL / category
 android:name=android.intent.category.DEFAULT / data
 android:scheme=tel / /intent-filter
 If the application force closed then for the first selected contact number
 my dial pad is not working for the second time. any other contact number it
 is working fine.
 My question is if we force close any application, by any chance will the
 registered intent filters deregistered?
 Please let me know if any one have any idea on it.
 Thanks for your help in advance and appreciated.

 Thanks,
 sathish

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Re: AndroidPushNotification

2013-11-12 Thread Mukesh Srivastav
Janvi,

How is your architecture of the app ? secondly, your business logic should
have all the GCM Registers   users in your server DB, so that , it would
help  you to whom you want to push the notification.


On Wed, Nov 13, 2013 at 12:01 PM, janvi jagruthi.bha...@gmail.com wrote:

 Thank you Mukesh :)

 I have one more query regarding push notification here

 If the user upgrades his O.S will GCM generate new token ID??Or using old
 token can we get pushnotification 

 Do we need to handle this case from App perspective 


 Thanks in advance

 On Monday, November 11, 2013 1:28:44 PM UTC+5:30, Mukesh Srivastav wrote:

 Here are the things to check.

 APK:

 1. Have a message id for new messages and check if the same message is
 coming through from the server.
 2. Always make sure you Unregister the device (GCM.unregister)
 3. You need to handle the error message







 On Mon, Nov 11, 2013 at 10:56 AM, janvi jagruth...@gmail.com wrote:

 hello all

 I need urgent help here

 I got push notification successfully from the server.It is an error code
 which is sent by external server to the GCM.

 What if the error is fixed and the same message is communicated to the
 GCM then in such case notification displayed in the APP must disappear


 Is there any API to cross check with the GCM whether the notification is
 still active or not??

 Any other approach to handle this

 Thanks in advance


 On Thursday, November 7, 2013 12:00:24 PM UTC+5:30, janvi wrote:

 I have implemented and working fine...

 One more query here is Notifications from the server keep on coming
 three times for every 10 seconds

 Can any body tell me what is going wrong here???
 I have used wakeFull BroadCast receiver

 Plz its urgent



 On Thursday, October 24, 2013 6:40:25 PM UTC+5:30, Piren wrote:

 you need to use the PendingIntent.FLAG_UPDATE_CURRENT flag when
 you're creating the pending intent.
 Also notice that if your activity is in a singleInstance or singleTop
 then you need to use the event onNewIntent to get the new one.

 On Thursday, October 24, 2013 3:36:33 PM UTC+3, janvi wrote:

 Hi piren

 than you :)

 Using the following code Iam able to go to next activity and
 alertdialogue.



Intent notificationIntent = new Intent(this,
 NotificationReceiverActivity.class);

  //data received from the push notification is placed in bundle
 and extracted later
notificationIntent.putExtra(check, hello test);

  notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
 | Intent.FLAG_ACTIVITY_SINGLE_TOP);
 PendingIntent pintent 
 =PendingIntent.getActivity(getApplicationContext(),
 0, notificationIntent, 0);
 notification.setLatestEventInfo(getApplicationContext(),
 title, hello test, pintent);
 notification.flags |= Notification.FLAG_AUTO_CANCEL;
 notificationManager.notify(0, notification);

I have put the data retrived from push notification in the
 intent(putextra) and trying to extract it in the next activity and here 
 iam
 getting the bundle data as null

Do Iam I missing something

 Plz help Iam stuck here


 On Thursday, October 24, 2013 5:16:42 PM UTC+5:30, Piren wrote:

 push notification can do whatever you want, i assume you've added a
 notification when the push got in. So add an intent to the notification
 that launches an activity which will have a dialog (or look like a 
 dialog).

 Regarding count, you can have a count on the notification icon, but
 not on the launch screen icon.

 On Thursday, October 24, 2013 2:08:16 PM UTC+3, janvi wrote:

 Hello All,

 Iam new to pushNotification I have few doubts here.

 I have implemented push Notification feature.Now if I want to open
 an alert dialogue when the user clicks on push notification

 I don't know how to open the alert dialogue here???any ideas

 One more question is as follows

 How to show the pushNotification count on the AppIcon as IOS
 does(i,e badge count)

 Can we do this 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-d...@googlegroups.com
 To unsubscribe from this group, 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.




 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email

Re: [android-developers] Re: AndroidPushNotification

2013-11-10 Thread Mukesh Srivastav
Here are the things to check.

APK:

1. Have a message id for new messages and check if the same message is
coming through from the server.
2. Always make sure you Unregister the device (GCM.unregister)
3. You need to handle the error message







On Mon, Nov 11, 2013 at 10:56 AM, janvi jagruthi.bha...@gmail.com wrote:

 hello all

 I need urgent help here

 I got push notification successfully from the server.It is an error code
 which is sent by external server to the GCM.

 What if the error is fixed and the same message is communicated to the GCM
 then in such case notification displayed in the APP must disappear


 Is there any API to cross check with the GCM whether the notification is
 still active or not??

 Any other approach to handle this

 Thanks in advance


 On Thursday, November 7, 2013 12:00:24 PM UTC+5:30, janvi wrote:

 I have implemented and working fine...

 One more query here is Notifications from the server keep on coming three
 times for every 10 seconds

 Can any body tell me what is going wrong here???
 I have used wakeFull BroadCast receiver

 Plz its urgent



 On Thursday, October 24, 2013 6:40:25 PM UTC+5:30, Piren wrote:

 you need to use the PendingIntent.FLAG_UPDATE_CURRENT flag when you're
 creating the pending intent.
 Also notice that if your activity is in a singleInstance or singleTop
 then you need to use the event onNewIntent to get the new one.

 On Thursday, October 24, 2013 3:36:33 PM UTC+3, janvi wrote:

 Hi piren

 than you :)

 Using the following code Iam able to go to next activity and
 alertdialogue.



Intent notificationIntent = new Intent(this,
 NotificationReceiverActivity.class);

  //data received from the push notification is placed in bundle and
 extracted later
notificationIntent.putExtra(check, hello test);

  notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |
 Intent.FLAG_ACTIVITY_SINGLE_TOP);
 PendingIntent pintent 
 =PendingIntent.getActivity(getApplicationContext(),
 0, notificationIntent, 0);
 notification.setLatestEventInfo(getApplicationContext(),
 title, hello test, pintent);
 notification.flags |= Notification.FLAG_AUTO_CANCEL;
 notificationManager.notify(0, notification);

I have put the data retrived from push notification in the
 intent(putextra) and trying to extract it in the next activity and here iam
 getting the bundle data as null

Do Iam I missing something

 Plz help Iam stuck here


 On Thursday, October 24, 2013 5:16:42 PM UTC+5:30, Piren wrote:

 push notification can do whatever you want, i assume you've added a
 notification when the push got in. So add an intent to the notification
 that launches an activity which will have a dialog (or look like a 
 dialog).

 Regarding count, you can have a count on the notification icon, but
 not on the launch screen icon.

 On Thursday, October 24, 2013 2:08:16 PM UTC+3, janvi wrote:

 Hello All,

 Iam new to pushNotification I have few doubts here.

 I have implemented push Notification feature.Now if I want to open an
 alert dialogue when the user clicks on push notification

 I don't know how to open the alert dialogue here???any ideas

 One more question is as follows

 How to show the pushNotification count on the AppIcon as IOS does(i,e
 badge count)

 Can we do this 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
 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.




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] parsing responce of a web url

2013-11-06 Thread Mukesh Srivastav
You could use any stringtokenizer or just any string parsing and it should
be any challenge to do that.

let us know if you any specific tag or any specific string to parse


On Wed, Nov 6, 2013 at 8:43 PM, shiva pendem pendem.shiv...@gmail.comwrote:

 Hi,

 i am new using web serviced in the application,

 i have a problem while using the web services in the application

 i have a URL let us say www.abc.com/2013/11/06

 and if i run this URL i get only string as response as *you have done a
 special work,[50%],[80%] *  in the browser.

 so i want to get the same response in the application

 it is not replying as XML to use XML reader of my own XML handler,

 please help me how to get the text from the URL.

 Thanks
 Shiva Shankar.

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


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

2013-11-05 Thread Mukesh Srivastav
Not sure about your actual requirement of placing thousand's of marker, as
far i implemented, I have considered a radius based marker, like searching
for Hotel,fuel stations in a radius of 10 miles or 5 miles.


On Tue, Nov 5, 2013 at 6:07 PM, lbendlin l...@bendlin.us wrote:

 Have a look at how it is done in iOS. There you can have as many
 annotations as you want, and the system will only render the associated
 markers if they are actually on screen.
 In addition you want to limit the number of visible markers when you zoom
 out. Generally anything over 50 will be illegible on a phone screen. So
 have a round robin buffer of 50 annotations that you update based on the
 proximity to your current map center.


 On Tuesday, November 5, 2013 12:09:29 AM 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.




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Simulating tens of thousands of android devices

2013-10-31 Thread Mukesh Srivastav
you could easily go with the load and stress test and it need not be on
only from Mobile devices... :(

any ways, to test the client and server, you could go with the following
link.

http://jmeter.apache.org/usermanual/jmeter_distributed_testing_step_by_step.pdf


On Thu, Oct 31, 2013 at 12:24 PM, JavaSrvcs jvsr...@gmail.com wrote:

 I would like to know or explore ways to simulate tens of thousands of real
 world devices hitting my server.

 I am interesting in things like sending GPS data per device (within a
 region) such that device info is coming from geographic parameters I can
 program.
 I am also interested in simulating various battery level strength, wifi
 signal strength and other parameters that can be gathered from an android
 device.

 If there is a way to create a very low foot print virtualized android
 device that would send this info, please let me know, I would need the
 ability to run a simulation of a thousand devices per 8 core/64GB box if
 possible, simulating various virtualized devices of a good mix of android
 releases.

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] java.lang.ClassCastException: android.os.BinderProxy cannot be cast to com.android.server.am.ActivityRecord$Token

2013-10-30 Thread Mukesh Srivastav
you could one thing, Delete the bin and Gen directory and do a clean build
again and try running.


On Wed, Oct 30, 2013 at 12:32 PM, Dilip Kumar Chaudhary 
androiddili...@gmail.com wrote:

 Hi Developers,
 I'm getting this abnormal errors in XOLO/T1000 phone only.This is app is
 working fine on other devices.Actually when we click on the Tab for start
 another activity it throws this error.Please suggest me how to solve this
 error.
 *Logcat:
 *W/ActivityManager(  344): Bad activity token:
 android.os.BinderProxy@42aed960
 W/ActivityManager(  344): java.lang.ClassCastException:
 android.os.BinderProxy cannot be cast to
 com.android.server.am.ActivityRecord$Token
 W/ActivityManager(  344): at
 com.android.server.am.ActivityRecord.forToken(ActivityRecord.java:307)
 W/ActivityManager(  344): at
 com.android.server.am.ActivityStack.isInStackLocked(ActivityStack.java:484)
 W/ActivityManager(  344): at
 com.android.server.am.ActivityManagerService.overridePendingTransition(ActivityManagerService.java:2797)
 W/ActivityManager(  344): at
 android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:1338)
 W/ActivityManager(  344): at
 com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:1611)
 W/ActivityManager(  344): at
 android.os.Binder.execTransact(Binder.java:367)
 W/ActivityManager(  344): at dalvik.system.NativeStart.run(Native
 Method)
 D/PullToRefresh(29800): onSizeChanged. W: 720, H: 828
 D/PullToRefresh(29800): Setting Padding. L: 0, T: -496, R: 0, B: -496
 D/PullToRefresh(29800): First Visible: 0. Visible Count: 0. Total Items:0
 D/PullToRefresh(29800): onSizeChanged. W: 720, H: 730
 D/PullToRefresh(29800): Setting Padding. L: 0, T: -438, R: 0, B: -438
 D/PullToRefresh(29800): First Visible: 0. Visible Count: 0. Total Items:0
 F/libc(29800): Fatal signal 11 (SIGSEGV) at 0x0008 (code=1),
 thread 29800 (.zenga.zengatvd)
 I/DEBUG   (  122): *** *** *** *** *** *** *** *** *** *** *** *** *** ***
 *** ***
 I/DEBUG   (  122): Build fingerprint:
 'XOLO/T1000/us9230e1:4.1.1/JRO03C/XOLO_Play_S018_11102013:user/release-keys'
 I/DEBUG   (  122): pid: 29800, tid: 29800, name: .zenga.zengatvd  
 com.zenga.zengatvd 
 I/DEBUG   (  122): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr
 0008
 I/DEBUG   (  122): r0 5bfde908  r1 0008  r2   r3 0001
 I/DEBUG   (  122): r4 0010  r5 0008  r6 5bfde908  r7 0004
 I/DEBUG   (  122): r8 0008  r9 0008  sl 59f706f4  fp 5bce95a0
 I/DEBUG   (  122): ip 0010  sp bee98e60  lr 5bc612bc  pc 5bc23054
 cpsr 2010
 I/DEBUG   (  122): d0  0137442a6000  d1  439bc000439b8000
 I/DEBUG   (  122): d2  43cb8000442a4000  d3  02a944124000
 I/DEBUG   (  122): d4  02490197  d5  43cb8249
 I/DEBUG   (  122): d6  442a4197  d7  44a03f80
 I/DEBUG   (  122): d8  40004000  d9  4434437f
 I/DEBUG   (  122): d10 44764000  d11 
 I/DEBUG   (  122): d12   d13 
 I/DEBUG   (  122): d14   d15 
 I/DEBUG   (  122): d16 40854800  d17 7e37e43c8800759c
 I/DEBUG   (  122): d18   d19 
 I/DEBUG   (  122): d20   d21 
 I/DEBUG   (  122): d22   d23 
 I/DEBUG   (  122): d24 3fc0e5604f00  d25 4680
 I/DEBUG   (  122): d26   d27 
 I/DEBUG   (  122): d28 40608000  d29 
 I/DEBUG   (  122): d30 c800  d31 
 I/DEBUG   (  122): scr 2813
 I/DEBUG   (  122):
 I/DEBUG   (  122): backtrace:
 I/DEBUG   (  122): #00  pc 9054
 /system/lib/egl/libGLESv2_tegra_impl.so
 I/DEBUG   (  122): #01  pc 000472b8
 /system/lib/egl/libGLESv2_tegra_impl.so
 I/DEBUG   (  122):
 I/DEBUG   (  122): stack:
 I/DEBUG   (  122):  bee98e20  59f6a3dc
 I/DEBUG   (  122):  bee98e24  0610
 I/DEBUG   (  122):  bee98e28  0048
 I/DEBUG   (  122):  bee98e2c  59f37a11
 /system/lib/libardrv_dynamic.so
 I/DEBUG   (  122):  bee98e30  
 I/DEBUG   (  122):  bee98e34  59f6a3dc
 I/DEBUG   (  122):  bee98e38  59f6d7d0
 I/DEBUG   (  122):  bee98e3c  59f6b5fc
 I/DEBUG   (  122):  bee98e40  59f6b548
 I/DEBUG   (  122):  bee98e44  59f05891
 /system/lib/libnvrm_graphics.so (NvRmStreamBegin+80)
 I/DEBUG   (  122):  bee98e48  
 I/DEBUG   (  122):  bee98e4c  59f6a3dc
 I/DEBUG   (  122):  bee98e50  59f6d888
 I/DEBUG   (  122):  bee98e54  59f6b5fc
 I/DEBUG   (  122):  bee98e58  df0027ad
 I/DEBUG   (  122):  bee98e5c  
 I/DEBUG   (  122): #00  bee98e60  0008
 I/DEBUG   (  122):    
 I/DEBUG   (  122): #01  bee98e60  0008
 

Re: [android-developers] Re: how to add G729 codec in Android application?

2013-10-30 Thread Mukesh Srivastav
As far as SIP application, I have a good experience in using CSIPSimple
which is universal accepted and it has all the respective libraries(.so)
file where you can enable as the default option.


On Tue, Oct 29, 2013 at 7:57 PM, Juned Khan jkhan6...@gmail.com wrote:

 http://junedk.blogspot.in/2013/10/add-g729-codec-in-sipdroid.html

 On Monday, April 9, 2012 4:00:56 PM UTC+5:30, Juned Khan wrote:


i am developing a SIP application for making and receiving a call and
 i want to add the G729 codec in my application.

 currently i am doing analysis on open source project 
 SipDroidhttp://code.google.com/p/sipdroid/.
 if i want to make that application to support G729 codec how to do that?

 there is a different codecs configuration file in 
 org.sipdroid.codecshttp://code.google.com/p/sipdroid/source/browse/#svn%2Ftrunk%2Fsrc%2Forg%2Fsipdroid%2Fcodecspackage.how
  do create the this kind of .java file for G729 codec?

 Any suggestion and response will be appreciated.

 please see my stackoveflow question click 
 herehttp://stackoverflow.com/questions/10069274/how-to-add-g729-codec-in-android-application/10070748#10070748

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Not Licensed for this country when paid app used in another country?

2013-10-24 Thread Mukesh Srivastav
can we have detail about the app, like type of app at-least to know ?


On Thu, Oct 24, 2013 at 5:22 AM, Julian Bunn jjb...@gmail.com wrote:

 One of my paid app users, who bought the app in Australia, travelled to
 the USA and tried to use the app there. When the app was started he
 received the message Not Licensed for this country, and was unable to
 use it!

 Is this a known limitation? Any guesses as to what is going on here?
 Needless to say, this is not something I have programmed in to the app (nor
 would I have any idea how to do so even if I wanted to!).

 Thanks!

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] New Android Development Tool..

2013-10-18 Thread Mukesh Srivastav
I do mine using ANT.


On Fri, Oct 18, 2013 at 5:17 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 I do all my development via command line, using the ant build scripts and
 emacs JDEE works well enough.  What joe131 wrote is just a thin wrapper
 around all of that anyway,

 Kris



 On Thu, Oct 17, 2013 at 7:37 PM, Mark Phillips m...@phillipsmarketing.biz
  wrote:

 I cannot answer for joe131, and I can't use his tool since it only runs
 on Windows (I am a Linux/Android guy). However, I have been looking for a
 non-Eclipse command line approach for android development. I use Eclipse on
 my main system at my desk, but when I am on the road (I am a consultant) I
 prefer to only carry my Android tablet. I have moved quite a few of my Java
 and Python projects to the cloud and have been using the command line and
 ssh to continue working while on the road. I would like to put my Android
 projects in the cloud and work on them using my tablet and the command line
 as well. There are a few google hits on command line android development,
 so there are others, although most likely a small population. Just consider
 us the lunatic fringe of Android development...we pose no threat, and
 sometimes resistance is not futile;)

 Mark

 P.S. And, yes I have looked at AIDE as another possible solution.


 On Thu, Oct 17, 2013 at 3:16 PM, TreKing treking...@gmail.com wrote:


 On Thu, Oct 17, 2013 at 4:47 PM, joe131 joes0...@gmail.com wrote:

 I know that everybody in the universe uses Eclipse
 for their Android development, but I'm almost finished
 developing an easy to use tool for your Android development,
 mostly for those who use the Command line.


 Why are you developing this? What problem are you solving? Why would
 anyone switch from the official, mature tools in Eclipse and the new
 Android Studio?


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

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


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


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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Re: How to make a Service That will periodically send the Users Location on a server

2013-10-04 Thread Mukesh Srivastav
The problem could be , Himanshu is missing the Location setting to be
enabled  :)

Please check the device setting and test your code.


On Fri, Oct 4, 2013 at 7:06 PM, Kristopher Micinski
krismicin...@gmail.comwrote:

 I guess the problem is, if your location is unavailable, how are you
 expecting that that will be fixed?  This doesn't make any sense, if it's
 not available, it's not available,

 Kris



 On Fri, Oct 4, 2013 at 6:16 AM, HImanshu Mittal himanshu5...@gmail.comwrote:

 Hello friends,
 I have just checked it out that my service is working fine but the
 problem is I am in an area where location is unavalaible and my friend is
 in an area where location is availaible.
 How should* *I fix this that my location also can be transmitted to my
 server!!!

 Now I think ii could be solved
 Please Help!!


 On Fri, Oct 4, 2013 at 9:47 AM, HImanshu Mittal 
 himanshu5...@gmail.comwrote:

 package com.example.metro;

 import com.dude5692.StaticURL.ProjectURL;

 import json.jSOn;

 import android.app.Service;
 import android.content.Context;
 import android.content.Intent;
 import android.content.SharedPreferences;
 import android.location.Criteria;
 import android.location.Location;
 import android.location.LocationListener;
 import android.location.LocationManager;
 import android.os.AsyncTask;
 import android.os.Bundle;
 import android.os.IBinder;
 import android.widget.Toast;

 public class MyService extends Service
 {
 ProjectURL proURL = new ProjectURL();
 String initialURL;
  SharedPreferences pref;

 @Override
 public void onCreate()
  {
 // TODO Auto-generated method stub
 super.onCreate();
  final LocationManager mlocmag =
 (LocationManager)getSystemService(Context.LOCATION_SERVICE);
 final LocationListener mlocList = new MyLocationList();

 Criteria criteria = new Criteria();

 // Getting the name of the best provider
  final String provider = mlocmag.getBestProvider(criteria, true);

 final Location loc = mlocmag.getLastKnownLocation(provider);
  UpdateWithNewLocation(loc); // This method is used to get updated
 location.
 mlocmag.requestLocationUpdates(provider, 1000, 0, mlocList);
  }

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

 @Override
 public void onDestroy()
  {
 // TODO Auto-generated method stub
 super.onDestroy();
  }

 @Override
 public int onStartCommand(Intent intent, int flags, int startId)
  {
 // TODO Auto-generated method stub
 return super.onStartCommand(intent, flags, startId);
  }
 private void UpdateWithNewLocation(final Location loc)
 {
  // TODO Auto-generated method stub
 if(loc!= null)
 {
  final double lat =loc.getLatitude(); // Updated lat
 final double Long = loc.getLongitude(); // Updated long

 pref = getSharedPreferences(myMetroFile,Context.MODE_PRIVATE);
  System.out.println(MO   Service Running);
  String UniqueDeviceId = pref.getString(DeviceUniqueID, 0);
 initialURL = proURL.projectURL +
 storeLatLong.php?RegID=+lat+Email=+Long+Device=+UniqueDeviceId+Start=NO;
  new Async().execute();
 }
 else
 {
  }
 }

 class Async extends AsyncTaskString, Void, String
  {

 //ProgressDialog progress;

 protected String doInBackground(String... params)
  {
 try
 {
  new jSOn().execute(initialURL);
 }
 catch (Exception e)
  {
 e.printStackTrace();
 }
  return null;
 }

 protected void onPreExecute()
  {
 super.onPreExecute();
 }

  protected void onPostExecute(String result)
 {
 super.onPostExecute(result);
  }
 }

 public class MyLocationList implements LocationListener
  {

 public void onLocationChanged(Location arg0)
 {
  // TODO Auto-generated method stub
 UpdateWithNewLocation(arg0);
 }

 public void onProviderDisabled(String provider)
 {
 // TODO Auto-generated method stub
  Toast.makeText(getApplicationContext(),GPS Disable ,
 Toast.LENGTH_LONG).show();
 }

  public void onProviderEnabled(String provider)
 {
 // TODO Auto-generated method stub
  Toast.makeText(getApplicationContext(),GPS enabled,
 Toast.LENGTH_LONG).show();
 }

  public void onStatusChanged(String provider, int status, Bundle
 extras)
 {
 // TODO Auto-generated method stub
  }
 }
 }


 On Fri, Oct 4, 2013 at 4:44 AM, Lew lewbl...@gmail.com wrote:

  HImanshu Mittal wrote:

 Bro , Don't dramatize things out here. I have asked a question thats
 it.


 How is asking for relevant details dramatizing it?

 It's spelled that's.


 For the first the first time I have asked a question on any forum
 regarding a help in my 8 months of development time.


 Not important.


 I was not able to make a code because the code which I have made is
 not working.


 That's like telling a doctor, I don't feel well and expecting a
 diagnosis. You need to provide details.


 If you can provide the code than it will be really be helpful or I can
 also post my code out here than you can tell me where I am doing it wrong



 :)


 Since that's what the guy was asking for, why do you give him a hard
 time?


 On Thu, Oct 3, 2013 at 9:23 PM, Steve Gabrilowitz 
 

Re: [android-developers] Re: How to make a Service That will periodically send the Users Location on a server

2013-10-04 Thread Mukesh Srivastav
Look, you are only checking for the best location but, I would suggest to
check all the possibilities.

Please try the below code
public Location getLocation() {
try {
locationManager = (LocationManager) this
.getSystemService(LOCATION_SERVICE);

// getting GPS status
isGPSEnabled = locationManager
.isProviderEnabled(LocationManager.GPS_PROVIDER);

// getting network status
isNetworkEnabled = locationManager
.isProviderEnabled(LocationManager.NETWORK_PROVIDER);

if (!isGPSEnabled  !isNetworkEnabled) {
// no network provider is enabled
} else {
LocationListener mlocListener = new GPSListener(parentcontext);
this.canGetLocation = true;
if (isNetworkEnabled) {
locationManager.requestLocationUpdates(
LocationManager.NETWORK_PROVIDER,
MIN_TIME_BW_UPDATES,
MIN_DISTANCE_CHANGE_FOR_UPDATES, mlocListener);
Log.d(Network, Network Enabled);
if (locationManager != null) {
location = locationManager
.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
if (location != null) {
latitude = location.getLatitude();
longitude = location.getLongitude();
PalsApplication.glatitude = latitude;
PalsApplication.glongitude = longitude;
}
}
}
// if GPS Enabled get lat/long using GPS Services
if (isGPSEnabled) {
if (location == null) {
locationManager.requestLocationUpdates(
LocationManager.GPS_PROVIDER,
MIN_TIME_BW_UPDATES,
MIN_DISTANCE_CHANGE_FOR_UPDATES, mlocListener);
Log.d(GPS, GPS Enabled);
if (locationManager != null) {
location = locationManager
.getLastKnownLocation(LocationManager.GPS_PROVIDER);
if (location != null) {
latitude = location.getLatitude();
longitude = location.getLongitude();
PalsApplication.glatitude = latitude;
PalsApplication.glongitude = longitude;
}
}
}
}
}

} catch (Exception e) {
e.printStackTrace();
}

return location;
}



On Fri, Oct 4, 2013 at 7:28 PM, HImanshu Mittal himanshu5...@gmail.comwrote:

 But when I open my map
 And as i have done
 maps.setmylocationenabled
 than the blue dot comes at the position where I am
 But the same doesn't come when I use it in my service
 Thats y I was asking how to fix it !!!


 On Fri, Oct 4, 2013 at 7:06 PM, Kristopher Micinski 
 krismicin...@gmail.com wrote:

 I guess the problem is, if your location is unavailable, how are you
 expecting that that will be fixed?  This doesn't make any sense, if it's
 not available, it's not available,

 Kris



 On Fri, Oct 4, 2013 at 6:16 AM, HImanshu Mittal 
 himanshu5...@gmail.comwrote:

 Hello friends,
 I have just checked it out that my service is working fine but the
 problem is I am in an area where location is unavalaible and my friend is
 in an area where location is availaible.
 How should* *I fix this that my location also can be transmitted to my
 server!!!

 Now I think ii could be solved
 Please Help!!


 On Fri, Oct 4, 2013 at 9:47 AM, HImanshu Mittal 
 himanshu5...@gmail.comwrote:

 package com.example.metro;

 import com.dude5692.StaticURL.ProjectURL;

 import json.jSOn;

 import android.app.Service;
 import android.content.Context;
 import android.content.Intent;
 import android.content.SharedPreferences;
 import android.location.Criteria;
 import android.location.Location;
 import android.location.LocationListener;
 import android.location.LocationManager;
 import android.os.AsyncTask;
 import android.os.Bundle;
 import android.os.IBinder;
 import android.widget.Toast;

 public class MyService extends Service
 {
 ProjectURL proURL = new ProjectURL();
 String initialURL;
  SharedPreferences pref;

 @Override
 public void onCreate()
  {
 // TODO Auto-generated method stub
 super.onCreate();
  final LocationManager mlocmag =
 (LocationManager)getSystemService(Context.LOCATION_SERVICE);
 final LocationListener mlocList = new MyLocationList();

 Criteria criteria = new Criteria();

 // Getting the name of the best provider
  final String provider = mlocmag.getBestProvider(criteria, true);

 final Location loc = mlocmag.getLastKnownLocation(provider);
  UpdateWithNewLocation(loc); // This method is used to get updated
 location.
 mlocmag.requestLocationUpdates(provider, 1000, 0, mlocList);
  }

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

 @Override
 public void onDestroy()
  {
 // TODO Auto-generated method stub
 super.onDestroy();
  }

 @Override
 public int onStartCommand(Intent intent, int flags, int startId)
  {
 // TODO Auto-generated method stub
 return super.onStartCommand(intent, flags, startId);
  }
 private void UpdateWithNewLocation(final Location loc)
 {
  // TODO Auto-generated method stub
 if(loc!= null)
 {
  final double lat =loc.getLatitude(); // Updated lat
 final double Long = loc.getLongitude(); // Updated long

 pref = getSharedPreferences(myMetroFile,Context.MODE_PRIVATE);
  System.out.println(MO   Service Running);
  String UniqueDeviceId = pref.getString(DeviceUniqueID, 0);
 initialURL = proURL.projectURL +
 storeLatLong.php?RegID=+lat+Email=+Long+Device=+UniqueDeviceId+Start=NO;
  new Async().execute();
 }
 else
 {
  }
 }

 

Re: [android-developers] Re: How to make a Service That will periodically send the Users Location on a server

2013-10-04 Thread Mukesh Srivastav
I think, you have missed the code which i had sent you... check that


On Fri, Oct 4, 2013 at 7:40 PM, HImanshu Mittal himanshu5...@gmail.comwrote:

 I have enabled it ...
 If it was not enabled the blue dot would not have appeared
 But as the permissions are there it appears on the map !!!


 On Fri, Oct 4, 2013 at 7:28 PM, Mukesh Srivastav mukicha...@gmail.comwrote:

 The problem could be , Himanshu is missing the Location setting to be
 enabled  :)

 Please check the device setting and test your code.


  On Fri, Oct 4, 2013 at 7:06 PM, Kristopher Micinski 
 krismicin...@gmail.com wrote:

 I guess the problem is, if your location is unavailable, how are you
 expecting that that will be fixed?  This doesn't make any sense, if it's
 not available, it's not available,

 Kris



 On Fri, Oct 4, 2013 at 6:16 AM, HImanshu Mittal 
 himanshu5...@gmail.comwrote:

 Hello friends,
 I have just checked it out that my service is working fine but the
 problem is I am in an area where location is unavalaible and my friend is
 in an area where location is availaible.
 How should* *I fix this that my location also can be transmitted to my
 server!!!

 Now I think ii could be solved
 Please Help!!


 On Fri, Oct 4, 2013 at 9:47 AM, HImanshu Mittal himanshu5...@gmail.com
  wrote:

 package com.example.metro;

 import com.dude5692.StaticURL.ProjectURL;

 import json.jSOn;

 import android.app.Service;
 import android.content.Context;
 import android.content.Intent;
 import android.content.SharedPreferences;
 import android.location.Criteria;
 import android.location.Location;
 import android.location.LocationListener;
 import android.location.LocationManager;
 import android.os.AsyncTask;
 import android.os.Bundle;
 import android.os.IBinder;
 import android.widget.Toast;

 public class MyService extends Service
 {
 ProjectURL proURL = new ProjectURL();
 String initialURL;
  SharedPreferences pref;

 @Override
 public void onCreate()
  {
 // TODO Auto-generated method stub
 super.onCreate();
  final LocationManager mlocmag =
 (LocationManager)getSystemService(Context.LOCATION_SERVICE);
 final LocationListener mlocList = new MyLocationList();

 Criteria criteria = new Criteria();

 // Getting the name of the best provider
  final String provider = mlocmag.getBestProvider(criteria, true);

 final Location loc = mlocmag.getLastKnownLocation(provider);
  UpdateWithNewLocation(loc); // This method is used to get updated
 location.
 mlocmag.requestLocationUpdates(provider, 1000, 0, mlocList);
  }

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

 @Override
 public void onDestroy()
  {
 // TODO Auto-generated method stub
 super.onDestroy();
  }

 @Override
 public int onStartCommand(Intent intent, int flags, int startId)
  {
 // TODO Auto-generated method stub
 return super.onStartCommand(intent, flags, startId);
  }
 private void UpdateWithNewLocation(final Location loc)
 {
  // TODO Auto-generated method stub
 if(loc!= null)
 {
  final double lat =loc.getLatitude(); // Updated lat
 final double Long = loc.getLongitude(); // Updated long

 pref = getSharedPreferences(myMetroFile,Context.MODE_PRIVATE);
  System.out.println(MO   Service Running);
  String UniqueDeviceId = pref.getString(DeviceUniqueID, 0);
 initialURL = proURL.projectURL +
 storeLatLong.php?RegID=+lat+Email=+Long+Device=+UniqueDeviceId+Start=NO;
  new Async().execute();
 }
 else
 {
  }
 }

 class Async extends AsyncTaskString, Void, String
  {

 //ProgressDialog progress;

 protected String doInBackground(String... params)
  {
 try
 {
  new jSOn().execute(initialURL);
 }
 catch (Exception e)
  {
 e.printStackTrace();
 }
  return null;
 }

 protected void onPreExecute()
  {
 super.onPreExecute();
 }

  protected void onPostExecute(String result)
 {
 super.onPostExecute(result);
  }
 }

 public class MyLocationList implements LocationListener
  {

 public void onLocationChanged(Location arg0)
 {
  // TODO Auto-generated method stub
 UpdateWithNewLocation(arg0);
 }

 public void onProviderDisabled(String provider)
 {
 // TODO Auto-generated method stub
  Toast.makeText(getApplicationContext(),GPS Disable ,
 Toast.LENGTH_LONG).show();
 }

  public void onProviderEnabled(String provider)
 {
 // TODO Auto-generated method stub
  Toast.makeText(getApplicationContext(),GPS enabled,
 Toast.LENGTH_LONG).show();
 }

  public void onStatusChanged(String provider, int status, Bundle
 extras)
 {
 // TODO Auto-generated method stub
  }
 }
 }


 On Fri, Oct 4, 2013 at 4:44 AM, Lew lewbl...@gmail.com wrote:

  HImanshu Mittal wrote:

 Bro , Don't dramatize things out here. I have asked a question thats
 it.


 How is asking for relevant details dramatizing it?

 It's spelled that's.


 For the first the first time I have asked a question on any forum
 regarding a help in my 8 months of development time.


 Not important.


 I was not able to make a code because the code which I have made is
 not working.


 That's like

Re: [android-developers] Re: How to make a Service That will periodically send the Users Location on a server

2013-10-04 Thread Mukesh Srivastav
I am out of this Forum :(


On Fri, Oct 4, 2013 at 7:57 PM, HImanshu Mittal himanshu5...@gmail.comwrote:

 but the requestLocationUpdates can be passed with any one provider I guess
 and the Service will take one think particularly and will poll location
 based on that instant only !!!


 On Fri, Oct 4, 2013 at 7:43 PM, Mukesh Srivastav mukicha...@gmail.comwrote:

 Look, you are only checking for the best location but, I would suggest to
 check all the possibilities.

 Please try the below code
 public Location getLocation() {
  try {
 locationManager = (LocationManager) this
 .getSystemService(LOCATION_SERVICE);

 // getting GPS status
 isGPSEnabled = locationManager
 .isProviderEnabled(LocationManager.GPS_PROVIDER);

 // getting network status
 isNetworkEnabled = locationManager
 .isProviderEnabled(LocationManager.NETWORK_PROVIDER);

 if (!isGPSEnabled  !isNetworkEnabled) {
 // no network provider is enabled
  } else {
 LocationListener mlocListener = new GPSListener(parentcontext);
 this.canGetLocation = true;
  if (isNetworkEnabled) {
 locationManager.requestLocationUpdates(
 LocationManager.NETWORK_PROVIDER,
  MIN_TIME_BW_UPDATES,
 MIN_DISTANCE_CHANGE_FOR_UPDATES, mlocListener);
 Log.d(Network, Network Enabled);
  if (locationManager != null) {
 location = locationManager
 .getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
  if (location != null) {
 latitude = location.getLatitude();
 longitude = location.getLongitude();
  PalsApplication.glatitude = latitude;
 PalsApplication.glongitude = longitude;
 }
  }
 }
 // if GPS Enabled get lat/long using GPS Services
  if (isGPSEnabled) {
 if (location == null) {
 locationManager.requestLocationUpdates(
  LocationManager.GPS_PROVIDER,
 MIN_TIME_BW_UPDATES,
 MIN_DISTANCE_CHANGE_FOR_UPDATES, mlocListener);
  Log.d(GPS, GPS Enabled);
 if (locationManager != null) {
 location = locationManager
  .getLastKnownLocation(LocationManager.GPS_PROVIDER);
 if (location != null) {
 latitude = location.getLatitude();
  longitude = location.getLongitude();
 PalsApplication.glatitude = latitude;
 PalsApplication.glongitude = longitude;
  }
 }
 }
 }
  }

 } catch (Exception e) {
 e.printStackTrace();
  }

 return location;
 }



 On Fri, Oct 4, 2013 at 7:28 PM, HImanshu Mittal 
 himanshu5...@gmail.comwrote:

 But when I open my map
 And as i have done
 maps.setmylocationenabled
 than the blue dot comes at the position where I am
 But the same doesn't come when I use it in my service
 Thats y I was asking how to fix it !!!


 On Fri, Oct 4, 2013 at 7:06 PM, Kristopher Micinski 
 krismicin...@gmail.com wrote:

 I guess the problem is, if your location is unavailable, how are you
 expecting that that will be fixed?  This doesn't make any sense, if it's
 not available, it's not available,

 Kris



 On Fri, Oct 4, 2013 at 6:16 AM, HImanshu Mittal himanshu5...@gmail.com
  wrote:

 Hello friends,
 I have just checked it out that my service is working fine but the
 problem is I am in an area where location is unavalaible and my friend is
 in an area where location is availaible.
 How should* *I fix this that my location also can be transmitted to
 my server!!!

 Now I think ii could be solved
 Please Help!!


 On Fri, Oct 4, 2013 at 9:47 AM, HImanshu Mittal 
 himanshu5...@gmail.com wrote:

 package com.example.metro;

 import com.dude5692.StaticURL.ProjectURL;

 import json.jSOn;

 import android.app.Service;
 import android.content.Context;
 import android.content.Intent;
 import android.content.SharedPreferences;
 import android.location.Criteria;
 import android.location.Location;
 import android.location.LocationListener;
 import android.location.LocationManager;
 import android.os.AsyncTask;
 import android.os.Bundle;
 import android.os.IBinder;
 import android.widget.Toast;

 public class MyService extends Service
 {
 ProjectURL proURL = new ProjectURL();
 String initialURL;
  SharedPreferences pref;

 @Override
 public void onCreate()
  {
 // TODO Auto-generated method stub
 super.onCreate();
  final LocationManager mlocmag =
 (LocationManager)getSystemService(Context.LOCATION_SERVICE);
 final LocationListener mlocList = new MyLocationList();

 Criteria criteria = new Criteria();

 // Getting the name of the best provider
  final String provider = mlocmag.getBestProvider(criteria, true);

 final Location loc = mlocmag.getLastKnownLocation(provider);
  UpdateWithNewLocation(loc); // This method is used to get updated
 location.
 mlocmag.requestLocationUpdates(provider, 1000, 0, mlocList);
  }

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

 @Override
 public void onDestroy()
  {
 // TODO Auto-generated method stub
 super.onDestroy();
  }

 @Override
 public int onStartCommand(Intent intent, int flags, int startId)
  {
 // TODO Auto-generated method stub
 return super.onStartCommand(intent, flags, startId);
  }
 private void UpdateWithNewLocation(final Location loc)
 {
  // TODO Auto-generated method stub

Re: [android-developers] Re: How to make a Service That will periodically send the Users Location on a server

2013-10-04 Thread Mukesh Srivastav
sorry to say, you looks like collecting the code from here and there and
making your application.  :(

cant do the spoon feeding

sorry.


On Fri, Oct 4, 2013 at 8:08 PM, HImanshu Mittal himanshu5...@gmail.comwrote:

 Sir,
 Actually, I don't know where this code has to be integrated in my code.
 And that's why confused, IF you tell me that ,
 I would test it right away and tell the update!!


 On Fri, Oct 4, 2013 at 7:52 PM, Mukesh Srivastav mukicha...@gmail.comwrote:

 I think, you have missed the code which i had sent you... check that


 On Fri, Oct 4, 2013 at 7:40 PM, HImanshu Mittal 
 himanshu5...@gmail.comwrote:

 I have enabled it ...
 If it was not enabled the blue dot would not have appeared
 But as the permissions are there it appears on the map !!!


 On Fri, Oct 4, 2013 at 7:28 PM, Mukesh Srivastav 
 mukicha...@gmail.comwrote:

 The problem could be , Himanshu is missing the Location setting to be
 enabled  :)

 Please check the device setting and test your code.


  On Fri, Oct 4, 2013 at 7:06 PM, Kristopher Micinski 
 krismicin...@gmail.com wrote:

 I guess the problem is, if your location is unavailable, how are you
 expecting that that will be fixed?  This doesn't make any sense, if it's
 not available, it's not available,

 Kris



 On Fri, Oct 4, 2013 at 6:16 AM, HImanshu Mittal 
 himanshu5...@gmail.com wrote:

 Hello friends,
 I have just checked it out that my service is working fine but the
 problem is I am in an area where location is unavalaible and my friend is
 in an area where location is availaible.
 How should* *I fix this that my location also can be transmitted to
 my server!!!

 Now I think ii could be solved
 Please Help!!


 On Fri, Oct 4, 2013 at 9:47 AM, HImanshu Mittal 
 himanshu5...@gmail.com wrote:

 package com.example.metro;

 import com.dude5692.StaticURL.ProjectURL;

 import json.jSOn;

 import android.app.Service;
 import android.content.Context;
 import android.content.Intent;
 import android.content.SharedPreferences;
 import android.location.Criteria;
 import android.location.Location;
 import android.location.LocationListener;
 import android.location.LocationManager;
 import android.os.AsyncTask;
 import android.os.Bundle;
 import android.os.IBinder;
 import android.widget.Toast;

 public class MyService extends Service
 {
 ProjectURL proURL = new ProjectURL();
 String initialURL;
  SharedPreferences pref;

 @Override
 public void onCreate()
  {
 // TODO Auto-generated method stub
 super.onCreate();
  final LocationManager mlocmag =
 (LocationManager)getSystemService(Context.LOCATION_SERVICE);
 final LocationListener mlocList = new MyLocationList();

 Criteria criteria = new Criteria();

 // Getting the name of the best provider
  final String provider = mlocmag.getBestProvider(criteria, true);

 final Location loc = mlocmag.getLastKnownLocation(provider);
  UpdateWithNewLocation(loc); // This method is used to get updated
 location.
 mlocmag.requestLocationUpdates(provider, 1000, 0, mlocList);
  }

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

 @Override
 public void onDestroy()
  {
 // TODO Auto-generated method stub
 super.onDestroy();
  }

 @Override
 public int onStartCommand(Intent intent, int flags, int startId)
  {
 // TODO Auto-generated method stub
 return super.onStartCommand(intent, flags, startId);
  }
 private void UpdateWithNewLocation(final Location loc)
 {
  // TODO Auto-generated method stub
 if(loc!= null)
 {
  final double lat =loc.getLatitude(); // Updated lat
 final double Long = loc.getLongitude(); // Updated long

 pref = getSharedPreferences(myMetroFile,Context.MODE_PRIVATE);
  System.out.println(MO   Service Running);
  String UniqueDeviceId = pref.getString(DeviceUniqueID, 0);
 initialURL = proURL.projectURL +
 storeLatLong.php?RegID=+lat+Email=+Long+Device=+UniqueDeviceId+Start=NO;
  new Async().execute();
 }
 else
 {
  }
 }

 class Async extends AsyncTaskString, Void, String
  {

 //ProgressDialog progress;

 protected String doInBackground(String... params)
  {
 try
 {
  new jSOn().execute(initialURL);
 }
 catch (Exception e)
  {
 e.printStackTrace();
 }
  return null;
 }

 protected void onPreExecute()
  {
 super.onPreExecute();
 }

  protected void onPostExecute(String result)
 {
 super.onPostExecute(result);
  }
 }

 public class MyLocationList implements LocationListener
  {

 public void onLocationChanged(Location arg0)
 {
  // TODO Auto-generated method stub
 UpdateWithNewLocation(arg0);
 }

 public void onProviderDisabled(String provider)
 {
 // TODO Auto-generated method stub
  Toast.makeText(getApplicationContext(),GPS Disable ,
 Toast.LENGTH_LONG).show();
 }

  public void onProviderEnabled(String provider)
 {
 // TODO Auto-generated method stub
  Toast.makeText(getApplicationContext(),GPS enabled,
 Toast.LENGTH_LONG).show();
 }

  public void onStatusChanged(String provider, int status, Bundle
 extras)
 {
 // TODO Auto-generated method stub

Re: [android-developers] Re: Random IllegalStateException on some phone

2013-10-03 Thread Mukesh Srivastav
Why not check for the OS version in run time and change your code
accordingly.

String androidOS = Build.VERSION.RELEASE;

It is just a thought


On Thu, Oct 3, 2013 at 5:19 PM, Davide Moriello davidem...@gmail.comwrote:

 Hi, I have found the bug, the code that make crahs on android 2.3 is this


 Builder mGamesClienta = new GamesClient.Builder(context, this, this)
.setGravityForPopups(Gravity.TOP | Gravity.CENTER_HORIZONTAL)
.setScopes(mScopes);


 Any idea on how to make it work on android 2.3? thank you =)


 Il giorno giovedì 3 ottobre 2013 12:21:44 UTC+2, Davide Moriello ha
 scritto:

 Hi, some testers are reporting me this error on some smartphone and I
 really don't know what it is and how to fix it. Someone has an idea?

 Thank you


 java.lang.**IllegalStateException: A fatal developer error has occurred.
 Check the logs for further information.
 at com.google.android.gms.**internal.p$f.a(Unknown Source)
 at com.google.android.gms.**internal.p$f.a(Unknown Source)
 at com.google.android.gms.**internal.p$b.p(Unknown Source)
 at com.google.android.gms.**internal.p$a.handleMessage(**Unknown Source)
 at android.os.Handler.**dispatchMessage(Handler.java:**99)
 at android.os.Looper.loop(Looper.**java:130)
 at android.app.ActivityThread.**main(ActivityThread.java:3687)
 at java.lang.reflect.Method.**invokeNative(Native Method)
 at java.lang.reflect.Method.**invoke(Method.java:507)
 at com.android.internal.os.**ZygoteInit$**MethodAndArgsCaller.run(**
 ZygoteInit.java:867)
 at com.android.internal.os.**ZygoteInit.main(ZygoteInit.**java:625)
 at dalvik.system.NativeStart.**main(Native Method)

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] debugging break pint not hittting

2013-09-27 Thread Mukesh Srivastav
Did  you check the break point, was it placed in the correct line and also,
check restart your adp and eclipse that helps.


On Fri, Sep 27, 2013 at 5:30 PM, Sadhna Upadhyay
sadhna.braah...@gmail.comwrote:

 Hi guys,
m trying to debug my codebut it is not hitting any line ,but in other
 project its working then why it is not working in one project please let me
 know if any one ave any idea

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Any body knows how t ocreate popup Window class

2013-09-12 Thread Mukesh Srivastav
All you have to do is  create a poplayout and in the mainfest file you will
have to add the android:theme=@android:style/Theme.Dialog   params and in
your acitivity just call as normal intent.

It opens as pop up window.




On Thu, Sep 12, 2013 at 3:41 PM, Amit Mangal forum.amit.man...@gmail.comwrote:

 Hi there is any body knows how to create popup window class so that i
 could call any activity to show drop down popup on some layout ?

 thanks

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Data from Tablet to PC

2013-09-03 Thread Mukesh Srivastav
Here is an approach.

1. From your app, try to copy the .sql (your application db file) to a
SDCard directory.

2. Create/build a Desktop application using Java which checks for the
following.

  2.1 checks for any USB storage is connected.
  2.2  if connected, read the respective directory
(SDCArd/yourapp/mydata.sql) and copy it to the desktop
  2.3   create queries in your desktop and show the same on the Desktop
app Ui.




On Tue, Sep 3, 2013 at 6:22 AM, Siva Kumar j.sivakumar...@gmail.com wrote:

 U can try via USB tethering.running a app in pc which send data via socket
 On Sep 2, 2013 10:34 PM, Jim McGivney mcgivney@gmail.com wrote:

  I want to use an Android Tablet to gather data and input that data to a
 program running on a PC.  The data on the PC is a MDB database.**

 I have an app with an SQLite database on the tablet.

 I am looking for a method to get the data out of the tablet and into the
 PC.  

 At times the tablet will be connected to the PC (wired) at other times
 email may be the best way to get the data to the PC.

 Any suggestions on how to best accomplish this task is appreciated.

 Thanks,

 Jim

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

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Fwd: Google map is not showing

2013-08-19 Thread Mukesh Srivastav
There get two reasons why the Map is not showing.

1. check the API key.

2. while creating the key make sure you have copied the SHA1 key only and
also put down the right package name.




On Sat, Aug 17, 2013 at 10:17 AM, nemi chhimpa ern...@gmail.com wrote:



 -- Forwarded message --
 From: nemi chhimpa ern...@gmail.com
 Date: Wed, Aug 14, 2013 at 7:39 PM
 Subject: Google map is not showing
 To: android-developers@googlegroups.com


 Hi friends,
 I am using map api android v2 for google map. It is only showing the zoom
 control button and blank map. I followed all steps mention in google map
 api v2 doc. In logcat, unable to find Lmap message showing.

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] GCM based sample app link

2013-08-19 Thread Mukesh Srivastav
There are many tutorials which can helps you in understanding and setting
up the GCM, basically it is a two way, first create the Server ID And the
API Key and also create a server app which actually sends the notification
to the GCM using the Project key.

with the help of the Google documentation i have successfully implemented
the Java server part and the Andoid google part.

http://developer.android.com/google/gcm/demo.html




On Wed, Aug 14, 2013 at 6:49 PM, Shadab Khatib shadab.kha...@gmail.comwrote:

 Hello

 Can someone post the link of the GCM based Client sample app link provided
 by Google licensed under Apache License 2.0 similar to the sample apps in
 the tutorials to all other simple features of UI design.

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






-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Re: Can not debug Galaxy s4 mini

2013-08-19 Thread Mukesh Srivastav
I had the same problem, the first thing is , restart your device and enable
the USB Debugging setting uncheck and check.


On Mon, Aug 19, 2013 at 6:07 PM, MobileVisuals eyv...@astralvisuals.comwrote:

 It says target unknown and state offline. I currently don't have a SIM
 card or a internet connection in the mobile. Is that why it doesn't work? I
 am waiting to get the SIM card from the operator in my mail.


 On Monday, August 19, 2013 10:14:29 AM UTC+2, MobileVisuals wrote:

 I can not debug my Galaxy s4 mini. Android device chooser starts, but
 the OK button is greyed out. This makes it impossible to proceed. It looks
 like the screenshot here:

 http://www.mobile-visuals.com/**deb.jpghttp://www.mobile-visuals.com/deb.jpg

 How should I proceed to get this working?  Does this happen because the
 target has the unknown status on the device? I followed this guide to set
 the debugging on the device:

 http://www.youtube.com/watch?**v=W4geZOSXzO8http://www.youtube.com/watch?v=W4geZOSXzO8

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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


Re: [android-developers] Generate Barcode

2013-05-17 Thread Mukesh Srivastav
using Zxing, you can also create a barcode,however, you need to understand
that, Creating a barcode is nothing but creating an .ttf image.so you will
need to consider so many points,like Barcode type,barcode format and all.


On Fri, May 17, 2013 at 10:43 AM, sree android
android.sreeni...@gmail.comwrote:

 Hi
 Thank you for your replay.
  But that isn't my requirement,My
 requirement is when i enter value in edit text and press button called
 generate barcode,then barcode image will generate in android.Please give me
 solution.

 Thank you.


 On Thu, May 16, 2013 at 5:49 PM, Mukesh Srivastav mukicha...@gmail.comwrote:

 use the below link that will help you to create the barcode in Android.


 http://www.mysamplecode.com/2011/09/android-barcode-scanner-using-zxing.html



 On Thu, May 16, 2013 at 5:43 PM, sree android 
 android.sreeni...@gmail.com wrote:

 Hi,
 How can i create a simple bar code create example in android.
 here when enter number in edit text that number will convert into bar
 code image.
 Please give me suggestion how can i implement 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
 ---
 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.






 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

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




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






-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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




Re: [android-developers] Android Studio for IntelliJ - Plugin

2013-05-16 Thread Mukesh Srivastav
I did not the plugin, so I have downloaded the android stduio exe and
started using it...


On Thu, May 16, 2013 at 2:31 PM, Andrew Weir and...@andyweir.co.uk wrote:

 Morning,

 Does anybody know (or is it reasonable to expect) Android Studio to be
 available as a plugin for existing license holders of IntelliJ 12?

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






-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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




Re: [android-developers] Re: Create a SIP application

2013-05-16 Thread Mukesh Srivastav
Hi,

I would suggest, you use CSIPSimple from Pjsip.Below is the link for
your reference.

https://code.google.com/p/csipsimple/



On Thu, May 16, 2013 at 2:58 AM, Piren gpi...@gmail.com wrote:

 dude... hijacking every possible SIP related thread, would not get you
 help faster.


 On Wednesday, May 15, 2013 12:57:50 PM UTC+3, Swati wrote:

 Hi Alaa,

 I also have to create SIP client for Outgoing calls.

 I took reference from http://developer.android.**
 com/guide/topics/connectivity/**sip.htmlhttp://developer.android.com/guide/topics/connectivity/sip.html
  and
 SipDemo(Sample available in android sdk).

 But I am not able to make a call even registration is done successfully.
 When we initialize local profile, we setup registration listener and in
 that listener we implement method (onRegistering(), onRegistrationDone()
 and onRegistrationFailed() ). So in my case, onRegistrationDone() method is
 getting called, it means it is successfully registered.

 Even with SipDemo also, I am not able to make voice call.

 Can you please help me in creating SIP Client.

 Thanks  Regards,
 Swati Goel

 On Wednesday, 9 March 2011 06:20:09 UTC+5:30, Alaa Gh wrote:

 Hi,
 I'm preparing my final studies project and i'm planning to make a
 Voice-Over-Ip application = SIP integrated on 2.3 version.
 In fact, i followed this DEV Guide(http://developer.**android.com/guide/

 topics/network/sip.htmlhttp://developer.android.com/guide/topics/network/sip.html)
 but i don't know from where i have to begin!
 There is not enough examples on it so i'm really needing your help.
 What is exactly the steps to proceed ?
 Please try to help me.

 Thank you very much :).

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






-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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




Re: [android-developers] Generate Barcode

2013-05-16 Thread Mukesh Srivastav
use the below link that will help you to create the barcode in Android.

http://www.mysamplecode.com/2011/09/android-barcode-scanner-using-zxing.html



On Thu, May 16, 2013 at 5:43 PM, sree android
android.sreeni...@gmail.comwrote:

 Hi,
 How can i create a simple bar code create example in android.
 here when enter number in edit text that number will convert into bar code
 image.
 Please give me suggestion how can i implement 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
 ---
 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.






-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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




Re: [android-developers] ClassNotFoundException after upgrading to latest SDK tools v 22 and ADT v 22

2013-05-16 Thread Mukesh Srivastav
Hi.

Please follow the below instructions.

1.Please delete the bin and gen folder

2.Clean the build and refresh





On Thu, May 16, 2013 at 5:45 PM, DennisG denn.gub...@gmail.com wrote:

 I just updated SDK tools and ADT to the latest v22 and now I can't run any
 of my applications. The exception is the same: main activity class is not
 found

 05-16 12:12:33.137: D/AndroidRuntime(11138): Shutting down VM
 05-16 12:12:33.137: W/dalvikvm(11138): threadid=1: thread exiting with
 uncaught exception (group=0x40a13300)
 05-16 12:12:33.157: E/AndroidRuntime(11138): FATAL EXCEPTION: main
 05-16 12:12:33.157: E/AndroidRuntime(11138): java.lang.RuntimeException:
 Unable to instantiate activity
 ComponentInfo{au.com.classbreak.peshake/au.com.classbreak.peshake.MainActivity}:
 java.lang.ClassNotFoundException: au.com.classbreak.peshake.MainActivity
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1983)
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 android.app.ActivityThread.access$600(ActivityThread.java:130)
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 android.os.Looper.loop(Looper.java:137)
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 android.app.ActivityThread.main(ActivityThread.java:4745)
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 java.lang.reflect.Method.invokeNative(Native Method)
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 java.lang.reflect.Method.invoke(Method.java:511)
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 dalvik.system.NativeStart.main(Native Method)
 05-16 12:12:33.157: E/AndroidRuntime(11138): Caused by:
 java.lang.ClassNotFoundException: au.com.classbreak.peshake.MainActivity
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 java.lang.ClassLoader.loadClass(ClassLoader.java:501)
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 java.lang.ClassLoader.loadClass(ClassLoader.java:461)
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 android.app.Instrumentation.newActivity(Instrumentation.java:1053)
 05-16 12:12:33.157: E/AndroidRuntime(11138): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1974)
 05-16 12:12:33.157: E/AndroidRuntime(11138): ... 11 more

 Coluld anyone help me to resolve 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
 ---
 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.






-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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




Re: [android-developers] Re: Session management in android application

2013-04-24 Thread Mukesh Srivastav
Did i say that Android is a webserver , i talked about the session
managment can be implmented on Android and the server side(Webserver)


On Wed, Apr 24, 2013 at 12:44 PM, Piren gpi...@gmail.com wrote:

 Android isnt a web server, it doesn't have the concept of Session not its
 memory/cache management system.
 It does have other ways of having data persistency.

 But it does make me wonder, do people even read the
 instructions/tutorials, or do you guys just start Eclipse and assume it
 will feed you with knowledge on how to program for android?
 http://developer.android.com/training/basics/data-storage/index.html


 On Tuesday, April 9, 2013 11:47:34 AM UTC+3, rohan.d...@gmail.com wrote:

 Hi

 I have one application build on android 2.2. I need to know is there any 
 *Session* management kind of stuff exist in android development ? So i
 can implement it in my entire android application.

 If yes then can you please share any web urls or code for my reference ?

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






-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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




Re: [android-developers] Re: Session management in android application

2013-04-23 Thread Mukesh Srivastav
Sessions can be implemented on Server and client side. let' say,everytime
you login into the application, The client can create a session in the
sharedpreference and also the server can delete the existing session and
create a new one on every login.

Hope it helps.

-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Wed, Apr 24, 2013 at 7:24 AM, Indicator Veritatis mej1...@yahoo.comwrote:

 Have you looked at the tutorial on Android session managment using Shared
 Preferences at
 http://www.androidhive.info/2012/08/android-session-management-using-shared-preferences/
  ?


 On Tuesday, April 9, 2013 1:47:34 AM UTC-7, rohan.d...@gmail.com wrote:

 Hi

 I have one application build on android 2.2. I need to know is there any 
 *Session* management kind of stuff exist in android development ? So i
 can implement it in my entire android application.

 If yes then can you please share any web urls or code for my reference ?

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




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




Re: [android-developers] screen_resolution for multiple device

2012-11-27 Thread Mukesh Srivastav
Hi Sandhna,

It depends what type of UI are you creating, however, Android provides
different resolution folder called, MDP,HDPI,LDPI based on that, you need
to create different stylesheets or sometimes different layouts.

Hope you understand,what i mean.

Mukesh

On Tue, Nov 27, 2012 at 9:40 PM, Sadhna Upadhyay
sadhna.braah...@gmail.comwrote:

 Hi everybody,
please someone tell me that how to do U.I design of
 view that can be install every device any size even its, small medium
 normal ,every all of that is available in market how to do this please some
 one tell me.i am in trouble.







 Thanks:
 sadhana.

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

2012-11-14 Thread Mukesh Srivastav
Hi All,

Have a separate Async task class which serves the HTTP Request to all of
your Activities and let your Activities implments a listener which helps
the AsycnTask class to get the data from onpostexecutes method.

here is an example which i have written in a blog.

http://www.androidsnippets.com/asyntask-in-android


Mukesh


On Wed, Nov 14, 2012 at 3:41 PM, TreKing treking...@gmail.com wrote:

 On Tue, Nov 13, 2012 at 3:44 AM, Albertus Kruger 
 albertus.kru...@gmail.com wrote:

 I would like to know if it is better to have seperate AsyncTasks for
 every screen on your application or is it better to have one AsynTask class
 that handles all processing from different screens on my application ?


 One class that handles everything seems like a terrible idea. An AsyncTask
 should represent a single task. It does one thing, reports progress on it,
 and returns a result. That's it.


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

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

Re: [android-developers] How long has to be a string array not to cause troubles?

2012-11-14 Thread Mukesh Srivastav
Hi There,

Instead of created a big string of Array, you create a xml file and put it
in the assests directory and read the content in the Haspmap.

secondly, you could also create ArrayListString() and insert the values.

hope the above solutions works.

Regards,
Mukesh.


On Wed, Nov 14, 2012 at 3:26 PM, TreKing treking...@gmail.com wrote:

 On Mon, Nov 12, 2012 at 5:27 PM, Domenico Pacecca 
 domenico.pace...@gmail.com wrote:

 I've made a string array of 618 items and it doesn't work in an htc G1
 with 250 Mb RAM? How can I do?
 I noticed that untill 427 items it works.


 First, what is doesn't work? Crashes? Curses at you? Is unemployed?

 Second, you're dealing with mobile devices with limited resources, like
 RAM. Revise your code / strategy to account for this.


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

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

2012-11-14 Thread Mukesh Srivastav
is that your application deals with any Images , if yes, try to use the
method, Bitmap.recycle().

Mukesh

On Sat, Nov 10, 2012 at 11:28 PM, elihan elisabeth.han...@tykomz.comwrote:

 I have an app with large heap set, running on a galaxy S3 GT-I9300, with
 android version 4.1.1
 The app needs to allocate a lot of temporary objects intermittently.
 It runs very slowly because a lot of GC (and waiting for concurrent GC).
 The heap never grows beyond 25 MB, as I would have expected in order to
 limit GC activity.
 With a larger heap, I would expect there won't be no perceptible GC.
 I wonder if there would be other settings to configure garbage collection ?
 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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Need Advice in Syncing Data From Android Device to SQL-Server Database

2012-11-14 Thread Mukesh Srivastav
Hi There,

Are you taking about the Sync with Between  Android Device to the Local DB
which sits on your computer through the USB ?

if yes, did you write any windows Services which check that Android device
is connected and then read the applicaton localdb and upload the same in
the Local machine ?

Mukesh

On Wed, Nov 14, 2012 at 4:22 PM, Anees Thyrantakath sakzk...@gmail.comwrote:

 If i use Samsung Device i can see Kies Tray Agent Application Running in
 my Task Manager.Can anyone tell me if is that the application helping
 samsung android device to sync datas. I wanted to know this because in my
 computer windows firewall i didnt configure this application. Please Anyone
 Help me to Solve the Syncing Issue...


 On Wed, Nov 14, 2012 at 1:10 PM, Aadi Rockzz sakzk...@gmail.com wrote:

 Hi,

 I wrote an application in android which will sync with SQL-server
 database that is sitting on my Local Server. while testing in real device
 using emulator it's not syncing Giving me IOException.

 I'm new to Android Technology. what my doubt is if i install this App in
 my android device when i have to perform sync operation by connecting the
 device through USB. Is there any need of Application to be installed that
 will help the device to sync data to Database.

 Please Help me to Solve this issue.

 Best Regards,
 Aadi

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


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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

Re: [android-developers] Re: Re : onclick button

2012-01-24 Thread Mukesh Srivastav
Please Paste your Logs here so that it will be easy to understand your
issue.

secondly check the activity is declared in the AndroidManifest file.

Third, instead of calling the activity directly , have a console message
see whether it appears on the loglist.


-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Wed, Jan 25, 2012 at 10:55 AM, vivek elangovan elangovan.vi...@gmail.com
 wrote:

 Hi Ratheesh,
 Here is my scenario i m listing images with text
 using ListActivity,what i have to do is on clicking the text or imgae
 i have to display another list of details for the corresponding
 one.When i m using ImageAndTextAdapter activity i can build my
 application but when i run the application it crashes.

 thanks  regards,
 Vivek

 On Jan 18, 4:34 pm, Ratheesh Valamchuzhy android...@gmail.com wrote:
  while clicking one image  , start a new activity and pass the image to
 that
  activity and display the image on that activity..include the activity
 name
  in manifest also...

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

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

Re: [android-developers] Re: Another free lunch tomorrow for SF devs, from Flurry

2012-01-24 Thread Mukesh Srivastav
Out of Android Development topic.

Mate, find a different forum.

-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Wed, Jan 25, 2012 at 9:05 AM, John Coryat cor...@gmail.com wrote:

 There's no such thing as a free lunch!

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

2012-01-24 Thread Mukesh Srivastav
Why not use a direct apache FTP Client.

I am able to upload the files with the FTPClient.

Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderaba

On Wed, Jan 25, 2012 at 12:15 PM, Ratheesh Valamchuzhy android...@gmail.com
 wrote:

 In multiaprt http pst  you need to pass the  byte array , here you are
 passing the file body

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




-- 
d.

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

2012-01-23 Thread Mukesh Srivastav
Hi There,

Please follow the below steps to find out the version of your phone.

1.Go to Settings

2. Scroll down till the end of the Settings, there you will find 'About
phone'-- TAP That 'About Phone'


There you will find the Android Version.  check it and build the apk
according to that version.'

2nd. I had similar problem, I had to 'Delete' the bin directory of the
application source and then re-compiled it,deployed.


Try that as well.

Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Mon, Jan 23, 2012 at 10:01 PM, Rémy CASTALDI remy.casta...@gmail.comwrote:

 Hi everybody

 I'm new on this forum (and sorry for my frenchy english)
 I'm an Android developer and I have no problem to produce apk for all
 phones excepted for the XPERIA X10 Mini pro.
 With this device I always obtain : Problem during the kit
 analysis (my translation of the french message).
 When I try to open details of the apk (with a file manager) I obtain :
 Unable to open x.apk as an APK (still my translation of the
 french message).

 Of course the option to allow installation of an application which
 doesn't come from the market is checked.

 I tried to build the apk from 1.6 to 2.3 android version for the same
 result.

 Microsoftware version : 2.1-update 1
 Kernel version : 2.6.29
 Build version : 2.0.2.A.0.24

 First question : What is the version of my android in those 3 values ?
 Second question : Is there any specific thing to know for this
 device ?

 Thanks for your answers

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




--

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

Re: [android-developers] Re: How can use node.js in android

2012-01-23 Thread Mukesh Srivastav
Instead of using Android native SDK, you need to switch to PhoneGap for
Android that helps.


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Tue, Jan 24, 2012 at 8:15 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 Right, which is why I point out that, if you're developing a web app,
 and running node.js, this isn't really the place to be asking those
 questions.  If he asks technical questions about how, for example,
 node.js (and javascript in general) can interact with a WebView, this
 would be appropriate, but in general web app development starts to
 wander off from the Android SDK..

 kris

 On Mon, Jan 23, 2012 at 9:38 PM, Kumar Bibek coomar@gmail.com wrote:
  When he says node.js, he probably meant an web app. And for that, you
  will need to do a lot more.
 
  On Jan 24, 7:01 am, Kristopher Micinski krismicin...@gmail.com
  wrote:
  Didn't I say that:
If you are writing a web app which will run on Android, this is
  more applicable,
 
  I guess you could argue that there is a difference between a web app
  and an app that runs in browser on the device, But I don't think it's
  that great of one..
 
  kris
 
 
 
 
 
 
 
  On Mon, Jan 23, 2012 at 8:47 PM, John Coryat cor...@gmail.com wrote:
   He might be asking if he can use node.js within a webview... That
 would be
   applicable to this group.
 
   -John Coryat
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

Re: [android-developers] Re: getApplicationContext() returns null?

2012-01-23 Thread Mukesh Srivastav
Why not create a parentcontext and use this context for calling
getApplicationcontext().

like

Context parentcontext;

parentcontext = this; //must be the contrustor, pass the calling context
here.


and try using parentcontext.getApplicationcontext();

-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Tue, Jan 24, 2012 at 12:49 PM, Zsolt Vasvari zvasv...@gmail.com wrote:

 To ellaborate, it's inside the doWakefulWork() method.

 On Jan 24, 3:16 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
  In a Service...   Actually, it's WakefulIntentService, extending your
  class.
 
  I only got a single report of this failure (I use ACRA) and it's in a
  commonly executed code.
 
  On Jan 24, 8:34 am, Mark Murphy mmur...@commonsware.com wrote:
 
 
 
   Where are you executing this statement?
 
   On Mon, Jan 23, 2012 at 6:41 PM, Zsolt Vasvari zvasv...@gmail.com
 wrote:
Has anybody seen this happen?
 
I have the following line in my code:
 
XmlResourceParser xml =
   
 getAppplicationContext().getResources().getXml(R.xml.database_tables);
 
Somebody reported a NPE on that line, so it can either be
getAppplicationContext() or getResources() returning a null.   The
same line works for countless other users.
 
Anybody has any clues?
 
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
 
   --
   Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
   Android App Developer Books:http://commonsware.com/books-Hide quoted
 text -
 
   - Show quoted text -- 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


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

Re: [android-developers] Re: DevicePolicyManager LockNow problem

2012-01-20 Thread Mukesh Srivastav
Excatly Mr.Ashiq, I did that, i am able to have the complete control like

a. lock the screen.
b. password change event
c. wrong pass-- i am doing it for trace the mobile.
d.password success, a customize screen with widget into that.


Regards,
Mukesh

On Fri, Jan 20, 2012 at 12:05 PM, ashiq sayyad ashiqsay...@gmail.comwrote:

 Thanks.I will check that.

 One more is there any way to implement lock on earlier android
 versions(before 2.2)

 Thanks  Regards.
 Ashiq Sayyad


 On 20 January 2012 12:00, albnok alb...@gmail.com wrote:

 You might have missed something in the implementation - it should
 cause the Device Administrators window to pop up, and you need to
 Activate your app as a Device Admin.

 Then only isAdminActive() will return true.


 On Jan 18, 2:58 pm, ashiq sayyad ashiqsay...@gmail.com wrote:
  I have checked the  lockNow implementation in API demos  tried the
  same thing in my app. But I am not able to lock the device(Google
  nexus)
 
  Is there any restriction on this API call for thrid party application?
  isAdminActive() method is returning me false...
 
  One more doubt,how to implement screen lock functionality for below
  2.3 devices as there in no direct APIS  for tat..
 
  Awaiting for help
 
  Thanks  Regards,
  Ashiq Sayyad

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


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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

Re: [android-developers] Problem in listview with images in it

2012-01-20 Thread Mukesh Srivastav
Pleae check with the lazyload apps.

secondly you need to store or cache the downloaded images so that next time
it should read it from the cache not again from the server.



Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Tue, Jan 17, 2012 at 3:56 PM, ravi raviknt...@gmail.com wrote:

 Hi,

 I have a list view with image and some textviews in each row.
 Initially when the listview is loaded all works properly. But when I
 scroll down  the listview and come up again the background image
 changes. Can someone tell me the reason why its happening so?


 Hope to get the reply soon.
 Thanks in advance

 Regards

 Ravi

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




--

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

Re: [android-developers] Voip issue

2012-01-20 Thread Mukesh Srivastav
I had succefully done the voip app on sip protocol.

I had make use of PJSIP open source and i had tested on g729 codec as well.

here is the link.
http://code.google.com/p/csipsimple/


-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Thu, Jan 19, 2012 at 2:48 PM, TalkTalk ptec...@gmail.com wrote:

 What my problem is while I write a VOIP solution APP,
 The Audio Source of recording is always from camcorder.
 That make me echo .
 I think it is a problem for all application developer engineer.
 Please give a suggestion or hint me which api I can use to turn off
 cancorder in oerder to use mic.
 Thank you for your time.

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

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

Re: [android-developers] Re: DevicePolicyManager LockNow problem

2012-01-20 Thread Mukesh Srivastav
@Albnok,

I had tried decompiling the required library and had spend lots of time,
but not succeeded.

I Love to hear if some one is doing this.

Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Fri, Jan 20, 2012 at 2:10 PM, albnok alb...@gmail.com wrote:

 Well it says it's only on API Level 8 so I can't help you there. If
 you know it works in another app, on Android 2.1 or below, you might
 try decompiling that app, but I have no experience with that so I
 can't say whether it is possible to find an undocumented API that
 works.

 On Jan 20, 2:35 pm, ashiq sayyad ashiqsay...@gmail.com wrote:
  Thanks.I will check that.
 
  One more is there any way to implement lock on earlier android
  versions(before 2.2)
 
  Thanks  Regards.
  Ashiq Sayyad
 
  On 20 January 2012 12:00, albnok alb...@gmail.com wrote:
 
 
 
 
 
 
 
   You might have missed something in the implementation - it should
   cause the Device Administrators window to pop up, and you need to
   Activate your app as a Device Admin.
 
   Then only isAdminActive() will return true.
 
   On Jan 18, 2:58 pm, ashiq sayyad ashiqsay...@gmail.com wrote:
I have checked the  lockNow implementation in API demos  tried the
same thing in my app. But I am not able to lock the device(Google
nexus)
 
Is there any restriction on this API call for thrid party
 application?
isAdminActive() method is returning me false...
 
One more doubt,how to implement screen lock functionality for below
2.3 devices as there in no direct APIS  for tat..
 
Awaiting for help
 
Thanks  Regards,
Ashiq Sayyad
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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




--

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

Re: [android-developers] Android Screen lock

2012-01-18 Thread Mukesh Srivastav
I have done this app. if user enters the wrong password, I am able to send
an SMS without user notification.

You will have to make use of DeviceAdminReceiver api/class.

Regards,
Mukesh

On Thu, Jan 19, 2012 at 10:26 AM, chander mohan.c...@gmail.com wrote:

 hi all,

 I am making an application in which i have a scenario like if user
 enters a wrong passphrase or password more than specified no. of times
 then Phone should be locked. so what will be the best solution for
 doing this?

 I need your suggestions as well as some information regarding Screen
 lock and Pattern lock in android.

 Thanks
 Chandra

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

Re: [android-developers] Android Screen lock

2012-01-18 Thread Mukesh Srivastav
Great.


-Mukesh

On Thu, Jan 19, 2012 at 12:39 PM, Chander mourya mohan.c...@gmail.comwrote:

 Thanks a lot mukesh, i will try this for my app too.

 On 1/19/12, Mukesh Srivastav mukicha...@gmail.com wrote:
  I have done this app. if user enters the wrong password, I am able to
 send
  an SMS without user notification.
 
  You will have to make use of DeviceAdminReceiver api/class.
 
  Regards,
  Mukesh
 
  On Thu, Jan 19, 2012 at 10:26 AM, chander mohan.c...@gmail.com wrote:
 
  hi all,
 
  I am making an application in which i have a scenario like if user
  enters a wrong passphrase or password more than specified no. of times
  then Phone should be locked. so what will be the best solution for
  doing this?
 
  I need your suggestions as well as some information regarding Screen
  lock and Pattern lock in android.
 
  Thanks
  Chandra
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
 
 
 
  --
  Warm Regards,
  *Mukesh Kumar*,
  Android Consultant/Freelancer,
  India,Hyderabad.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en


 --
 Chandra Mohan Mourya

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

2012-01-16 Thread Mukesh Srivastav
How are you planning to get, if it is html you will need to  render the
html page in Webview to show the details.

2. you can also go with a simple webservice method which send you the data,
you parse it and show it in a customize way.

Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.



On Mon, Jan 16, 2012 at 4:55 PM, sandma...@libero.it sandma...@libero.itwrote:

 Hi,

 I'd need to write an app that gets some infos, like remaining time,
 remaining
 SMS for this month from my provider.

 Assuming that these informations are available as html pages, i.e. using a
 browser I can connect, authenticate and get this data, which is the best
 way to
 write an app to get them, too?

 Something that interpretates the html and gets data from here?

 Something else? Which technology should I use?

 Thanks

 Ciao

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




--

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

Re: [android-developers] How to put one or more layouts on same position

2012-01-16 Thread Mukesh Srivastav
why this approach, secondly if you go with approach, i am sure you might
wants to hid the layout in run time and display which is required. can you
elborate in more details.


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Sun, Jan 15, 2012 at 10:49 AM, vivek gidmare vivekgidm...@gmail.comwrote:

 I am getting problem while setting layouts on same position over the
 display.

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




--

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

Re: [android-developers] How can I solve com.google.zxing.NotFoundException exception?

2012-01-10 Thread Mukesh Srivastav
Venu

you first download the

 https://market.android.com/details?id=com.google.zxing.client.android;
and install it on device. things will work proper.


-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Tue, Jan 10, 2012 at 1:15 PM, venu reddy venu.andr...@gmail.com wrote:

 Mukesh ,

 Pls give me  the answer ..

 its bit urgent

 On Tue, Jan 10, 2012 at 12:18 PM, venu reddy venu.andr...@gmail.comwrote:

 Ok oK how can I ,,,

 Previous it was working right

 How can i install can u tel me please

 On Tue, Jan 10, 2012 at 11:52 AM, Mukesh Srivastav 
 mukicha...@gmail.comwrote:

 Venu,

 The Zingbarcode is uninstalled in your device. so install it again.


 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

 On Tue, Jan 10, 2012 at 11:50 AM, venu gopal reddy 
 venu.andr...@gmail.com wrote:

 Hi guys,

 Am is using zxing for barcode reading,

 previous I pasted one sample barcode image in sd card and i read the
 barcode and got barcode information.

 Now same i am trying to run the same program, am getting below error
 in logcat, not even open the application layout in emulator.
 Error is:

 01-10 11:14:23.397: W/System.err(2124):
 com.google.zxing.NotFoundException

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




 --


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



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

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

Re: [android-developers] Re: Application#onCreate() called more than once?

2012-01-10 Thread Mukesh Srivastav
Instead of starting the service on onCreate(), you need to do the following
things.

1. start the service onPause.

2. check if service is not started.

-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Tue, Jan 10, 2012 at 2:03 PM, srihari babu hisriharib...@gmail.comwrote:

 Is there any remote service kind of thing is there?
 Since i have observed this kind of behaviour in my application, in which i
 used to create remote service.
 On starting remote service, application onCreate method got executed.

 I think it may helpful to u.

 Regards,
 Srihari babu.R
 Hyderabad

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

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

Re: [android-developers] Lack of clarity in image

2012-01-10 Thread Mukesh Srivastav
Make sure, you pass all the required parameters, below is the Imageview
which i have used it after selecting an image from the album.


ImageView android:id=@+id/iv_photo
android:layout_marginTop=5dp android:layout_marginBottom=5dp
android:layout_marginLeft=2dp android:layout_marginRight=2dp
android:layout_gravity=center_horizontal
android:layout_width=fill_parent
android:layout_height=fill_parent/


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Tue, Jan 10, 2012 at 2:27 PM, Ratheesh Valamchuzhy
android...@gmail.comwrote:

 check the image is thumbnail or full sized.

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




--

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

Re: [android-developers] How can I solve com.google.zxing.NotFoundException exception?

2012-01-10 Thread Mukesh Srivastav
hmmm.

you developed the apps , but you forget to call it  :(


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Tue, Jan 10, 2012 at 3:13 PM, Raghav Sood raghavs...@androidactivist.org
 wrote:

 Have you included their library in your build path?


 On Tue, Jan 10, 2012 at 3:07 PM, venu reddy venu.andr...@gmail.comwrote:

 OK I understood mukesh...

 But I developed my own customized barcode applciation using ZXING api...

 No need to install the ZXING Barcode application in  my device...


 On Tue, Jan 10, 2012 at 1:30 PM, Mukesh Srivastav 
 mukicha...@gmail.comwrote:

 Venu

 you first download the

  https://market.android.com/details?id=com.google.zxing.client.android;
 and install it on device. things will work proper.


 --

 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.


 On Tue, Jan 10, 2012 at 1:15 PM, venu reddy venu.andr...@gmail.comwrote:

 Mukesh ,

 Pls give me  the answer ..

 its bit urgent

 On Tue, Jan 10, 2012 at 12:18 PM, venu reddy venu.andr...@gmail.comwrote:

 Ok oK how can I ,,,

 Previous it was working right

 How can i install can u tel me please

 On Tue, Jan 10, 2012 at 11:52 AM, Mukesh Srivastav 
 mukicha...@gmail.com wrote:

 Venu,

 The Zingbarcode is uninstalled in your device. so install it again.


 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

 On Tue, Jan 10, 2012 at 11:50 AM, venu gopal reddy 
 venu.andr...@gmail.com wrote:

 Hi guys,

 Am is using zxing for barcode reading,

 previous I pasted one sample barcode image in sd card and i read the
 barcode and got barcode information.

 Now same i am trying to run the same program, am getting below error
 in logcat, not even open the application layout in emulator.
 Error is:

 01-10 11:14:23.397: W/System.err(2124):
 com.google.zxing.NotFoundException

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




 --


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



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






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


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




 --
 Raghav Sood
 http://www.androidactivist.org/ - Author
 http://www.appaholics.in/ - Founder

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




--

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

Re: [android-developers] Re: webservice response parsed data

2012-01-10 Thread Mukesh Srivastav
OMG, Arun, where are you setting the last parameter of the list.do you see
the below example which i have shown in bold letters.

ListAdapter adapter = new ArrayAdapterString(this,
android.R.layout.simple_list_item_multiple_choice,*list*);

The above list should be filled by your xml parser. hope you understand.

Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Tue, Jan 10, 2012 at 3:29 PM, arun kumar arun.kata...@gmail.com wrote:



 below is the xml file i has to show name and total in textview which am
 able to do but i has to show the Monthname in the list in next activity
 where am struck...so plzz can any one give guindance on this .





 NameAndMontotal
 item
 NameArjun/Name
 Total406/Total
 Unit$/Unit
 item

 Monthlist
 item
 MonthnameFEB/Monthname
 /item
 MonthnameMAR/Monthname
 /item
 itemMonthnameAPRI/Monthname
 /item
 item
 MonthnameMAY/Monthname
 /item

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




--

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

Re: [android-developers] Android File transfer / sharing APIs

2012-01-10 Thread Mukesh Srivastav
Hi San,

Can you answer below of the questions.

1. What type of file transfer you are looking for , i mean client server or
Direct Android client, if it is Direct Android client, you can use
FTPClient class.

2.File sharing: Facebook and Twitter api's are already there you can make
use of it.

3. The other soultion would be, have a  Server or middle tier (PHP) which
uploads  the files to the server. you need to use httpclient to send a
request to your php server.


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Tue, Jan 10, 2012 at 5:53 AM, San satof...@gmail.com wrote:

 Are there any file transfer or file sharing APIs available in Android.
 Tried to look around but could not figure it out, which is why I am
 asking this question on this forum.

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




--

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

Re: [android-developers] Re: webservice response parsed data

2012-01-10 Thread Mukesh Srivastav
Arun,

fill your items with the data.



On Tue, Jan 10, 2012 at 3:59 PM, arun kumar arun.kata...@gmail.com wrote:

 hey thanks for reply 


 ArrayAdapterString adapter = new ArrayAdapterString(this,
 android.R.layout.simple_list_item_1,items);

 if i add like that am getting the below error...


 The constructor ArrayAdapterString(Year, int, int,
 ArrayListItemStructure) is undefined
 On Tue, Jan 10, 2012 at 3:38 PM, Mukesh Srivastav mukicha...@gmail.comwrote:

 OMG, Arun, where are you setting the last parameter of the list.do you
 see the below example which i have shown in bold letters.

  ListAdapter adapter = new ArrayAdapterString(this,
 android.R.layout.simple_list_item_multiple_choice,*list*);

 The above list should be filled by your xml parser. hope you understand.

 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.


  On Tue, Jan 10, 2012 at 3:29 PM, arun kumar arun.kata...@gmail.comwrote:



 below is the xml file i has to show name and total in textview which am
 able to do but i has to show the Monthname in the list in next activity
 where am struck...so plzz can any one give guindance on this .





 NameAndMontotal
 item
 NameArjun/Name
 Total406/Total
 Unit$/Unit
 item

 Monthlist
 item
 MonthnameFEB/Monthname
 /item
 MonthnameMAR/Monthname
 /item
 itemMonthnameAPRI/Monthname
 /item
 item
 MonthnameMAY/Monthname
 /item

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




 --


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


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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

Re: [android-developers] Re: Looking for a helping hand

2012-01-10 Thread Mukesh Srivastav
Do the following.
 1. open the  AndroidManifest.xml,

 2. Application Tab of AndroidManifest.xml

3. in the Application nodes , you see the  .ElectronicSafelocks

4.Select that file, and Next to that or right hand side you will see Name*
with a Browse button.

5. click the Browse button of Name*

6. it popus a window, select  .ElectronicSafelocks  Again,

It will add your  .ElectronicSafelocks File again in   AndroidManifest.xml
file.

Try running your application again.


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.



On Tue, Jan 10, 2012 at 7:14 PM, niko20 nikolatesl...@yahoo.com wrote:

 Your activity name in the xml doesnt match your activity name in the
 code

 On Jan 9, 10:24 pm, Keith leftcont...@gmail.com wrote:
  Can someone please tell me why I keep getting this error. This is
  literally a copy of a working package and i do not understand how to
  fix this. I have searched and read this error from logcat and have not
  been able to relate.I am beneath novice and have been working on this
  for 6 man hours.
 
  01-09 18:47:55.245: E/AndroidRuntime(303): Caused by:
  java.lang.ClassNotFoundException: go.to.bed3.ElectronicSafelocks in
  loader dalvik.system.PathClassLoader[/data/app/go.to.bed3-1.apk]
 
  package go.to.bed3;
 
  import go.to.bed3.R.id;
  import android.app.Activity;
  import android.content.Intent;
  import android.net.Uri;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.Button;
 
  public class ElectronicSafeLocks extends Activity {
  /** Called when the activity is first created. */
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
 
  // Button 1
  Button link1Btn = (Button)findViewById( id.button1 );
  link1Btn.setOnClickListener( new View.OnClickListener()
  {
  public void onClick(View v)
  {
  Uri uri = Uri.parse( 
 http://w3.securitytechnologies.com/Services/TechSupport/Pages/home.as...
  Electronic%20Lockspl=AD-   Series%20Locks#  );
  startActivity( new Intent( Intent.ACTION_VIEW, uri ) );}
 
  Button link1Btn = (Button)findViewById( id.button1 );});
 
  // Button 2
  Button link2Btn = (Button)findViewById( id.button2 );
  link2Btn.setOnClickListener( new View.OnClickListener()
  {
  public void onClick(View v)
  {
  Uri uri = Uri.parse( http://www.kaba-ilco.com/access_control/
  literature/literature_grid_eplex.aspx?id=14  );
  startActivity( new Intent( Intent.ACTION_VIEW, uri ) );}
 
  Button link2Btn = (Button)findViewById( id.button2 );});
 
  // Button 3
  Button link3Btn = (Button)findViewById( id.button3 );
  link3Btn.setOnClickListener( new View.OnClickListener()
  {
  public void onClick(View v)
  {
  Uri uri = Uri.parse( http://www.kaba- ilco.com/access_control/
  literature/literature_grid_
  mechanical_pushbutton_locks.aspx?id=13 );
  startActivity( new Intent( Intent.ACTION_VIEW, uri ) );}
 
  Button link3Btn = (Button)findViewById( id.button3 );});
 
  //Button 15
  Button link15Btn = (Button)findViewById( id.button15 );
  link15Btn.setOnClickListener( new View.OnClickListener()
  {
  public void onClick(View v)
  {
  Uri uri = Uri.parse(
  http://consumer.schlage.com/Project%20Documents/P515-858.pdf; );
  startActivity( new Intent( Intent.ACTION_VIEW, uri ) );}
 
  Button link15Btn = (Button)findViewById( id.button15 );
 
  });
  }}
 
  main.xml
 
  ?xml version=1.0 encoding=utf-8?
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:orientation=vertical 
 
  ScrollView android:id=@+id/ScrollView01
  android:layout_width=fill_parent
  android:layout_height=wrap_content
 
  TableLayout
  android:layout_width=fill_parent
  android:layout_height=wrap_content
  Button
  android:id=@+id/button2
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:text=Kaba Eplex/
  Button
  android:id=@+id/button3
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:text=Kaba Push Button/
  Button
  android:id=@+id/button1
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:text=Schlage/Locknetics/
  Button
  android:id=@+id/button15
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:text=Schlage Residental BE365.PDF/
  /TableLayout
  /ScrollView
  /LinearLayout
 
  manifest.xml
  ?xml version=1.0 encoding=utf-8?
  manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=go.to.bed3
  android:versionCode=2
  android:versionName=2 
  uses-sdk android:minSdkVersion=8 /
  uses-permission android:name=android.permission.INTERNET /
  application
  android:icon=@drawable/uglylock
  android:label=@string/app_name android:debuggable=true 
  activity
  android:label=@string/app_name
  android:name=go.to.bed3.ElectronicSafelocks 
  intent-filter 
  action android:name=android.intent.action.MAIN /
  category 

Re: [android-developers] List View with Check box multiselection

2012-01-10 Thread Mukesh Srivastav
Hi Chander,

I wish if i could help with the whole source. The problem is the design.

let me tell you the real approach.

1. create a model class which holds the data that is name and checkbox with
setters and getters. below is the example

/** Holds Music data. */
private static class Music {
private String name = ;
private boolean checked = false;

public Music() {
}

  have the setters and getters for name and checked

2.Create a View adapter class which holds the child view data. below is the
example

private static class MusicViewHolder {
private CheckBox checkBox;
private TextView textView;

public MusicViewHolder() {
}

public MusicViewHolder(TextView textView, CheckBox checkBox) {
this.checkBox = checkBox;
this.textView = textView;
}

public CheckBox getCheckBox() {
return checkBox;
}

public void setCheckBox(CheckBox checkBox) {
this.checkBox = checkBox;
}

public TextView getTextView() {
return textView;
}

public void setTextView(TextView textView) {
this.textView = textView;
}
}


3. your custom adapter  which actally extends the Arrayadapter should be
like this

/** Custom adapter for displaying an array of Music objects. */
private static class MusicArrayAdapter extends ArrayAdapterMusic {

private LayoutInflater inflater;

public MusicArrayAdapter(Context context, ListMusic musicList) {
super(context, R.layout.simplerow, R.id.rowTextView, musicList);
// Cache the LayoutInflate to avoid asking for a new one each time.
inflater = LayoutInflater.from(context);
}

@Override
public View getView(int position, View convertView, ViewGroup parent) {
// Music to display
Music music = (Music) this.getItem(position);

// The child views in each row.
CheckBox checkBox;
TextView textView;

// Create a new row view
if (convertView == null) {
convertView = inflater.inflate(R.layout.simplerow, null);

// Find the child views.
textView = (TextView) convertView
.findViewById(R.id.rowTextView);
textView.setTextColor(Color.BLACK);
checkBox = (CheckBox) convertView.findViewById(R.id.CheckBox01);

 convertView.setTag(new MusicViewHolder(textView, checkBox));

 checkBox.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
CheckBox cb = (CheckBox) v;
Music music = (Music) cb.getTag();
music.setChecked(cb.isChecked());
}
});
}
 else {
 MusicViewHolder viewHolder = (MusicViewHolder) convertView
.getTag();
checkBox = viewHolder.getCheckBox();
textView = viewHolder.getTextView();
}

 checkBox.setTag(music);

 checkBox.setChecked(music.isChecked());
textView.setText(music.getName());

return convertView;
}

}


4.finally your setItemclicklisteners should be

Music music = listAdapter.getItem(position);
music.toggleChecked();
MusicViewHolder viewHolder = (MusicViewHolder) item
.getTag();
viewHolder.getCheckBox().setChecked(music.isChecked());



That's it. as i said, i have done this earlier, it requries the whole
process. bascially you need to create and store the data in private Music[]
musiclistarray;


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Wed, Jan 11, 2012 at 12:11 PM, chander mohan.c...@gmail.com wrote:

 Hi all,

 In my application, i created a custom file adapter and i am using
 ListView with checkboxes, upto this point everything working great.
 But now i have to take the values of Checked listView items in an
 Array list. In my list view, i am listing Files present on the SD card
 so i have to take Files for further processing by storing it in an
 Array List.

 I am confused here how i pass multiple files for the processing, can
 someone help me in how i pass checked Files to further processing, or
 do i need to change my FileAdapter also ?

 My Adapter class code :--

 public class FileAdapter extends ArrayAdapterFile
 {
  Context context;
  File[] files;
  CheckBox Check;


  public FileAdapter(Context context, File[] files)
  {
super(context, -1, files);
this.context = context;
this.files = files;


  }


 Thanks

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




--

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

Re: [android-developers] Getting com.google.zxing.NotFoundException problem?

2012-01-10 Thread Mukesh Srivastav
Venu, why do you want to re-invent the things which are already there. too
much of time and resource consuming..

When use clicks on Barcode button, see whether the barcode is installed or
not, if it not, guide the user to the Android market to download and use
it. as simple as that. you can infact check it in
ActivitynotfoundException.

and Regarding the issue, if you see the last line of the error, it says,
 com.google.zxing.NotFoundException. you are missing the class again.

I have done this before and this should be very simple if you follow the
approach 1 which i said it  above.

Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.




On Wed, Jan 11, 2012 at 1:02 PM, venu reddy venu.andr...@gmail.com wrote:

 ok sorry guys,,I didnt mention clearly..

 Below logs are getting when I run the barcode applciation:
 01-11 12:37:10.765: I/jdwp(17061): received file descriptor 10 from ADB
 01-11 12:37:10.795: D/ddm-heap(17061): Got feature list request
 01-11 12:37:10.986: I/System.out(17061): .before image
 01-11 12:37:11.045: D/dalvikvm(17061): GC freed 898 objects / 75104 bytes
 in 52ms
 01-11 12:37:11.085: I/System.out(17061): .after height image400
 01-11 12:37:11.125: D/dalvikvm(17061): GC freed 121 objects / 38352 bytes
 in 41ms
 01-11 12:37:11.135: I/dalvikvm-heap(17061): Grow heap (frag case) to
 5.218MB for 640016-byte allocation
 01-11 12:37:11.265: D/dalvikvm(17061): GC freed 124 objects / 6168 bytes
 in 134ms
 01-11 12:37:11.435: I/System.out(17061): .sourcr
 is-com.google.zxing.client.androidtest.RGBLuminanceSource@43761978
 01-11 12:37:11.446: I/System.out(17061): .bitmap
 is-com.google.zxing.BinaryBitmap@437566e0
 01-11 12:37:11.446: I/System.out(17061): .try block ---1
 01-11 12:37:12.135: W/System.err(17061): com.google.zxing.NotFoundException

 On Tue, Jan 10, 2012 at 10:24 PM, Kristopher Micinski 
 krismicin...@gmail.com wrote:

 That doesn't give us any information.  You'll have to go look into the
 API to find out what that exception even means.  Post at least some
 kind of a stack trace.

 Just taking a pie in the sky guess: it means that zxing didn't find
 any product matching that barcode, or something like that, but like I
 said, you'll have to provide some surrounding code, is there a
 description for that exception, in the API?

 kris

 On Tue, Jan 10, 2012 at 11:45 AM, venu gopal reddy
 venu.andr...@gmail.com wrote:
  Hi friends,
 
  Am developing barcode application using ZXING api , but am getting
  below error:
 
   com.google.zxing.NotFoundException
 
  , How can I solve this Exception?
 
  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

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


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




--

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

Re: [android-developers] Store XML file into the Resource folder

2012-01-09 Thread Mukesh Srivastav
OMG, you guys need to use AssetManager class, that might help.

On Mon, Jan 9, 2012 at 2:53 PM, skink psk...@gmail.com wrote:



 venu reddy wrote:
  Thankq  for your quick response..but Not working,
  AM using below code in android applciation...
 
  FileOutputStream fOut =
 
 openFileOutput(C:/Barcodenewworkspace1/RestApp/res/xml/myxml.xml,MODE_WORLD_READABLE);

 C:/ ???

 Where did you see a path starting with C:/ on any android device?

 What actually are you trying to do?

 pskink

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

2012-01-09 Thread Mukesh Srivastav
@PSKink:  if you planned to use the ExternalStorage or InternalStorage
would returns the url path of the SDCard or the phone internal space
respectively. but as per my understanding, The user (who posted Venu),
wants to save the xml with in Application, like we the way we create the
customize property xml files in asset folder.


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.
On Mon, Jan 9, 2012 at 3:46 PM, skink psk...@gmail.com wrote:



 venu reddy wrote:
  Ya ya .. I think so u guys afraid about my code ...
 
  actually want to save in xml file in sd card .. I knew ...\


 start with this:


 http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory()

 pskink

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




--

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

Re: [android-developers] how to read dynamically generated XML file?

2012-01-09 Thread Mukesh Srivastav
Venu are you saying that, you do know the 'Node list' or XML Tags and you
wanted to read it dynamically, isnt ?

Secondly, how do you design your application class or Data object for model
 ?




On Mon, Jan 9, 2012 at 7:08 PM, Mark Murphy mmur...@commonsware.com wrote:

 On Mon, Jan 9, 2012 at 8:33 AM, venu gopal reddy venu.andr...@gmail.com
 wrote:
  Hi friends,
 
  I am getting one XML file from one web services cal , i stored this
  XML file into my sd card ,
 
  Now Just I want to read the XML file(I mean parsing) .
 
  Using  SAX parser we can read already knew format of XML file ..

 Huh?

  Here this case i Dont know the format..
 
  How can I read Dynamically generated XML files?

 Use SAX. Or, use the DOM. Or, use XmlPullParser. All of those are
 integrated into Android, and the first two are the same as with any
 Java development.

 Or, use a third-party XML parser, if you can find one that works on
 Android.

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

 Android Training in NYC: http://marakana.com/training/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
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

Re: [android-developers] how to read dynamically generated XML file?

2012-01-09 Thread Mukesh Srivastav
send me your file, let me see.

Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Mon, Jan 9, 2012 at 7:33 PM, venu reddy venu.andr...@gmail.com wrote:

 Yes mukesh...

 I dont know the node listand all about XML

 But I need to read.. is there any alternative?

 using XMLPULLPARSER , we need to create XmlPullParser object..and using
 this object we can do any thing,,

 Actually my XML file in SD card , reading XML file from SD card using
 below code
 File sdcard = Environment.getExternalStorageDirectory();
File file = new File(sdcard,myxml.xml);

 but that xml file in file format ...
 how Can i this file i dont know ..pls help this...


 On Mon, Jan 9, 2012 at 7:15 PM, Mukesh Srivastav mukicha...@gmail.comwrote:

 Venu are you saying that, you do know the 'Node list' or XML Tags and you
 wanted to read it dynamically, isnt ?

 Secondly, how do you design your application class or Data object for
 model  ?




 On Mon, Jan 9, 2012 at 7:08 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Mon, Jan 9, 2012 at 8:33 AM, venu gopal reddy venu.andr...@gmail.com
 wrote:
  Hi friends,
 
  I am getting one XML file from one web services cal , i stored this
  XML file into my sd card ,
 
  Now Just I want to read the XML file(I mean parsing) .
 
  Using  SAX parser we can read already knew format of XML file ..

 Huh?

  Here this case i Dont know the format..
 
  How can I read Dynamically generated XML files?

 Use SAX. Or, use the DOM. Or, use XmlPullParser. All of those are
 integrated into Android, and the first two are the same as with any
 Java development.

 Or, use a third-party XML parser, if you can find one that works on
 Android.

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

 Android Training in NYC: http://marakana.com/training/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
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

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


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




--

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

Re: [android-developers] List View multiselection problem

2012-01-09 Thread Mukesh Srivastav
Mohan, I have done this before, where i am reading all the music files in
SDCard and able to show it in Listview with checkbox.

Please follow the below points which will help you in resolving.

1. Create a class which extends the ArrayAdapter

2.In the getView method of the Adapterclass have the following.

// The child views in each row.
CheckBox checkBox;
TextView textView;

// Create a new row view
if (convertView == null) {
convertView = inflater.inflate(R.layout.simplerow, null);

// Find the child views.
textView = (TextView) convertView
.findViewById(R.id.rowTextView);
textView.setTextColor(Color.BLACK);
checkBox = (CheckBox) convertView.findViewById(R.id.CheckBox01);

 convertView.setTag(new MusicViewHolder(textView, checkBox));

 checkBox.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
CheckBox cb = (CheckBox) v;
Music music = (Music) cb.getTag();
music.setChecked(cb.isChecked());
}
});
}



in onCreate bind the Adapter with your list.

listAdapter = new MusicArrayAdapter(this, musicList);
mainListView.setAdapter(listAdapter);


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad



On Tue, Jan 10, 2012 at 11:09 AM, chander mohan.c...@gmail.com wrote:

 hi all,

 I am creating an application in which i used a List view to list all
 files present in SD card, but for some purpose i need to make ListView
 checkable or selectable by user.
 i created my own Array adapter of Files, i tried getChoiceMode
 property as Multiselection but its not working. can someone help me in
 correcting my code if there is any missing thing.

ListView listFiles;
FileAdapter adapter;
File[] files;   // Full path to the files
File file;  // Current file
  public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.filelist);

Home = this.getFilesDir();

// Finding Buttons for listing files

btnBack = (Button)findViewById(R.id.btnBack);
btnBack.setOnClickListener(this);

btnSDCard = (Button)findViewById(R.id.btnSDCard);
btnSDCard.setOnClickListener(this);

btnHome = (Button)findViewById(R.id.btnHome);
btnHome.setOnClickListener(this);

btnRoot = (Button)findViewById(R.id.btnRoot);
btnRoot.setOnClickListener(this);

listFiles = (ListView)findViewById(R.id.listFiles);
listFiles.setOnItemClickListener(this);

listFiles.setAdapter(new

 ArrayAdapterFile(this,android.R.layout.simple_list_item_multiple_choice,files));
adapter = new FileAdapter(this,files);
listFiles.setAdapter(adapter);
listFiles.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
 }


 When i am running this code its giving Null Pointer exception,can
 someone help me how i rectify or correct this problem.


 Thanks

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




-- 
.

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