[android-developers] Re: recover key store password from Android Studio saved preferences? Or, change gradle build to build APK as release?

2014-01-30 Thread xrd
OK, so I used "sudo iosnoop | grep studio" to trace the system calls made 
by Android Studio. I see several files which it opens and wonder if one of 
these might be it:

~/Library/Saved Application 
State/com.google.android.studio.savedState/data.data
~/Library/Saved Application 
State/com.google.android.studio.savedState/windows.plist

~/Library/Saved Application 
State/com.google.android.studio.savedState/window_1.data

I can dump the plist file with this command:

plutil -convert xml1 -o - ~/Library/Saved\ Application\ 
State/com.google.android.studio.savedState/windows.plist | less
But nothing about saved passwords there.

Anyone know how to read a .data file created by Android Studio (perhaps an 
IntelliJ format)? Difficult to search on Google and get anything 
interesting. The file starts with the characters 'NSCR1000' and those are 
repeated several times through the file.

Chris

On Wednesday, 29 January 2014 12:16:44 UTC-8, xrd wrote:
>
> Android Studio recently updated itself and now builds my APK with 
> debugging symbols, and Google Play rejects the APK when I upload it.
>
> I also recently moved, so the paperwork with my saved key store password 
> is buried somewhere. 
>
> Is there a way to retrieve the saved keystore password and key password 
> from Android Studio preferences? I have tried grepping through files in 
> ~/Library/Preferences/ as well as dumping all the plists but don't see 
> anything matching the password.
>
> Is there a way to dump the command line output of the gradle command run 
> via Android Studio as I assume it is provided to gradle, right?
>
> Any other creative ways to do this? Please save me from digging through 
> all the junk piled up in my basement, I might die in an avalanche...
>
> Chris
>

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


[android-developers] recover key store password from Android Studio saved preferences? Or, change gradle build to build APK as release?

2014-01-29 Thread xrd
Android Studio recently updated itself and now builds my APK with debugging 
symbols, and Google Play rejects the APK when I upload it.

I also recently moved, so the paperwork with my saved key store password is 
buried somewhere. 

Is there a way to retrieve the saved keystore password and key password 
from Android Studio preferences? I have tried grepping through files in 
~/Library/Preferences/ as well as dumping all the plists but don't see 
anything matching the password.

Is there a way to dump the command line output of the gradle command run 
via Android Studio as I assume it is provided to gradle, right?

Any other creative ways to do this? Please save me from digging through all 
the junk piled up in my basement, I might die in an avalanche...

Chris

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


[android-developers] refactoring activities into drawerlayout?

2013-12-05 Thread xrd
I posted this question to StackOverflow in the hopes of finding a pattern I 
could use to reuse my activities inside a drawerlayout:

http://stackoverflow.com/questions/20393343/how-do-i-refactor-activities-into-a-drawerlayout

I've gotten no responses, so I'm wondering if anyone has a recommendation 
to stop looking in this direction, and instead just pull all the code out 
of the other activities into the main activity with the drawerlayout. I was 
hoping to keep things in the existing structure (there is a lot of code I 
could be pulling in...), but perhaps the reality is I'll need to pull the 
code into a single activity rather than spread across many activities.

Thanks in advance.

Chris

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


[android-developers] Re: I want to make an application can do automated testing.

2013-12-05 Thread xrd
I wrote a blog post about automated testing and recording the screen. There 
is a little script I run (run-and-record.sh) which starts the test runnner 
(calabash) and then starts recording the screen on the device. Maybe this 
will help?

http://blog.teddyhyde.com/2013/11/04/a-better-way-to-test-android-applications-using-calabash/

Chris

On Thursday, 5 December 2013 02:05:24 UTC-8, 12169 wrote:
>
> Hi,
> i am able to record the points on the device where user has clicked and 
> output it on a file ashish.txt below is the code that i use.but now problem 
> is that system output the points on the file only when is size of of the 
> data is 32kb.any help to record it for one click.
>
> Process process = Runtime.getRuntime().exec("su");
> DataOutputStream os = new DataOutputStream(process.getOutputStream());
> os.writeBytes("getevent /dev/input/event6 >/sdcard/ashish.txt \n ");
> os.flush();
>  
>
> On Monday, December 2, 2013 1:06:38 AM UTC+5:30, 12169 wrote:
>>
>> Hi,
>>
>> In android i want to make an application that can do automated testing of 
>> android applications.
>> for this my first step is to record the testing steps that i done on the 
>> application and after i have the repeat that steps. 
>> any suggestion will be appreciated.
>>
>

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


[android-developers] refresh fragment on swipe?

2013-03-29 Thread xrd
I'm trying to get a fragment working such that when the fragment is brought 
into view it refreshes the content in the view. 

I thought that I could implement OnPageChangeListener and 
override onPageSelected but my breakpoint is never hit. Is there a better 
way? Or, perhaps this means I am doing things wrong somewhere in my code?

I've also tried using onResume(), but this does not get called each time 
the fragment is displayed, which is what I need.

Any suggestions?

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




[android-developers] Retrieving current URL from chrome (or browser). Use ContentProvider? Or, other method?

2013-01-16 Thread xrd
I'm trying to get access to the current URL on the chrome browser. I want 
my service to perform a task when it recognizes the user is on a specific 
web page.

I've been able to retrieve the name of current application ("Chrome") using 
a combination of the android.permission.GET_TASKS permission and this code. 
However, this just gives me the name of the application, and not the URL. 

ActivityManager am = (ActivityManager) 
getSystemService(Activity.ACTIVITY_SERVICE); 
String packageName = 
am.getRunningTasks(1).get(0).topActivity.getPackageName(); 
PackageManager pm = getPackageManager(); 
try { 
CharSequence c = pm.getApplicationLabel(pm.getApplicationInfo(packageName, 
PackageManager.GET_META_DATA)); 
currentAppName = c.toString(); 
}
catch (Exception e) {}

Is there a way to retrieve the URL for the current webpage in Chrome in 
another fashion?

I don't see that ContentProvider for browser provides anything with respect 
to the current URL. Would the last item in the history 
*(getAllVisitedUrls(...)) 
*tell me this?

Or, is there another way to query this information from the browser 
directly?

I don't need to do this in a sneaky way, I want the user to be fully aware 
that I am asking for this information.

Thanks,
Chris

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

[android-developers] how to switch from Activity to ListActivity

2010-07-26 Thread xrd
Hi there,

This post probably shows my ignorance of Android coding, but here
goes.  I have a sample app I am developing which starts by extending
Activity.  I have a main.xml layout which works great.  On a button
click from the main layout I'd like to load a ListView.  I think I
understand how to use ListView and seed data into it.  I have created
a new layout which contains this ListView.

I am confused, however, how I switch from a regular Activity to a
ListActivity so I get the convenience methods like setListAdapter()?
Should I be starting with a ListView, and then drawing the other view
on top once the app starts by inflating the layout and using it?  If
not, how do I create a ListActivity object inside my app, and where
should I create that?  If you have a sample application or tutorial
that shows how to do this, I would appreciate it.

Thanks,
Chris

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