Android :: Intent Not Extracting Extra
Aug 3, 2010
I have this code: protected void onListItemClick(ListView l, View v, int position, long id)
super.onListItemClick(l, v, position, id);
Log.i(TAG, "The id of the selected note is " + id);
Intent editNote = new Intent(this, TaskEditActivity.class);
editNote.putExtra(TasksDBAdapter.KEY_ID, id);
startActivityForResult(editNote, EDIT_TASK_REQUEST);
}And this code that retrieves the extra FROM A DIFFERENT ACTIVITY: if (savedInstanceState != null) { id = savedInstanceState.getLong(TasksDBAdapter.KEY_ID); Log.i(TAG, "Id of note = " + id);In the first code snippet, Logcat says: The id of the selected note is 2, but in the second code snippet, Logcat says: Id of note = 0. What just happened here? Any solutions to this VERY annoying problem.
View 2 Replies
Aug 20, 2010
I've started to write a small app for android. It looks very nice, but there is one thing I don't understand.I've created a new intent in the activity A and I've added a serialized vector intent.putExtra("key", vector).
View 3 Replies
View Related
Oct 15, 2010
Is there any way to put an extra into the intent launched by a shortcut?
View 1 Replies
View Related
Nov 19, 2009
How to know the list of available extra for a intent?For example, I want to know all available extra for ACTION_BATTERY_CHANGED. What is the method to know them?I have seen nothing on the official dev guide, reference in http://developer.android.com.I have seen nothing on watching the intent on debugger (on Eclipse)I have seen no methods on the intent documentation, like myIntent.getListExra()
View 2 Replies
View Related
Mar 24, 2010
i'm trying to find out what extra's there are for a specific intent.in the eclipse debug window i can see it has extra's , but i can''t find a list of those extra's. I also can't find a function to get all extra's into a human readable format.
View 4 Replies
View Related
Jun 28, 2010
I have a service that produces as result a SortedSet object. I need to pass it to another Intent that will use it. First is put in the notification area, then when the user actions it it will need to fire the activity.As it it's own SortedSet is not Parcelable nor Serializable so it won't work. One single item in SortedSet is already parcelable and it's used fine, but I need the whole set.How to pass a SortedSet as an Intent's extra?
View 1 Replies
View Related
Aug 3, 2010
I have a program that sends a broadcast Intent that needs an "extra" value.The value is declared as being of type Object[], though I know that the elements are always of type Integer or String.That's part of an API not under my control. What's the most concise and/or efficient way to do the equivalent of the putExtra call below?
View 6 Replies
View Related
Aug 3, 2009
I'd like to extract classes.dex from an APK file. I've tried using aapt, but I can't see an option for extracting the files. When I run the aapt tool without options it prints out the list, dump, package, remove, add and version commands, but it doesn't seem to me like any of them extracts files. Could someone please tell me which options I would have to use to do it?
View 3 Replies
View Related
Jul 20, 2010
anyone knows how to extract zip files/tgz files in Android? i tried Astro File Manager but it does not work.
View 5 Replies
View Related
Apr 26, 2010
I want to use colors from a Theme to apply it to HTML my app is rendering. I am wondering if I can do that? I am looking to use colors like they are specified in themes.xml: <itemname = " color Fore ground">@android:color/bright_foreground_dark</item> name =" colorBack ground " >@android:color/background_dark</item> <item name ="textColorPrimary" >@android: color/primary_text_dark</item> I get this as a result: I/System.out( 1578): tv.string=null I/System.out( 1578): tv.coerced=#ffffffff I/System.out( 1578): colorResourceId=-1 I/System.out( 1578): tv.string=res/color/primary_text_light.xml I/System.out( 1578): tv.coerced=res /color/primary_text_light.xml I/System.out( 1578): colorResourceId=-16777216 The results are different. The first one actually gives me the color "#fffffff" which would work for me, the second one only gives me an xml. Do I need to jump through a few more hoops here to resolve the actual color? Does my original intention work at all? Maybe it won't work, because colors could be arbitrary drawables? I didn't find any relevant documentation, but if you know any, just point me there please. Btw. I also tried obtainStyledAttributes(), but this had basically the same issues. ou received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
View 5 Replies
View Related
Jan 30, 2009
guys, is it possible to extranct html content from webview component/ class? I wanna show an img file from getting rid of <img...> tag from html of webivew.
View 3 Replies
View Related
Oct 20, 2010
my app downloads a zip with about 350 files. A mix of JPG and HTML files. The function i wrote to do it works just fine but the unzipping takes for ever. At first i thought the reason might be that writing to the sd-card is slow. but when i unzip the same zip with an other app on my phone it works much faster. is there anything that i could do to optimize it?
here is the code:.................
View 1 Replies
View Related
Aug 20, 2010
so the story behind this mini-tutorial is that I live with other people that have Galaxies and I upgrade their phones periodically, as part of the upgrade process I have to wipe the phones and a nandroid backup doesn't always work (like if you go from 1.5 to 1.6.3.4) and with the wipe some important things are lost: APN settings, Hebrew fonts, Hebrew Keyboard, etc.I have to install the keyboard, fonts, script utility, etc. every time on every phone; some of these apps are in the market, but to use the market you need to do the setup wizard to add your Google account to the phone. And sine sometimes the owners of the phones aren't around, I need to have the .apk files with the apps I need to install so I can do it without downloading them from the market. Hence, I had to figure out a way to extract the .apk files from my phone so I could install them on theirs. Here's how it's done:Prerequisites:
- Android SDK
- Android USB driver
View 5 Replies
View Related
Jan 27, 2009
I'm just about to start externalizing all my String-resources to a new project and then bring them back by including the exported jar-file of this 'i18n'-project. Doing so i18n for different languages becomes easier (I could simply export just a handful of languages to the jar). can successfully change the java-references to the outsourced foo.bar.i18n.R.java BUT, all references of the xml-layouts fail Sample: ############ android:label="@string/app_name"> ############ where: "@string/app_name" is now unknown =/ I'm asking myself whether this is possible and how to resolve my issue / properly reference the externalized string-resources.
View 6 Replies
View Related
Jul 7, 2013
I just finished Final fantasy 4 (android), and I wanted to have the remastered soundtracks from it. But on the internet the remastered version is not available yet, I could only find the old soundtracks.
I tried screencast recorder, z screen recorder etc(to record video+audio then extract audio), but they all record audio from the microphone, so that didn't work out. is there a way to extract the audio from the game somehow, or some on screen audio recorder for android devices?
View 4 Replies
View Related
Oct 8, 2011
I'm writing a simple program where it scans the installed apks. It returned an apk like: org.myapk.MyApp. Okay, now, I would like to calculate a hash (md5, crc32, sha1, sha256, no matters.. ) from this apk. How can I proceed? Its possible because any antivirus does it.
View 1 Replies
View Related
Mar 1, 2010
I had a bunch of code in an activity that displays a running graph of some external data. As the activity code was getting kind of cluttered, I decided to extract this code and create a GraphView class:
public class GraphView extends LinearLayout {
public GraphView(Context context, AttributeSet attrs) {
super(context, attrs);
LayoutInflater inflater = (LayoutInflater)
context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
inflater.inflate(R.layout.graph_view, this, true);
}
public void start() {
// Perform initialization (bindings, timers, etc) here
}
public void stop() {
// Unbind, destroy timers, } }
Moving stuff into this new LinearLayout-derived class was simple. But there was some lifecycle management code associated with creating and destroying timers and event listeners used by this graph (I didn't want this thing polling in the background if the activity was paused, for example). Coming from a MS Windows background, I kind of expected to find overridable onCreate() and onDestroy() methods or something similar, but I haven't found anything of the sort in LinearLayout (or any of its inherited members). Having to leave all of this initialization code in the Activity, and then having to pass it into the view seemed like it defeated the original purpose of encapsulating all of this code into a reusable view. I ended up adding two additional public methods to my view: start() and stop(). I make these calls from the activity's onResume() and onPause() methods respectively. This seems to work, but it feels like I'm using duct tape here. Does anyone know how this is typically done?
View 4 Replies
View Related
Nov 17, 2009
Shortly after rooting, my voice search and google maps got corrupted. How do I extract these out of the stock rom? Or is there a place to get these already extracted?
View 2 Replies
View Related
Mar 9, 2010
Is there an app that can do this? I am trying to extract petes latest Rom from a rar file he posted but can't extract on my phone and don't have access to a pc right now. What gives? Why would he post in a format that cannot be extracted on the phone itself? I have a hard time believing this can't be done.
View 12 Replies
View Related
Sep 12, 2010
My Dinc is 2.2 rooted s-off. I have an app on the phone that I would like to extract it as an apk for future use. Can anyone offer me some instructions on getting this done?
View 8 Replies
View Related
Nov 4, 2013
I was wondering if there is a way to way to extract set of functions associated with each permission for all android permissions available on Manifest.permission | Android Developers.
View 3 Replies
View Related
Aug 19, 2012
I've been trying to restore my sms-es from a nandroid backup. Apps like appextractor do not work as my backup was made using the new method introduced in CWM 6. The data files are store in a file called data.ext4. is there anyway to extract my data?
View 9 Replies
View Related
Sep 22, 2013
So I extract any APK, and then go into "Res" folder, but all I see is the icon for the apk.
Where are the rest of images?
- I also have "show hidden files" on my pac/pc turned on.
View 1 Replies
View Related
Jul 24, 2013
how to extract an .obb file so that one can edit the contents. In my other thread [URL] where I was trying to figure out a way to activate the Japanese vocal track in Final Fantasy IV with the game's locale in the US/English. I've hit an impasse as I've been able to deduce that the Google play version of the game (which seems to have a 15mb .apk, and a 400+mb .obb ) retains the Japanese audio track but only plays it in conjunction with JP text if the Android locale/language is Japanese. Thus, I figure that somewhere in that .obb there will be the JP audio track file which I can copy over the English audio track file and thereby access Japanese audio w/ English text since SquareEnix didn't give us the option for some god-awful reason.
However, the only way this can work is if I can get into that .obb file! I saw links elsewhere on the forum suggesting that all I had to do was rename the .obb to a .zip or .rar, and then use 7zip or WinRAR to open it, but attempts with both programs and numerous file types (.zip, .rar , .tar etc..) all report that the file is not an archive and thus cannot be opened. This is different from the .apk file, which easily seems to (upon rename to zip) unveil its secrets with 7zip extraction. So, does an program or method necessary to unpack/extract/read/edit an .obb file besides the simple archive rename? Is there some Android development program or function?
View 4 Replies
View Related
Aug 17, 2012
i trying to extract audio from a apk. I decompiled but did not see audio files. Is this possible?
View 2 Replies
View Related
Nov 8, 2009
i placed some new apps to my sd card from my pc i have a file manager app and need to know how to extract it and where to put it on the phone
View 3 Replies
View Related
Jul 20, 2010
Sorry I am a bit of a newbie on phones.I kept with my Motorola 1000 till I got a Desire. On this phone on the SIM card I could store several numbers for each contact/person.I swapped the SIM card into the Desire, and all the first number for each contact is there, but I can find no way to access the other numbers e.g. landline that I had against each contact/person.Does anyone know where I am going wrong?
View 8 Replies
View Related
Sep 2, 2013
So I know how to extract APKs with APK manager.
However, I want to know, when you extract APKs, where are the images of the APK located?
In which folder when you extract the APK files, are the images?
- It used to be easier back in the day, you would extract and all the images would just be there.
View 3 Replies
View Related
Nov 21, 2013
i have stumbled into sharp's official rom update for SH-06D NERV, this is an Android 4.0.4 (ICS) update.
http:[url]....
i tried downloading it but the update file seems encrypted. is there any way to extract this one? these would be great for those who needs official apps based on ICS for porting and creating themes.These are the list of files i got from extracting the 693 MB zip file:
disclaimers.txt
disclaimers_en.txt
DOCOMO_SH-06DNERV_Image.xml[code].....
View 1 Replies
View Related
Oct 6, 2010
I am trying to reverse engineer an existing android app and understand how a particular UI is constructed. I've found that I can rename the apk to zip and view some of the compiled source. The res/layout directory is populated with all the xml files that define the UI, but while they do have the xml extension, they are not in XML format. Is there anyway to convert these files back to text based markup?
View 2 Replies
View Related